Skip to content

Conversation

samchon
Copy link
Owner

@samchon samchon commented May 11, 2025

A new controller type containing not only ILlmApplication, but also executor of it.


This pull request introduces several updates, including dependency additions, version updates, and the introduction of new controller interfaces for LLM function calling. These changes enhance the functionality and compatibility of the project while introducing new features for HTTP, MCP, and TypeScript-based controllers.

Dependency Updates and Additions

  • Updated the @samchon/openapi package version to 4.3.0-dev.20250511 in package.json. Added the @modelcontextprotocol/sdk dependency with version ^1.11.1. [1] [2]
  • Added multiple new dependencies in pnpm-lock.yaml, including eventsource-parser@3.0.1, eventsource@3.0.7, express-rate-limit@7.5.0, pkce-challenge@5.0.0, zod@3.24.4, and zod-to-json-schema@3.24.5. These dependencies support new functionality and integrations. [1] [2] [3] [4]

New Controller Interfaces

  • Introduced the IHttpLlmController interface for managing HTTP-based LLM function calling. This includes properties for protocol, application schema, and an optional custom executor function.
  • Added the ILlmController interface for TypeScript-based LLM function calling, designed for managing class-based executors.
  • Created the IMcpLlmController interface for MCP-based LLM function calling, integrating with the @modelcontextprotocol/sdk client.

Codebase Enhancements

  • Updated the src/index.ts file to export the newly introduced controller interfaces (IHttpLlmController, ILlmController, and IMcpLlmController) under a new "CONTROLLERS" section.
  • Improved type annotations and documentation in existing files, such as ILlmFunction.ts and ILlmSchema.ts, by refining the Model parameter description. [1] [2]

A new controller type containing not only `ILlmApplication`, but also executor of it.
@samchon samchon requested a review from Copilot May 11, 2025 16:52
@samchon samchon self-assigned this May 11, 2025
@samchon samchon added the enhancement New feature or request label May 11, 2025
Copy link

socket-security bot commented May 11, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License

View full report

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces new controller interfaces for managing LLM function calling via MCP, HTTP, and TypeScript, while also updating dependencies to support these enhancements. Key changes include adding IMcpLlmController, ILlmController, and IHttpLlmController interfaces; updating documentation comments and type annotations; and bumping the @samchon/openapi version with new dependency additions.

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/structures/IMcpLlmController.ts Added MCP-based controller interface with improved examples
src/structures/ILlmSchema.ts Updated template commentary for clarity in type description
src/structures/ILlmFunction.ts Added template parameter documentation
src/structures/ILlmController.ts Added TypeScript controller interface with executor details
src/structures/IHttpLlmController.ts Added HTTP-based controller interface including connection options
src/index.ts Exported new controller interfaces under the CONTROLLERS section
package.json Updated version number and added new dependency (@modelcontextprotocol/sdk)
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

samchon and others added 4 commits May 12, 2025 02:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@samchon samchon merged commit 68a15aa into master May 12, 2025
4 checks passed
@samchon samchon deleted the feat/controller branch May 12, 2025 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant