{"version":3,"sources":["/Users/shyun/comcom/ain-enterprise/ain-adk/dist/cjs/chunk-L6RI7RO4.cjs","../../src/types/connector.ts"],"names":["CONNECTOR_PROTOCOL_TYPE"],"mappings":"AAAA;ACGO,IAAK,wBAAA,kBAAL,CAAA,CAAKA,wBAAAA,EAAAA,GAAL;AAEN,EAAAA,wBAAAA,CAAA,KAAA,EAAA,EAAM,KAAA;AAEN,EAAAA,wBAAAA,CAAA,KAAA,EAAA,EAAM,KAAA;AAJK,EAAA,OAAAA,wBAAAA;AAAA,CAAA,CAAA,CAAA,wBAAA,GAAA,CAAA,CAAA,CAAA;ADGZ;AACA;AACE;AACF,0DAAC","file":"/Users/shyun/comcom/ain-enterprise/ain-adk/dist/cjs/chunk-L6RI7RO4.cjs","sourcesContent":[null,"/**\n * Supported tool protocol types in the AIN-ADK framework.\n */\nexport enum CONNECTOR_PROTOCOL_TYPE {\n\t/** Agent-to-Agent protocol */\n\tA2A = \"A2A\",\n\t/** Model Context Protocol */\n\tMCP = \"MCP\",\n}\n\nexport type ConnectorTool = {\n\ttoolName: string;\n\tconnectorName: string;\n\tprotocol: CONNECTOR_PROTOCOL_TYPE;\n\tdescription?: string;\n\tinputSchema?: any;\n};\n\n/**\n * Represents a tool invocation request.\n */\nexport type ToolCall = {\n\t/** Name of the tool to invoke */\n\tname: string;\n\t/** Arguments to pass to the tool */\n\targuments?: Record<string, unknown>;\n};\n\n/**\n * Response from a model fetch operation.\n *\n * Contains either content (text response) or tool calls (function invocations),\n * or both in the case of mixed responses.\n */\nexport type FetchResponse = {\n\t/** Text content response from the model */\n\tcontent?: string;\n\t/** Array of tool calls requested by the model */\n\ttoolCalls?: ToolCall[];\n};\n\n/**\n * Base interface for all tools in the AIN-ADK framework.\n *\n * Provides a protocol-agnostic interface for tool management,\n * allowing tools from different sources (MCP, A2A) to be used\n * interchangeably throughout the system.\n *\n * @example\n * ```typescript\n * const tool: IAgentTool = {\n *   name: \"search-tool\",\n *   protocol: TOOL_PROTOCOL_TYPE.MCP,\n *   enabled: true,\n *   enable: () => { this.enabled = true; },\n *   disable: () => { this.enabled = false; }\n * };\n * ```\n */\nexport interface IAgentConnector {\n\t/** Unique identifier for the connector */\n\tname: string;\n\t/** Protocol type (MCP or A2A) */\n\tprotocol: CONNECTOR_PROTOCOL_TYPE;\n\t/** Whether the tool is currently enabled for use */\n\tenabled: boolean;\n\t/** Enables the tool for use */\n\tenable: () => void;\n\t/** Disables the tool from being used */\n\tdisable: () => void;\n}\n"]}