{"version":3,"sources":["/Users/shyun/comcom/ain-enterprise/ain-adk/dist/cjs/chunk-OERUQFT7.cjs","../../src/types/agent.ts"],"names":[],"mappings":"AAAA;AC0CO,IAAM,aAAA,EAAN,MAAA,QAA2B,MAAM;AAAA,EAChC;AAAA,EAEP,WAAA,CAAY,MAAA,EAAqB,OAAA,EAAiB;AACjD,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,IAAA,CAAK,OAAA,EAAS,MAAA;AAAA,EACf;AACD,CAAA;ADzCA;AACA;AACE;AACF,oCAAC","file":"/Users/shyun/comcom/ain-enterprise/ain-adk/dist/cjs/chunk-OERUQFT7.cjs","sourcesContent":[null,"import type { StatusCodes } from \"http-status-codes\";\nimport type { ThreadObject, TriggeredIntent } from \"./memory\";\nimport type { StreamEvent } from \"./stream\";\n\nexport type IntentFallbackContext = {\n\ttriggeredIntent: TriggeredIntent;\n\tthread: ThreadObject;\n};\n\nexport type OnIntentFallback = (\n\tcontext: IntentFallbackContext,\n) => AsyncGenerator<StreamEvent> | undefined;\n\n/**\n * Agent manifest containing essential metadata and configuration.\n *\n * The manifest defines the agent's identity, version, and optional configuration\n * such as the public URL for A2A protocol support and custom prompts.\n *\n * @example\n * ```typescript\n * const manifest: AinAgentManifest = {\n *   name: \"CustomerSupportAgent\",\n *   description: \"AI agent for handling customer support queries\",\n *   version: \"1.0.0\",\n *   url: \"https://api.example.com/agent\",\n *   prompts: {\n *     system: \"You are a helpful customer support assistant.\",\n *     agent: \"Always be polite and provide detailed solutions.\"\n *   }\n * };\n * ```\n */\nexport type AinAgentManifest = {\n\t/** Unique name identifier for the agent */\n\tname: string;\n\t/** Human-readable description of the agent's purpose and capabilities */\n\tdescription: string;\n\t/** Optional public URL for A2A protocol discovery and communication */\n\turl?: string;\n};\n\nexport class AinHttpError extends Error {\n\tpublic status?: StatusCodes;\n\n\tconstructor(status: StatusCodes, message: string) {\n\t\tsuper(message);\n\t\tthis.status = status;\n\t}\n}\n"]}