@elqnt/agents 1.0.0 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  "use strict";
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../index.tsx","../models/agent-models.ts"],"sourcesContent":["\nexport * from \"./models\";\n","// Code generated by tygo. DO NOT EDIT.\nimport { KGNode } from \"@elqnt/kg\";\nimport { Variable } from \"@elqnt/types\";\nimport { ResponseMetadata, ProductNameTS, JSONSchema } from \"@elqnt/types\";\n\n//////////\n// source: agent-context.go\n\n/**\n * AgentContext accumulates meaningful state from agentic tool executions.\n * It provides a structured, schema-driven view of what happened during a chat\n * and what meaningful data was extracted.\n * Stored in: agent_contexts_org_{orgId} with key: {agentId}:{chatKey}\n */\nexport interface AgentContext {\n /**\n * Identity - used for storage key and cross-references\n */\n orgId: string;\n agentId: string;\n chatKey: string;\n /**\n * Schema defines the shape of accumulated variables\n * Tools contribute to this schema as they execute\n */\n schema: any /* types.JSONSchema */;\n /**\n * Variables is the merged view of all important outputs\n * This is what gets displayed in the \"Agent Context\" panel\n */\n variables: { [key: string]: any};\n /**\n * Executions tracks each tool call with full input/output\n * Similar to NodeStates in workflow engine\n */\n executions: AgentExecution[];\n /**\n * PendingPlan holds an execution plan awaiting user approval\n * Part of the Plan → Approve → Execute flow\n */\n pendingPlan?: ExecutionPlan;\n /**\n * CompletedPlans holds historical plans (for reference/audit)\n */\n completedPlans?: ExecutionPlan[];\n /**\n * Tracking\n */\n createdAt: number /* int64 */;\n lastUpdated: number /* int64 */;\n /**\n * Size management\n */\n archivedExecutionCount?: number /* int */;\n}\n/**\n * AgentExecution represents one tool call during the agentic loop.\n * Similar to NodeState in the workflow engine.\n */\nexport interface AgentExecution {\n /**\n * Identity\n */\n id: string;\n toolName: string;\n toolId?: string;\n /**\n * Display\n */\n title: string; // Human-readable: \"Document Analysis: manifest.pdf\"\n type: string; // Category: document, search, api, extraction\n icon?: string;\n /**\n * Status\n */\n status: ExecutionStatusTS;\n error?: string;\n /**\n * Schema-driven Input/Output (like NodeInput/NodeOutput)\n */\n inputSchema?: any /* types.JSONSchema */;\n input: { [key: string]: any};\n outputSchema?: any /* types.JSONSchema */;\n output?: { [key: string]: any};\n /**\n * Merge Configuration - how this execution's output merges into Variables\n */\n mergeConfig?: MergeConfig;\n /**\n * Timing\n */\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n duration?: number /* int64 */; // milliseconds\n}\n/**\n * ExecutionStatus represents the status of a tool execution\n */\nexport type ExecutionStatus = string;\nexport const ExecutionStatusPending: ExecutionStatus = \"pending\";\nexport const ExecutionStatusRunning: ExecutionStatus = \"running\";\nexport const ExecutionStatusCompleted: ExecutionStatus = \"completed\";\nexport const ExecutionStatusFailed: ExecutionStatus = \"failed\";\nexport const ExecutionStatusSkipped: ExecutionStatus = \"skipped\";\nexport type ExecutionStatusTS = 'pending' | 'running' | 'completed' | 'failed' | 'skipped';\n/**\n * MergeConfig defines how tool output gets merged into AgentContext.Variables\n */\nexport interface MergeConfig {\n /**\n * Keys to extract from output and merge into variables\n */\n mergeKeys?: string[];\n /**\n * Target path in variables\n * Examples: \"shipperName\" (direct), \"documents[]\" (append to array)\n */\n targetPath?: string;\n /**\n * Strategy: \"replace\" | \"merge\" | \"append\"\n * - replace: overwrite the target path\n * - merge: deep merge objects\n * - append: append to array (use with \"path[]\" syntax)\n */\n strategy?: MergeStrategy;\n}\n/**\n * MergeStrategy defines how values are merged into variables\n */\nexport type MergeStrategy = string;\nexport const MergeStrategyReplace: MergeStrategy = \"replace\";\nexport const MergeStrategyMerge: MergeStrategy = \"merge\";\nexport const MergeStrategyAppend: MergeStrategy = \"append\";\nexport type MergeStrategyTS = 'replace' | 'merge' | 'append';\n/**\n * AgentContextConfig is defined on the Agent to configure how context is managed\n */\nexport interface AgentContextConfig {\n /**\n * Base schema - defines the expected shape of accumulated context\n */\n schema: any /* types.JSONSchema */;\n /**\n * Default/initial values when context is created\n */\n defaultVariables?: { [key: string]: any};\n /**\n * Whether to extend schema at runtime when new keys appear\n */\n allowSchemaExtension: boolean;\n}\n/**\n * Constants for size management\n */\nexport const MaxExecutions = 100; // Keep last 100 executions\n/**\n * Constants for size management\n */\nexport const ExecutionTTLHours = 72; // Archive executions older than 72h\n/**\n * ExecutionPlan represents a planned sequence of tool executions\n * that requires user approval before execution.\n */\nexport interface ExecutionPlan {\n /**\n * Identity\n */\n id: string;\n chatKey: string;\n agentId: string;\n orgId: string;\n /**\n * Plan metadata\n */\n title: string; // Human-readable plan title\n description: string; // What this plan will accomplish\n createdAt: number /* int64 */;\n /**\n * Planned steps\n */\n steps: PlannedStep[];\n /**\n * Status tracking\n */\n status: PlanStatusTS;\n approvedAt?: number /* int64 */;\n approvedBy?: string;\n rejectedAt?: number /* int64 */;\n rejectionReason?: string;\n /**\n * Execution tracking (populated after approval)\n */\n executionStartedAt?: number /* int64 */;\n executionCompletedAt?: number /* int64 */;\n currentStepIndex: number /* int */;\n}\n/**\n * PlanStatus represents the status of an execution plan\n */\nexport type PlanStatus = string;\nexport const PlanStatusPendingApproval: PlanStatus = \"pending_approval\";\nexport const PlanStatusApproved: PlanStatus = \"approved\";\nexport const PlanStatusExecuting: PlanStatus = \"executing\";\nexport const PlanStatusCompleted: PlanStatus = \"completed\";\nexport const PlanStatusRejected: PlanStatus = \"rejected\";\nexport const PlanStatusCancelled: PlanStatus = \"cancelled\";\nexport type PlanStatusTS = 'pending_approval' | 'approved' | 'executing' | 'completed' | 'rejected' | 'cancelled';\n/**\n * PlannedStep represents a single step in an execution plan\n */\nexport interface PlannedStep {\n /**\n * Identity\n */\n id: string;\n order: number /* int */; // Execution order (0-based)\n /**\n * Tool information\n */\n toolName: string;\n toolId?: string;\n title: string; // Human-readable step title\n description: string; // What this step does\n icon?: string;\n /**\n * Planned input (may reference outputs from previous steps)\n */\n plannedInput: { [key: string]: any};\n /**\n * Dependencies (step IDs that must complete before this one)\n */\n dependsOn?: string[];\n /**\n * Optional: user can toggle individual steps\n */\n enabled: boolean;\n /**\n * After execution (populated during/after execution)\n */\n status: ExecutionStatusTS;\n output?: { [key: string]: any};\n error?: string;\n startedAt?: number /* int64 */;\n completedAt?: number /* int64 */;\n}\n/**\n * PlanApprovalConfig configures when an agent requires plan approval\n */\nexport interface PlanApprovalConfig {\n /**\n * Always require approval for any multi-tool operation\n */\n alwaysRequire: boolean;\n /**\n * Require approval only for these tool names\n */\n requireForTools?: string[];\n /**\n * Require approval when estimated execution time exceeds threshold (seconds)\n */\n timeThresholdSeconds?: number /* int */;\n /**\n * Require approval when number of steps exceeds threshold\n */\n stepCountThreshold?: number /* int */;\n /**\n * Auto-approve if user has previously approved similar plans\n */\n allowAutoApprove: boolean;\n}\n\n//////////\n// source: agent-io-models.go\n\n/**\n * CreateToolRequest represents a request to create a tool\n */\nexport interface CreateToolRequest {\n orgId: string /* uuid */;\n tool?: Tool;\n}\n/**\n * UpdateToolRequest represents a request to update a tool\n */\nexport interface UpdateToolRequest {\n orgId: string /* uuid */;\n tool?: Tool;\n}\n/**\n * GetToolRequest represents a request to get a tool\n */\nexport interface GetToolRequest {\n orgId: string /* uuid */;\n toolId: string /* uuid */;\n}\n/**\n * DeleteToolRequest represents a request to delete a tool\n */\nexport interface DeleteToolRequest {\n orgId: string /* uuid */;\n toolId: string /* uuid */;\n}\n/**\n * ListToolsRequest represents a request to list tools\n */\nexport interface ListToolsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * ToolResponse represents a response containing a tool\n */\nexport interface ToolResponse {\n tool?: Tool;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ToolsListResponse represents a response containing multiple tools\n */\nexport interface ToolsListResponse {\n tools: Tool[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * CreateSubAgentRequest represents a request to create a sub-agent\n */\nexport interface CreateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * UpdateSubAgentRequest represents a request to update a sub-agent\n */\nexport interface UpdateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * GetSubAgentRequest represents a request to get a sub-agent\n */\nexport interface GetSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * DeleteSubAgentRequest represents a request to delete a sub-agent\n */\nexport interface DeleteSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * ListSubAgentsRequest represents a request to list sub-agents\n */\nexport interface ListSubAgentsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SubAgentResponse represents a response containing a sub-agent\n */\nexport interface SubAgentResponse {\n subAgent?: SubAgent;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SubAgentsListResponse represents a response containing multiple sub-agents\n */\nexport interface SubAgentsListResponse {\n subAgents: SubAgent[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetToolsByIDsRequest represents a request to get multiple tools by IDs\n */\nexport interface GetToolsByIDsRequest {\n orgId: string /* uuid */;\n toolIds: string /* uuid */[];\n}\n/**\n * GetToolsByIDsResponse represents a response containing multiple tools\n */\nexport interface GetToolsByIDsResponse {\n tools: Tool[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSubAgentsByIDsRequest represents a request to get multiple sub-agents by IDs\n */\nexport interface GetSubAgentsByIDsRequest {\n orgId: string /* uuid */;\n subAgentIds: string /* uuid */[];\n}\n/**\n * GetSubAgentsByIDsResponse represents a response containing multiple sub-agents\n */\nexport interface GetSubAgentsByIDsResponse {\n subAgents: SubAgent[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface ExecuteToolRequest {\n orgId: string;\n tool?: AgentTool;\n input: { [key: string]: any};\n metadata?: { [key: string]: any};\n context?: { [key: string]: any};\n chatKey?: string;\n}\nexport interface ExecuteToolResponse {\n result: { [key: string]: any};\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: agent-models.go\n\nexport type AgentTypeTS = 'chat' | 'react';\nexport type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';\nexport type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';\nexport type AgentType = string;\nexport const AgentTypeChat: AgentType = \"chat\";\nexport const AgentTypeReact: AgentType = \"react\";\nexport type AgentSubType = string;\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeChat: AgentSubType = \"chat\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeReact: AgentSubType = \"react\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeWorkflow: AgentSubType = \"workflow\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeDocument: AgentSubType = \"document\";\nexport type AgentStatus = string;\nexport const AgentStatusDraft: AgentStatus = \"draft\";\nexport const AgentStatusActive: AgentStatus = \"active\";\nexport const AgentStatusInactive: AgentStatus = \"inactive\";\nexport const AgentStatusArchived: AgentStatus = \"archived\";\nexport interface DefaultDefinitions {\n agents: Agent[];\n tools: Tool[];\n subAgents: SubAgent[];\n}\n/**\n * AgentTool represents an agent's configuration for a specific tool\n * Includes denormalized tool information to avoid joins at runtime\n */\nexport interface AgentTool {\n toolId: string /* uuid */;\n toolName: string; // Denormalized for runtime performance\n title?: string;\n description?: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema?: JSONSchema;\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem?: boolean;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n order?: number /* int */;\n}\n/**\n * Core agent entity - shared by both types\n */\nexport interface Agent {\n id?: string /* uuid */;\n orgId: string /* uuid */;\n product: ProductNameTS;\n type: AgentTypeTS; // \"chat\" or \"react\"\n subType: AgentSubTypeTS; // Specific agent category\n name: string; // Machine-readable name (e.g., \"rfp_builder\")\n title: string; // Human-readable title (e.g., \"RFP Builder\")\n description?: string;\n status: AgentStatusTS;\n version: string;\n /**\n * === LLM CONFIG ===\n */\n provider: string;\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n systemPrompt: string;\n /**\n * Shared metadata\n */\n tags?: string[];\n isDefault: boolean;\n isPublic: boolean;\n /**\n * === Tool and SubAgent References ===\n */\n tools?: AgentTool[]; // Tools with agent-specific configurations\n subAgentIds?: string /* uuid */[]; // IDs of sub-agents this agent can use\n /**\n * === Essential Configs ===\n */\n csatConfig: CSATConfig;\n handoffConfig: HandoffConfig;\n /**\n * === TYPE-SPECIFIC CORE CONFIG ===\n */\n reactConfig?: ReactAgentConfig; // ReAct-only essentials\n /**\n * === CROSS-CUTTING FEATURES (can be used by any agent type) ===\n */\n userSuggestedActionsConfig?: UserSuggestedActionsConfig;\n /**\n * === AGENT CONTEXT CONFIG ===\n * Defines how AgentContext is initialized and managed for this agent\n */\n contextConfig?: AgentContextConfig;\n /**\n * === SCHEMA-DRIVEN AGENT CONFIG ===\n * Use ConfigSchema to auto-generate UI and validate values in Config\n */\n configSchema: JSONSchema;\n config?: { [key: string]: any};\n /**\n * === UI DISPLAY CONFIG ===\n */\n iconName?: string; // Lucide icon name for UI display (e.g., \"Bot\", \"ChartScatter\", \"PenTool\")\n capabilities?: string[]; // Agent capabilities for UI display (e.g., [\"Data Analysis\", \"Reporting\"])\n samplePrompts?: string[]; // Example prompts to show users (e.g., [\"What can you help me with?\"])\n /**\n * === SHARED BEHAVIOR CONFIG ===\n */\n responseStyle?: string;\n personalityTraits?: string[];\n fallbackMessage?: string;\n /**\n * === SHARED PERFORMANCE CONFIG ===\n */\n responseDelay?: number /* int */; // ms\n maxConcurrency?: number /* int */; // concurrent chats\n sessionTimeout?: number /* int */; // minutes\n /**\n * Audit fields\n */\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n metadata?: { [key: string]: any};\n}\n/**\n * Handoff Configuration\n */\nexport interface HandoffConfig {\n enabled: boolean;\n triggerKeywords: string[];\n queueId?: string;\n handoffMessage: string;\n}\n/**\n * AgentFilters for filtering agents in list operations\n */\nexport interface AgentFilters {\n product?: ProductNameTS;\n type?: AgentType;\n subType?: AgentSubType;\n status?: AgentStatus;\n isDefault?: boolean;\n isPublic?: boolean;\n tags?: string[];\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * AgentSummary is a lightweight representation of an agent for list views\n * Contains essential display fields plus metadata needed for chat initialization\n */\nexport interface AgentSummary {\n id: string /* uuid */;\n name: string;\n title: string;\n description?: string;\n iconName?: string;\n type: AgentTypeTS;\n status: AgentStatusTS;\n isDefault: boolean;\n isPublic: boolean;\n capabilities?: string[];\n samplePrompts?: string[];\n metadata?: { [key: string]: any};\n}\n/**\n * Tool represents a tool that can be called by an agent\n */\nexport interface Tool {\n id: string /* uuid */;\n name: string; // Machine-readable name for LLM calls (e.g., \"document_extractor\")\n title: string; // Human-readable title (e.g., \"Document Extractor\")\n description: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema: JSONSchema; // Using JSONSchema for OpenAI compatibility\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * ToolExecution represents the execution context for a tool\n */\nexport interface ToolExecution {\n id: string;\n title: string;\n toolId: string;\n toolName: string;\n status: ToolExecutionStatusTS;\n input: { [key: string]: any};\n result?: { [key: string]: any};\n error?: string;\n context?: { [key: string]: any};\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n retryCount: number /* int */;\n progress?: ToolExecutionProgress[];\n}\nexport interface ToolExecutionProgress {\n status: ToolExecutionStatusTS;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n metadata?: { [key: string]: any};\n}\n/**\n * ToolExecutionStatus represents the status of a tool execution\n */\nexport type ToolExecutionStatus = string;\nexport const ToolExecutionStatusStarted: ToolExecutionStatus = \"started\";\nexport const ToolExecutionStatusExecuting: ToolExecutionStatus = \"executing\";\nexport const ToolExecutionStatusCompleted: ToolExecutionStatus = \"completed\";\nexport const ToolExecutionStatusFailed: ToolExecutionStatus = \"failed\";\nexport const ToolExecutionStatusTimeout: ToolExecutionStatus = \"timeout\";\nexport const ToolExecutionStatusSkipped: ToolExecutionStatus = \"skipped\";\n/**\n * SubAgent represents a sub-agent composed of tools\n */\nexport interface SubAgent {\n id: string /* uuid */;\n orgId: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"contract_reviewer\")\n title: string; // Human-readable title (e.g., \"Contract Reviewer\")\n description: string;\n prompt: string;\n toolIds: string /* uuid */[]; // Tool IDs this sub-agent can use\n inputSchema: JSONSchema; // Using JSONSchema for validation\n outputSchema: JSONSchema; // Using JSONSchema for validation\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n version: string;\n enabled: boolean;\n isSystem: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n}\n/**\n * AgentToolConfiguration represents how an agent uses tools\n */\nexport interface AgentToolConfiguration {\n enabledTools: string[]; // Tool IDs\n enabledSubAgents: string[]; // SubAgent IDs\n toolConfigs: { [key: string]: ToolConfig}; // Per-tool configuration\n executionPolicy: ToolExecutionPolicy;\n maxParallelCalls: number /* int */;\n requireApproval: boolean;\n}\n/**\n * ToolExecutionPolicy defines how tools are executed\n */\nexport interface ToolExecutionPolicy {\n mode: ExecutionModeTS;\n maxIterations: number /* int */;\n stopOnError: boolean;\n retryOnFailure: boolean;\n timeoutSeconds: number /* int */;\n}\n/**\n * ExecutionMode defines how tools are executed\n */\nexport type ExecutionMode = string;\nexport const ExecutionModeSync: ExecutionMode = \"sync\";\nexport const ExecutionModeAsync: ExecutionMode = \"async\";\nexport const ExecutionModeAsyncClient: ExecutionMode = \"asyncClient\";\n/**\n * CreateExecutionPlanRequest represents a request to create an execution plan\n */\nexport interface CreateExecutionPlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n input: string;\n context?: { [key: string]: any};\n availableTools: Tool[];\n}\n/**\n * CreateExecutionPlanResponse represents the response with an execution plan\n */\nexport interface CreateExecutionPlanResponse {\n agentInstanceId: string /* uuid */;\n executionPlan: ToolExecution[];\n estimatedTime?: any /* time.Duration */;\n}\n/**\n * ExecutePlanRequest represents a request to execute the plan\n */\nexport interface ExecutePlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n approveAll?: boolean;\n}\n/**\n * ExecutePlanResponse represents the response after executing the plan\n */\nexport interface ExecutePlanResponse {\n stateId: string;\n status: ToolExecutionStatusTS;\n executedTools: ToolExecution[];\n finalResult?: any /* json.RawMessage */;\n errors?: string[];\n}\nexport type ToolExecutionStatusTS = 'pending' | 'executing' | 'completed' | 'failed' | 'timeout' | 'skipped';\nexport type ExecutionModeTS = 'sync' | 'async' | 'asyncClient';\n\n//////////\n// source: csat.go\n\n/**\n * CSAT Configuration\n */\nexport interface CSATConfig {\n enabled: boolean;\n survey?: CSATSurvey;\n}\nexport interface CSATQuestion {\n question: { [key: string]: string}; // {\"en\": \"How was...\", \"ar\": \"كيف كانت...\"}\n showRating: boolean;\n showComment: boolean;\n}\nexport interface CSATSurvey {\n questions: CSATQuestion[];\n timeThreshold: number /* int */; // Minutes after last message\n closeOnResponse: boolean;\n}\nexport interface CSATAnswer {\n question: string;\n lang?: string; // Language used for this answer\n rating?: number /* int */; // 1-5 rating\n comment?: string; // Text feedback\n}\nexport interface CSATResponse {\n answers: CSATAnswer[];\n submittedAt: number /* int64 */;\n overallRating: number /* int */; // 1-5 overall satisfaction\n}\n\n//////////\n// source: react.go\n\n/**\n * ReAct Agent Configuration\n */\nexport interface ReactAgentConfig {\n /**\n * Core ReAct Configuration\n */\n maxIterations: number /* int */;\n reasoningPrompt: string;\n stopConditions: string[];\n availableTools: string[];\n requireConfirmation: boolean;\n /**\n * LLM Configuration\n */\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n provider: string;\n /**\n * Context Management\n */\n maxContextLength: number /* int */;\n memoryRetention: number /* int */;\n compressionStrategy: string;\n /**\n * Tool Configuration\n */\n toolConfigs?: { [key: string]: ToolConfig};\n mcpServers?: MCPServerConfig[];\n /**\n * Execution Configuration\n */\n timeoutMinutes: number /* int */;\n retryAttempts: number /* int */;\n parallelExecution: boolean;\n /**\n * Safety Configuration\n */\n dangerousOperations?: string[];\n allowedFileTypes?: string[];\n restrictedPaths?: string[];\n}\nexport interface ToolConfig {\n enabled: boolean;\n timeoutSeconds: number /* int */;\n retryPolicy: RetryPolicy;\n configuration?: { [key: string]: any};\n}\nexport interface RetryPolicy {\n maxAttempts: number /* int */;\n backoffStrategy: string;\n backoffDelay: any /* time.Duration */;\n}\nexport interface MCPServerConfig {\n name: string;\n endpoint: string;\n trusted: boolean;\n timeout: number /* int */;\n credentials?: { [key: string]: string};\n}\n\n//////////\n// source: requests.go\n\nexport interface CreateAgentRequest {\n agent?: Agent;\n orgId: string /* uuid */;\n}\nexport interface AgentResponse {\n agent?: Agent;\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetAgentRequest {\n id?: string /* uuid */;\n name?: string;\n orgId: string /* uuid */;\n}\nexport interface UpdateAgentRequest {\n agent: Agent;\n orgId: string /* uuid */;\n}\nexport interface DeleteAgentRequest {\n id: string /* uuid */;\n orgId: string /* uuid */;\n}\nexport interface ListAgentsRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\nexport interface ListAgentsResponse {\n agents: Agent[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ListAgentsSummaryRequest requests a lightweight list of agents\n */\nexport interface ListAgentsSummaryRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\n/**\n * ListAgentsSummaryResponse returns lightweight agent summaries for list views\n */\nexport interface ListAgentsSummaryResponse {\n agents: AgentSummary[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetDefaultAgentRequest {\n orgId: string /* uuid */;\n agentType: AgentType;\n}\nexport interface UpdateOrgAgentsRequest {\n orgId: string /* uuid */;\n defaultDefinitions?: DefaultDefinitions;\n}\nexport interface UpdateOrgAgentsResponse {\n toolsCreated: number /* int */;\n subAgentsCreated: number /* int */;\n agentsCreated: number /* int */;\n metadata: ResponseMetadata;\n}\n\n//////////\n// source: subjects.go\n\n/**\n * Core Agent Operations\n */\nexport const AgentCreateSubject = \"agent.create\";\n/**\n * Core Agent Operations\n */\nexport const AgentCreatedSubject = \"agent.created\";\n/**\n * Core Agent Operations\n */\nexport const AgentGetSubject = \"agent.get\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdateSubject = \"agent.update\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdatedSubject = \"agent.updated\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeleteSubject = \"agent.delete\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeletedSubject = \"agent.deleted\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSubject = \"agent.list\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSummarySubject = \"agent.list.summary\"; // Lightweight agent list for UI\n/**\n * Core Agent Operations\n */\nexport const AgentSearchSubject = \"agent.search\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatCreateSubject = \"agent.chat.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatUpdateSubject = \"agent.chat.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatGetSubject = \"agent.chat.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatValidateSubject = \"agent.chat.validate\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactCreateSubject = \"agent.react.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactUpdateSubject = \"agent.react.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactGetSubject = \"agent.react.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactValidateSubject = \"agent.react.validate\";\n/**\n * Execution Coordination\n */\nexport const AgentExecuteSubject = \"agent.execute\"; // Routes to appropriate service\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStatusSubject = \"agent.execute.status\"; // Get execution status\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStopSubject = \"agent.execute.stop\"; // Stop execution\n/**\n * Version Management\n */\nexport const AgentVersionCreateSubject = \"agent.version.create\";\n/**\n * Version Management\n */\nexport const AgentVersionCreatedSubject = \"agent.version.created\";\n/**\n * Version Management\n */\nexport const AgentVersionGetSubject = \"agent.version.get\";\n/**\n * Version Management\n */\nexport const AgentVersionListSubject = \"agent.version.list\";\n/**\n * Version Management\n */\nexport const AgentVersionActivateSubject = \"agent.version.activate\";\n/**\n * Version Management\n */\nexport const AgentVersionActivatedSubject = \"agent.version.activated\";\n/**\n * Default Agent Management\n */\nexport const AgentEnsureDefaultSubject = \"agent.ensure-default\";\n/**\n * Default Agent Management\n */\nexport const AgentGetDefaultSubject = \"agent.get-default\";\n/**\n * Organization Management\n */\nexport const AgentGetByOrgSubject = \"agent.get-by-org\";\n/**\n * Organization Management\n */\nexport const AgentCloneSubject = \"agent.clone\";\n/**\n * Organization Management\n */\nexport const AgentExportSubject = \"agent.export\";\n/**\n * Organization Management\n */\nexport const AgentImportSubject = \"agent.import\";\n/**\n * Organization Management\n */\nexport const AgentUpdateOrgSubject = \"agent.update-org-agents\"; // Bulk update agents and tools for an organization\n/**\n * Configuration Templates\n */\nexport const AgentTemplateListSubject = \"agent.template.list\";\n/**\n * Configuration Templates\n */\nexport const AgentTemplateGetSubject = \"agent.template.get\";\n/**\n * Configuration Templates\n */\nexport const AgentFromTemplateSubject = \"agent.from-template\";\n/**\n * Chat Service Integration\n */\nexport const ChatAgentExecuteSubject = \"chat.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ChatAgentStatusSubject = \"chat.agent.status\";\n/**\n * ReAct Service Integration\n */\nexport const ReactAgentExecuteSubject = \"react.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStatusSubject = \"react.agent.status\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStopSubject = \"react.agent.stop\";\n/**\n * Workflow Service Integration\n */\nexport const WorkflowAgentGetSubject = \"workflow.agent.get\";\n/**\n * Execution Service Integration\n */\nexport const WorkflowAgentUpdateSubject = \"workflow.agent.update\";\n/**\n * Tools Management\n */\nexport const ToolsCreateSubject = \"agents.tools.create\";\n/**\n * Tools Management\n */\nexport const ToolsCreatedSubject = \"agents.tools.created\";\n/**\n * Tools Management\n */\nexport const ToolsGetSubject = \"agents.tools.get\";\n/**\n * Tools Management\n */\nexport const ToolsUpdateSubject = \"agents.tools.update\";\n/**\n * Tools Management\n */\nexport const ToolsUpdatedSubject = \"agents.tools.updated\";\n/**\n * Tools Management\n */\nexport const ToolsDeleteSubject = \"agents.tools.delete\";\n/**\n * Tools Management\n */\nexport const ToolsDeletedSubject = \"agents.tools.deleted\";\n/**\n * Tools Management\n */\nexport const ToolsListSubject = \"agents.tools.list\";\n/**\n * Tools Management\n */\nexport const ToolsGetByIDsSubject = \"agents.tools.get-by-ids\";\n/**\n * Tools Management\n */\nexport const ToolsExecuteSubject = \"agents.tools.execute\";\n/**\n * Tools Management\n */\nexport const ToolsValidateSubject = \"agents.tools.validate\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreateSubject = \"agents.subagents.create\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreatedSubject = \"agents.subagents.created\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetSubject = \"agents.subagents.get\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdateSubject = \"agents.subagents.update\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdatedSubject = \"agents.subagents.updated\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeleteSubject = \"agents.subagents.delete\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeletedSubject = \"agents.subagents.deleted\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsListSubject = \"agents.subagents.list\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetByIDsSubject = \"agents.subagents.get-by-ids\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsExecuteSubject = \"agents.subagents.execute\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsValidateSubject = \"agents.subagents.validate\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreateSubject = \"agents.instance.create\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreatedSubject = \"agents.instance.created\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceGetSubject = \"agents.instance.get\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdateSubject = \"agents.instance.update\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdatedSubject = \"agents.instance.updated\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceListSubject = \"agents.instance.list\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeleteSubject = \"agents.instance.delete\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeletedSubject = \"agents.instance.deleted\";\n/**\n * Execution Plan Operations\n */\nexport const AgentInstanceCreatePlanSubject = \"agents.instance.create-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceExecutePlanSubject = \"agents.instance.execute-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstancePausePlanSubject = \"agents.instance.pause-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceResumePlanSubject = \"agents.instance.resume-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCancelPlanSubject = \"agents.instance.cancel-plan\";\n/**\n * Execution History\n */\nexport const AgentInstanceGetHistorySubject = \"agents.instance.get-history\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceClearHistorySubject = \"agents.instance.clear-history\";\n\n//////////\n// source: user-suggested-actions.go\n\n/**\n * Config and request models for product service integration\n */\nexport interface UserSuggestedActionsConfig {\n enabled: boolean;\n actionTypes: string[];\n maxActions: number /* int */;\n cooldownSeconds: number /* int */;\n}\nexport interface UserSuggestedAction {\n title: string;\n actionType: string;\n input?: string;\n priority?: number /* int */;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsRequest {\n orgId: string /* uuid */;\n chatKey: string;\n config: UserSuggestedActionsConfig;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsResponse {\n actions: UserSuggestedAction[];\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: validation.go\n\n/**\n * ValidationError represents a validation error with field and message\n */\nexport interface ValidationError {\n field: string;\n message: string;\n}\n/**\n * ValidationErrors represents a collection of validation errors\n */\nexport type ValidationErrors = ValidationError[];\n"],"mappings":"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","names":[]}
1
+ {"version":3,"sources":["../index.tsx","../models/agent-models.ts"],"sourcesContent":["\nexport * from \"./models\";\n","// Code generated by tygo. DO NOT EDIT.\nimport { KGNode } from \"@elqnt/kg\";\nimport { Variable } from \"@elqnt/types\";\nimport { ResponseMetadata, ProductNameTS, JSONSchema } from \"@elqnt/types\";\n\n//////////\n// source: agent-context.go\n\n/**\n * AgentContext accumulates meaningful state from agentic tool executions.\n * It provides a structured, schema-driven view of what happened during a chat\n * and what meaningful data was extracted.\n * Stored in: agent_contexts_org_{orgId} with key: {agentId}:{chatKey}\n */\nexport interface AgentContext {\n /**\n * Identity - used for storage key and cross-references\n */\n orgId: string;\n agentId: string;\n chatKey: string;\n /**\n * Schema defines the shape of accumulated variables\n * Tools contribute to this schema as they execute\n */\n schema: any /* types.JSONSchema */;\n /**\n * Variables is the merged view of all important outputs\n * This is what gets displayed in the \"Agent Context\" panel\n */\n variables: { [key: string]: any};\n /**\n * Executions tracks each tool call with full input/output\n * Similar to NodeStates in workflow engine\n */\n executions: AgentExecution[];\n /**\n * PendingPlan holds an execution plan awaiting user approval\n * Part of the Plan → Approve → Execute flow\n */\n pendingPlan?: ExecutionPlan;\n /**\n * CompletedPlans holds historical plans (for reference/audit)\n */\n completedPlans?: ExecutionPlan[];\n /**\n * Tracking\n */\n createdAt: number /* int64 */;\n lastUpdated: number /* int64 */;\n /**\n * Size management\n */\n archivedExecutionCount?: number /* int */;\n}\n/**\n * AgentExecution represents one tool call during the agentic loop.\n * Similar to NodeState in the workflow engine.\n */\nexport interface AgentExecution {\n /**\n * Identity\n */\n id: string;\n toolName: string;\n toolId?: string;\n /**\n * Display\n */\n title: string; // Human-readable: \"Document Analysis: manifest.pdf\"\n type: string; // Category: document, search, api, extraction\n icon?: string;\n /**\n * Status\n */\n status: ExecutionStatusTS;\n error?: string;\n /**\n * Schema-driven Input/Output (like NodeInput/NodeOutput)\n */\n inputSchema?: any /* types.JSONSchema */;\n input: { [key: string]: any};\n outputSchema?: any /* types.JSONSchema */;\n output?: { [key: string]: any};\n /**\n * Merge Configuration - how this execution's output merges into Variables\n */\n mergeConfig?: MergeConfig;\n /**\n * Timing\n */\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n duration?: number /* int64 */; // milliseconds\n}\n/**\n * ExecutionStatus represents the status of a tool execution\n */\nexport type ExecutionStatus = string;\nexport const ExecutionStatusPending: ExecutionStatus = \"pending\";\nexport const ExecutionStatusRunning: ExecutionStatus = \"running\";\nexport const ExecutionStatusCompleted: ExecutionStatus = \"completed\";\nexport const ExecutionStatusFailed: ExecutionStatus = \"failed\";\nexport const ExecutionStatusSkipped: ExecutionStatus = \"skipped\";\nexport type ExecutionStatusTS = 'pending' | 'running' | 'completed' | 'failed' | 'skipped';\n/**\n * MergeConfig defines how tool output gets merged into AgentContext.Variables\n */\nexport interface MergeConfig {\n /**\n * Keys to extract from output and merge into variables\n */\n mergeKeys?: string[];\n /**\n * Target path in variables\n * Examples: \"shipperName\" (direct), \"documents[]\" (append to array)\n */\n targetPath?: string;\n /**\n * Strategy: \"replace\" | \"merge\" | \"append\"\n * - replace: overwrite the target path\n * - merge: deep merge objects\n * - append: append to array (use with \"path[]\" syntax)\n */\n strategy?: MergeStrategy;\n}\n/**\n * MergeStrategy defines how values are merged into variables\n */\nexport type MergeStrategy = string;\nexport const MergeStrategyReplace: MergeStrategy = \"replace\";\nexport const MergeStrategyMerge: MergeStrategy = \"merge\";\nexport const MergeStrategyAppend: MergeStrategy = \"append\";\nexport type MergeStrategyTS = 'replace' | 'merge' | 'append';\n/**\n * AgentContextConfig is defined on the Agent to configure how context is managed\n */\nexport interface AgentContextConfig {\n /**\n * Base schema - defines the expected shape of accumulated context\n */\n schema: any /* types.JSONSchema */;\n /**\n * Default/initial values when context is created\n */\n defaultVariables?: { [key: string]: any};\n /**\n * Whether to extend schema at runtime when new keys appear\n */\n allowSchemaExtension: boolean;\n}\n/**\n * Constants for size management\n */\nexport const MaxExecutions = 100; // Keep last 100 executions\n/**\n * Constants for size management\n */\nexport const ExecutionTTLHours = 72; // Archive executions older than 72h\n/**\n * ExecutionPlan represents a planned sequence of tool executions\n * that requires user approval before execution.\n */\nexport interface ExecutionPlan {\n /**\n * Identity\n */\n id: string;\n chatKey: string;\n agentId: string;\n orgId: string;\n /**\n * Plan metadata\n */\n title: string; // Human-readable plan title\n description: string; // What this plan will accomplish\n createdAt: number /* int64 */;\n /**\n * Planned steps\n */\n steps: PlannedStep[];\n /**\n * Status tracking\n */\n status: PlanStatusTS;\n approvedAt?: number /* int64 */;\n approvedBy?: string;\n rejectedAt?: number /* int64 */;\n rejectionReason?: string;\n /**\n * Execution tracking (populated after approval)\n */\n executionStartedAt?: number /* int64 */;\n executionCompletedAt?: number /* int64 */;\n currentStepIndex: number /* int */;\n}\n/**\n * PlanStatus represents the status of an execution plan\n */\nexport type PlanStatus = string;\nexport const PlanStatusPendingApproval: PlanStatus = \"pending_approval\";\nexport const PlanStatusApproved: PlanStatus = \"approved\";\nexport const PlanStatusExecuting: PlanStatus = \"executing\";\nexport const PlanStatusCompleted: PlanStatus = \"completed\";\nexport const PlanStatusRejected: PlanStatus = \"rejected\";\nexport const PlanStatusCancelled: PlanStatus = \"cancelled\";\nexport type PlanStatusTS = 'pending_approval' | 'approved' | 'executing' | 'completed' | 'rejected' | 'cancelled';\n/**\n * PlannedStep represents a single step in an execution plan\n */\nexport interface PlannedStep {\n /**\n * Identity\n */\n id: string;\n order: number /* int */; // Execution order (0-based)\n /**\n * Tool information\n */\n toolName: string;\n toolId?: string;\n title: string; // Human-readable step title\n description: string; // What this step does\n icon?: string;\n /**\n * Planned input (may reference outputs from previous steps)\n */\n plannedInput: { [key: string]: any};\n /**\n * Dependencies (step IDs that must complete before this one)\n */\n dependsOn?: string[];\n /**\n * Optional: user can toggle individual steps\n */\n enabled: boolean;\n /**\n * After execution (populated during/after execution)\n */\n status: ExecutionStatusTS;\n output?: { [key: string]: any};\n error?: string;\n startedAt?: number /* int64 */;\n completedAt?: number /* int64 */;\n}\n/**\n * PlanApprovalConfig configures when an agent requires plan approval\n */\nexport interface PlanApprovalConfig {\n /**\n * Always require approval for any multi-tool operation\n */\n alwaysRequire: boolean;\n /**\n * Require approval only for these tool names\n */\n requireForTools?: string[];\n /**\n * Require approval when estimated execution time exceeds threshold (seconds)\n */\n timeThresholdSeconds?: number /* int */;\n /**\n * Require approval when number of steps exceeds threshold\n */\n stepCountThreshold?: number /* int */;\n /**\n * Auto-approve if user has previously approved similar plans\n */\n allowAutoApprove: boolean;\n}\n\n//////////\n// source: agent-io-models.go\n\n/**\n * CreateToolRequest represents a request to create a tool\n */\nexport interface CreateToolRequest {\n orgId: string /* uuid */;\n tool?: Tool;\n}\n/**\n * UpdateToolRequest represents a request to update a tool\n */\nexport interface UpdateToolRequest {\n orgId: string /* uuid */;\n tool?: Tool;\n}\n/**\n * GetToolRequest represents a request to get a tool\n */\nexport interface GetToolRequest {\n orgId: string /* uuid */;\n toolId: string /* uuid */;\n}\n/**\n * DeleteToolRequest represents a request to delete a tool\n */\nexport interface DeleteToolRequest {\n orgId: string /* uuid */;\n toolId: string /* uuid */;\n}\n/**\n * ListToolsRequest represents a request to list tools\n */\nexport interface ListToolsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * ToolResponse represents a response containing a tool\n */\nexport interface ToolResponse {\n tool?: Tool;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ToolsListResponse represents a response containing multiple tools\n */\nexport interface ToolsListResponse {\n tools: Tool[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * CreateSubAgentRequest represents a request to create a sub-agent\n */\nexport interface CreateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * UpdateSubAgentRequest represents a request to update a sub-agent\n */\nexport interface UpdateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * GetSubAgentRequest represents a request to get a sub-agent\n */\nexport interface GetSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * DeleteSubAgentRequest represents a request to delete a sub-agent\n */\nexport interface DeleteSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * ListSubAgentsRequest represents a request to list sub-agents\n */\nexport interface ListSubAgentsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SubAgentResponse represents a response containing a sub-agent\n */\nexport interface SubAgentResponse {\n subAgent?: SubAgent;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SubAgentsListResponse represents a response containing multiple sub-agents\n */\nexport interface SubAgentsListResponse {\n subAgents: SubAgent[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetToolsByIDsRequest represents a request to get multiple tools by IDs\n */\nexport interface GetToolsByIDsRequest {\n orgId: string /* uuid */;\n toolIds: string /* uuid */[];\n}\n/**\n * GetToolsByIDsResponse represents a response containing multiple tools\n */\nexport interface GetToolsByIDsResponse {\n tools: Tool[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSubAgentsByIDsRequest represents a request to get multiple sub-agents by IDs\n */\nexport interface GetSubAgentsByIDsRequest {\n orgId: string /* uuid */;\n subAgentIds: string /* uuid */[];\n}\n/**\n * GetSubAgentsByIDsResponse represents a response containing multiple sub-agents\n */\nexport interface GetSubAgentsByIDsResponse {\n subAgents: SubAgent[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface ExecuteToolRequest {\n orgId: string;\n tool?: AgentTool;\n input: { [key: string]: any};\n metadata?: { [key: string]: any};\n context?: { [key: string]: any};\n chatKey?: string;\n}\nexport interface ExecuteToolResponse {\n result: { [key: string]: any};\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: agent-models.go\n\nexport type AgentTypeTS = 'chat' | 'react';\nexport type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';\nexport type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';\nexport type AgentType = string;\nexport const AgentTypeChat: AgentType = \"chat\";\nexport const AgentTypeReact: AgentType = \"react\";\nexport type AgentSubType = string;\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeChat: AgentSubType = \"chat\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeReact: AgentSubType = \"react\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeWorkflow: AgentSubType = \"workflow\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeDocument: AgentSubType = \"document\";\nexport type AgentStatus = string;\nexport const AgentStatusDraft: AgentStatus = \"draft\";\nexport const AgentStatusActive: AgentStatus = \"active\";\nexport const AgentStatusInactive: AgentStatus = \"inactive\";\nexport const AgentStatusArchived: AgentStatus = \"archived\";\nexport interface DefaultDefinitions {\n agents: Agent[];\n tools: Tool[];\n subAgents: SubAgent[];\n}\n/**\n * AgentTool represents an agent's configuration for a specific tool\n * Includes denormalized tool information to avoid joins at runtime\n */\nexport interface AgentTool {\n toolId: string /* uuid */;\n toolName: string; // Denormalized for runtime performance\n title?: string;\n description?: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema?: JSONSchema;\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem?: boolean;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n order?: number /* int */;\n}\n/**\n * Core agent entity - shared by both types\n */\nexport interface Agent {\n id?: string /* uuid */;\n orgId: string /* uuid */;\n product: ProductNameTS;\n type: AgentTypeTS; // \"chat\" or \"react\"\n subType: AgentSubTypeTS; // Specific agent category\n name: string; // Machine-readable name (e.g., \"rfp_builder\")\n title: string; // Human-readable title (e.g., \"RFP Builder\")\n description?: string;\n status: AgentStatusTS;\n version: string;\n /**\n * === LLM CONFIG ===\n */\n provider: string;\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n systemPrompt: string;\n /**\n * Shared metadata\n */\n tags?: string[];\n isDefault: boolean;\n isPublic: boolean;\n /**\n * === Tool and SubAgent References ===\n */\n tools?: AgentTool[]; // Tools with agent-specific configurations\n subAgentIds?: string /* uuid */[]; // IDs of sub-agents this agent can use\n /**\n * === Essential Configs ===\n */\n csatConfig: CSATConfig;\n handoffConfig: HandoffConfig;\n /**\n * === TYPE-SPECIFIC CORE CONFIG ===\n */\n reactConfig?: ReactAgentConfig; // ReAct-only essentials\n /**\n * === CROSS-CUTTING FEATURES (can be used by any agent type) ===\n */\n userSuggestedActionsConfig?: UserSuggestedActionsConfig;\n /**\n * === AGENT CONTEXT CONFIG ===\n * Defines how AgentContext is initialized and managed for this agent\n */\n contextConfig?: AgentContextConfig;\n /**\n * === SCHEMA-DRIVEN AGENT CONFIG ===\n * Use ConfigSchema to auto-generate UI and validate values in Config\n */\n configSchema: JSONSchema;\n config?: { [key: string]: any};\n /**\n * === UI DISPLAY CONFIG ===\n */\n iconName?: string; // Lucide icon name for UI display (e.g., \"Bot\", \"ChartScatter\", \"PenTool\")\n capabilities?: string[]; // Agent capabilities for UI display (e.g., [\"Data Analysis\", \"Reporting\"])\n samplePrompts?: string[]; // Example prompts to show users (e.g., [\"What can you help me with?\"])\n /**\n * === SHARED BEHAVIOR CONFIG ===\n */\n responseStyle?: string;\n personalityTraits?: string[];\n fallbackMessage?: string;\n /**\n * === SHARED PERFORMANCE CONFIG ===\n */\n responseDelay?: number /* int */; // ms\n maxConcurrency?: number /* int */; // concurrent chats\n sessionTimeout?: number /* int */; // minutes\n /**\n * Audit fields\n */\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n metadata?: { [key: string]: any};\n}\n/**\n * Handoff Configuration\n */\nexport interface HandoffConfig {\n enabled: boolean;\n triggerKeywords: string[];\n queueId?: string;\n handoffMessage: string;\n}\n/**\n * AgentFilters for filtering agents in list operations\n */\nexport interface AgentFilters {\n product?: ProductNameTS;\n type?: AgentType;\n subType?: AgentSubType;\n status?: AgentStatus;\n isDefault?: boolean;\n isPublic?: boolean;\n tags?: string[];\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * AgentSummary is a lightweight representation of an agent for list views\n * Contains essential display fields plus metadata needed for chat initialization\n */\nexport interface AgentSummary {\n id: string /* uuid */;\n name: string;\n title: string;\n description?: string;\n iconName?: string;\n type: AgentTypeTS;\n status: AgentStatusTS;\n isDefault: boolean;\n isPublic: boolean;\n capabilities?: string[];\n samplePrompts?: string[];\n metadata?: { [key: string]: any};\n}\n/**\n * Tool represents a tool that can be called by an agent\n */\nexport interface Tool {\n id: string /* uuid */;\n name: string; // Machine-readable name for LLM calls (e.g., \"document_extractor\")\n title: string; // Human-readable title (e.g., \"Document Extractor\")\n description: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema: JSONSchema; // Using JSONSchema for OpenAI compatibility\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * ToolExecution represents the execution context for a tool\n */\nexport interface ToolExecution {\n id: string;\n title: string;\n toolId: string;\n toolName: string;\n status: ToolExecutionStatusTS;\n input: { [key: string]: any};\n result?: { [key: string]: any};\n error?: string;\n context?: { [key: string]: any};\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n retryCount: number /* int */;\n progress?: ToolExecutionProgress[];\n}\nexport interface ToolExecutionProgress {\n status: ToolExecutionStatusTS;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n metadata?: { [key: string]: any};\n}\n/**\n * ToolExecutionStatus represents the status of a tool execution\n */\nexport type ToolExecutionStatus = string;\nexport const ToolExecutionStatusStarted: ToolExecutionStatus = \"started\";\nexport const ToolExecutionStatusExecuting: ToolExecutionStatus = \"executing\";\nexport const ToolExecutionStatusCompleted: ToolExecutionStatus = \"completed\";\nexport const ToolExecutionStatusFailed: ToolExecutionStatus = \"failed\";\nexport const ToolExecutionStatusTimeout: ToolExecutionStatus = \"timeout\";\nexport const ToolExecutionStatusSkipped: ToolExecutionStatus = \"skipped\";\n/**\n * SubAgent represents a sub-agent composed of tools\n */\nexport interface SubAgent {\n id: string /* uuid */;\n orgId: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"contract_reviewer\")\n title: string; // Human-readable title (e.g., \"Contract Reviewer\")\n description: string;\n prompt: string;\n toolIds: string /* uuid */[]; // Tool IDs this sub-agent can use\n inputSchema: JSONSchema; // Using JSONSchema for validation\n outputSchema: JSONSchema; // Using JSONSchema for validation\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n version: string;\n enabled: boolean;\n isSystem: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n}\n/**\n * AgentToolConfiguration represents how an agent uses tools\n */\nexport interface AgentToolConfiguration {\n enabledTools: string[]; // Tool IDs\n enabledSubAgents: string[]; // SubAgent IDs\n toolConfigs: { [key: string]: ToolConfig}; // Per-tool configuration\n executionPolicy: ToolExecutionPolicy;\n maxParallelCalls: number /* int */;\n requireApproval: boolean;\n}\n/**\n * ToolExecutionPolicy defines how tools are executed\n */\nexport interface ToolExecutionPolicy {\n mode: ExecutionModeTS;\n maxIterations: number /* int */;\n stopOnError: boolean;\n retryOnFailure: boolean;\n timeoutSeconds: number /* int */;\n}\n/**\n * ExecutionMode defines how tools are executed\n */\nexport type ExecutionMode = string;\nexport const ExecutionModeSync: ExecutionMode = \"sync\";\nexport const ExecutionModeAsync: ExecutionMode = \"async\";\nexport const ExecutionModeAsyncClient: ExecutionMode = \"asyncClient\";\n/**\n * CreateExecutionPlanRequest represents a request to create an execution plan\n */\nexport interface CreateExecutionPlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n input: string;\n context?: { [key: string]: any};\n availableTools: Tool[];\n}\n/**\n * CreateExecutionPlanResponse represents the response with an execution plan\n */\nexport interface CreateExecutionPlanResponse {\n agentInstanceId: string /* uuid */;\n executionPlan: ToolExecution[];\n estimatedTime?: any /* time.Duration */;\n}\n/**\n * ExecutePlanRequest represents a request to execute the plan\n */\nexport interface ExecutePlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n approveAll?: boolean;\n}\n/**\n * ExecutePlanResponse represents the response after executing the plan\n */\nexport interface ExecutePlanResponse {\n stateId: string;\n status: ToolExecutionStatusTS;\n executedTools: ToolExecution[];\n finalResult?: any /* json.RawMessage */;\n errors?: string[];\n}\nexport type ToolExecutionStatusTS = 'pending' | 'executing' | 'completed' | 'failed' | 'timeout' | 'skipped';\nexport type ExecutionModeTS = 'sync' | 'async' | 'asyncClient';\n\n//////////\n// source: csat.go\n\n/**\n * CSAT Configuration\n */\nexport interface CSATConfig {\n enabled: boolean;\n survey?: CSATSurvey;\n}\nexport interface CSATQuestion {\n question: { [key: string]: string}; // {\"en\": \"How was...\", \"ar\": \"كيف كانت...\"}\n showRating: boolean;\n showComment: boolean;\n}\nexport interface CSATSurvey {\n questions: CSATQuestion[];\n timeThreshold: number /* int */; // Minutes after last message\n closeOnResponse: boolean;\n}\nexport interface CSATAnswer {\n question: string;\n lang?: string; // Language used for this answer\n rating?: number /* int */; // 1-5 rating\n comment?: string; // Text feedback\n}\nexport interface CSATResponse {\n answers: CSATAnswer[];\n submittedAt: number /* int64 */;\n overallRating: number /* int */; // 1-5 overall satisfaction\n}\n\n//////////\n// source: react.go\n\n/**\n * ReAct Agent Configuration\n */\nexport interface ReactAgentConfig {\n /**\n * Core ReAct Configuration\n */\n maxIterations: number /* int */;\n reasoningPrompt: string;\n stopConditions: string[];\n availableTools: string[];\n requireConfirmation: boolean;\n /**\n * LLM Configuration\n */\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n provider: string;\n /**\n * Context Management\n */\n maxContextLength: number /* int */;\n memoryRetention: number /* int */;\n compressionStrategy: string;\n /**\n * Tool Configuration\n */\n toolConfigs?: { [key: string]: ToolConfig};\n mcpServers?: MCPServerConfig[];\n /**\n * Execution Configuration\n */\n timeoutMinutes: number /* int */;\n retryAttempts: number /* int */;\n parallelExecution: boolean;\n /**\n * Safety Configuration\n */\n dangerousOperations?: string[];\n allowedFileTypes?: string[];\n restrictedPaths?: string[];\n}\nexport interface ToolConfig {\n enabled: boolean;\n timeoutSeconds: number /* int */;\n retryPolicy: RetryPolicy;\n configuration?: { [key: string]: any};\n}\nexport interface RetryPolicy {\n maxAttempts: number /* int */;\n backoffStrategy: string;\n backoffDelay: any /* time.Duration */;\n}\nexport interface MCPServerConfig {\n name: string;\n endpoint: string;\n trusted: boolean;\n timeout: number /* int */;\n credentials?: { [key: string]: string};\n}\n\n//////////\n// source: requests.go\n\nexport interface CreateAgentRequest {\n agent?: Agent;\n orgId: string /* uuid */;\n}\nexport interface AgentResponse {\n agent?: Agent;\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetAgentRequest {\n id?: string /* uuid */;\n name?: string;\n orgId: string /* uuid */;\n}\nexport interface UpdateAgentRequest {\n agent: Agent;\n orgId: string /* uuid */;\n}\nexport interface DeleteAgentRequest {\n id: string /* uuid */;\n orgId: string /* uuid */;\n}\nexport interface ListAgentsRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\nexport interface ListAgentsResponse {\n agents: Agent[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ListAgentsSummaryRequest requests a lightweight list of agents\n */\nexport interface ListAgentsSummaryRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\n/**\n * ListAgentsSummaryResponse returns lightweight agent summaries for list views\n */\nexport interface ListAgentsSummaryResponse {\n agents: AgentSummary[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetDefaultAgentRequest {\n orgId: string /* uuid */;\n agentType: AgentType;\n}\nexport interface UpdateOrgAgentsRequest {\n orgId: string /* uuid */;\n defaultDefinitions?: DefaultDefinitions;\n}\nexport interface UpdateOrgAgentsResponse {\n toolsCreated: number /* int */;\n subAgentsCreated: number /* int */;\n agentsCreated: number /* int */;\n metadata: ResponseMetadata;\n}\n\n//////////\n// source: subjects.go\n\n/**\n * Core Agent Operations\n */\nexport const AgentCreateSubject = \"agent.create\";\n/**\n * Core Agent Operations\n */\nexport const AgentCreatedSubject = \"agent.created\";\n/**\n * Core Agent Operations\n */\nexport const AgentGetSubject = \"agent.get\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdateSubject = \"agent.update\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdatedSubject = \"agent.updated\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeleteSubject = \"agent.delete\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeletedSubject = \"agent.deleted\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSubject = \"agent.list\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSummarySubject = \"agent.list.summary\"; // Lightweight agent list for UI\n/**\n * Core Agent Operations\n */\nexport const AgentSearchSubject = \"agent.search\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatCreateSubject = \"agent.chat.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatUpdateSubject = \"agent.chat.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatGetSubject = \"agent.chat.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatValidateSubject = \"agent.chat.validate\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactCreateSubject = \"agent.react.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactUpdateSubject = \"agent.react.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactGetSubject = \"agent.react.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactValidateSubject = \"agent.react.validate\";\n/**\n * Execution Coordination\n */\nexport const AgentExecuteSubject = \"agent.execute\"; // Routes to appropriate service\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStatusSubject = \"agent.execute.status\"; // Get execution status\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStopSubject = \"agent.execute.stop\"; // Stop execution\n/**\n * Version Management\n */\nexport const AgentVersionCreateSubject = \"agent.version.create\";\n/**\n * Version Management\n */\nexport const AgentVersionCreatedSubject = \"agent.version.created\";\n/**\n * Version Management\n */\nexport const AgentVersionGetSubject = \"agent.version.get\";\n/**\n * Version Management\n */\nexport const AgentVersionListSubject = \"agent.version.list\";\n/**\n * Version Management\n */\nexport const AgentVersionActivateSubject = \"agent.version.activate\";\n/**\n * Version Management\n */\nexport const AgentVersionActivatedSubject = \"agent.version.activated\";\n/**\n * Default Agent Management\n */\nexport const AgentEnsureDefaultSubject = \"agent.ensure-default\";\n/**\n * Default Agent Management\n */\nexport const AgentGetDefaultSubject = \"agent.get-default\";\n/**\n * Organization Management\n */\nexport const AgentGetByOrgSubject = \"agent.get-by-org\";\n/**\n * Organization Management\n */\nexport const AgentCloneSubject = \"agent.clone\";\n/**\n * Organization Management\n */\nexport const AgentExportSubject = \"agent.export\";\n/**\n * Organization Management\n */\nexport const AgentImportSubject = \"agent.import\";\n/**\n * Organization Management\n */\nexport const AgentUpdateOrgSubject = \"agent.update-org-agents\"; // Bulk update agents and tools for an organization\n/**\n * Configuration Templates\n */\nexport const AgentTemplateListSubject = \"agent.template.list\";\n/**\n * Configuration Templates\n */\nexport const AgentTemplateGetSubject = \"agent.template.get\";\n/**\n * Configuration Templates\n */\nexport const AgentFromTemplateSubject = \"agent.from-template\";\n/**\n * Chat Service Integration\n */\nexport const ChatAgentExecuteSubject = \"chat.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ChatAgentStatusSubject = \"chat.agent.status\";\n/**\n * ReAct Service Integration\n */\nexport const ReactAgentExecuteSubject = \"react.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStatusSubject = \"react.agent.status\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStopSubject = \"react.agent.stop\";\n/**\n * Workflow Service Integration\n */\nexport const WorkflowAgentGetSubject = \"workflow.agent.get\";\n/**\n * Execution Service Integration\n */\nexport const WorkflowAgentUpdateSubject = \"workflow.agent.update\";\n/**\n * Tools Management\n */\nexport const ToolsCreateSubject = \"agents.tools.create\";\n/**\n * Tools Management\n */\nexport const ToolsCreatedSubject = \"agents.tools.created\";\n/**\n * Tools Management\n */\nexport const ToolsGetSubject = \"agents.tools.get\";\n/**\n * Tools Management\n */\nexport const ToolsUpdateSubject = \"agents.tools.update\";\n/**\n * Tools Management\n */\nexport const ToolsUpdatedSubject = \"agents.tools.updated\";\n/**\n * Tools Management\n */\nexport const ToolsDeleteSubject = \"agents.tools.delete\";\n/**\n * Tools Management\n */\nexport const ToolsDeletedSubject = \"agents.tools.deleted\";\n/**\n * Tools Management\n */\nexport const ToolsListSubject = \"agents.tools.list\";\n/**\n * Tools Management\n */\nexport const ToolsGetByIDsSubject = \"agents.tools.get-by-ids\";\n/**\n * Tools Management\n */\nexport const ToolsExecuteSubject = \"agents.tools.execute\";\n/**\n * Tools Management\n */\nexport const ToolsValidateSubject = \"agents.tools.validate\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreateSubject = \"agents.subagents.create\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreatedSubject = \"agents.subagents.created\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetSubject = \"agents.subagents.get\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdateSubject = \"agents.subagents.update\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdatedSubject = \"agents.subagents.updated\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeleteSubject = \"agents.subagents.delete\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeletedSubject = \"agents.subagents.deleted\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsListSubject = \"agents.subagents.list\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetByIDsSubject = \"agents.subagents.get-by-ids\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsExecuteSubject = \"agents.subagents.execute\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsValidateSubject = \"agents.subagents.validate\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreateSubject = \"agents.instance.create\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreatedSubject = \"agents.instance.created\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceGetSubject = \"agents.instance.get\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdateSubject = \"agents.instance.update\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdatedSubject = \"agents.instance.updated\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceListSubject = \"agents.instance.list\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeleteSubject = \"agents.instance.delete\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeletedSubject = \"agents.instance.deleted\";\n/**\n * Execution Plan Operations\n */\nexport const AgentInstanceCreatePlanSubject = \"agents.instance.create-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceExecutePlanSubject = \"agents.instance.execute-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstancePausePlanSubject = \"agents.instance.pause-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceResumePlanSubject = \"agents.instance.resume-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCancelPlanSubject = \"agents.instance.cancel-plan\";\n/**\n * Execution History\n */\nexport const AgentInstanceGetHistorySubject = \"agents.instance.get-history\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceClearHistorySubject = \"agents.instance.clear-history\";\n\n//////////\n// source: user-suggested-actions.go\n\n/**\n * Config and request models for product service integration\n */\nexport interface UserSuggestedActionsConfig {\n enabled: boolean;\n actionTypes: string[];\n maxActions: number /* int */;\n cooldownSeconds: number /* int */;\n}\nexport interface UserSuggestedAction {\n title: string;\n actionType: string;\n input?: string;\n priority?: number /* int */;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsRequest {\n orgId: string /* uuid */;\n chatKey: string;\n config: UserSuggestedActionsConfig;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsResponse {\n actions: UserSuggestedAction[];\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: validation.go\n\n/**\n * ValidationError represents a validation error with field and message\n */\nexport interface ValidationError {\n field: string;\n message: string;\n}\n/**\n * ValidationErrors represents a collection of validation errors\n */\nexport type ValidationErrors = ValidationError[];\n"],"mappings":"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","names":[]}
package/dist/index.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  // models/agent-models.ts
2
4
  var ExecutionStatusPending = "pending";
