UNPKG

swift-agent

Version:

A building block of agentic systems: an LLM that can retrieve information, use tools, and store user inputs.

32 lines (28 loc) 808 B
import { BaseMessage } from "@langchain/core/messages"; import { StructuredToolInterface } from "@langchain/core/tools"; interface SwiftAgentOptionsInterface { mcp?: MCP; messageHistory?: BaseMessage[]; systemPrompt?: string; } interface MCPClientConfigInterface extends MCP { throwOnLoadError: boolean; prefixToolNameWithServerName: boolean; additionalToolNamePrefix: string; } interface MCP { throwOnLoadError?: boolean; prefixToolNameWithServerName?: boolean; additionalToolNamePrefix?: string; mcpServers: { [serverName: string]: { command: string; args: string[]; }; }; } interface ToolInterface extends StructuredToolInterface { serverName?: string; isEnabled?: boolean; } export { MCPClientConfigInterface, SwiftAgentOptionsInterface, ToolInterface };