3
5
  var ExecutionStatusRunning = "running";
@@ -1 +1 @@
1
- {"version":3,"sources":["../models/agent-models.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\nimport { KGNode } from \"@elqnt/kg\";\nimport { Variable } from \"@elqnt/types\";\nimport { ResponseMetadata, ProductNameTS, JSONSchema } from \"@elqnt/types\";\n\n//////////\n// source: agent-context.go\n\n/**\n * AgentContext accumulates meaningful state from agentic tool executions.\n * It provides a structured, schema-driven view of what happened during a chat\n * and what meaningful data was extracted.\n * Stored in: agent_contexts_org_{orgId} with key: {agentId}:{chatKey}\n */\nexport interface AgentContext {\n /**\n * Identity - used for storage key and cross-references\n */\n orgId: string;\n agentId: string;\n chatKey: string;\n /**\n * Schema defines the shape of accumulated variables\n * Tools contribute to this schema as they execute\n */\n schema: any /* types.JSONSchema */;\n /**\n * Variables is the merged view of all important outputs\n * This is what gets displayed in the \"Agent Context\" panel\n */\n variables: { [key: string]: any};\n /**\n * Executions tracks each tool call with full input/output\n * Similar to NodeStates in workflow engine\n */\n executions: AgentExecution[];\n /**\n * PendingPlan holds an execution plan awaiting user approval\n * Part of the Plan → Approve → Execute flow\n */\n pendingPlan?: ExecutionPlan;\n /**\n * CompletedPlans holds historical plans (for reference/audit)\n */\n completedPlans?: ExecutionPlan[];\n /**\n * Tracking\n */\n createdAt: number /* int64 */;\n lastUpdated: number /* int64 */;\n /**\n * Size management\n */\n archivedExecutionCount?: number /* int */;\n}\n/**\n * AgentExecution represents one tool call during the agentic loop.\n * Similar to NodeState in the workflow engine.\n */\nexport interface AgentExecution {\n /**\n * Identity\n */\n id: string;\n toolName: string;\n toolId?: string;\n /**\n * Display\n */\n title: string; // Human-readable: \"Document Analysis: manifest.pdf\"\n type: string; // Category: document, search, api, extraction\n icon?: string;\n /**\n * Status\n */\n status: ExecutionStatusTS;\n error?: string;\n /**\n * Schema-driven Input/Output (like NodeInput/NodeOutput)\n */\n inputSchema?: any /* types.JSONSchema */;\n input: { [key: string]: any};\n outputSchema?: any /* types.JSONSchema */;\n output?: { [key: string]: any};\n /**\n * Merge Configuration - how this execution's output merges into Variables\n */\n mergeConfig?: MergeConfig;\n /**\n * Timing\n */\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n duration?: number /* int64 */; // milliseconds\n}\n/**\n * ExecutionStatus represents the status of a tool execution\n */\nexport type ExecutionStatus = string;\nexport const ExecutionStatusPending: ExecutionStatus = \"pending\";\nexport const ExecutionStatusRunning: ExecutionStatus = \"running\";\nexport const ExecutionStatusCompleted: ExecutionStatus = \"completed\";\nexport const ExecutionStatusFailed: ExecutionStatus = \"failed\";\nexport const ExecutionStatusSkipped: ExecutionStatus = \"skipped\";\nexport type ExecutionStatusTS = 'pending' | 'running' | 'completed' | 'failed' | 'skipped';\n/**\n * MergeConfig defines how tool output gets merged into AgentContext.Variables\n */\nexport interface MergeConfig {\n /**\n * Keys to extract from output and merge into variables\n */\n mergeKeys?: string[];\n /**\n * Target path in variables\n * Examples: \"shipperName\" (direct), \"documents[]\" (append to array)\n */\n targetPath?: string;\n /**\n * Strategy: \"replace\" | \"merge\" | \"append\"\n * - replace: overwrite the target path\n * - merge: deep merge objects\n * - append: append to array (use with \"path[]\" syntax)\n */\n strategy?: MergeStrategy;\n}\n/**\n * MergeStrategy defines how values are merged into variables\n */\nexport type MergeStrategy = string;\nexport const MergeStrategyReplace: MergeStrategy = \"replace\";\nexport const MergeStrategyMerge: MergeStrategy = \"merge\";\nexport const MergeStrategyAppend: MergeStrategy = \"append\";\nexport type MergeStrategyTS = 'replace' | 'merge' | 'append';\n/**\n * AgentContextConfig is defined on the Agent to configure how context is managed\n */\nexport interface AgentContextConfig {\n /**\n * Base schema - defines the expected shape of accumulated context\n */\n schema: any /* types.JSONSchema */;\n /**\n * Default/initial values when context is created\n */\n defaultVariables?: { [key: string]: any};\n /**\n * Whether to extend schema at runtime when new keys appear\n */\n allowSchemaExtension: boolean;\n}\n/**\n * Constants for size management\n */\nexport const MaxExecutions = 100; // Keep last 100 executions\n/**\n * Constants for size management\n */\nexport const ExecutionTTLHours = 72; // Archive executions older than 72h\n/**\n * ExecutionPlan represents a planned sequence of tool executions\n * that requires user approval before execution.\n */\nexport interface ExecutionPlan {\n /**\n * Identity\n */\n id: string;\n chatKey: string;\n agentId: string;\n orgId: string;\n /**\n * Plan metadata\n */\n title: string; // Human-readable plan title\n description: string; // What this plan will accomplish\n createdAt: number /* int64 */;\n /**\n * Planned steps\n */\n steps: PlannedStep[];\n /**\n * Status tracking\n */\n status: PlanStatusTS;\n approvedAt?: number /* int64 */;\n approvedBy?: string;\n rejectedAt?: number /* int64 */;\n rejectionReason?: string;\n /**\n * Execution tracking (populated after approval)\n */\n executionStartedAt?: number /* int64 */;\n executionCompletedAt?: number /* int64 */;\n currentStepIndex: number /* int */;\n}\n/**\n * PlanStatus represents the status of an execution plan\n */\nexport type PlanStatus = string;\nexport const PlanStatusPendingApproval: PlanStatus = \"pending_approval\";\nexport const PlanStatusApproved: PlanStatus = \"approved\";\nexport const PlanStatusExecuting: PlanStatus = \"executing\";\nexport const PlanStatusCompleted: PlanStatus = \"completed\";\nexport const PlanStatusRejected: PlanStatus = \"rejected\";\nexport const PlanStatusCancelled: PlanStatus = \"cancelled\";\nexport type PlanStatusTS = 'pending_approval' | 'approved' | 'executing' | 'completed' | 'rejected' | 'cancelled';\n/**\n * PlannedStep represents a single step in an execution plan\n */\nexport interface PlannedStep {\n /**\n * Identity\n */\n id: string;\n order: number /* int */; // Execution order (0-based)\n /**\n * Tool information\n */\n toolName: string;\n toolId?: string;\n title: string; // Human-readable step title\n description: string; // What this step does\n icon?: string;\n /**\n * Planned input (may reference outputs from previous steps)\n */\n plannedInput: { [key: string]: any};\n /**\n * Dependencies (step IDs that must complete before this one)\n */\n dependsOn?: string[];\n /**\n * Optional: user can toggle individual steps\n */\n enabled: boolean;\n /**\n * After execution (populated during/after execution)\n */\n status: ExecutionStatusTS;\n output?: { [key: string]: any};\n error?: string;\n startedAt?: number /* int64 */;\n completedAt?: number /* int64 */;\n}\n/**\n * PlanApprovalConfig configures when an agent requires plan approval\n */\nexport interface PlanApprovalConfig {\n /**\n * Always require approval for any multi-tool operation\n */\n alwaysRequire: boolean;\n /**\n * Require approval only for these tool names\n */\n requireForTools?: string[];\n /**\n * Require approval when estimated execution time exceeds threshold (seconds)\n */\n timeThresholdSeconds?: number /* int */;\n /**\n * Require approval when number of steps exceeds threshold\n */\n stepCountThreshold?: number /* int */;\n /**\n * Auto-approve if user has previously approved similar plans\n */\n allowAutoApprove: boolean;\n}\n\n//////////\n// source: agent-io-models.go\n\n/**\n * CreateToolRequest represents a request to create a tool\n */\nexport interface CreateToolRequest {\n orgId: string /* uuid */;\n tool?: Tool;\n}\n/**\n * UpdateToolRequest represents a request to update a tool\n */\nexport interface UpdateToolRequest {\n orgId: string /* uuid */;\n tool?: Tool;\n}\n/**\n * GetToolRequest represents a request to get a tool\n */\nexport interface GetToolRequest {\n orgId: string /* uuid */;\n toolId: string /* uuid */;\n}\n/**\n * DeleteToolRequest represents a request to delete a tool\n */\nexport interface DeleteToolRequest {\n orgId: string /* uuid */;\n toolId: string /* uuid */;\n}\n/**\n * ListToolsRequest represents a request to list tools\n */\nexport interface ListToolsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * ToolResponse represents a response containing a tool\n */\nexport interface ToolResponse {\n tool?: Tool;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ToolsListResponse represents a response containing multiple tools\n */\nexport interface ToolsListResponse {\n tools: Tool[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * CreateSubAgentRequest represents a request to create a sub-agent\n */\nexport interface CreateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * UpdateSubAgentRequest represents a request to update a sub-agent\n */\nexport interface UpdateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * GetSubAgentRequest represents a request to get a sub-agent\n */\nexport interface GetSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * DeleteSubAgentRequest represents a request to delete a sub-agent\n */\nexport interface DeleteSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * ListSubAgentsRequest represents a request to list sub-agents\n */\nexport interface ListSubAgentsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SubAgentResponse represents a response containing a sub-agent\n */\nexport interface SubAgentResponse {\n subAgent?: SubAgent;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SubAgentsListResponse represents a response containing multiple sub-agents\n */\nexport interface SubAgentsListResponse {\n subAgents: SubAgent[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetToolsByIDsRequest represents a request to get multiple tools by IDs\n */\nexport interface GetToolsByIDsRequest {\n orgId: string /* uuid */;\n toolIds: string /* uuid */[];\n}\n/**\n * GetToolsByIDsResponse represents a response containing multiple tools\n */\nexport interface GetToolsByIDsResponse {\n tools: Tool[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSubAgentsByIDsRequest represents a request to get multiple sub-agents by IDs\n */\nexport interface GetSubAgentsByIDsRequest {\n orgId: string /* uuid */;\n subAgentIds: string /* uuid */[];\n}\n/**\n * GetSubAgentsByIDsResponse represents a response containing multiple sub-agents\n */\nexport interface GetSubAgentsByIDsResponse {\n subAgents: SubAgent[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface ExecuteToolRequest {\n orgId: string;\n tool?: AgentTool;\n input: { [key: string]: any};\n metadata?: { [key: string]: any};\n context?: { [key: string]: any};\n chatKey?: string;\n}\nexport interface ExecuteToolResponse {\n result: { [key: string]: any};\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: agent-models.go\n\nexport type AgentTypeTS = 'chat' | 'react';\nexport type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';\nexport type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';\nexport type AgentType = string;\nexport const AgentTypeChat: AgentType = \"chat\";\nexport const AgentTypeReact: AgentType = \"react\";\nexport type AgentSubType = string;\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeChat: AgentSubType = \"chat\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeReact: AgentSubType = \"react\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeWorkflow: AgentSubType = \"workflow\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeDocument: AgentSubType = \"document\";\nexport type AgentStatus = string;\nexport const AgentStatusDraft: AgentStatus = \"draft\";\nexport const AgentStatusActive: AgentStatus = \"active\";\nexport const AgentStatusInactive: AgentStatus = \"inactive\";\nexport const AgentStatusArchived: AgentStatus = \"archived\";\nexport interface DefaultDefinitions {\n agents: Agent[];\n tools: Tool[];\n subAgents: SubAgent[];\n}\n/**\n * AgentTool represents an agent's configuration for a specific tool\n * Includes denormalized tool information to avoid joins at runtime\n */\nexport interface AgentTool {\n toolId: string /* uuid */;\n toolName: string; // Denormalized for runtime performance\n title?: string;\n description?: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema?: JSONSchema;\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem?: boolean;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n order?: number /* int */;\n}\n/**\n * Core agent entity - shared by both types\n */\nexport interface Agent {\n id?: string /* uuid */;\n orgId: string /* uuid */;\n product: ProductNameTS;\n type: AgentTypeTS; // \"chat\" or \"react\"\n subType: AgentSubTypeTS; // Specific agent category\n name: string; // Machine-readable name (e.g., \"rfp_builder\")\n title: string; // Human-readable title (e.g., \"RFP Builder\")\n description?: string;\n status: AgentStatusTS;\n version: string;\n /**\n * === LLM CONFIG ===\n */\n provider: string;\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n systemPrompt: string;\n /**\n * Shared metadata\n */\n tags?: string[];\n isDefault: boolean;\n isPublic: boolean;\n /**\n * === Tool and SubAgent References ===\n */\n tools?: AgentTool[]; // Tools with agent-specific configurations\n subAgentIds?: string /* uuid */[]; // IDs of sub-agents this agent can use\n /**\n * === Essential Configs ===\n */\n csatConfig: CSATConfig;\n handoffConfig: HandoffConfig;\n /**\n * === TYPE-SPECIFIC CORE CONFIG ===\n */\n reactConfig?: ReactAgentConfig; // ReAct-only essentials\n /**\n * === CROSS-CUTTING FEATURES (can be used by any agent type) ===\n */\n userSuggestedActionsConfig?: UserSuggestedActionsConfig;\n /**\n * === AGENT CONTEXT CONFIG ===\n * Defines how AgentContext is initialized and managed for this agent\n */\n contextConfig?: AgentContextConfig;\n /**\n * === SCHEMA-DRIVEN AGENT CONFIG ===\n * Use ConfigSchema to auto-generate UI and validate values in Config\n */\n configSchema: JSONSchema;\n config?: { [key: string]: any};\n /**\n * === UI DISPLAY CONFIG ===\n */\n iconName?: string; // Lucide icon name for UI display (e.g., \"Bot\", \"ChartScatter\", \"PenTool\")\n capabilities?: string[]; // Agent capabilities for UI display (e.g., [\"Data Analysis\", \"Reporting\"])\n samplePrompts?: string[]; // Example prompts to show users (e.g., [\"What can you help me with?\"])\n /**\n * === SHARED BEHAVIOR CONFIG ===\n */\n responseStyle?: string;\n personalityTraits?: string[];\n fallbackMessage?: string;\n /**\n * === SHARED PERFORMANCE CONFIG ===\n */\n responseDelay?: number /* int */; // ms\n maxConcurrency?: number /* int */; // concurrent chats\n sessionTimeout?: number /* int */; // minutes\n /**\n * Audit fields\n */\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n metadata?: { [key: string]: any};\n}\n/**\n * Handoff Configuration\n */\nexport interface HandoffConfig {\n enabled: boolean;\n triggerKeywords: string[];\n queueId?: string;\n handoffMessage: string;\n}\n/**\n * AgentFilters for filtering agents in list operations\n */\nexport interface AgentFilters {\n product?: ProductNameTS;\n type?: AgentType;\n subType?: AgentSubType;\n status?: AgentStatus;\n isDefault?: boolean;\n isPublic?: boolean;\n tags?: string[];\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * AgentSummary is a lightweight representation of an agent for list views\n * Contains essential display fields plus metadata needed for chat initialization\n */\nexport interface AgentSummary {\n id: string /* uuid */;\n name: string;\n title: string;\n description?: string;\n iconName?: string;\n type: AgentTypeTS;\n status: AgentStatusTS;\n isDefault: boolean;\n isPublic: boolean;\n capabilities?: string[];\n samplePrompts?: string[];\n metadata?: { [key: string]: any};\n}\n/**\n * Tool represents a tool that can be called by an agent\n */\nexport interface Tool {\n id: string /* uuid */;\n name: string; // Machine-readable name for LLM calls (e.g., \"document_extractor\")\n title: string; // Human-readable title (e.g., \"Document Extractor\")\n description: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema: JSONSchema; // Using JSONSchema for OpenAI compatibility\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * ToolExecution represents the execution context for a tool\n */\nexport interface ToolExecution {\n id: string;\n title: string;\n toolId: string;\n toolName: string;\n status: ToolExecutionStatusTS;\n input: { [key: string]: any};\n result?: { [key: string]: any};\n error?: string;\n context?: { [key: string]: any};\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n retryCount: number /* int */;\n progress?: ToolExecutionProgress[];\n}\nexport interface ToolExecutionProgress {\n status: ToolExecutionStatusTS;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n metadata?: { [key: string]: any};\n}\n/**\n * ToolExecutionStatus represents the status of a tool execution\n */\nexport type ToolExecutionStatus = string;\nexport const ToolExecutionStatusStarted: ToolExecutionStatus = \"started\";\nexport const ToolExecutionStatusExecuting: ToolExecutionStatus = \"executing\";\nexport const ToolExecutionStatusCompleted: ToolExecutionStatus = \"completed\";\nexport const ToolExecutionStatusFailed: ToolExecutionStatus = \"failed\";\nexport const ToolExecutionStatusTimeout: ToolExecutionStatus = \"timeout\";\nexport const ToolExecutionStatusSkipped: ToolExecutionStatus = \"skipped\";\n/**\n * SubAgent represents a sub-agent composed of tools\n */\nexport interface SubAgent {\n id: string /* uuid */;\n orgId: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"contract_reviewer\")\n title: string; // Human-readable title (e.g., \"Contract Reviewer\")\n description: string;\n prompt: string;\n toolIds: string /* uuid */[]; // Tool IDs this sub-agent can use\n inputSchema: JSONSchema; // Using JSONSchema for validation\n outputSchema: JSONSchema; // Using JSONSchema for validation\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n version: string;\n enabled: boolean;\n isSystem: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n}\n/**\n * AgentToolConfiguration represents how an agent uses tools\n */\nexport interface AgentToolConfiguration {\n enabledTools: string[]; // Tool IDs\n enabledSubAgents: string[]; // SubAgent IDs\n toolConfigs: { [key: string]: ToolConfig}; // Per-tool configuration\n executionPolicy: ToolExecutionPolicy;\n maxParallelCalls: number /* int */;\n requireApproval: boolean;\n}\n/**\n * ToolExecutionPolicy defines how tools are executed\n */\nexport interface ToolExecutionPolicy {\n mode: ExecutionModeTS;\n maxIterations: number /* int */;\n stopOnError: boolean;\n retryOnFailure: boolean;\n timeoutSeconds: number /* int */;\n}\n/**\n * ExecutionMode defines how tools are executed\n */\nexport type ExecutionMode = string;\nexport const ExecutionModeSync: ExecutionMode = \"sync\";\nexport const ExecutionModeAsync: ExecutionMode = \"async\";\nexport const ExecutionModeAsyncClient: ExecutionMode = \"asyncClient\";\n/**\n * CreateExecutionPlanRequest represents a request to create an execution plan\n */\nexport interface CreateExecutionPlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n input: string;\n context?: { [key: string]: any};\n availableTools: Tool[];\n}\n/**\n * CreateExecutionPlanResponse represents the response with an execution plan\n */\nexport interface CreateExecutionPlanResponse {\n agentInstanceId: string /* uuid */;\n executionPlan: ToolExecution[];\n estimatedTime?: any /* time.Duration */;\n}\n/**\n * ExecutePlanRequest represents a request to execute the plan\n */\nexport interface ExecutePlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n approveAll?: boolean;\n}\n/**\n * ExecutePlanResponse represents the response after executing the plan\n */\nexport interface ExecutePlanResponse {\n stateId: string;\n status: ToolExecutionStatusTS;\n executedTools: ToolExecution[];\n finalResult?: any /* json.RawMessage */;\n errors?: string[];\n}\nexport type ToolExecutionStatusTS = 'pending' | 'executing' | 'completed' | 'failed' | 'timeout' | 'skipped';\nexport type ExecutionModeTS = 'sync' | 'async' | 'asyncClient';\n\n//////////\n// source: csat.go\n\n/**\n * CSAT Configuration\n */\nexport interface CSATConfig {\n enabled: boolean;\n survey?: CSATSurvey;\n}\nexport interface CSATQuestion {\n question: { [key: string]: string}; // {\"en\": \"How was...\", \"ar\": \"كيف كانت...\"}\n showRating: boolean;\n showComment: boolean;\n}\nexport interface CSATSurvey {\n questions: CSATQuestion[];\n timeThreshold: number /* int */; // Minutes after last message\n closeOnResponse: boolean;\n}\nexport interface CSATAnswer {\n question: string;\n lang?: string; // Language used for this answer\n rating?: number /* int */; // 1-5 rating\n comment?: string; // Text feedback\n}\nexport interface CSATResponse {\n answers: CSATAnswer[];\n submittedAt: number /* int64 */;\n overallRating: number /* int */; // 1-5 overall satisfaction\n}\n\n//////////\n// source: react.go\n\n/**\n * ReAct Agent Configuration\n */\nexport interface ReactAgentConfig {\n /**\n * Core ReAct Configuration\n */\n maxIterations: number /* int */;\n reasoningPrompt: string;\n stopConditions: string[];\n availableTools: string[];\n requireConfirmation: boolean;\n /**\n * LLM Configuration\n */\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n provider: string;\n /**\n * Context Management\n */\n maxContextLength: number /* int */;\n memoryRetention: number /* int */;\n compressionStrategy: string;\n /**\n * Tool Configuration\n */\n toolConfigs?: { [key: string]: ToolConfig};\n mcpServers?: MCPServerConfig[];\n /**\n * Execution Configuration\n */\n timeoutMinutes: number /* int */;\n retryAttempts: number /* int */;\n parallelExecution: boolean;\n /**\n * Safety Configuration\n */\n dangerousOperations?: string[];\n allowedFileTypes?: string[];\n restrictedPaths?: string[];\n}\nexport interface ToolConfig {\n enabled: boolean;\n timeoutSeconds: number /* int */;\n retryPolicy: RetryPolicy;\n configuration?: { [key: string]: any};\n}\nexport interface RetryPolicy {\n maxAttempts: number /* int */;\n backoffStrategy: string;\n backoffDelay: any /* time.Duration */;\n}\nexport interface MCPServerConfig {\n name: string;\n endpoint: string;\n trusted: boolean;\n timeout: number /* int */;\n credentials?: { [key: string]: string};\n}\n\n//////////\n// source: requests.go\n\nexport interface CreateAgentRequest {\n agent?: Agent;\n orgId: string /* uuid */;\n}\nexport interface AgentResponse {\n agent?: Agent;\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetAgentRequest {\n id?: string /* uuid */;\n name?: string;\n orgId: string /* uuid */;\n}\nexport interface UpdateAgentRequest {\n agent: Agent;\n orgId: string /* uuid */;\n}\nexport interface DeleteAgentRequest {\n id: string /* uuid */;\n orgId: string /* uuid */;\n}\nexport interface ListAgentsRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\nexport interface ListAgentsResponse {\n agents: Agent[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ListAgentsSummaryRequest requests a lightweight list of agents\n */\nexport interface ListAgentsSummaryRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\n/**\n * ListAgentsSummaryResponse returns lightweight agent summaries for list views\n */\nexport interface ListAgentsSummaryResponse {\n agents: AgentSummary[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetDefaultAgentRequest {\n orgId: string /* uuid */;\n agentType: AgentType;\n}\nexport interface UpdateOrgAgentsRequest {\n orgId: string /* uuid */;\n defaultDefinitions?: DefaultDefinitions;\n}\nexport interface UpdateOrgAgentsResponse {\n toolsCreated: number /* int */;\n subAgentsCreated: number /* int */;\n agentsCreated: number /* int */;\n metadata: ResponseMetadata;\n}\n\n//////////\n// source: subjects.go\n\n/**\n * Core Agent Operations\n */\nexport const AgentCreateSubject = \"agent.create\";\n/**\n * Core Agent Operations\n */\nexport const AgentCreatedSubject = \"agent.created\";\n/**\n * Core Agent Operations\n */\nexport const AgentGetSubject = \"agent.get\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdateSubject = \"agent.update\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdatedSubject = \"agent.updated\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeleteSubject = \"agent.delete\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeletedSubject = \"agent.deleted\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSubject = \"agent.list\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSummarySubject = \"agent.list.summary\"; // Lightweight agent list for UI\n/**\n * Core Agent Operations\n */\nexport const AgentSearchSubject = \"agent.search\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatCreateSubject = \"agent.chat.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatUpdateSubject = \"agent.chat.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatGetSubject = \"agent.chat.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatValidateSubject = \"agent.chat.validate\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactCreateSubject = \"agent.react.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactUpdateSubject = \"agent.react.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactGetSubject = \"agent.react.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactValidateSubject = \"agent.react.validate\";\n/**\n * Execution Coordination\n */\nexport const AgentExecuteSubject = \"agent.execute\"; // Routes to appropriate service\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStatusSubject = \"agent.execute.status\"; // Get execution status\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStopSubject = \"agent.execute.stop\"; // Stop execution\n/**\n * Version Management\n */\nexport const AgentVersionCreateSubject = \"agent.version.create\";\n/**\n * Version Management\n */\nexport const AgentVersionCreatedSubject = \"agent.version.created\";\n/**\n * Version Management\n */\nexport const AgentVersionGetSubject = \"agent.version.get\";\n/**\n * Version Management\n */\nexport const AgentVersionListSubject = \"agent.version.list\";\n/**\n * Version Management\n */\nexport const AgentVersionActivateSubject = \"agent.version.activate\";\n/**\n * Version Management\n */\nexport const AgentVersionActivatedSubject = \"agent.version.activated\";\n/**\n * Default Agent Management\n */\nexport const AgentEnsureDefaultSubject = \"agent.ensure-default\";\n/**\n * Default Agent Management\n */\nexport const AgentGetDefaultSubject = \"agent.get-default\";\n/**\n * Organization Management\n */\nexport const AgentGetByOrgSubject = \"agent.get-by-org\";\n/**\n * Organization Management\n */\nexport const AgentCloneSubject = \"agent.clone\";\n/**\n * Organization Management\n */\nexport const AgentExportSubject = \"agent.export\";\n/**\n * Organization Management\n */\nexport const AgentImportSubject = \"agent.import\";\n/**\n * Organization Management\n */\nexport const AgentUpdateOrgSubject = \"agent.update-org-agents\"; // Bulk update agents and tools for an organization\n/**\n * Configuration Templates\n */\nexport const AgentTemplateListSubject = \"agent.template.list\";\n/**\n * Configuration Templates\n */\nexport const AgentTemplateGetSubject = \"agent.template.get\";\n/**\n * Configuration Templates\n */\nexport const AgentFromTemplateSubject = \"agent.from-template\";\n/**\n * Chat Service Integration\n */\nexport const ChatAgentExecuteSubject = \"chat.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ChatAgentStatusSubject = \"chat.agent.status\";\n/**\n * ReAct Service Integration\n */\nexport const ReactAgentExecuteSubject = \"react.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStatusSubject = \"react.agent.status\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStopSubject = \"react.agent.stop\";\n/**\n * Workflow Service Integration\n */\nexport const WorkflowAgentGetSubject = \"workflow.agent.get\";\n/**\n * Execution Service Integration\n */\nexport const WorkflowAgentUpdateSubject = \"workflow.agent.update\";\n/**\n * Tools Management\n */\nexport const ToolsCreateSubject = \"agents.tools.create\";\n/**\n * Tools Management\n */\nexport const ToolsCreatedSubject = \"agents.tools.created\";\n/**\n * Tools Management\n */\nexport const ToolsGetSubject = \"agents.tools.get\";\n/**\n * Tools Management\n */\nexport const ToolsUpdateSubject = \"agents.tools.update\";\n/**\n * Tools Management\n */\nexport const ToolsUpdatedSubject = \"agents.tools.updated\";\n/**\n * Tools Management\n */\nexport const ToolsDeleteSubject = \"agents.tools.delete\";\n/**\n * Tools Management\n */\nexport const ToolsDeletedSubject = \"agents.tools.deleted\";\n/**\n * Tools Management\n */\nexport const ToolsListSubject = \"agents.tools.list\";\n/**\n * Tools Management\n */\nexport const ToolsGetByIDsSubject = \"agents.tools.get-by-ids\";\n/**\n * Tools Management\n */\nexport const ToolsExecuteSubject = \"agents.tools.execute\";\n/**\n * Tools Management\n */\nexport const ToolsValidateSubject = \"agents.tools.validate\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreateSubject = \"agents.subagents.create\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreatedSubject = \"agents.subagents.created\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetSubject = \"agents.subagents.get\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdateSubject = \"agents.subagents.update\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdatedSubject = \"agents.subagents.updated\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeleteSubject = \"agents.subagents.delete\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeletedSubject = \"agents.subagents.deleted\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsListSubject = \"agents.subagents.list\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetByIDsSubject = \"agents.subagents.get-by-ids\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsExecuteSubject = \"agents.subagents.execute\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsValidateSubject = \"agents.subagents.validate\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreateSubject = \"agents.instance.create\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreatedSubject = \"agents.instance.created\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceGetSubject = \"agents.instance.get\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdateSubject = \"agents.instance.update\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdatedSubject = \"agents.instance.updated\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceListSubject = \"agents.instance.list\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeleteSubject = \"agents.instance.delete\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeletedSubject = \"agents.instance.deleted\";\n/**\n * Execution Plan Operations\n */\nexport const AgentInstanceCreatePlanSubject = \"agents.instance.create-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceExecutePlanSubject = \"agents.instance.execute-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstancePausePlanSubject = \"agents.instance.pause-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceResumePlanSubject = \"agents.instance.resume-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCancelPlanSubject = \"agents.instance.cancel-plan\";\n/**\n * Execution History\n */\nexport const AgentInstanceGetHistorySubject = \"agents.instance.get-history\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceClearHistorySubject = \"agents.instance.clear-history\";\n\n//////////\n// source: user-suggested-actions.go\n\n/**\n * Config and request models for product service integration\n */\nexport interface UserSuggestedActionsConfig {\n enabled: boolean;\n actionTypes: string[];\n maxActions: number /* int */;\n cooldownSeconds: number /* int */;\n}\nexport interface UserSuggestedAction {\n title: string;\n actionType: string;\n input?: string;\n priority?: number /* int */;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsRequest {\n orgId: string /* uuid */;\n chatKey: string;\n config: UserSuggestedActionsConfig;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsResponse {\n actions: UserSuggestedAction[];\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: validation.go\n\n/**\n * ValidationError represents a validation error with field and message\n */\nexport interface ValidationError {\n field: string;\n message: string;\n}\n/**\n * ValidationErrors represents a collection of validation errors\n */\nexport type ValidationErrors = ValidationError[];\n"],"mappings":"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","names":[]}
1
+ {"version":3,"sources":["../models/agent-models.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\nimport { KGNode } from \"@elqnt/kg\";\nimport { Variable } from \"@elqnt/types\";\nimport { ResponseMetadata, ProductNameTS, JSONSchema } from \"@elqnt/types\";\n\n//////////\n// source: agent-context.go\n\n/**\n * AgentContext accumulates meaningful state from agentic tool executions.\n * It provides a structured, schema-driven view of what happened during a chat\n * and what meaningful data was extracted.\n * Stored in: agent_contexts_org_{orgId} with key: {agentId}:{chatKey}\n */\nexport interface AgentContext {\n /**\n * Identity - used for storage key and cross-references\n */\n orgId: string;\n agentId: string;\n chatKey: string;\n /**\n * Schema defines the shape of accumulated variables\n * Tools contribute to this schema as they execute\n */\n schema: any /* types.JSONSchema */;\n /**\n * Variables is the merged view of all important outputs\n * This is what gets displayed in the \"Agent Context\" panel\n */\n variables: { [key: string]: any};\n /**\n * Executions tracks each tool call with full input/output\n * Similar to NodeStates in workflow engine\n */\n executions: AgentExecution[];\n /**\n * PendingPlan holds an execution plan awaiting user approval\n * Part of the Plan → Approve → Execute flow\n */\n pendingPlan?: ExecutionPlan;\n /**\n * CompletedPlans holds historical plans (for reference/audit)\n */\n completedPlans?: ExecutionPlan[];\n /**\n * Tracking\n */\n createdAt: number /* int64 */;\n lastUpdated: number /* int64 */;\n /**\n * Size management\n */\n archivedExecutionCount?: number /* int */;\n}\n/**\n * AgentExecution represents one tool call during the agentic loop.\n * Similar to NodeState in the workflow engine.\n */\nexport interface AgentExecution {\n /**\n * Identity\n */\n id: string;\n toolName: string;\n toolId?: string;\n /**\n * Display\n */\n title: string; // Human-readable: \"Document Analysis: manifest.pdf\"\n type: string; // Category: document, search, api, extraction\n icon?: string;\n /**\n * Status\n */\n status: ExecutionStatusTS;\n error?: string;\n /**\n * Schema-driven Input/Output (like NodeInput/NodeOutput)\n */\n inputSchema?: any /* types.JSONSchema */;\n input: { [key: string]: any};\n outputSchema?: any /* types.JSONSchema */;\n output?: { [key: string]: any};\n /**\n * Merge Configuration - how this execution's output merges into Variables\n */\n mergeConfig?: MergeConfig;\n /**\n * Timing\n */\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n duration?: number /* int64 */; // milliseconds\n}\n/**\n * ExecutionStatus represents the status of a tool execution\n */\nexport type ExecutionStatus = string;\nexport const ExecutionStatusPending: ExecutionStatus = \"pending\";\nexport const ExecutionStatusRunning: ExecutionStatus = \"running\";\nexport const ExecutionStatusCompleted: ExecutionStatus = \"completed\";\nexport const ExecutionStatusFailed: ExecutionStatus = \"failed\";\nexport const ExecutionStatusSkipped: ExecutionStatus = \"skipped\";\nexport type ExecutionStatusTS = 'pending' | 'running' | 'completed' | 'failed' | 'skipped';\n/**\n * MergeConfig defines how tool output gets merged into AgentContext.Variables\n */\nexport interface MergeConfig {\n /**\n * Keys to extract from output and merge into variables\n */\n mergeKeys?: string[];\n /**\n * Target path in variables\n * Examples: \"shipperName\" (direct), \"documents[]\" (append to array)\n */\n targetPath?: string;\n /**\n * Strategy: \"replace\" | \"merge\" | \"append\"\n * - replace: overwrite the target path\n * - merge: deep merge objects\n * - append: append to array (use with \"path[]\" syntax)\n */\n strategy?: MergeStrategy;\n}\n/**\n * MergeStrategy defines how values are merged into variables\n */\nexport type MergeStrategy = string;\nexport const MergeStrategyReplace: MergeStrategy = \"replace\";\nexport const MergeStrategyMerge: MergeStrategy = \"merge\";\nexport const MergeStrategyAppend: MergeStrategy = \"append\";\nexport type MergeStrategyTS = 'replace' | 'merge' | 'append';\n/**\n * AgentContextConfig is defined on the Agent to configure how context is managed\n */\nexport interface AgentContextConfig {\n /**\n * Base schema - defines the expected shape of accumulated context\n */\n schema: any /* types.JSONSchema */;\n /**\n * Default/initial values when context is created\n */\n defaultVariables?: { [key: string]: any};\n /**\n * Whether to extend schema at runtime when new keys appear\n */\n allowSchemaExtension: boolean;\n}\n/**\n * Constants for size management\n */\nexport const MaxExecutions = 100; // Keep last 100 executions\n/**\n * Constants for size management\n */\nexport const ExecutionTTLHours = 72; // Archive executions older than 72h\n/**\n * ExecutionPlan represents a planned sequence of tool executions\n * that requires user approval before execution.\n */\nexport interface ExecutionPlan {\n /**\n * Identity\n */\n id: string;\n chatKey: string;\n agentId: string;\n orgId: string;\n /**\n * Plan metadata\n */\n title: string; // Human-readable plan title\n description: string; // What this plan will accomplish\n createdAt: number /* int64 */;\n /**\n * Planned steps\n */\n steps: PlannedStep[];\n /**\n * Status tracking\n */\n status: PlanStatusTS;\n approvedAt?: number /* int64 */;\n approvedBy?: string;\n rejectedAt?: number /* int64 */;\n rejectionReason?: string;\n /**\n * Execution tracking (populated after approval)\n */\n executionStartedAt?: number /* int64 */;\n executionCompletedAt?: number /* int64 */;\n currentStepIndex: number /* int */;\n}\n/**\n * PlanStatus represents the status of an execution plan\n */\nexport type PlanStatus = string;\nexport const PlanStatusPendingApproval: PlanStatus = \"pending_approval\";\nexport const PlanStatusApproved: PlanStatus = \"approved\";\nexport const PlanStatusExecuting: PlanStatus = \"executing\";\nexport const PlanStatusCompleted: PlanStatus = \"completed\";\nexport const PlanStatusRejected: PlanStatus = \"rejected\";\nexport const PlanStatusCancelled: PlanStatus = \"cancelled\";\nexport type PlanStatusTS = 'pending_approval' | 'approved' | 'executing' | 'completed' | 'rejected' | 'cancelled';\n/**\n * PlannedStep represents a single step in an execution plan\n */\nexport interface PlannedStep {\n /**\n * Identity\n */\n id: string;\n order: number /* int */; // Execution order (0-based)\n /**\n * Tool information\n */\n toolName: string;\n toolId?: string;\n title: string; // Human-readable step title\n description: string; // What this step does\n icon?: string;\n /**\n * Planned input (may reference outputs from previous steps)\n */\n plannedInput: { [key: string]: any};\n /**\n * Dependencies (step IDs that must complete before this one)\n */\n dependsOn?: string[];\n /**\n * Optional: user can toggle individual steps\n */\n enabled: boolean;\n /**\n * After execution (populated during/after execution)\n */\n status: ExecutionStatusTS;\n output?: { [key: string]: any};\n error?: string;\n startedAt?: number /* int64 */;\n completedAt?: number /* int64 */;\n}\n/**\n * PlanApprovalConfig configures when an agent requires plan approval\n */\nexport interface PlanApprovalConfig {\n /**\n * Always require approval for any multi-tool operation\n */\n alwaysRequire: boolean;\n /**\n * Require approval only for these tool names\n */\n requireForTools?: string[];\n /**\n * Require approval when estimated execution time exceeds threshold (seconds)\n */\n timeThresholdSeconds?: number /* int */;\n /**\n * Require approval when number of steps exceeds threshold\n */\n stepCountThreshold?: number /* int */;\n /**\n * Auto-approve if user has previously approved similar plans\n */\n allowAutoApprove: boolean;\n}\n\n//////////\n// source: agent-io-models.go\n\n/**\n * CreateToolRequest represents a request to create a tool\n */\nexport interface CreateToolRequest {\n orgId: string /* uuid */;\n tool?: Tool;\n}\n/**\n * UpdateToolRequest represents a request to update a tool\n */\nexport interface UpdateToolRequest {\n orgId: string /* uuid */;\n tool?: Tool;\n}\n/**\n * GetToolRequest represents a request to get a tool\n */\nexport interface GetToolRequest {\n orgId: string /* uuid */;\n toolId: string /* uuid */;\n}\n/**\n * DeleteToolRequest represents a request to delete a tool\n */\nexport interface DeleteToolRequest {\n orgId: string /* uuid */;\n toolId: string /* uuid */;\n}\n/**\n * ListToolsRequest represents a request to list tools\n */\nexport interface ListToolsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * ToolResponse represents a response containing a tool\n */\nexport interface ToolResponse {\n tool?: Tool;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ToolsListResponse represents a response containing multiple tools\n */\nexport interface ToolsListResponse {\n tools: Tool[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * CreateSubAgentRequest represents a request to create a sub-agent\n */\nexport interface CreateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * UpdateSubAgentRequest represents a request to update a sub-agent\n */\nexport interface UpdateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * GetSubAgentRequest represents a request to get a sub-agent\n */\nexport interface GetSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * DeleteSubAgentRequest represents a request to delete a sub-agent\n */\nexport interface DeleteSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * ListSubAgentsRequest represents a request to list sub-agents\n */\nexport interface ListSubAgentsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SubAgentResponse represents a response containing a sub-agent\n */\nexport interface SubAgentResponse {\n subAgent?: SubAgent;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SubAgentsListResponse represents a response containing multiple sub-agents\n */\nexport interface SubAgentsListResponse {\n subAgents: SubAgent[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetToolsByIDsRequest represents a request to get multiple tools by IDs\n */\nexport interface GetToolsByIDsRequest {\n orgId: string /* uuid */;\n toolIds: string /* uuid */[];\n}\n/**\n * GetToolsByIDsResponse represents a response containing multiple tools\n */\nexport interface GetToolsByIDsResponse {\n tools: Tool[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSubAgentsByIDsRequest represents a request to get multiple sub-agents by IDs\n */\nexport interface GetSubAgentsByIDsRequest {\n orgId: string /* uuid */;\n subAgentIds: string /* uuid */[];\n}\n/**\n * GetSubAgentsByIDsResponse represents a response containing multiple sub-agents\n */\nexport interface GetSubAgentsByIDsResponse {\n subAgents: SubAgent[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface ExecuteToolRequest {\n orgId: string;\n tool?: AgentTool;\n input: { [key: string]: any};\n metadata?: { [key: string]: any};\n context?: { [key: string]: any};\n chatKey?: string;\n}\nexport interface ExecuteToolResponse {\n result: { [key: string]: any};\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: agent-models.go\n\nexport type AgentTypeTS = 'chat' | 'react';\nexport type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';\nexport type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';\nexport type AgentType = string;\nexport const AgentTypeChat: AgentType = \"chat\";\nexport const AgentTypeReact: AgentType = \"react\";\nexport type AgentSubType = string;\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeChat: AgentSubType = \"chat\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeReact: AgentSubType = \"react\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeWorkflow: AgentSubType = \"workflow\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeDocument: AgentSubType = \"document\";\nexport type AgentStatus = string;\nexport const AgentStatusDraft: AgentStatus = \"draft\";\nexport const AgentStatusActive: AgentStatus = \"active\";\nexport const AgentStatusInactive: AgentStatus = \"inactive\";\nexport const AgentStatusArchived: AgentStatus = \"archived\";\nexport interface DefaultDefinitions {\n agents: Agent[];\n tools: Tool[];\n subAgents: SubAgent[];\n}\n/**\n * AgentTool represents an agent's configuration for a specific tool\n * Includes denormalized tool information to avoid joins at runtime\n */\nexport interface AgentTool {\n toolId: string /* uuid */;\n toolName: string; // Denormalized for runtime performance\n title?: string;\n description?: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema?: JSONSchema;\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem?: boolean;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n order?: number /* int */;\n}\n/**\n * Core agent entity - shared by both types\n */\nexport interface Agent {\n id?: string /* uuid */;\n orgId: string /* uuid */;\n product: ProductNameTS;\n type: AgentTypeTS; // \"chat\" or \"react\"\n subType: AgentSubTypeTS; // Specific agent category\n name: string; // Machine-readable name (e.g., \"rfp_builder\")\n title: string; // Human-readable title (e.g., \"RFP Builder\")\n description?: string;\n status: AgentStatusTS;\n version: string;\n /**\n * === LLM CONFIG ===\n */\n provider: string;\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n systemPrompt: string;\n /**\n * Shared metadata\n */\n tags?: string[];\n isDefault: boolean;\n isPublic: boolean;\n /**\n * === Tool and SubAgent References ===\n */\n tools?: AgentTool[]; // Tools with agent-specific configurations\n subAgentIds?: string /* uuid */[]; // IDs of sub-agents this agent can use\n /**\n * === Essential Configs ===\n */\n csatConfig: CSATConfig;\n handoffConfig: HandoffConfig;\n /**\n * === TYPE-SPECIFIC CORE CONFIG ===\n */\n reactConfig?: ReactAgentConfig; // ReAct-only essentials\n /**\n * === CROSS-CUTTING FEATURES (can be used by any agent type) ===\n */\n userSuggestedActionsConfig?: UserSuggestedActionsConfig;\n /**\n * === AGENT CONTEXT CONFIG ===\n * Defines how AgentContext is initialized and managed for this agent\n */\n contextConfig?: AgentContextConfig;\n /**\n * === SCHEMA-DRIVEN AGENT CONFIG ===\n * Use ConfigSchema to auto-generate UI and validate values in Config\n */\n configSchema: JSONSchema;\n config?: { [key: string]: any};\n /**\n * === UI DISPLAY CONFIG ===\n */\n iconName?: string; // Lucide icon name for UI display (e.g., \"Bot\", \"ChartScatter\", \"PenTool\")\n capabilities?: string[]; // Agent capabilities for UI display (e.g., [\"Data Analysis\", \"Reporting\"])\n samplePrompts?: string[]; // Example prompts to show users (e.g., [\"What can you help me with?\"])\n /**\n * === SHARED BEHAVIOR CONFIG ===\n */\n responseStyle?: string;\n personalityTraits?: string[];\n fallbackMessage?: string;\n /**\n * === SHARED PERFORMANCE CONFIG ===\n */\n responseDelay?: number /* int */; // ms\n maxConcurrency?: number /* int */; // concurrent chats\n sessionTimeout?: number /* int */; // minutes\n /**\n * Audit fields\n */\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n metadata?: { [key: string]: any};\n}\n/**\n * Handoff Configuration\n */\nexport interface HandoffConfig {\n enabled: boolean;\n triggerKeywords: string[];\n queueId?: string;\n handoffMessage: string;\n}\n/**\n * AgentFilters for filtering agents in list operations\n */\nexport interface AgentFilters {\n product?: ProductNameTS;\n type?: AgentType;\n subType?: AgentSubType;\n status?: AgentStatus;\n isDefault?: boolean;\n isPublic?: boolean;\n tags?: string[];\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * AgentSummary is a lightweight representation of an agent for list views\n * Contains essential display fields plus metadata needed for chat initialization\n */\nexport interface AgentSummary {\n id: string /* uuid */;\n name: string;\n title: string;\n description?: string;\n iconName?: string;\n type: AgentTypeTS;\n status: AgentStatusTS;\n isDefault: boolean;\n isPublic: boolean;\n capabilities?: string[];\n samplePrompts?: string[];\n metadata?: { [key: string]: any};\n}\n/**\n * Tool represents a tool that can be called by an agent\n */\nexport interface Tool {\n id: string /* uuid */;\n name: string; // Machine-readable name for LLM calls (e.g., \"document_extractor\")\n title: string; // Human-readable title (e.g., \"Document Extractor\")\n description: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema: JSONSchema; // Using JSONSchema for OpenAI compatibility\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * ToolExecution represents the execution context for a tool\n */\nexport interface ToolExecution {\n id: string;\n title: string;\n toolId: string;\n toolName: string;\n status: ToolExecutionStatusTS;\n input: { [key: string]: any};\n result?: { [key: string]: any};\n error?: string;\n context?: { [key: string]: any};\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n retryCount: number /* int */;\n progress?: ToolExecutionProgress[];\n}\nexport interface ToolExecutionProgress {\n status: ToolExecutionStatusTS;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n metadata?: { [key: string]: any};\n}\n/**\n * ToolExecutionStatus represents the status of a tool execution\n */\nexport type ToolExecutionStatus = string;\nexport const ToolExecutionStatusStarted: ToolExecutionStatus = \"started\";\nexport const ToolExecutionStatusExecuting: ToolExecutionStatus = \"executing\";\nexport const ToolExecutionStatusCompleted: ToolExecutionStatus = \"completed\";\nexport const ToolExecutionStatusFailed: ToolExecutionStatus = \"failed\";\nexport const ToolExecutionStatusTimeout: ToolExecutionStatus = \"timeout\";\nexport const ToolExecutionStatusSkipped: ToolExecutionStatus = \"skipped\";\n/**\n * SubAgent represents a sub-agent composed of tools\n */\nexport interface SubAgent {\n id: string /* uuid */;\n orgId: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"contract_reviewer\")\n title: string; // Human-readable title (e.g., \"Contract Reviewer\")\n description: string;\n prompt: string;\n toolIds: string /* uuid */[]; // Tool IDs this sub-agent can use\n inputSchema: JSONSchema; // Using JSONSchema for validation\n outputSchema: JSONSchema; // Using JSONSchema for validation\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n version: string;\n enabled: boolean;\n isSystem: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n}\n/**\n * AgentToolConfiguration represents how an agent uses tools\n */\nexport interface AgentToolConfiguration {\n enabledTools: string[]; // Tool IDs\n enabledSubAgents: string[]; // SubAgent IDs\n toolConfigs: { [key: string]: ToolConfig}; // Per-tool configuration\n executionPolicy: ToolExecutionPolicy;\n maxParallelCalls: number /* int */;\n requireApproval: boolean;\n}\n/**\n * ToolExecutionPolicy defines how tools are executed\n */\nexport interface ToolExecutionPolicy {\n mode: ExecutionModeTS;\n maxIterations: number /* int */;\n stopOnError: boolean;\n retryOnFailure: boolean;\n timeoutSeconds: number /* int */;\n}\n/**\n * ExecutionMode defines how tools are executed\n */\nexport type ExecutionMode = string;\nexport const ExecutionModeSync: ExecutionMode = \"sync\";\nexport const ExecutionModeAsync: ExecutionMode = \"async\";\nexport const ExecutionModeAsyncClient: ExecutionMode = \"asyncClient\";\n/**\n * CreateExecutionPlanRequest represents a request to create an execution plan\n */\nexport interface CreateExecutionPlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n input: string;\n context?: { [key: string]: any};\n availableTools: Tool[];\n}\n/**\n * CreateExecutionPlanResponse represents the response with an execution plan\n */\nexport interface CreateExecutionPlanResponse {\n agentInstanceId: string /* uuid */;\n executionPlan: ToolExecution[];\n estimatedTime?: any /* time.Duration */;\n}\n/**\n * ExecutePlanRequest represents a request to execute the plan\n */\nexport interface ExecutePlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n approveAll?: boolean;\n}\n/**\n * ExecutePlanResponse represents the response after executing the plan\n */\nexport interface ExecutePlanResponse {\n stateId: string;\n status: ToolExecutionStatusTS;\n executedTools: ToolExecution[];\n finalResult?: any /* json.RawMessage */;\n errors?: string[];\n}\nexport type ToolExecutionStatusTS = 'pending' | 'executing' | 'completed' | 'failed' | 'timeout' | 'skipped';\nexport type ExecutionModeTS = 'sync' | 'async' | 'asyncClient';\n\n//////////\n// source: csat.go\n\n/**\n * CSAT Configuration\n */\nexport interface CSATConfig {\n enabled: boolean;\n survey?: CSATSurvey;\n}\nexport interface CSATQuestion {\n question: { [key: string]: string}; // {\"en\": \"How was...\", \"ar\": \"كيف كانت...\"}\n showRating: boolean;\n showComment: boolean;\n}\nexport interface CSATSurvey {\n questions: CSATQuestion[];\n timeThreshold: number /* int */; // Minutes after last message\n closeOnResponse: boolean;\n}\nexport interface CSATAnswer {\n question: string;\n lang?: string; // Language used for this answer\n rating?: number /* int */; // 1-5 rating\n comment?: string; // Text feedback\n}\nexport interface CSATResponse {\n answers: CSATAnswer[];\n submittedAt: number /* int64 */;\n overallRating: number /* int */; // 1-5 overall satisfaction\n}\n\n//////////\n// source: react.go\n\n/**\n * ReAct Agent Configuration\n */\nexport interface ReactAgentConfig {\n /**\n * Core ReAct Configuration\n */\n maxIterations: number /* int */;\n reasoningPrompt: string;\n stopConditions: string[];\n availableTools: string[];\n requireConfirmation: boolean;\n /**\n * LLM Configuration\n */\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n provider: string;\n /**\n * Context Management\n */\n maxContextLength: number /* int */;\n memoryRetention: number /* int */;\n compressionStrategy: string;\n /**\n * Tool Configuration\n */\n toolConfigs?: { [key: string]: ToolConfig};\n mcpServers?: MCPServerConfig[];\n /**\n * Execution Configuration\n */\n timeoutMinutes: number /* int */;\n retryAttempts: number /* int */;\n parallelExecution: boolean;\n /**\n * Safety Configuration\n */\n dangerousOperations?: string[];\n allowedFileTypes?: string[];\n restrictedPaths?: string[];\n}\nexport interface ToolConfig {\n enabled: boolean;\n timeoutSeconds: number /* int */;\n retryPolicy: RetryPolicy;\n configuration?: { [key: string]: any};\n}\nexport interface RetryPolicy {\n maxAttempts: number /* int */;\n backoffStrategy: string;\n backoffDelay: any /* time.Duration */;\n}\nexport interface MCPServerConfig {\n name: string;\n endpoint: string;\n trusted: boolean;\n timeout: number /* int */;\n credentials?: { [key: string]: string};\n}\n\n//////////\n// source: requests.go\n\nexport interface CreateAgentRequest {\n agent?: Agent;\n orgId: string /* uuid */;\n}\nexport interface AgentResponse {\n agent?: Agent;\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetAgentRequest {\n id?: string /* uuid */;\n name?: string;\n orgId: string /* uuid */;\n}\nexport interface UpdateAgentRequest {\n agent: Agent;\n orgId: string /* uuid */;\n}\nexport interface DeleteAgentRequest {\n id: string /* uuid */;\n orgId: string /* uuid */;\n}\nexport interface ListAgentsRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\nexport interface ListAgentsResponse {\n agents: Agent[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ListAgentsSummaryRequest requests a lightweight list of agents\n */\nexport interface ListAgentsSummaryRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\n/**\n * ListAgentsSummaryResponse returns lightweight agent summaries for list views\n */\nexport interface ListAgentsSummaryResponse {\n agents: AgentSummary[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetDefaultAgentRequest {\n orgId: string /* uuid */;\n agentType: AgentType;\n}\nexport interface UpdateOrgAgentsRequest {\n orgId: string /* uuid */;\n defaultDefinitions?: DefaultDefinitions;\n}\nexport interface UpdateOrgAgentsResponse {\n toolsCreated: number /* int */;\n subAgentsCreated: number /* int */;\n agentsCreated: number /* int */;\n metadata: ResponseMetadata;\n}\n\n//////////\n// source: subjects.go\n\n/**\n * Core Agent Operations\n */\nexport const AgentCreateSubject = \"agent.create\";\n/**\n * Core Agent Operations\n */\nexport const AgentCreatedSubject = \"agent.created\";\n/**\n * Core Agent Operations\n */\nexport const AgentGetSubject = \"agent.get\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdateSubject = \"agent.update\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdatedSubject = \"agent.updated\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeleteSubject = \"agent.delete\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeletedSubject = \"agent.deleted\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSubject = \"agent.list\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSummarySubject = \"agent.list.summary\"; // Lightweight agent list for UI\n/**\n * Core Agent Operations\n */\nexport const AgentSearchSubject = \"agent.search\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatCreateSubject = \"agent.chat.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatUpdateSubject = \"agent.chat.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatGetSubject = \"agent.chat.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatValidateSubject = \"agent.chat.validate\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactCreateSubject = \"agent.react.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactUpdateSubject = \"agent.react.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactGetSubject = \"agent.react.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactValidateSubject = \"agent.react.validate\";\n/**\n * Execution Coordination\n */\nexport const AgentExecuteSubject = \"agent.execute\"; // Routes to appropriate service\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStatusSubject = \"agent.execute.status\"; // Get execution status\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStopSubject = \"agent.execute.stop\"; // Stop execution\n/**\n * Version Management\n */\nexport const AgentVersionCreateSubject = \"agent.version.create\";\n/**\n * Version Management\n */\nexport const AgentVersionCreatedSubject = \"agent.version.created\";\n/**\n * Version Management\n */\nexport const AgentVersionGetSubject = \"agent.version.get\";\n/**\n * Version Management\n */\nexport const AgentVersionListSubject = \"agent.version.list\";\n/**\n * Version Management\n */\nexport const AgentVersionActivateSubject = \"agent.version.activate\";\n/**\n * Version Management\n */\nexport const AgentVersionActivatedSubject = \"agent.version.activated\";\n/**\n * Default Agent Management\n */\nexport const AgentEnsureDefaultSubject = \"agent.ensure-default\";\n/**\n * Default Agent Management\n */\nexport const AgentGetDefaultSubject = \"agent.get-default\";\n/**\n * Organization Management\n */\nexport const AgentGetByOrgSubject = \"agent.get-by-org\";\n/**\n * Organization Management\n */\nexport const AgentCloneSubject = \"agent.clone\";\n/**\n * Organization Management\n */\nexport const AgentExportSubject = \"agent.export\";\n/**\n * Organization Management\n */\nexport const AgentImportSubject = \"agent.import\";\n/**\n * Organization Management\n */\nexport const AgentUpdateOrgSubject = \"agent.update-org-agents\"; // Bulk update agents and tools for an organization\n/**\n * Configuration Templates\n */\nexport const AgentTemplateListSubject = \"agent.template.list\";\n/**\n * Configuration Templates\n */\nexport const AgentTemplateGetSubject = \"agent.template.get\";\n/**\n * Configuration Templates\n */\nexport const AgentFromTemplateSubject = \"agent.from-template\";\n/**\n * Chat Service Integration\n */\nexport const ChatAgentExecuteSubject = \"chat.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ChatAgentStatusSubject = \"chat.agent.status\";\n/**\n * ReAct Service Integration\n */\nexport const ReactAgentExecuteSubject = \"react.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStatusSubject = \"react.agent.status\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStopSubject = \"react.agent.stop\";\n/**\n * Workflow Service Integration\n */\nexport const WorkflowAgentGetSubject = \"workflow.agent.get\";\n/**\n * Execution Service Integration\n */\nexport const WorkflowAgentUpdateSubject = \"workflow.agent.update\";\n/**\n * Tools Management\n */\nexport const ToolsCreateSubject = \"agents.tools.create\";\n/**\n * Tools Management\n */\nexport const ToolsCreatedSubject = \"agents.tools.created\";\n/**\n * Tools Management\n */\nexport const ToolsGetSubject = \"agents.tools.get\";\n/**\n * Tools Management\n */\nexport const ToolsUpdateSubject = \"agents.tools.update\";\n/**\n * Tools Management\n */\nexport const ToolsUpdatedSubject = \"agents.tools.updated\";\n/**\n * Tools Management\n */\nexport const ToolsDeleteSubject = \"agents.tools.delete\";\n/**\n * Tools Management\n */\nexport const ToolsDeletedSubject = \"agents.tools.deleted\";\n/**\n * Tools Management\n */\nexport const ToolsListSubject = \"agents.tools.list\";\n/**\n * Tools Management\n */\nexport const ToolsGetByIDsSubject = \"agents.tools.get-by-ids\";\n/**\n * Tools Management\n */\nexport const ToolsExecuteSubject = \"agents.tools.execute\";\n/**\n * Tools Management\n */\nexport const ToolsValidateSubject = \"agents.tools.validate\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreateSubject = \"agents.subagents.create\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreatedSubject = \"agents.subagents.created\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetSubject = \"agents.subagents.get\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdateSubject = \"agents.subagents.update\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdatedSubject = \"agents.subagents.updated\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeleteSubject = \"agents.subagents.delete\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeletedSubject = \"agents.subagents.deleted\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsListSubject = \"agents.subagents.list\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetByIDsSubject = \"agents.subagents.get-by-ids\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsExecuteSubject = \"agents.subagents.execute\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsValidateSubject = \"agents.subagents.validate\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreateSubject = \"agents.instance.create\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreatedSubject = \"agents.instance.created\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceGetSubject = \"agents.instance.get\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdateSubject = \"agents.instance.update\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdatedSubject = \"agents.instance.updated\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceListSubject = \"agents.instance.list\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeleteSubject = \"agents.instance.delete\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeletedSubject = \"agents.instance.deleted\";\n/**\n * Execution Plan Operations\n */\nexport const AgentInstanceCreatePlanSubject = \"agents.instance.create-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceExecutePlanSubject = \"agents.instance.execute-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstancePausePlanSubject = \"agents.instance.pause-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceResumePlanSubject = \"agents.instance.resume-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCancelPlanSubject = \"agents.instance.cancel-plan\";\n/**\n * Execution History\n */\nexport const AgentInstanceGetHistorySubject = \"agents.instance.get-history\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceClearHistorySubject = \"agents.instance.clear-history\";\n\n//////////\n// source: user-suggested-actions.go\n\n/**\n * Config and request models for product service integration\n */\nexport interface UserSuggestedActionsConfig {\n enabled: boolean;\n actionTypes: string[];\n maxActions: number /* int */;\n cooldownSeconds: number /* int */;\n}\nexport interface UserSuggestedAction {\n title: string;\n actionType: string;\n input?: string;\n priority?: number /* int */;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsRequest {\n orgId: string /* uuid */;\n chatKey: string;\n config: UserSuggestedActionsConfig;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsResponse {\n actions: UserSuggestedAction[];\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: validation.go\n\n/**\n * ValidationError represents a validation error with field and message\n */\nexport interface ValidationError {\n field: string;\n message: string;\n}\n/**\n * ValidationErrors represents a collection of validation errors\n */\nexport type ValidationErrors = ValidationError[];\n"],"mappings":"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","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elqnt/agents",
3
- "version": "1.0.0",
3
+ "version": "1.0.5",
4
4
  "description": "Agent management and orchestration for Eloquent platform",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",