@elqnt/agents 2.1.0 → 2.1.1
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/agent-models-mCYzjfGp.d.mts +2400 -0
- package/dist/agent-models-mCYzjfGp.d.ts +2400 -0
- package/dist/api/index.d.mts +23 -2
- package/dist/api/index.d.ts +23 -2
- package/dist/api/index.js +10 -2
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +9 -1
- package/dist/{chunk-IDBBO3QJ.mjs → chunk-3VJNDDME.mjs} +46 -2
- package/dist/chunk-3VJNDDME.mjs.map +1 -0
- package/dist/{chunk-YYXYKVF4.js → chunk-K3OAYHF3.js} +33 -2
- package/dist/chunk-K3OAYHF3.js.map +1 -0
- package/dist/{chunk-EQBMH6T6.mjs → chunk-O2SYQSU2.mjs} +2 -2
- package/dist/{chunk-WL5S56WV.js → chunk-RPXANLP2.js} +19 -19
- package/dist/chunk-RPXANLP2.js.map +1 -0
- package/dist/chunk-SWJ66D7X.js +401 -0
- package/dist/chunk-SWJ66D7X.js.map +1 -0
- package/dist/{chunk-LRVOTC2M.mjs → chunk-SZP2G5I7.mjs} +33 -2
- package/dist/chunk-SZP2G5I7.mjs.map +1 -0
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +3 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +54 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +53 -3
- package/dist/models/index.d.mts +66 -2226
- package/dist/models/index.d.ts +66 -2226
- package/dist/models/index.js +44 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/index.mjs +43 -1
- package/package.json +16 -14
- package/dist/chunk-IDBBO3QJ.mjs.map +0 -1
- package/dist/chunk-LRVOTC2M.mjs.map +0 -1
- package/dist/chunk-O77IWBPZ.js +0 -357
- package/dist/chunk-O77IWBPZ.js.map +0 -1
- package/dist/chunk-WL5S56WV.js.map +0 -1
- package/dist/chunk-YYXYKVF4.js.map +0 -1
- /package/dist/{chunk-EQBMH6T6.mjs.map → chunk-O2SYQSU2.mjs.map} +0 -0
package/dist/models/index.d.ts
CHANGED
|
@@ -1,2257 +1,97 @@
|
|
|
1
|
-
import { JSONSchema, ProductNameTS, ResponseMetadata } from '@elqnt/types';
|
|
1
|
+
export { A as Agent, a as AgentCategory, b as AgentCategoryDevelopment, c as AgentCategoryFinance, d as AgentCategoryGeneral, e as AgentCategoryHR, f as AgentCategoryMarketing, g as AgentCategoryProductivity, h as AgentCategoryResearch, i as AgentCategorySales, j as AgentCategorySupport, k as AgentCategoryTS, l as AgentCategoryWriting, m as AgentChatCreateSubject, n as AgentChatGetSubject, o as AgentChatUpdateSubject, p as AgentChatValidateSubject, q as AgentCloneSubject, r as AgentContext, s as AgentContextConfig, t as AgentCreateSubject, u as AgentCreatedSubject, v as AgentDeleteSubject, w as AgentDeletedSubject, x as AgentEnsureDefaultSubject, y as AgentExecuteStatusSubject, z as AgentExecuteStopSubject, B as AgentExecuteSubject, C as AgentExecution, D as AgentExportSubject, E as AgentFilters, F as AgentFromTemplateSubject, G as AgentGetByOrgSubject, H as AgentGetDefaultSubject, I as AgentGetSubject, J as AgentImportSubject, K as AgentInstanceCancelPlanSubject, L as AgentInstanceClearHistorySubject, M as AgentInstanceCreatePlanSubject, N as AgentInstanceCreateSubject, O as AgentInstanceCreatedSubject, P as AgentInstanceDeleteSubject, Q as AgentInstanceDeletedSubject, R as AgentInstanceExecutePlanSubject, S as AgentInstanceGetHistorySubject, T as AgentInstanceGetSubject, U as AgentInstanceListSubject, V as AgentInstancePausePlanSubject, W as AgentInstanceResumePlanSubject, X as AgentInstanceUpdateSubject, Y as AgentInstanceUpdatedSubject, Z as AgentJob, _ as AgentJobCreateSubject, $ as AgentJobDeleteSubject, a0 as AgentJobGetSubject, a1 as AgentJobIDRequest, a2 as AgentJobListSubject, a3 as AgentJobPauseSubject, a4 as AgentJobResponse, a5 as AgentJobResumeSubject, a6 as AgentJobTriggerRequest, a7 as AgentJobTriggerResponse, a8 as AgentJobTriggerSubject, a9 as AgentJobUpdateSubject, aa as AgentJobsListResponse, ab as AgentListSubject, ac as AgentListSummarySubject, ad as AgentReactCreateSubject, ae as AgentReactGetSubject, af as AgentReactUpdateSubject, ag as AgentReactValidateSubject, ah as AgentResponse, ai as AgentScope, aj as AgentScopeOrg, ak as AgentScopeTS, al as AgentScopeTeam, am as AgentScopeUser, an as AgentSearchSubject, ao as AgentSkill, ap as AgentSkillConfigResponse, aq as AgentSkillGetConfigSubject, ar as AgentSkillUpdateConfigSubject, as as AgentStatus, at as AgentStatusActive, au as AgentStatusArchived, av as AgentStatusDraft, aw as AgentStatusInactive, ax as AgentStatusTS, ay as AgentSubType, az as AgentSubTypeChat, aA as AgentSubTypeDocument, aB as AgentSubTypeReact, aC as AgentSubTypeTS, aD as AgentSubTypeWorkflow, aE as AgentSummary, aF as AgentTemplate, aG as AgentTemplateGetSubject, aH as AgentTemplateListSubject, aI as AgentTool, aJ as AgentToolConfiguration, aK as AgentType, aL as AgentTypeChat, aM as AgentTypeReact, aN as AgentTypeTS, aO as AgentUpdateOrgSubject, aP as AgentUpdateSubject, aQ as AgentUpdatedSubject, aR as AgentVersionActivateSubject, aS as AgentVersionActivatedSubject, aT as AgentVersionCreateSubject, aU as AgentVersionCreatedSubject, aV as AgentVersionGetSubject, aW as AgentVersionListSubject, aX as AgentWidget, aY as AgentWidgetResponse, aZ as AgentWidgetsCreateSubject, a_ as AgentWidgetsDeleteSubject, a$ as AgentWidgetsGetByWidgetID, b0 as AgentWidgetsGetDefaultSubject, b1 as AgentWidgetsGetSubject, b2 as AgentWidgetsListSubject, b3 as AgentWidgetsSetDefaultSubject, b4 as AgentWidgetsUpdateSubject, b5 as ArtifactRef, b6 as CSATAnswer, b7 as CSATConfig, b8 as CSATQuestion, b9 as CSATResponse, ba as CSATSurvey, bb as ChatAgentExecuteSubject, bc as ChatAgentStatusSubject, bd as CreateAgentJobRequest, be as CreateAgentRequest, bf as CreateAgentWidgetRequest, bg as CreateExecutionPlanRequest, bh as CreateExecutionPlanResponse, bi as CreateSkillRequest, bj as CreateSubAgentRequest, bk as CreateToolDefinitionRequest, bl as CustomizableField, bm as DefaultDefinitions, bn as DeleteAgentRequest, bo as DeleteAgentWidgetRequest, bp as DeleteSkillRequest, bq as DeleteSkillUserConfigRequest, br as DeleteSubAgentRequest, bs as DeleteToolDefinitionRequest, bt as ExecuteJobRequest, bu as ExecutePlanRequest, bv as ExecutePlanResponse, bw as ExecuteToolRequest, bx as ExecuteToolResponse, by as ExecutionCompletedEvent, bz as ExecutionMode, bA as ExecutionModeAsync, bB as ExecutionModeAsyncClient, bC as ExecutionModeSync, bD as ExecutionModeTS, bE as ExecutionPlan, bF as ExecutionResponse, bG as ExecutionStatus, bH as ExecutionStatusCompleted, bI as ExecutionStatusFailed, bJ as ExecutionStatusPending, bK as ExecutionStatusRunning, bL as ExecutionStatusSkipped, bM as ExecutionStatusTS, bN as ExecutionTTLHours, bO as ExecutionsTTLCleanupSubject, bP as GetAgentRequest, bQ as GetAgentSkillConfigRequest, bR as GetAgentWidgetRequest, bS as GetDefaultAgentRequest, bT as GetDefaultWidgetRequest, bU as GetExecutionRequest, bV as GetSkillRequest, bW as GetSkillUserConfigRequest, bX as GetSkillsByIDsRequest, bY as GetSkillsByIDsResponse, bZ as GetSubAgentRequest, b_ as GetSubAgentsByIDsRequest, b$ as GetSubAgentsByIDsResponse, c0 as GetToolDefinitionRequest, c1 as GetToolDefinitionsByIDsRequest, c2 as GetToolDefinitionsByIDsResponse, c3 as GetWidgetByWidgetIDRequest, c4 as GetWidgetConfigRequest, c5 as GetWidgetConfigResponse, c6 as HandoffConfig, c7 as IntegrationProviderTS, c8 as IntegrationRequirement, c9 as IntegrationTypeTS, ca as JobExecution, cb as JobExecutionGetSubject, cc as JobExecutionListSubject, cd as JobExecutionResult, ce as JobExecutionStatus, cf as JobExecutionStatusFailed, cg as JobExecutionStatusRunning, ch as JobExecutionStatusSuccess, ci as JobExecutionStatusTS, cj as JobExecutionStatusTimedOut, ck as JobFrequency, cl as JobFrequencyOneTime, cm as JobFrequencySchedule, cn as JobFrequencyTS, co as JobScope, cp as JobScopeOrg, cq as JobScopePrivate, cr as JobScopeTS, cs as JobScopeTeam, ct as JobStatus, cu as JobStatusActive, cv as JobStatusDisabled, cw as JobStatusExecuting, cx as JobStatusPaused, cy as JobStatusTS, cz as ListAgentJobsRequest, cA as ListAgentWidgetsRequest, cB as ListAgentWidgetsResponse, cC as ListAgentsRequest, cD as ListAgentsResponse, cE as ListAgentsSummaryRequest, cF as ListAgentsSummaryResponse, cG as ListExecutionsByAgentRequest, cH as ListExecutionsByJobRequest, cI as ListExecutionsResponse, cJ as ListSkillUserConfigRequest, cK as ListSkillsRequest, cL as ListSubAgentsRequest, cM as ListToolDefinitionsRequest, cN as MCPServerConfig, cO as MaxExecutions, cP as MergeConfig, cQ as MergeStrategy, cR as MergeStrategyAppend, cS as MergeStrategyMerge, cT as MergeStrategyReplace, cU as MergeStrategyTS, cV as PlanApprovalConfig, cW as PlanStatus, cX as PlanStatusApproved, cY as PlanStatusCancelled, cZ as PlanStatusCompleted, c_ as PlanStatusExecuting, c$ as PlanStatusPendingApproval, d0 as PlanStatusRejected, d1 as PlanStatusTS, d2 as PlannedStep, d3 as ProcessJobTriggerResult, d4 as PublicWidgetConfig, d5 as PublisherType, d6 as PublisherTypeEloquent, d7 as PublisherTypePartner, d8 as PublisherTypeTS, d9 as ReactAgentConfig, da as ReactAgentExecuteSubject, db as ReactAgentStatusSubject, dc as ReactAgentStopSubject, dd as ResolveSkillConfigRequest, de as ResolveSkillConfigResponse, df as RetryPolicy, dg as RuntimeJobCompletedSubject, dh as RuntimeJobExecuteSubject, di as SaveWidgetConfigRequest, dj as SaveWidgetConfigResponse, dk as SetDefaultWidgetRequest, dl as Skill, dm as SkillCategory, dn as SkillCategoryAnalysis, dp as SkillCategoryCommunication, dq as SkillCategoryCreative, dr as SkillCategoryCustom, ds as SkillCategoryIntegration, dt as SkillCategoryProductivity, du as SkillCategoryTS, dv as SkillResolveConfigSubject, dw as SkillResponse, dx as SkillUserConfig, dy as SkillUserConfigDeleteSubject, dz as SkillUserConfigGetSubject, dA as SkillUserConfigListResponse, dB as SkillUserConfigListSubject, dC as SkillUserConfigResponse, dD as SkillUserConfigUpdateSubject, dE as SkillsCreateSubject, dF as SkillsCreatedSubject, dG as SkillsDeleteSubject, dH as SkillsDeletedSubject, dI as SkillsGetByIDsSubject, dJ as SkillsGetSubject, dK as SkillsListResponse, dL as SkillsListSubject, dM as SkillsUpdateOrgConfigSubject, dN as SkillsUpdateSubject, dO as SkillsUpdatedSubject, dP as SubAgent, dQ as SubAgentResponse, dR as SubAgentsCreateSubject, dS as SubAgentsCreatedSubject, dT as SubAgentsDeleteSubject, dU as SubAgentsDeletedSubject, dV as SubAgentsExecuteSubject, dW as SubAgentsGetByIDsSubject, dX as SubAgentsGetSubject, dY as SubAgentsListResponse, dZ as SubAgentsListSubject, d_ as SubAgentsUpdateSubject, d$ as SubAgentsUpdatedSubject, e0 as SubAgentsValidateSubject, e1 as TTLCleanupRequest, e2 as TTLCleanupResponse, e3 as TemplateCategoryCount, e4 as TemplateFilters, e5 as TemplateStatus, e6 as TemplateStatusDraft, e7 as TemplateStatusPublished, e8 as TemplateStatusTS, e9 as ToolConfig, ea as ToolDefinition, eb as ToolDefinitionResponse, ec as ToolDefinitionsCreateSubject, ed as ToolDefinitionsCreatedSubject, ee as ToolDefinitionsDeleteSubject, ef as ToolDefinitionsDeletedSubject, eg as ToolDefinitionsExecuteSubject, eh as ToolDefinitionsGetByIDsSubject, ei as ToolDefinitionsGetSubject, ej as ToolDefinitionsListResponse, ek as ToolDefinitionsListSubject, el as ToolDefinitionsUpdateSubject, em as ToolDefinitionsUpdatedSubject, en as ToolDefinitionsValidateSubject, eo as ToolExecution, ep as ToolExecutionPolicy, eq as ToolExecutionProgress, er as ToolExecutionStatus, es as ToolExecutionStatusCompleted, et as ToolExecutionStatusExecuting, eu as ToolExecutionStatusFailed, ev as ToolExecutionStatusSkipped, ew as ToolExecutionStatusStarted, ex as ToolExecutionStatusTS, ey as ToolExecutionStatusTimeout, ez as UpdateAgentJobRequest, eA as UpdateAgentRequest, eB as UpdateAgentSkillConfigRequest, eC as UpdateAgentWidgetRequest, eD as UpdateOrgAgentsRequest, eE as UpdateOrgAgentsResponse, eF as UpdateSkillOrgConfigRequest, eG as UpdateSkillRequest, eH as UpdateSkillUserConfigRequest, eI as UpdateSubAgentRequest, eJ as UpdateToolDefinitionRequest, eK as UserSuggestedAction, eL as UserSuggestedActionsConfig, eM as UserSuggestedActionsRequest, eN as UserSuggestedActionsResponse, eO as ValidationError, eP as ValidationErrors, eQ as WidgetAppearance, eR as WidgetBehavior, eS as WidgetConfig, eT as WidgetConfigGetByAgentSubject, eU as WidgetConfigSaveSubject, eV as WidgetSecurity, eW as WorkflowAgentGetSubject, eX as WorkflowAgentUpdateSubject } from '../agent-models-mCYzjfGp.js';
|
|
2
|
+
import { ResponseMetadata } from '@elqnt/types';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
variables: {
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Executions tracks each tool call with full input/output
|
|
30
|
-
* Similar to NodeStates in workflow engine
|
|
31
|
-
*/
|
|
32
|
-
executions: AgentExecution[];
|
|
33
|
-
/**
|
|
34
|
-
* PendingPlan holds an execution plan awaiting user approval
|
|
35
|
-
* Part of the Plan → Approve → Execute flow
|
|
36
|
-
*/
|
|
37
|
-
pendingPlan?: ExecutionPlan;
|
|
38
|
-
/**
|
|
39
|
-
* CompletedPlans holds historical plans (for reference/audit)
|
|
40
|
-
*/
|
|
41
|
-
completedPlans?: ExecutionPlan[];
|
|
42
|
-
/**
|
|
43
|
-
* Tracking
|
|
44
|
-
*/
|
|
45
|
-
createdAt: number;
|
|
46
|
-
lastUpdated: number;
|
|
47
|
-
/**
|
|
48
|
-
* Size management
|
|
49
|
-
*/
|
|
50
|
-
archivedExecutionCount?: number;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* AgentExecution represents one tool call during the agentic loop.
|
|
54
|
-
* Similar to NodeState in the workflow engine.
|
|
55
|
-
*/
|
|
56
|
-
interface AgentExecution {
|
|
57
|
-
/**
|
|
58
|
-
* Identity
|
|
59
|
-
*/
|
|
60
|
-
id: string;
|
|
61
|
-
toolName: string;
|
|
62
|
-
toolId?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Display
|
|
65
|
-
*/
|
|
66
|
-
title: string;
|
|
67
|
-
type: string;
|
|
68
|
-
icon?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Status
|
|
71
|
-
*/
|
|
72
|
-
status: ExecutionStatusTS;
|
|
73
|
-
error?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Schema-driven Input/Output (like NodeInput/NodeOutput)
|
|
76
|
-
*/
|
|
77
|
-
inputSchema?: any;
|
|
78
|
-
input: {
|
|
79
|
-
[key: string]: any;
|
|
80
|
-
};
|
|
81
|
-
outputSchema?: any;
|
|
82
|
-
output?: {
|
|
83
|
-
[key: string]: any;
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Merge Configuration - how this execution's output merges into Variables
|
|
87
|
-
*/
|
|
88
|
-
mergeConfig?: MergeConfig;
|
|
89
|
-
/**
|
|
90
|
-
* Timing
|
|
91
|
-
*/
|
|
92
|
-
startedAt: number;
|
|
93
|
-
completedAt?: number;
|
|
94
|
-
duration?: number;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* ExecutionStatus represents the status of a tool execution
|
|
98
|
-
*/
|
|
99
|
-
type ExecutionStatus = string;
|
|
100
|
-
declare const ExecutionStatusPending: ExecutionStatus;
|
|
101
|
-
declare const ExecutionStatusRunning: ExecutionStatus;
|
|
102
|
-
declare const ExecutionStatusCompleted: ExecutionStatus;
|
|
103
|
-
declare const ExecutionStatusFailed: ExecutionStatus;
|
|
104
|
-
declare const ExecutionStatusSkipped: ExecutionStatus;
|
|
105
|
-
type ExecutionStatusTS = 'pending' | 'running' | 'completed' | 'failed' | 'skipped';
|
|
106
|
-
/**
|
|
107
|
-
* MergeConfig defines how tool output gets merged into AgentContext.Variables
|
|
108
|
-
*/
|
|
109
|
-
interface MergeConfig {
|
|
110
|
-
/**
|
|
111
|
-
* Keys to extract from output and merge into variables
|
|
112
|
-
*/
|
|
113
|
-
mergeKeys?: string[];
|
|
114
|
-
/**
|
|
115
|
-
* Target path in variables
|
|
116
|
-
* Examples: "shipperName" (direct), "documents[]" (append to array)
|
|
117
|
-
*/
|
|
118
|
-
targetPath?: string;
|
|
119
|
-
/**
|
|
120
|
-
* Strategy: "replace" | "merge" | "append"
|
|
121
|
-
* - replace: overwrite the target path
|
|
122
|
-
* - merge: deep merge objects
|
|
123
|
-
* - append: append to array (use with "path[]" syntax)
|
|
124
|
-
*/
|
|
125
|
-
strategy?: MergeStrategy;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* MergeStrategy defines how values are merged into variables
|
|
129
|
-
*/
|
|
130
|
-
type MergeStrategy = string;
|
|
131
|
-
declare const MergeStrategyReplace: MergeStrategy;
|
|
132
|
-
declare const MergeStrategyMerge: MergeStrategy;
|
|
133
|
-
declare const MergeStrategyAppend: MergeStrategy;
|
|
134
|
-
type MergeStrategyTS = 'replace' | 'merge' | 'append';
|
|
135
|
-
/**
|
|
136
|
-
* AgentContextConfig is defined on the Agent to configure how context is managed
|
|
137
|
-
*/
|
|
138
|
-
interface AgentContextConfig {
|
|
139
|
-
/**
|
|
140
|
-
* Base schema - defines the expected shape of accumulated context
|
|
141
|
-
*/
|
|
142
|
-
schema: any;
|
|
143
|
-
/**
|
|
144
|
-
* Default/initial values when context is created
|
|
145
|
-
*/
|
|
146
|
-
defaultVariables?: {
|
|
147
|
-
[key: string]: any;
|
|
148
|
-
};
|
|
149
|
-
/**
|
|
150
|
-
* Whether to extend schema at runtime when new keys appear
|
|
151
|
-
*/
|
|
152
|
-
allowSchemaExtension: boolean;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Constants for size management
|
|
156
|
-
*/
|
|
157
|
-
declare const MaxExecutions = 100;
|
|
158
|
-
/**
|
|
159
|
-
* Constants for size management
|
|
160
|
-
*/
|
|
161
|
-
declare const ExecutionTTLHours = 72;
|
|
162
|
-
/**
|
|
163
|
-
* ExecutionPlan represents a planned sequence of tool executions
|
|
164
|
-
* that requires user approval before execution.
|
|
165
|
-
*/
|
|
166
|
-
interface ExecutionPlan {
|
|
167
|
-
/**
|
|
168
|
-
* Identity
|
|
169
|
-
*/
|
|
170
|
-
id: string;
|
|
171
|
-
chatKey: string;
|
|
172
|
-
agentId: string;
|
|
173
|
-
orgId: string;
|
|
174
|
-
/**
|
|
175
|
-
* Plan metadata
|
|
176
|
-
*/
|
|
177
|
-
title: string;
|
|
178
|
-
description: string;
|
|
179
|
-
createdAt: number;
|
|
180
|
-
/**
|
|
181
|
-
* Planned steps
|
|
182
|
-
*/
|
|
183
|
-
steps: PlannedStep[];
|
|
184
|
-
/**
|
|
185
|
-
* Status tracking
|
|
186
|
-
*/
|
|
187
|
-
status: PlanStatusTS;
|
|
188
|
-
approvedAt?: number;
|
|
189
|
-
approvedBy?: string;
|
|
190
|
-
rejectedAt?: number;
|
|
191
|
-
rejectionReason?: string;
|
|
192
|
-
/**
|
|
193
|
-
* Execution tracking (populated after approval)
|
|
194
|
-
*/
|
|
195
|
-
executionStartedAt?: number;
|
|
196
|
-
executionCompletedAt?: number;
|
|
197
|
-
currentStepIndex: number;
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* PlanStatus represents the status of an execution plan
|
|
201
|
-
*/
|
|
202
|
-
type PlanStatus = string;
|
|
203
|
-
declare const PlanStatusPendingApproval: PlanStatus;
|
|
204
|
-
declare const PlanStatusApproved: PlanStatus;
|
|
205
|
-
declare const PlanStatusExecuting: PlanStatus;
|
|
206
|
-
declare const PlanStatusCompleted: PlanStatus;
|
|
207
|
-
declare const PlanStatusRejected: PlanStatus;
|
|
208
|
-
declare const PlanStatusCancelled: PlanStatus;
|
|
209
|
-
type PlanStatusTS = 'pending_approval' | 'approved' | 'executing' | 'completed' | 'rejected' | 'cancelled';
|
|
210
|
-
/**
|
|
211
|
-
* PlannedStep represents a single step in an execution plan
|
|
212
|
-
*/
|
|
213
|
-
interface PlannedStep {
|
|
214
|
-
/**
|
|
215
|
-
* Identity
|
|
216
|
-
*/
|
|
217
|
-
id: string;
|
|
218
|
-
order: number;
|
|
219
|
-
/**
|
|
220
|
-
* Tool information
|
|
221
|
-
*/
|
|
222
|
-
toolName: string;
|
|
223
|
-
toolId?: string;
|
|
224
|
-
title: string;
|
|
225
|
-
description: string;
|
|
226
|
-
icon?: string;
|
|
227
|
-
/**
|
|
228
|
-
* Planned input (may reference outputs from previous steps)
|
|
229
|
-
*/
|
|
230
|
-
plannedInput: {
|
|
231
|
-
[key: string]: any;
|
|
232
|
-
};
|
|
233
|
-
/**
|
|
234
|
-
* Dependencies (step IDs that must complete before this one)
|
|
235
|
-
*/
|
|
236
|
-
dependsOn?: string[];
|
|
237
|
-
/**
|
|
238
|
-
* Optional: user can toggle individual steps
|
|
239
|
-
*/
|
|
240
|
-
enabled: boolean;
|
|
241
|
-
/**
|
|
242
|
-
* After execution (populated during/after execution)
|
|
243
|
-
*/
|
|
244
|
-
status: ExecutionStatusTS;
|
|
245
|
-
output?: {
|
|
246
|
-
[key: string]: any;
|
|
247
|
-
};
|
|
248
|
-
error?: string;
|
|
249
|
-
startedAt?: number;
|
|
250
|
-
completedAt?: number;
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* PlanApprovalConfig configures when an agent requires plan approval
|
|
254
|
-
*/
|
|
255
|
-
interface PlanApprovalConfig {
|
|
256
|
-
/**
|
|
257
|
-
* Always require approval for any multi-tool operation
|
|
258
|
-
*/
|
|
259
|
-
alwaysRequire: boolean;
|
|
260
|
-
/**
|
|
261
|
-
* Require approval only for these tool names
|
|
262
|
-
*/
|
|
263
|
-
requireForTools?: string[];
|
|
264
|
-
/**
|
|
265
|
-
* Require approval when estimated execution time exceeds threshold (seconds)
|
|
266
|
-
*/
|
|
267
|
-
timeThresholdSeconds?: number;
|
|
268
|
-
/**
|
|
269
|
-
* Require approval when number of steps exceeds threshold
|
|
270
|
-
*/
|
|
271
|
-
stepCountThreshold?: number;
|
|
272
|
-
/**
|
|
273
|
-
* Auto-approve if user has previously approved similar plans
|
|
274
|
-
*/
|
|
275
|
-
allowAutoApprove: boolean;
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* CreateToolDefinitionRequest represents a request to create a tool definition
|
|
279
|
-
*/
|
|
280
|
-
interface CreateToolDefinitionRequest {
|
|
281
|
-
orgId: string;
|
|
282
|
-
toolDefinition?: ToolDefinition;
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* UpdateToolDefinitionRequest represents a request to update a tool definition
|
|
286
|
-
*/
|
|
287
|
-
interface UpdateToolDefinitionRequest {
|
|
288
|
-
orgId: string;
|
|
289
|
-
toolDefinition?: ToolDefinition;
|
|
290
|
-
}
|
|
291
|
-
/**
|
|
292
|
-
* GetToolDefinitionRequest represents a request to get a tool definition
|
|
293
|
-
*/
|
|
294
|
-
interface GetToolDefinitionRequest {
|
|
295
|
-
orgId: string;
|
|
296
|
-
toolDefinitionId: string;
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* DeleteToolDefinitionRequest represents a request to delete a tool definition
|
|
300
|
-
*/
|
|
301
|
-
interface DeleteToolDefinitionRequest {
|
|
302
|
-
orgId: string;
|
|
303
|
-
toolDefinitionId: string;
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
* ListToolDefinitionsRequest represents a request to list tool definitions
|
|
307
|
-
*/
|
|
308
|
-
interface ListToolDefinitionsRequest {
|
|
309
|
-
orgId: string;
|
|
310
|
-
onlySystem?: boolean;
|
|
311
|
-
enabled?: boolean;
|
|
312
|
-
limit?: number;
|
|
313
|
-
offset?: number;
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* ToolDefinitionResponse represents a response containing a tool definition
|
|
317
|
-
*/
|
|
318
|
-
interface ToolDefinitionResponse {
|
|
319
|
-
toolDefinition?: ToolDefinition;
|
|
320
|
-
metadata: any;
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* ToolDefinitionsListResponse represents a response containing multiple tool definitions
|
|
324
|
-
*/
|
|
325
|
-
interface ToolDefinitionsListResponse {
|
|
326
|
-
toolDefinitions: ToolDefinition[];
|
|
327
|
-
total: number;
|
|
328
|
-
metadata: any;
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* CreateSubAgentRequest represents a request to create a sub-agent
|
|
332
|
-
*/
|
|
333
|
-
interface CreateSubAgentRequest {
|
|
334
|
-
orgId: string;
|
|
335
|
-
subAgent?: SubAgent;
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* UpdateSubAgentRequest represents a request to update a sub-agent
|
|
339
|
-
*/
|
|
340
|
-
interface UpdateSubAgentRequest {
|
|
341
|
-
orgId: string;
|
|
342
|
-
subAgent?: SubAgent;
|
|
343
|
-
}
|
|
344
|
-
/**
|
|
345
|
-
* GetSubAgentRequest represents a request to get a sub-agent
|
|
346
|
-
*/
|
|
347
|
-
interface GetSubAgentRequest {
|
|
348
|
-
orgId: string;
|
|
349
|
-
subAgentId: string;
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* DeleteSubAgentRequest represents a request to delete a sub-agent
|
|
353
|
-
*/
|
|
354
|
-
interface DeleteSubAgentRequest {
|
|
355
|
-
orgId: string;
|
|
356
|
-
subAgentId: string;
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
|
-
* ListSubAgentsRequest represents a request to list sub-agents
|
|
360
|
-
*/
|
|
361
|
-
interface ListSubAgentsRequest {
|
|
362
|
-
orgId: string;
|
|
363
|
-
onlySystem?: boolean;
|
|
364
|
-
enabled?: boolean;
|
|
365
|
-
limit?: number;
|
|
366
|
-
offset?: number;
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* SubAgentResponse represents a response containing a sub-agent
|
|
370
|
-
*/
|
|
371
|
-
interface SubAgentResponse {
|
|
372
|
-
subAgent?: SubAgent;
|
|
373
|
-
metadata: any;
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* SubAgentsListResponse represents a response containing multiple sub-agents
|
|
377
|
-
*/
|
|
378
|
-
interface SubAgentsListResponse {
|
|
379
|
-
subAgents: SubAgent[];
|
|
380
|
-
total: number;
|
|
381
|
-
metadata: any;
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* GetToolDefinitionsByIDsRequest represents a request to get multiple tool definitions by IDs
|
|
385
|
-
*/
|
|
386
|
-
interface GetToolDefinitionsByIDsRequest {
|
|
387
|
-
orgId: string;
|
|
388
|
-
toolDefinitionIds: string[];
|
|
389
|
-
}
|
|
390
|
-
/**
|
|
391
|
-
* GetToolDefinitionsByIDsResponse represents a response containing multiple tool definitions
|
|
392
|
-
*/
|
|
393
|
-
interface GetToolDefinitionsByIDsResponse {
|
|
394
|
-
toolDefinitions: ToolDefinition[];
|
|
395
|
-
metadata: any;
|
|
396
|
-
}
|
|
397
|
-
/**
|
|
398
|
-
* GetSubAgentsByIDsRequest represents a request to get multiple sub-agents by IDs
|
|
399
|
-
*/
|
|
400
|
-
interface GetSubAgentsByIDsRequest {
|
|
401
|
-
orgId: string;
|
|
402
|
-
subAgentIds: string[];
|
|
403
|
-
}
|
|
404
|
-
/**
|
|
405
|
-
* GetSubAgentsByIDsResponse represents a response containing multiple sub-agents
|
|
406
|
-
*/
|
|
407
|
-
interface GetSubAgentsByIDsResponse {
|
|
408
|
-
subAgents: SubAgent[];
|
|
409
|
-
metadata: any;
|
|
410
|
-
}
|
|
411
|
-
interface ExecuteToolRequest {
|
|
412
|
-
orgId: string;
|
|
413
|
-
agentId?: string;
|
|
414
|
-
tool?: AgentTool;
|
|
415
|
-
input: {
|
|
416
|
-
[key: string]: any;
|
|
417
|
-
};
|
|
418
|
-
metadata?: {
|
|
419
|
-
[key: string]: any;
|
|
420
|
-
};
|
|
421
|
-
context?: {
|
|
422
|
-
[key: string]: any;
|
|
423
|
-
};
|
|
424
|
-
chatKey?: string;
|
|
425
|
-
}
|
|
426
|
-
interface ExecuteToolResponse {
|
|
427
|
-
result: {
|
|
428
|
-
[key: string]: any;
|
|
429
|
-
};
|
|
430
|
-
metadata: any;
|
|
431
|
-
}
|
|
432
|
-
/**
|
|
433
|
-
* CreateSkillRequest represents a request to create a skill
|
|
434
|
-
*/
|
|
435
|
-
interface CreateSkillRequest {
|
|
436
|
-
orgId: string;
|
|
437
|
-
skill?: Skill;
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* UpdateSkillRequest represents a request to update a skill
|
|
441
|
-
*/
|
|
442
|
-
interface UpdateSkillRequest {
|
|
443
|
-
orgId: string;
|
|
444
|
-
skill?: Skill;
|
|
445
|
-
}
|
|
446
|
-
/**
|
|
447
|
-
* GetSkillRequest represents a request to get a skill
|
|
448
|
-
*/
|
|
449
|
-
interface GetSkillRequest {
|
|
450
|
-
orgId: string;
|
|
451
|
-
skillId: string;
|
|
452
|
-
}
|
|
453
|
-
/**
|
|
454
|
-
* DeleteSkillRequest represents a request to delete a skill
|
|
455
|
-
*/
|
|
456
|
-
interface DeleteSkillRequest {
|
|
457
|
-
orgId: string;
|
|
458
|
-
skillId: string;
|
|
459
|
-
}
|
|
460
|
-
/**
|
|
461
|
-
* ListSkillsRequest represents a request to list skills
|
|
462
|
-
*/
|
|
463
|
-
interface ListSkillsRequest {
|
|
464
|
-
orgId: string;
|
|
465
|
-
category?: SkillCategory;
|
|
466
|
-
onlySystem?: boolean;
|
|
467
|
-
enabled?: boolean;
|
|
468
|
-
limit?: number;
|
|
469
|
-
offset?: number;
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* SkillResponse represents a response containing a skill
|
|
473
|
-
*/
|
|
474
|
-
interface SkillResponse {
|
|
475
|
-
skill?: Skill;
|
|
476
|
-
metadata: any;
|
|
477
|
-
}
|
|
478
|
-
/**
|
|
479
|
-
* SkillsListResponse represents a response containing multiple skills
|
|
480
|
-
*/
|
|
481
|
-
interface SkillsListResponse {
|
|
482
|
-
skills: Skill[];
|
|
483
|
-
total: number;
|
|
484
|
-
metadata: any;
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* GetSkillsByIDsRequest represents a request to get multiple skills by IDs
|
|
488
|
-
*/
|
|
489
|
-
interface GetSkillsByIDsRequest {
|
|
490
|
-
orgId: string;
|
|
491
|
-
skillIds: string[];
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* GetSkillsByIDsResponse represents a response containing multiple skills
|
|
495
|
-
*/
|
|
496
|
-
interface GetSkillsByIDsResponse {
|
|
497
|
-
skills: Skill[];
|
|
498
|
-
metadata: any;
|
|
499
|
-
}
|
|
500
|
-
/**
|
|
501
|
-
* UpdateSkillOrgConfigRequest updates org-level config for a skill
|
|
502
|
-
*/
|
|
503
|
-
interface UpdateSkillOrgConfigRequest {
|
|
504
|
-
orgId: string;
|
|
505
|
-
skillId: string;
|
|
506
|
-
orgConfig: {
|
|
507
|
-
[key: string]: any;
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
/**
|
|
511
|
-
* UpdateAgentSkillConfigRequest updates agent-level config for a skill
|
|
512
|
-
*/
|
|
513
|
-
interface UpdateAgentSkillConfigRequest {
|
|
514
|
-
orgId: string;
|
|
515
|
-
agentId: string;
|
|
516
|
-
skillId: string;
|
|
517
|
-
config: {
|
|
518
|
-
[key: string]: any;
|
|
519
|
-
};
|
|
520
|
-
}
|
|
521
|
-
/**
|
|
522
|
-
* GetAgentSkillConfigRequest gets agent-level config for a skill
|
|
523
|
-
*/
|
|
524
|
-
interface GetAgentSkillConfigRequest {
|
|
525
|
-
orgId: string;
|
|
526
|
-
agentId: string;
|
|
527
|
-
skillId: string;
|
|
528
|
-
}
|
|
529
|
-
/**
|
|
530
|
-
* AgentSkillConfigResponse contains agent skill config
|
|
531
|
-
*/
|
|
532
|
-
interface AgentSkillConfigResponse {
|
|
533
|
-
agentSkill?: AgentSkill;
|
|
534
|
-
metadata: any;
|
|
535
|
-
}
|
|
536
|
-
/**
|
|
537
|
-
* GetSkillUserConfigRequest gets user-level config for a skill
|
|
538
|
-
*/
|
|
539
|
-
interface GetSkillUserConfigRequest {
|
|
540
|
-
orgId: string;
|
|
541
|
-
userId: string;
|
|
542
|
-
skillId: string;
|
|
543
|
-
agentId?: string;
|
|
544
|
-
}
|
|
545
|
-
/**
|
|
546
|
-
* UpdateSkillUserConfigRequest updates user-level config for a skill
|
|
547
|
-
*/
|
|
548
|
-
interface UpdateSkillUserConfigRequest {
|
|
549
|
-
orgId: string;
|
|
550
|
-
userId: string;
|
|
551
|
-
skillId: string;
|
|
552
|
-
agentId?: string;
|
|
553
|
-
enabled?: boolean;
|
|
554
|
-
displayOrder?: number;
|
|
555
|
-
config?: {
|
|
556
|
-
[key: string]: any;
|
|
557
|
-
};
|
|
558
|
-
}
|
|
559
|
-
/**
|
|
560
|
-
* DeleteSkillUserConfigRequest deletes user-level config for a skill
|
|
561
|
-
*/
|
|
562
|
-
interface DeleteSkillUserConfigRequest {
|
|
563
|
-
orgId: string;
|
|
564
|
-
userId: string;
|
|
565
|
-
skillId: string;
|
|
566
|
-
agentId?: string;
|
|
567
|
-
}
|
|
568
|
-
/**
|
|
569
|
-
* ListSkillUserConfigRequest lists user configs for skills
|
|
570
|
-
*/
|
|
571
|
-
interface ListSkillUserConfigRequest {
|
|
572
|
-
orgId: string;
|
|
573
|
-
userId: string;
|
|
574
|
-
agentId?: string;
|
|
575
|
-
limit?: number;
|
|
576
|
-
offset?: number;
|
|
577
|
-
}
|
|
578
|
-
/**
|
|
579
|
-
* SkillUserConfigResponse contains a user's skill config
|
|
580
|
-
*/
|
|
581
|
-
interface SkillUserConfigResponse {
|
|
582
|
-
userConfig?: SkillUserConfig;
|
|
583
|
-
metadata: any;
|
|
584
|
-
}
|
|
585
|
-
/**
|
|
586
|
-
* SkillUserConfigListResponse contains multiple user skill configs
|
|
587
|
-
*/
|
|
588
|
-
interface SkillUserConfigListResponse {
|
|
589
|
-
userConfigs: SkillUserConfig[];
|
|
590
|
-
total: number;
|
|
591
|
-
metadata: any;
|
|
592
|
-
}
|
|
593
|
-
/**
|
|
594
|
-
* ResolveSkillConfigRequest resolves merged config for a skill (org + agent + user)
|
|
595
|
-
*/
|
|
596
|
-
interface ResolveSkillConfigRequest {
|
|
597
|
-
orgId: string;
|
|
598
|
-
userId: string;
|
|
599
|
-
agentId: string;
|
|
600
|
-
skillId: string;
|
|
601
|
-
}
|
|
602
|
-
/**
|
|
603
|
-
* ResolveSkillConfigResponse contains the merged skill config
|
|
604
|
-
*/
|
|
605
|
-
interface ResolveSkillConfigResponse {
|
|
606
|
-
skillId: string;
|
|
607
|
-
skillName: string;
|
|
608
|
-
resolvedConfig: {
|
|
609
|
-
[key: string]: any;
|
|
610
|
-
};
|
|
611
|
-
/**
|
|
612
|
-
* Source indicates which level each config key came from
|
|
613
|
-
*/
|
|
614
|
-
configSources?: {
|
|
615
|
-
[key: string]: string;
|
|
616
|
-
};
|
|
617
|
-
metadata: any;
|
|
618
|
-
}
|
|
619
|
-
/**
|
|
620
|
-
* CreateAgentJobRequest represents a request to create an agent job
|
|
621
|
-
*/
|
|
622
|
-
interface CreateAgentJobRequest {
|
|
623
|
-
orgId: string;
|
|
624
|
-
job?: AgentJob;
|
|
625
|
-
}
|
|
626
|
-
/**
|
|
627
|
-
* UpdateAgentJobRequest represents a request to update an agent job
|
|
628
|
-
*/
|
|
629
|
-
interface UpdateAgentJobRequest {
|
|
630
|
-
orgId: string;
|
|
631
|
-
job?: AgentJob;
|
|
632
|
-
}
|
|
633
|
-
/**
|
|
634
|
-
* AgentJobIDRequest represents a request that only needs org + job ID
|
|
635
|
-
* Used for: Get, Delete, Pause, Resume operations
|
|
636
|
-
*/
|
|
637
|
-
interface AgentJobIDRequest {
|
|
638
|
-
orgId: string;
|
|
639
|
-
jobId: string;
|
|
640
|
-
}
|
|
641
|
-
/**
|
|
642
|
-
* ListAgentJobsRequest represents a request to list agent jobs
|
|
643
|
-
*/
|
|
644
|
-
interface ListAgentJobsRequest {
|
|
645
|
-
orgId: string;
|
|
646
|
-
agentId?: string;
|
|
647
|
-
ownerId?: string;
|
|
648
|
-
scope?: JobScope;
|
|
649
|
-
status?: JobStatus;
|
|
650
|
-
frequency?: JobFrequency;
|
|
651
|
-
limit?: number;
|
|
652
|
-
offset?: number;
|
|
653
|
-
}
|
|
654
|
-
/**
|
|
655
|
-
* AgentJobResponse represents a response containing an agent job
|
|
656
|
-
*/
|
|
657
|
-
interface AgentJobResponse {
|
|
658
|
-
job?: AgentJob;
|
|
659
|
-
metadata: any;
|
|
660
|
-
}
|
|
661
|
-
/**
|
|
662
|
-
* AgentJobsListResponse represents a response containing multiple agent jobs
|
|
663
|
-
*/
|
|
664
|
-
interface AgentJobsListResponse {
|
|
665
|
-
jobs: AgentJob[];
|
|
666
|
-
total: number;
|
|
667
|
-
metadata: any;
|
|
668
|
-
}
|
|
669
|
-
/**
|
|
670
|
-
* AgentJobTriggerRequest represents a request from scheduler service to trigger jobs
|
|
671
|
-
* The trigger processes ALL orgs automatically by fetching them via admin.orgs.list
|
|
672
|
-
*/
|
|
673
|
-
interface AgentJobTriggerRequest {
|
|
674
|
-
timestamp: string;
|
|
675
|
-
}
|
|
676
|
-
/**
|
|
677
|
-
* AgentJobTriggerResponse represents the response for job trigger processing
|
|
678
|
-
*/
|
|
679
|
-
interface AgentJobTriggerResponse {
|
|
680
|
-
results: JobExecutionResult[];
|
|
681
|
-
total: number;
|
|
682
|
-
executed: number;
|
|
683
|
-
skipped: number;
|
|
684
|
-
errors: number;
|
|
685
|
-
metadata: any;
|
|
686
|
-
}
|
|
687
|
-
/**
|
|
688
|
-
* ListExecutionsByJobRequest represents a request to list executions for a job
|
|
689
|
-
*/
|
|
690
|
-
interface ListExecutionsByJobRequest {
|
|
691
|
-
orgId: string;
|
|
692
|
-
jobId: string;
|
|
693
|
-
limit?: number;
|
|
694
|
-
offset?: number;
|
|
695
|
-
}
|
|
696
|
-
/**
|
|
697
|
-
* ListExecutionsByAgentRequest represents a request to list executions for an agent
|
|
698
|
-
*/
|
|
699
|
-
interface ListExecutionsByAgentRequest {
|
|
700
|
-
orgId: string;
|
|
701
|
-
agentId: string;
|
|
702
|
-
limit?: number;
|
|
703
|
-
offset?: number;
|
|
704
|
-
}
|
|
705
|
-
/**
|
|
706
|
-
* ListExecutionsResponse represents the response with executions list
|
|
707
|
-
*/
|
|
708
|
-
interface ListExecutionsResponse {
|
|
709
|
-
executions: JobExecution[];
|
|
710
|
-
total: number;
|
|
711
|
-
metadata: any;
|
|
712
|
-
}
|
|
713
|
-
/**
|
|
714
|
-
* GetExecutionRequest represents a request to get an execution
|
|
715
|
-
*/
|
|
716
|
-
interface GetExecutionRequest {
|
|
717
|
-
orgId: string;
|
|
718
|
-
executionId: string;
|
|
719
|
-
}
|
|
720
|
-
/**
|
|
721
|
-
* ExecutionResponse represents the response with a single execution
|
|
722
|
-
*/
|
|
723
|
-
interface ExecutionResponse {
|
|
724
|
-
execution?: JobExecution;
|
|
725
|
-
metadata: any;
|
|
726
|
-
}
|
|
727
|
-
/**
|
|
728
|
-
* TTLCleanupRequest represents a request to run TTL cleanup
|
|
729
|
-
*/
|
|
730
|
-
interface TTLCleanupRequest {
|
|
731
|
-
retentionDays?: number;
|
|
732
|
-
}
|
|
733
|
-
/**
|
|
734
|
-
* TTLCleanupResponse represents the response from TTL cleanup
|
|
735
|
-
*/
|
|
736
|
-
interface TTLCleanupResponse {
|
|
737
|
-
totalDeleted: number;
|
|
738
|
-
orgResults?: {
|
|
739
|
-
[key: string]: number;
|
|
740
|
-
};
|
|
741
|
-
duration: string;
|
|
742
|
-
metadata: any;
|
|
743
|
-
}
|
|
744
|
-
type AgentTypeTS = 'chat' | 'react';
|
|
745
|
-
type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';
|
|
746
|
-
type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';
|
|
747
|
-
type SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';
|
|
748
|
-
type IntegrationProviderTS = 'google' | 'microsoft';
|
|
749
|
-
type IntegrationTypeTS = 'email' | 'calendar' | 'drive';
|
|
750
|
-
type SkillCategory = string;
|
|
751
|
-
declare const SkillCategoryProductivity: SkillCategory;
|
|
752
|
-
declare const SkillCategoryCreative: SkillCategory;
|
|
753
|
-
declare const SkillCategoryIntegration: SkillCategory;
|
|
754
|
-
declare const SkillCategoryAnalysis: SkillCategory;
|
|
755
|
-
declare const SkillCategoryCommunication: SkillCategory;
|
|
756
|
-
declare const SkillCategoryCustom: SkillCategory;
|
|
757
|
-
/**
|
|
758
|
-
* IntegrationRequirement specifies an OAuth integration needed for a skill to function
|
|
759
|
-
* Skills with integration requirements are only available to users who have connected the required provider
|
|
760
|
-
*/
|
|
761
|
-
interface IntegrationRequirement {
|
|
5
|
+
* AiTaskOutcome mirrors the ai_task_outcomes table schema (subset for API use)
|
|
6
|
+
*/
|
|
7
|
+
interface AiTaskOutcome {
|
|
8
|
+
user_id: string;
|
|
9
|
+
user_name: string;
|
|
10
|
+
user_email: string;
|
|
11
|
+
department_name: string;
|
|
12
|
+
task_id: string;
|
|
13
|
+
parent_task_id: string;
|
|
14
|
+
task_type: string;
|
|
15
|
+
task_subtype: string;
|
|
16
|
+
task_title: string;
|
|
17
|
+
started_at: string;
|
|
18
|
+
completed_at: string;
|
|
19
|
+
duration_s: number;
|
|
20
|
+
ai_used: number;
|
|
21
|
+
autonomy_level: string;
|
|
22
|
+
contained: number;
|
|
23
|
+
escalated: number;
|
|
24
|
+
reopened: number;
|
|
25
|
+
rework_count: number;
|
|
762
26
|
provider: string;
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
tools?: AgentTool[];
|
|
779
|
-
systemPromptExtension?: string;
|
|
780
|
-
iconName?: string;
|
|
781
|
-
configSchema?: JSONSchema;
|
|
782
|
-
config?: {
|
|
783
|
-
[key: string]: any;
|
|
784
|
-
};
|
|
785
|
-
requiredIntegrations?: IntegrationRequirement[];
|
|
786
|
-
/**
|
|
787
|
-
* Config schemas for each level (JSON Schema definitions)
|
|
788
|
-
*/
|
|
789
|
-
orgConfigSchema?: JSONSchema;
|
|
790
|
-
agentConfigSchema?: JSONSchema;
|
|
791
|
-
userConfigSchema?: JSONSchema;
|
|
792
|
-
orgConfig?: {
|
|
27
|
+
model_name: string;
|
|
28
|
+
agent_id: string;
|
|
29
|
+
agent_name: string;
|
|
30
|
+
toolset: string[];
|
|
31
|
+
input_tokens: number;
|
|
32
|
+
output_tokens: number;
|
|
33
|
+
tool_calls_count: number;
|
|
34
|
+
cost_usd: number;
|
|
35
|
+
outcome_status: string;
|
|
36
|
+
acceptance: string;
|
|
37
|
+
quality_score?: number;
|
|
38
|
+
csat_score?: number;
|
|
39
|
+
error_code: string;
|
|
40
|
+
reviewer_name?: string;
|
|
41
|
+
trace_meta?: {
|
|
793
42
|
[key: string]: any;
|
|
794
43
|
};
|
|
795
|
-
|
|
796
|
-
isSystem?: boolean;
|
|
797
|
-
persisted?: boolean;
|
|
798
|
-
displayOrder?: number;
|
|
799
|
-
createdAt?: string;
|
|
800
|
-
updatedAt?: string;
|
|
801
|
-
}
|
|
802
|
-
/**
|
|
803
|
-
* AgentSkill represents an agent's configuration for a specific skill
|
|
804
|
-
*/
|
|
805
|
-
interface AgentSkill {
|
|
806
|
-
skillId: string;
|
|
807
|
-
skillName?: string;
|
|
808
|
-
enabled: boolean;
|
|
809
|
-
order: number;
|
|
810
|
-
config?: {
|
|
44
|
+
tool_calls_json?: {
|
|
811
45
|
[key: string]: any;
|
|
812
46
|
};
|
|
813
|
-
|
|
814
|
-
/**
|
|
815
|
-
* SkillUserConfig stores user-level preferences and OAuth tokens for a skill
|
|
816
|
-
*/
|
|
817
|
-
interface SkillUserConfig {
|
|
818
|
-
id: string;
|
|
819
|
-
userId: string;
|
|
820
|
-
skillId: string;
|
|
821
|
-
agentId?: string;
|
|
822
|
-
enabled: boolean;
|
|
823
|
-
displayOrder?: number;
|
|
824
|
-
config?: {
|
|
47
|
+
custom_dims?: {
|
|
825
48
|
[key: string]: any;
|
|
826
49
|
};
|
|
827
|
-
|
|
828
|
-
updatedAt: string;
|
|
50
|
+
updated_at: string;
|
|
829
51
|
}
|
|
830
|
-
type AgentType = string;
|
|
831
|
-
declare const AgentTypeChat: AgentType;
|
|
832
|
-
declare const AgentTypeReact: AgentType;
|
|
833
|
-
type AgentSubType = string;
|
|
834
|
-
/**
|
|
835
|
-
* Agent SubTypes
|
|
836
|
-
*/
|
|
837
|
-
declare const AgentSubTypeChat: AgentSubType;
|
|
838
|
-
/**
|
|
839
|
-
* Agent SubTypes
|
|
840
|
-
*/
|
|
841
|
-
declare const AgentSubTypeReact: AgentSubType;
|
|
842
|
-
/**
|
|
843
|
-
* Agent SubTypes
|
|
844
|
-
*/
|
|
845
|
-
declare const AgentSubTypeWorkflow: AgentSubType;
|
|
846
52
|
/**
|
|
847
|
-
*
|
|
53
|
+
* TaskOutcomesInsertRequest is used to insert new outcomes rows
|
|
848
54
|
*/
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
declare const AgentStatusActive: AgentStatus;
|
|
853
|
-
declare const AgentStatusInactive: AgentStatus;
|
|
854
|
-
declare const AgentStatusArchived: AgentStatus;
|
|
855
|
-
interface DefaultDefinitions {
|
|
856
|
-
agents: Agent[];
|
|
857
|
-
toolDefinitions: ToolDefinition[];
|
|
858
|
-
subAgents: SubAgent[];
|
|
859
|
-
skills?: Skill[];
|
|
55
|
+
interface TaskOutcomesInsertRequest {
|
|
56
|
+
org_id: string;
|
|
57
|
+
outcomes: AiTaskOutcome[];
|
|
860
58
|
}
|
|
861
59
|
/**
|
|
862
|
-
*
|
|
863
|
-
* Includes denormalized tool information to avoid joins at runtime
|
|
60
|
+
* TaskOutcomeInsertionResponse carries only response metadata
|
|
864
61
|
*/
|
|
865
|
-
interface
|
|
866
|
-
|
|
867
|
-
toolName: string;
|
|
868
|
-
title?: string;
|
|
869
|
-
description?: string;
|
|
870
|
-
type?: string;
|
|
871
|
-
inputSchema?: JSONSchema;
|
|
872
|
-
outputSchema?: JSONSchema;
|
|
873
|
-
configSchema?: JSONSchema;
|
|
874
|
-
config?: {
|
|
875
|
-
[key: string]: any;
|
|
876
|
-
};
|
|
877
|
-
mergeConfig?: MergeConfig;
|
|
878
|
-
enabled: boolean;
|
|
879
|
-
isSystem?: boolean;
|
|
880
|
-
createdAt?: string;
|
|
881
|
-
updatedAt?: string;
|
|
882
|
-
order?: number;
|
|
62
|
+
interface TaskOutcomeInsertionResponse {
|
|
63
|
+
metadata: ResponseMetadata;
|
|
883
64
|
}
|
|
884
65
|
/**
|
|
885
|
-
*
|
|
66
|
+
* TaskOutcomeStatusUpdateRequest is used to update the status of an existing task outcome
|
|
886
67
|
*/
|
|
887
|
-
interface
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
subType: AgentSubTypeTS;
|
|
893
|
-
name: string;
|
|
894
|
-
title: string;
|
|
895
|
-
description?: string;
|
|
896
|
-
status: AgentStatusTS;
|
|
897
|
-
version: string;
|
|
898
|
-
/**
|
|
899
|
-
* === LLM CONFIG ===
|
|
900
|
-
*/
|
|
901
|
-
provider: string;
|
|
902
|
-
model: string;
|
|
903
|
-
temperature: number;
|
|
904
|
-
maxTokens: number;
|
|
905
|
-
systemPrompt: string;
|
|
906
|
-
goal?: string;
|
|
907
|
-
/**
|
|
908
|
-
* Shared metadata
|
|
909
|
-
*/
|
|
910
|
-
tags?: string[];
|
|
911
|
-
isDefault: boolean;
|
|
912
|
-
isPublic: boolean;
|
|
913
|
-
/**
|
|
914
|
-
* === Tool and SubAgent References ===
|
|
915
|
-
*/
|
|
916
|
-
tools?: AgentTool[];
|
|
917
|
-
subAgentIds?: string[];
|
|
918
|
-
/**
|
|
919
|
-
* === Skills Configuration ===
|
|
920
|
-
*/
|
|
921
|
-
skills?: AgentSkill[];
|
|
922
|
-
/**
|
|
923
|
-
* === Essential Configs ===
|
|
924
|
-
*/
|
|
925
|
-
csatConfig: CSATConfig;
|
|
926
|
-
handoffConfig: HandoffConfig;
|
|
927
|
-
/**
|
|
928
|
-
* === Widget Embed Config ===
|
|
929
|
-
*/
|
|
930
|
-
widgetConfig?: WidgetConfig;
|
|
931
|
-
/**
|
|
932
|
-
* === TYPE-SPECIFIC CORE CONFIG ===
|
|
933
|
-
*/
|
|
934
|
-
reactConfig?: ReactAgentConfig;
|
|
935
|
-
/**
|
|
936
|
-
* === CROSS-CUTTING FEATURES (can be used by any agent type) ===
|
|
937
|
-
*/
|
|
938
|
-
userSuggestedActionsConfig?: UserSuggestedActionsConfig;
|
|
939
|
-
/**
|
|
940
|
-
* === AGENT CONTEXT CONFIG ===
|
|
941
|
-
* Defines how AgentContext is initialized and managed for this agent
|
|
942
|
-
*/
|
|
943
|
-
contextConfig?: AgentContextConfig;
|
|
944
|
-
/**
|
|
945
|
-
* === SCHEMA-DRIVEN AGENT CONFIG ===
|
|
946
|
-
* Use ConfigSchema to auto-generate UI and validate values in Config
|
|
947
|
-
*/
|
|
948
|
-
configSchema: JSONSchema;
|
|
949
|
-
config?: {
|
|
950
|
-
[key: string]: any;
|
|
951
|
-
};
|
|
952
|
-
/**
|
|
953
|
-
* === UI DISPLAY CONFIG ===
|
|
954
|
-
*/
|
|
955
|
-
iconName?: string;
|
|
956
|
-
capabilities?: string[];
|
|
957
|
-
samplePrompts?: string[];
|
|
958
|
-
/**
|
|
959
|
-
* === SHARED BEHAVIOR CONFIG ===
|
|
960
|
-
*/
|
|
961
|
-
responseStyle?: string;
|
|
962
|
-
personalityTraits?: string[];
|
|
963
|
-
fallbackMessage?: string;
|
|
964
|
-
/**
|
|
965
|
-
* === SHARED PERFORMANCE CONFIG ===
|
|
966
|
-
*/
|
|
967
|
-
responseDelay?: number;
|
|
968
|
-
maxConcurrency?: number;
|
|
969
|
-
sessionTimeout?: number;
|
|
970
|
-
/**
|
|
971
|
-
* Audit fields
|
|
972
|
-
*/
|
|
973
|
-
createdAt: string;
|
|
974
|
-
updatedAt: string;
|
|
975
|
-
createdBy: string;
|
|
976
|
-
updatedBy: string;
|
|
977
|
-
metadata?: {
|
|
978
|
-
[key: string]: any;
|
|
979
|
-
};
|
|
68
|
+
interface TaskOutcomeStatusUpdateRequest {
|
|
69
|
+
org_id: string;
|
|
70
|
+
task_id: string;
|
|
71
|
+
outcome_status: string;
|
|
72
|
+
completed_at?: string;
|
|
980
73
|
}
|
|
981
74
|
/**
|
|
982
|
-
*
|
|
75
|
+
* TaskOutcomeStatusUpdateResponse carries only response metadata
|
|
983
76
|
*/
|
|
984
|
-
interface
|
|
985
|
-
|
|
986
|
-
triggerKeywords: string[];
|
|
987
|
-
queueId?: string;
|
|
988
|
-
handoffMessage: string;
|
|
77
|
+
interface TaskOutcomeStatusUpdateResponse {
|
|
78
|
+
metadata: ResponseMetadata;
|
|
989
79
|
}
|
|
990
80
|
/**
|
|
991
|
-
*
|
|
81
|
+
* Subjects for Hub AI Task Outcomes
|
|
992
82
|
*/
|
|
993
|
-
|
|
994
|
-
enabled: boolean;
|
|
995
|
-
widgetId: string;
|
|
996
|
-
appearance: WidgetAppearance;
|
|
997
|
-
behavior: WidgetBehavior;
|
|
998
|
-
security: WidgetSecurity;
|
|
999
|
-
}
|
|
83
|
+
declare const HubAnalyticsGetTaskOutcomes = "hub.analytics.get_task_outcomes";
|
|
1000
84
|
/**
|
|
1001
|
-
*
|
|
85
|
+
* Subjects for Hub AI Task Outcomes
|
|
1002
86
|
*/
|
|
1003
|
-
|
|
1004
|
-
position: string;
|
|
1005
|
-
primaryColor: string;
|
|
1006
|
-
backgroundColor: string;
|
|
1007
|
-
textColor: string;
|
|
1008
|
-
borderRadius: number;
|
|
1009
|
-
bubbleSize: number;
|
|
1010
|
-
bubbleIconUrl?: string;
|
|
1011
|
-
}
|
|
87
|
+
declare const HubAnalyticsGetTaskMetrics = "hub.analytics.get_task_metrics";
|
|
1012
88
|
/**
|
|
1013
|
-
*
|
|
89
|
+
* Subjects for Hub AI Task Outcomes
|
|
1014
90
|
*/
|
|
1015
|
-
|
|
1016
|
-
welcomeMessage: string;
|
|
1017
|
-
suggestedPrompts?: string[];
|
|
1018
|
-
autoOpenDelay: number;
|
|
1019
|
-
showPoweredBy: boolean;
|
|
1020
|
-
}
|
|
91
|
+
declare const HubEventsInsertTaskOutcomes = "hub.events.insert_task_outcomes";
|
|
1021
92
|
/**
|
|
1022
|
-
*
|
|
93
|
+
* Subjects for Hub AI Task Outcomes
|
|
1023
94
|
*/
|
|
1024
|
-
|
|
1025
|
-
allowedDomains: string[];
|
|
1026
|
-
}
|
|
1027
|
-
/**
|
|
1028
|
-
* AgentFilters for filtering agents in list operations
|
|
1029
|
-
*/
|
|
1030
|
-
interface AgentFilters {
|
|
1031
|
-
product?: ProductNameTS;
|
|
1032
|
-
type?: AgentType;
|
|
1033
|
-
subType?: AgentSubType;
|
|
1034
|
-
status?: AgentStatus;
|
|
1035
|
-
isDefault?: boolean;
|
|
1036
|
-
isPublic?: boolean;
|
|
1037
|
-
tags?: string[];
|
|
1038
|
-
limit?: number;
|
|
1039
|
-
offset?: number;
|
|
1040
|
-
}
|
|
1041
|
-
/**
|
|
1042
|
-
* AgentSummary is a lightweight representation of an agent for list views
|
|
1043
|
-
* Contains essential display fields plus metadata needed for chat initialization
|
|
1044
|
-
*/
|
|
1045
|
-
interface AgentSummary {
|
|
1046
|
-
id: string;
|
|
1047
|
-
name: string;
|
|
1048
|
-
title: string;
|
|
1049
|
-
description?: string;
|
|
1050
|
-
iconName?: string;
|
|
1051
|
-
type: AgentTypeTS;
|
|
1052
|
-
status: AgentStatusTS;
|
|
1053
|
-
isDefault: boolean;
|
|
1054
|
-
isPublic: boolean;
|
|
1055
|
-
capabilities?: string[];
|
|
1056
|
-
samplePrompts?: string[];
|
|
1057
|
-
skills?: AgentSkill[];
|
|
1058
|
-
metadata?: {
|
|
1059
|
-
[key: string]: any;
|
|
1060
|
-
};
|
|
1061
|
-
}
|
|
1062
|
-
/**
|
|
1063
|
-
* ToolDefinition represents an abstract/generic tool definition that can be customized per agent
|
|
1064
|
-
* This is the "template" that agents use to create their AgentTool configurations
|
|
1065
|
-
*/
|
|
1066
|
-
interface ToolDefinition {
|
|
1067
|
-
id: string;
|
|
1068
|
-
name: string;
|
|
1069
|
-
title: string;
|
|
1070
|
-
description: string;
|
|
1071
|
-
type?: string;
|
|
1072
|
-
inputSchema: JSONSchema;
|
|
1073
|
-
outputSchema?: JSONSchema;
|
|
1074
|
-
configSchema: JSONSchema;
|
|
1075
|
-
config?: {
|
|
1076
|
-
[key: string]: any;
|
|
1077
|
-
};
|
|
1078
|
-
mergeConfig?: MergeConfig;
|
|
1079
|
-
enabled: boolean;
|
|
1080
|
-
isSystem: boolean;
|
|
1081
|
-
metadata?: {
|
|
1082
|
-
[key: string]: any;
|
|
1083
|
-
};
|
|
1084
|
-
createdAt: string;
|
|
1085
|
-
updatedAt: string;
|
|
1086
|
-
}
|
|
1087
|
-
/**
|
|
1088
|
-
* ToolExecution represents the execution context for a tool
|
|
1089
|
-
*/
|
|
1090
|
-
interface ToolExecution {
|
|
1091
|
-
id: string;
|
|
1092
|
-
title: string;
|
|
1093
|
-
toolId: string;
|
|
1094
|
-
toolName: string;
|
|
1095
|
-
status: ToolExecutionStatusTS;
|
|
1096
|
-
input: {
|
|
1097
|
-
[key: string]: any;
|
|
1098
|
-
};
|
|
1099
|
-
result?: {
|
|
1100
|
-
[key: string]: any;
|
|
1101
|
-
};
|
|
1102
|
-
error?: string;
|
|
1103
|
-
context?: {
|
|
1104
|
-
[key: string]: any;
|
|
1105
|
-
};
|
|
1106
|
-
startedAt: number;
|
|
1107
|
-
completedAt?: number;
|
|
1108
|
-
retryCount: number;
|
|
1109
|
-
progress?: ToolExecutionProgress[];
|
|
1110
|
-
}
|
|
1111
|
-
interface ToolExecutionProgress {
|
|
1112
|
-
status: ToolExecutionStatusTS;
|
|
1113
|
-
timestamp: number;
|
|
1114
|
-
message?: string;
|
|
1115
|
-
error?: string;
|
|
1116
|
-
metadata?: {
|
|
1117
|
-
[key: string]: any;
|
|
1118
|
-
};
|
|
1119
|
-
}
|
|
1120
|
-
/**
|
|
1121
|
-
* ToolExecutionStatus represents the status of a tool execution
|
|
1122
|
-
*/
|
|
1123
|
-
type ToolExecutionStatus = string;
|
|
1124
|
-
declare const ToolExecutionStatusStarted: ToolExecutionStatus;
|
|
1125
|
-
declare const ToolExecutionStatusExecuting: ToolExecutionStatus;
|
|
1126
|
-
declare const ToolExecutionStatusCompleted: ToolExecutionStatus;
|
|
1127
|
-
declare const ToolExecutionStatusFailed: ToolExecutionStatus;
|
|
1128
|
-
declare const ToolExecutionStatusTimeout: ToolExecutionStatus;
|
|
1129
|
-
declare const ToolExecutionStatusSkipped: ToolExecutionStatus;
|
|
1130
|
-
/**
|
|
1131
|
-
* SubAgent represents a sub-agent composed of tools
|
|
1132
|
-
*/
|
|
1133
|
-
interface SubAgent {
|
|
1134
|
-
id: string;
|
|
1135
|
-
orgId: string;
|
|
1136
|
-
name: string;
|
|
1137
|
-
title: string;
|
|
1138
|
-
description: string;
|
|
1139
|
-
prompt: string;
|
|
1140
|
-
toolIds: string[];
|
|
1141
|
-
inputSchema: JSONSchema;
|
|
1142
|
-
outputSchema: JSONSchema;
|
|
1143
|
-
configSchema: JSONSchema;
|
|
1144
|
-
config?: {
|
|
1145
|
-
[key: string]: any;
|
|
1146
|
-
};
|
|
1147
|
-
version: string;
|
|
1148
|
-
enabled: boolean;
|
|
1149
|
-
isSystem: boolean;
|
|
1150
|
-
createdAt: string;
|
|
1151
|
-
updatedAt: string;
|
|
1152
|
-
createdBy: string;
|
|
1153
|
-
updatedBy: string;
|
|
1154
|
-
}
|
|
1155
|
-
/**
|
|
1156
|
-
* AgentToolConfiguration represents how an agent uses tools
|
|
1157
|
-
*/
|
|
1158
|
-
interface AgentToolConfiguration {
|
|
1159
|
-
enabledTools: string[];
|
|
1160
|
-
enabledSubAgents: string[];
|
|
1161
|
-
toolConfigs: {
|
|
1162
|
-
[key: string]: ToolConfig;
|
|
1163
|
-
};
|
|
1164
|
-
executionPolicy: ToolExecutionPolicy;
|
|
1165
|
-
maxParallelCalls: number;
|
|
1166
|
-
requireApproval: boolean;
|
|
1167
|
-
}
|
|
1168
|
-
/**
|
|
1169
|
-
* ToolExecutionPolicy defines how tools are executed
|
|
1170
|
-
*/
|
|
1171
|
-
interface ToolExecutionPolicy {
|
|
1172
|
-
mode: ExecutionModeTS;
|
|
1173
|
-
maxIterations: number;
|
|
1174
|
-
stopOnError: boolean;
|
|
1175
|
-
retryOnFailure: boolean;
|
|
1176
|
-
timeoutSeconds: number;
|
|
1177
|
-
}
|
|
1178
|
-
/**
|
|
1179
|
-
* ExecutionMode defines how tools are executed
|
|
1180
|
-
*/
|
|
1181
|
-
type ExecutionMode = string;
|
|
1182
|
-
declare const ExecutionModeSync: ExecutionMode;
|
|
1183
|
-
declare const ExecutionModeAsync: ExecutionMode;
|
|
1184
|
-
declare const ExecutionModeAsyncClient: ExecutionMode;
|
|
1185
|
-
/**
|
|
1186
|
-
* CreateExecutionPlanRequest represents a request to create an execution plan
|
|
1187
|
-
*/
|
|
1188
|
-
interface CreateExecutionPlanRequest {
|
|
1189
|
-
agentInstanceId: string;
|
|
1190
|
-
orgId: string;
|
|
1191
|
-
input: string;
|
|
1192
|
-
context?: {
|
|
1193
|
-
[key: string]: any;
|
|
1194
|
-
};
|
|
1195
|
-
availableTools: ToolDefinition[];
|
|
1196
|
-
}
|
|
1197
|
-
/**
|
|
1198
|
-
* CreateExecutionPlanResponse represents the response with an execution plan
|
|
1199
|
-
*/
|
|
1200
|
-
interface CreateExecutionPlanResponse {
|
|
1201
|
-
agentInstanceId: string;
|
|
1202
|
-
executionPlan: ToolExecution[];
|
|
1203
|
-
estimatedTime?: any;
|
|
1204
|
-
}
|
|
1205
|
-
/**
|
|
1206
|
-
* ExecutePlanRequest represents a request to execute the plan
|
|
1207
|
-
*/
|
|
1208
|
-
interface ExecutePlanRequest {
|
|
1209
|
-
agentInstanceId: string;
|
|
1210
|
-
orgId: string;
|
|
1211
|
-
approveAll?: boolean;
|
|
1212
|
-
}
|
|
1213
|
-
/**
|
|
1214
|
-
* ExecutePlanResponse represents the response after executing the plan
|
|
1215
|
-
*/
|
|
1216
|
-
interface ExecutePlanResponse {
|
|
1217
|
-
stateId: string;
|
|
1218
|
-
status: ToolExecutionStatusTS;
|
|
1219
|
-
executedTools: ToolExecution[];
|
|
1220
|
-
finalResult?: any;
|
|
1221
|
-
errors?: string[];
|
|
1222
|
-
}
|
|
1223
|
-
type ToolExecutionStatusTS = 'pending' | 'executing' | 'completed' | 'failed' | 'timeout' | 'skipped';
|
|
1224
|
-
type ExecutionModeTS = 'sync' | 'async' | 'asyncClient';
|
|
1225
|
-
/**
|
|
1226
|
-
* GetWidgetConfigRequest represents a request to get widget config for an agent
|
|
1227
|
-
*/
|
|
1228
|
-
interface GetWidgetConfigRequest {
|
|
1229
|
-
orgId: string;
|
|
1230
|
-
agentId: string;
|
|
1231
|
-
}
|
|
1232
|
-
/**
|
|
1233
|
-
* GetWidgetConfigResponse represents the response with widget config
|
|
1234
|
-
*/
|
|
1235
|
-
interface GetWidgetConfigResponse {
|
|
1236
|
-
config?: WidgetConfig;
|
|
1237
|
-
metadata: any;
|
|
1238
|
-
}
|
|
1239
|
-
/**
|
|
1240
|
-
* SaveWidgetConfigRequest represents a request to save widget config for an agent
|
|
1241
|
-
*/
|
|
1242
|
-
interface SaveWidgetConfigRequest {
|
|
1243
|
-
orgId: string;
|
|
1244
|
-
agentId: string;
|
|
1245
|
-
config?: WidgetConfig;
|
|
1246
|
-
}
|
|
1247
|
-
/**
|
|
1248
|
-
* SaveWidgetConfigResponse represents the response after saving widget config
|
|
1249
|
-
*/
|
|
1250
|
-
interface SaveWidgetConfigResponse {
|
|
1251
|
-
config?: WidgetConfig;
|
|
1252
|
-
metadata: any;
|
|
1253
|
-
}
|
|
1254
|
-
type JobScopeTS = 'private' | 'team' | 'org';
|
|
1255
|
-
type JobStatusTS = 'active' | 'executing' | 'paused' | 'disabled';
|
|
1256
|
-
type JobFrequencyTS = 'one-time' | 'schedule';
|
|
1257
|
-
type JobExecutionStatusTS = 'running' | 'success' | 'failed' | 'timed_out';
|
|
1258
|
-
/**
|
|
1259
|
-
* JobScope defines who can see and use the job
|
|
1260
|
-
*/
|
|
1261
|
-
type JobScope = string;
|
|
1262
|
-
declare const JobScopePrivate: JobScope;
|
|
1263
|
-
declare const JobScopeTeam: JobScope;
|
|
1264
|
-
declare const JobScopeOrg: JobScope;
|
|
1265
|
-
/**
|
|
1266
|
-
* JobStatus defines the current state of a job
|
|
1267
|
-
*/
|
|
1268
|
-
type JobStatus = string;
|
|
1269
|
-
declare const JobStatusActive: JobStatus;
|
|
1270
|
-
declare const JobStatusExecuting: JobStatus;
|
|
1271
|
-
declare const JobStatusPaused: JobStatus;
|
|
1272
|
-
declare const JobStatusDisabled: JobStatus;
|
|
1273
|
-
/**
|
|
1274
|
-
* JobFrequency defines whether a job runs once or on a schedule
|
|
1275
|
-
*/
|
|
1276
|
-
type JobFrequency = string;
|
|
1277
|
-
declare const JobFrequencyOneTime: JobFrequency;
|
|
1278
|
-
declare const JobFrequencySchedule: JobFrequency;
|
|
1279
|
-
/**
|
|
1280
|
-
* AgentJob represents a scheduled or one-time execution configuration for an agent
|
|
1281
|
-
*/
|
|
1282
|
-
interface AgentJob {
|
|
1283
|
-
id: string;
|
|
1284
|
-
agentId: string;
|
|
1285
|
-
ownerId: string;
|
|
1286
|
-
ownerEmail?: string;
|
|
1287
|
-
teamId?: string;
|
|
1288
|
-
/**
|
|
1289
|
-
* Job identity
|
|
1290
|
-
*/
|
|
1291
|
-
name: string;
|
|
1292
|
-
description?: string;
|
|
1293
|
-
/**
|
|
1294
|
-
* Scope determines who can see/manage and execution context
|
|
1295
|
-
*/
|
|
1296
|
-
scope: JobScopeTS;
|
|
1297
|
-
/**
|
|
1298
|
-
* Job configuration
|
|
1299
|
-
*/
|
|
1300
|
-
frequency: JobFrequencyTS;
|
|
1301
|
-
cron?: string;
|
|
1302
|
-
timezone?: string;
|
|
1303
|
-
prompt: string;
|
|
1304
|
-
/**
|
|
1305
|
-
* Status
|
|
1306
|
-
*/
|
|
1307
|
-
status: JobStatusTS;
|
|
1308
|
-
/**
|
|
1309
|
-
* Tracking fields (managed by system)
|
|
1310
|
-
*/
|
|
1311
|
-
lastRunAt?: string;
|
|
1312
|
-
nextRunAt?: string;
|
|
1313
|
-
runCount: number;
|
|
1314
|
-
lastError?: string;
|
|
1315
|
-
/**
|
|
1316
|
-
* Circuit breaker fields
|
|
1317
|
-
*/
|
|
1318
|
-
consecutiveFailures: number;
|
|
1319
|
-
disabledUntil?: string;
|
|
1320
|
-
/**
|
|
1321
|
-
* Execution tracking (updated by Runtime Service)
|
|
1322
|
-
*/
|
|
1323
|
-
lastExecutionId?: string;
|
|
1324
|
-
lastExecutionStatus?: string;
|
|
1325
|
-
lastExecutedAt?: string;
|
|
1326
|
-
/**
|
|
1327
|
-
* Audit fields
|
|
1328
|
-
*/
|
|
1329
|
-
createdAt: string;
|
|
1330
|
-
updatedAt: string;
|
|
1331
|
-
}
|
|
1332
|
-
/**
|
|
1333
|
-
* JobExecutionStatus defines the status of a job execution
|
|
1334
|
-
*/
|
|
1335
|
-
type JobExecutionStatus = string;
|
|
1336
|
-
declare const JobExecutionStatusRunning: JobExecutionStatus;
|
|
1337
|
-
declare const JobExecutionStatusSuccess: JobExecutionStatus;
|
|
1338
|
-
declare const JobExecutionStatusFailed: JobExecutionStatus;
|
|
1339
|
-
declare const JobExecutionStatusTimedOut: JobExecutionStatus;
|
|
1340
|
-
/**
|
|
1341
|
-
* ArtifactRef represents a reference to an artifact produced during execution
|
|
1342
|
-
* Actual files are stored by tools; this just tracks references
|
|
1343
|
-
*/
|
|
1344
|
-
interface ArtifactRef {
|
|
1345
|
-
type: string;
|
|
1346
|
-
name: string;
|
|
1347
|
-
path?: string;
|
|
1348
|
-
size?: number;
|
|
1349
|
-
content?: string;
|
|
1350
|
-
}
|
|
1351
|
-
/**
|
|
1352
|
-
* JobExecution represents a single execution of an agent job
|
|
1353
|
-
*/
|
|
1354
|
-
interface JobExecution {
|
|
1355
|
-
id: string;
|
|
1356
|
-
jobId: string;
|
|
1357
|
-
agentId: string;
|
|
1358
|
-
/**
|
|
1359
|
-
* Execution status
|
|
1360
|
-
*/
|
|
1361
|
-
status: JobExecutionStatusTS;
|
|
1362
|
-
startedAt: string;
|
|
1363
|
-
completedAt?: string;
|
|
1364
|
-
/**
|
|
1365
|
-
* Execution metrics
|
|
1366
|
-
*/
|
|
1367
|
-
roundsExecuted: number;
|
|
1368
|
-
totalTokens: number;
|
|
1369
|
-
/**
|
|
1370
|
-
* Results
|
|
1371
|
-
*/
|
|
1372
|
-
result?: any;
|
|
1373
|
-
error?: string;
|
|
1374
|
-
artifacts?: ArtifactRef[];
|
|
1375
|
-
metadata?: any;
|
|
1376
|
-
/**
|
|
1377
|
-
* Audit
|
|
1378
|
-
*/
|
|
1379
|
-
createdAt: string;
|
|
1380
|
-
}
|
|
1381
|
-
/**
|
|
1382
|
-
* JobExecutionResult represents the result of processing a single agent job
|
|
1383
|
-
*/
|
|
1384
|
-
interface JobExecutionResult {
|
|
1385
|
-
jobId: string;
|
|
1386
|
-
agentId: string;
|
|
1387
|
-
jobName: string;
|
|
1388
|
-
executed: boolean;
|
|
1389
|
-
error?: string;
|
|
1390
|
-
}
|
|
1391
|
-
/**
|
|
1392
|
-
* ProcessJobTriggerResult represents the result of processing all agent jobs
|
|
1393
|
-
*/
|
|
1394
|
-
interface ProcessJobTriggerResult {
|
|
1395
|
-
results: JobExecutionResult[];
|
|
1396
|
-
total: number;
|
|
1397
|
-
executed: number;
|
|
1398
|
-
skipped: number;
|
|
1399
|
-
errors: number;
|
|
1400
|
-
}
|
|
1401
|
-
/**
|
|
1402
|
-
* ExecuteJobRequest is sent to Runtime Service to execute a job
|
|
1403
|
-
*/
|
|
1404
|
-
interface ExecuteJobRequest {
|
|
1405
|
-
/**
|
|
1406
|
-
* Execution identification (created by Agents Service before dispatch)
|
|
1407
|
-
*/
|
|
1408
|
-
executionId: string;
|
|
1409
|
-
/**
|
|
1410
|
-
* Job identification
|
|
1411
|
-
*/
|
|
1412
|
-
jobId: string;
|
|
1413
|
-
agentId: string;
|
|
1414
|
-
orgId: string;
|
|
1415
|
-
/**
|
|
1416
|
-
* Execution context
|
|
1417
|
-
*/
|
|
1418
|
-
prompt: string;
|
|
1419
|
-
scope: JobScopeTS;
|
|
1420
|
-
ownerId: string;
|
|
1421
|
-
ownerEmail?: string;
|
|
1422
|
-
/**
|
|
1423
|
-
* Agent configuration (denormalized for Runtime)
|
|
1424
|
-
*/
|
|
1425
|
-
agent: Agent;
|
|
1426
|
-
/**
|
|
1427
|
-
* Execution settings
|
|
1428
|
-
*/
|
|
1429
|
-
timeoutMinutes?: number;
|
|
1430
|
-
metadata?: {
|
|
1431
|
-
[key: string]: any;
|
|
1432
|
-
};
|
|
1433
|
-
}
|
|
1434
|
-
/**
|
|
1435
|
-
* ExecutionCompletedEvent is received from Runtime Service when execution completes
|
|
1436
|
-
*/
|
|
1437
|
-
interface ExecutionCompletedEvent {
|
|
1438
|
-
/**
|
|
1439
|
-
* Identification
|
|
1440
|
-
*/
|
|
1441
|
-
executionId: string;
|
|
1442
|
-
jobId: string;
|
|
1443
|
-
orgId: string;
|
|
1444
|
-
/**
|
|
1445
|
-
* Status: "success", "failed", "timed_out"
|
|
1446
|
-
*/
|
|
1447
|
-
status: string;
|
|
1448
|
-
/**
|
|
1449
|
-
* Results (present on success)
|
|
1450
|
-
*/
|
|
1451
|
-
result?: any;
|
|
1452
|
-
artifacts?: ArtifactRef[];
|
|
1453
|
-
/**
|
|
1454
|
-
* Error info (present on failure)
|
|
1455
|
-
*/
|
|
1456
|
-
error?: string;
|
|
1457
|
-
/**
|
|
1458
|
-
* Metrics
|
|
1459
|
-
*/
|
|
1460
|
-
roundsExecuted: number;
|
|
1461
|
-
totalTokens: number;
|
|
1462
|
-
/**
|
|
1463
|
-
* Timing
|
|
1464
|
-
*/
|
|
1465
|
-
completedAt: string;
|
|
1466
|
-
/**
|
|
1467
|
-
* Additional context
|
|
1468
|
-
*/
|
|
1469
|
-
metadata?: {
|
|
1470
|
-
[key: string]: any;
|
|
1471
|
-
};
|
|
1472
|
-
}
|
|
1473
|
-
/**
|
|
1474
|
-
* CSAT Configuration
|
|
1475
|
-
*/
|
|
1476
|
-
interface CSATConfig {
|
|
1477
|
-
enabled: boolean;
|
|
1478
|
-
survey?: CSATSurvey;
|
|
1479
|
-
}
|
|
1480
|
-
interface CSATQuestion {
|
|
1481
|
-
question: {
|
|
1482
|
-
[key: string]: string;
|
|
1483
|
-
};
|
|
1484
|
-
showRating: boolean;
|
|
1485
|
-
showComment: boolean;
|
|
1486
|
-
}
|
|
1487
|
-
interface CSATSurvey {
|
|
1488
|
-
questions: CSATQuestion[];
|
|
1489
|
-
timeThreshold: number;
|
|
1490
|
-
closeOnResponse: boolean;
|
|
1491
|
-
}
|
|
1492
|
-
interface CSATAnswer {
|
|
1493
|
-
question: string;
|
|
1494
|
-
lang?: string;
|
|
1495
|
-
rating?: number;
|
|
1496
|
-
comment?: string;
|
|
1497
|
-
}
|
|
1498
|
-
interface CSATResponse {
|
|
1499
|
-
answers: CSATAnswer[];
|
|
1500
|
-
submittedAt: number;
|
|
1501
|
-
overallRating: number;
|
|
1502
|
-
}
|
|
1503
|
-
/**
|
|
1504
|
-
* ReAct Agent Configuration
|
|
1505
|
-
*/
|
|
1506
|
-
interface ReactAgentConfig {
|
|
1507
|
-
/**
|
|
1508
|
-
* Core ReAct Configuration
|
|
1509
|
-
*/
|
|
1510
|
-
maxIterations: number;
|
|
1511
|
-
reasoningPrompt: string;
|
|
1512
|
-
stopConditions: string[];
|
|
1513
|
-
availableTools: string[];
|
|
1514
|
-
requireConfirmation: boolean;
|
|
1515
|
-
/**
|
|
1516
|
-
* LLM Configuration
|
|
1517
|
-
*/
|
|
1518
|
-
model: string;
|
|
1519
|
-
temperature: number;
|
|
1520
|
-
maxTokens: number;
|
|
1521
|
-
provider: string;
|
|
1522
|
-
/**
|
|
1523
|
-
* Context Management
|
|
1524
|
-
*/
|
|
1525
|
-
maxContextLength: number;
|
|
1526
|
-
memoryRetention: number;
|
|
1527
|
-
compressionStrategy: string;
|
|
1528
|
-
/**
|
|
1529
|
-
* Tool Configuration
|
|
1530
|
-
*/
|
|
1531
|
-
toolConfigs?: {
|
|
1532
|
-
[key: string]: ToolConfig;
|
|
1533
|
-
};
|
|
1534
|
-
mcpServers?: MCPServerConfig[];
|
|
1535
|
-
/**
|
|
1536
|
-
* Execution Configuration
|
|
1537
|
-
*/
|
|
1538
|
-
timeoutMinutes: number;
|
|
1539
|
-
retryAttempts: number;
|
|
1540
|
-
parallelExecution: boolean;
|
|
1541
|
-
/**
|
|
1542
|
-
* Safety Configuration
|
|
1543
|
-
*/
|
|
1544
|
-
dangerousOperations?: string[];
|
|
1545
|
-
allowedFileTypes?: string[];
|
|
1546
|
-
restrictedPaths?: string[];
|
|
1547
|
-
}
|
|
1548
|
-
interface ToolConfig {
|
|
1549
|
-
enabled: boolean;
|
|
1550
|
-
timeoutSeconds: number;
|
|
1551
|
-
retryPolicy: RetryPolicy;
|
|
1552
|
-
configuration?: {
|
|
1553
|
-
[key: string]: any;
|
|
1554
|
-
};
|
|
1555
|
-
}
|
|
1556
|
-
interface RetryPolicy {
|
|
1557
|
-
maxAttempts: number;
|
|
1558
|
-
backoffStrategy: string;
|
|
1559
|
-
backoffDelay: any;
|
|
1560
|
-
}
|
|
1561
|
-
interface MCPServerConfig {
|
|
1562
|
-
name: string;
|
|
1563
|
-
endpoint: string;
|
|
1564
|
-
trusted: boolean;
|
|
1565
|
-
timeout: number;
|
|
1566
|
-
credentials?: {
|
|
1567
|
-
[key: string]: string;
|
|
1568
|
-
};
|
|
1569
|
-
}
|
|
1570
|
-
interface CreateAgentRequest {
|
|
1571
|
-
agent?: Agent;
|
|
1572
|
-
orgId: string;
|
|
1573
|
-
}
|
|
1574
|
-
interface AgentResponse {
|
|
1575
|
-
agent?: Agent;
|
|
1576
|
-
metadata: any;
|
|
1577
|
-
}
|
|
1578
|
-
interface GetAgentRequest {
|
|
1579
|
-
id?: string;
|
|
1580
|
-
name?: string;
|
|
1581
|
-
orgId: string;
|
|
1582
|
-
}
|
|
1583
|
-
interface UpdateAgentRequest {
|
|
1584
|
-
agent: Agent;
|
|
1585
|
-
orgId: string;
|
|
1586
|
-
}
|
|
1587
|
-
interface DeleteAgentRequest {
|
|
1588
|
-
id: string;
|
|
1589
|
-
orgId: string;
|
|
1590
|
-
}
|
|
1591
|
-
interface ListAgentsRequest {
|
|
1592
|
-
orgId: string;
|
|
1593
|
-
filters?: AgentFilters;
|
|
1594
|
-
}
|
|
1595
|
-
interface ListAgentsResponse {
|
|
1596
|
-
agents: Agent[];
|
|
1597
|
-
metadata: any;
|
|
1598
|
-
}
|
|
1599
|
-
/**
|
|
1600
|
-
* ListAgentsSummaryRequest requests a lightweight list of agents
|
|
1601
|
-
*/
|
|
1602
|
-
interface ListAgentsSummaryRequest {
|
|
1603
|
-
orgId: string;
|
|
1604
|
-
filters?: AgentFilters;
|
|
1605
|
-
}
|
|
1606
|
-
/**
|
|
1607
|
-
* ListAgentsSummaryResponse returns lightweight agent summaries for list views
|
|
1608
|
-
*/
|
|
1609
|
-
interface ListAgentsSummaryResponse {
|
|
1610
|
-
agents: AgentSummary[];
|
|
1611
|
-
metadata: any;
|
|
1612
|
-
}
|
|
1613
|
-
interface GetDefaultAgentRequest {
|
|
1614
|
-
orgId: string;
|
|
1615
|
-
agentType: AgentType;
|
|
1616
|
-
}
|
|
1617
|
-
interface UpdateOrgAgentsRequest {
|
|
1618
|
-
orgId: string;
|
|
1619
|
-
defaultDefinitions?: DefaultDefinitions;
|
|
1620
|
-
}
|
|
1621
|
-
interface UpdateOrgAgentsResponse {
|
|
1622
|
-
toolsCreated: number;
|
|
1623
|
-
subAgentsCreated: number;
|
|
1624
|
-
agentsCreated: number;
|
|
1625
|
-
skillsCreated: number;
|
|
1626
|
-
metadata: ResponseMetadata;
|
|
1627
|
-
}
|
|
1628
|
-
/**
|
|
1629
|
-
* Core Agent Operations
|
|
1630
|
-
*/
|
|
1631
|
-
declare const AgentCreateSubject = "agent.create";
|
|
1632
|
-
/**
|
|
1633
|
-
* Core Agent Operations
|
|
1634
|
-
*/
|
|
1635
|
-
declare const AgentCreatedSubject = "agent.created";
|
|
1636
|
-
/**
|
|
1637
|
-
* Core Agent Operations
|
|
1638
|
-
*/
|
|
1639
|
-
declare const AgentGetSubject = "agent.get";
|
|
1640
|
-
/**
|
|
1641
|
-
* Core Agent Operations
|
|
1642
|
-
*/
|
|
1643
|
-
declare const AgentUpdateSubject = "agent.update";
|
|
1644
|
-
/**
|
|
1645
|
-
* Core Agent Operations
|
|
1646
|
-
*/
|
|
1647
|
-
declare const AgentUpdatedSubject = "agent.updated";
|
|
1648
|
-
/**
|
|
1649
|
-
* Core Agent Operations
|
|
1650
|
-
*/
|
|
1651
|
-
declare const AgentDeleteSubject = "agent.delete";
|
|
1652
|
-
/**
|
|
1653
|
-
* Core Agent Operations
|
|
1654
|
-
*/
|
|
1655
|
-
declare const AgentDeletedSubject = "agent.deleted";
|
|
1656
|
-
/**
|
|
1657
|
-
* Core Agent Operations
|
|
1658
|
-
*/
|
|
1659
|
-
declare const AgentListSubject = "agent.list";
|
|
1660
|
-
/**
|
|
1661
|
-
* Core Agent Operations
|
|
1662
|
-
*/
|
|
1663
|
-
declare const AgentListSummarySubject = "agent.list.summary";
|
|
1664
|
-
/**
|
|
1665
|
-
* Core Agent Operations
|
|
1666
|
-
*/
|
|
1667
|
-
declare const AgentSearchSubject = "agent.search";
|
|
1668
|
-
/**
|
|
1669
|
-
* Agent Type Specific Operations
|
|
1670
|
-
*/
|
|
1671
|
-
declare const AgentChatCreateSubject = "agent.chat.create";
|
|
1672
|
-
/**
|
|
1673
|
-
* Agent Type Specific Operations
|
|
1674
|
-
*/
|
|
1675
|
-
declare const AgentChatUpdateSubject = "agent.chat.update";
|
|
1676
|
-
/**
|
|
1677
|
-
* Agent Type Specific Operations
|
|
1678
|
-
*/
|
|
1679
|
-
declare const AgentChatGetSubject = "agent.chat.get";
|
|
1680
|
-
/**
|
|
1681
|
-
* Agent Type Specific Operations
|
|
1682
|
-
*/
|
|
1683
|
-
declare const AgentChatValidateSubject = "agent.chat.validate";
|
|
1684
|
-
/**
|
|
1685
|
-
* Agent Type Specific Operations
|
|
1686
|
-
*/
|
|
1687
|
-
declare const AgentReactCreateSubject = "agent.react.create";
|
|
1688
|
-
/**
|
|
1689
|
-
* Agent Type Specific Operations
|
|
1690
|
-
*/
|
|
1691
|
-
declare const AgentReactUpdateSubject = "agent.react.update";
|
|
1692
|
-
/**
|
|
1693
|
-
* Agent Type Specific Operations
|
|
1694
|
-
*/
|
|
1695
|
-
declare const AgentReactGetSubject = "agent.react.get";
|
|
1696
|
-
/**
|
|
1697
|
-
* Agent Type Specific Operations
|
|
1698
|
-
*/
|
|
1699
|
-
declare const AgentReactValidateSubject = "agent.react.validate";
|
|
1700
|
-
/**
|
|
1701
|
-
* Execution Coordination
|
|
1702
|
-
*/
|
|
1703
|
-
declare const AgentExecuteSubject = "agent.execute";
|
|
1704
|
-
/**
|
|
1705
|
-
* Execution Coordination
|
|
1706
|
-
*/
|
|
1707
|
-
declare const AgentExecuteStatusSubject = "agent.execute.status";
|
|
1708
|
-
/**
|
|
1709
|
-
* Execution Coordination
|
|
1710
|
-
*/
|
|
1711
|
-
declare const AgentExecuteStopSubject = "agent.execute.stop";
|
|
1712
|
-
/**
|
|
1713
|
-
* Version Management
|
|
1714
|
-
*/
|
|
1715
|
-
declare const AgentVersionCreateSubject = "agent.version.create";
|
|
1716
|
-
/**
|
|
1717
|
-
* Version Management
|
|
1718
|
-
*/
|
|
1719
|
-
declare const AgentVersionCreatedSubject = "agent.version.created";
|
|
1720
|
-
/**
|
|
1721
|
-
* Version Management
|
|
1722
|
-
*/
|
|
1723
|
-
declare const AgentVersionGetSubject = "agent.version.get";
|
|
1724
|
-
/**
|
|
1725
|
-
* Version Management
|
|
1726
|
-
*/
|
|
1727
|
-
declare const AgentVersionListSubject = "agent.version.list";
|
|
1728
|
-
/**
|
|
1729
|
-
* Version Management
|
|
1730
|
-
*/
|
|
1731
|
-
declare const AgentVersionActivateSubject = "agent.version.activate";
|
|
1732
|
-
/**
|
|
1733
|
-
* Version Management
|
|
1734
|
-
*/
|
|
1735
|
-
declare const AgentVersionActivatedSubject = "agent.version.activated";
|
|
1736
|
-
/**
|
|
1737
|
-
* Default Agent Management
|
|
1738
|
-
*/
|
|
1739
|
-
declare const AgentEnsureDefaultSubject = "agent.ensure-default";
|
|
1740
|
-
/**
|
|
1741
|
-
* Default Agent Management
|
|
1742
|
-
*/
|
|
1743
|
-
declare const AgentGetDefaultSubject = "agent.get-default";
|
|
1744
|
-
/**
|
|
1745
|
-
* Organization Management
|
|
1746
|
-
*/
|
|
1747
|
-
declare const AgentGetByOrgSubject = "agent.get-by-org";
|
|
1748
|
-
/**
|
|
1749
|
-
* Organization Management
|
|
1750
|
-
*/
|
|
1751
|
-
declare const AgentCloneSubject = "agent.clone";
|
|
1752
|
-
/**
|
|
1753
|
-
* Organization Management
|
|
1754
|
-
*/
|
|
1755
|
-
declare const AgentExportSubject = "agent.export";
|
|
1756
|
-
/**
|
|
1757
|
-
* Organization Management
|
|
1758
|
-
*/
|
|
1759
|
-
declare const AgentImportSubject = "agent.import";
|
|
1760
|
-
/**
|
|
1761
|
-
* Organization Management
|
|
1762
|
-
*/
|
|
1763
|
-
declare const AgentUpdateOrgSubject = "agent.update-org-agents";
|
|
1764
|
-
/**
|
|
1765
|
-
* Configuration Templates
|
|
1766
|
-
*/
|
|
1767
|
-
declare const AgentTemplateListSubject = "agent.template.list";
|
|
1768
|
-
/**
|
|
1769
|
-
* Configuration Templates
|
|
1770
|
-
*/
|
|
1771
|
-
declare const AgentTemplateGetSubject = "agent.template.get";
|
|
1772
|
-
/**
|
|
1773
|
-
* Configuration Templates
|
|
1774
|
-
*/
|
|
1775
|
-
declare const AgentFromTemplateSubject = "agent.from-template";
|
|
1776
|
-
/**
|
|
1777
|
-
* Chat Service Integration
|
|
1778
|
-
*/
|
|
1779
|
-
declare const ChatAgentExecuteSubject = "chat.agent.execute";
|
|
1780
|
-
/**
|
|
1781
|
-
* Execution Service Integration
|
|
1782
|
-
*/
|
|
1783
|
-
declare const ChatAgentStatusSubject = "chat.agent.status";
|
|
1784
|
-
/**
|
|
1785
|
-
* ReAct Service Integration
|
|
1786
|
-
*/
|
|
1787
|
-
declare const ReactAgentExecuteSubject = "react.agent.execute";
|
|
1788
|
-
/**
|
|
1789
|
-
* Execution Service Integration
|
|
1790
|
-
*/
|
|
1791
|
-
declare const ReactAgentStatusSubject = "react.agent.status";
|
|
1792
|
-
/**
|
|
1793
|
-
* Execution Service Integration
|
|
1794
|
-
*/
|
|
1795
|
-
declare const ReactAgentStopSubject = "react.agent.stop";
|
|
1796
|
-
/**
|
|
1797
|
-
* Workflow Service Integration
|
|
1798
|
-
*/
|
|
1799
|
-
declare const WorkflowAgentGetSubject = "workflow.agent.get";
|
|
1800
|
-
/**
|
|
1801
|
-
* Execution Service Integration
|
|
1802
|
-
*/
|
|
1803
|
-
declare const WorkflowAgentUpdateSubject = "workflow.agent.update";
|
|
1804
|
-
/**
|
|
1805
|
-
* ToolDefinitions Management
|
|
1806
|
-
*/
|
|
1807
|
-
declare const ToolDefinitionsCreateSubject = "agents.tool-definitions.create";
|
|
1808
|
-
/**
|
|
1809
|
-
* ToolDefinitions Management
|
|
1810
|
-
*/
|
|
1811
|
-
declare const ToolDefinitionsCreatedSubject = "agents.tool-definitions.created";
|
|
1812
|
-
/**
|
|
1813
|
-
* ToolDefinitions Management
|
|
1814
|
-
*/
|
|
1815
|
-
declare const ToolDefinitionsGetSubject = "agents.tool-definitions.get";
|
|
1816
|
-
/**
|
|
1817
|
-
* ToolDefinitions Management
|
|
1818
|
-
*/
|
|
1819
|
-
declare const ToolDefinitionsUpdateSubject = "agents.tool-definitions.update";
|
|
1820
|
-
/**
|
|
1821
|
-
* ToolDefinitions Management
|
|
1822
|
-
*/
|
|
1823
|
-
declare const ToolDefinitionsUpdatedSubject = "agents.tool-definitions.updated";
|
|
1824
|
-
/**
|
|
1825
|
-
* ToolDefinitions Management
|
|
1826
|
-
*/
|
|
1827
|
-
declare const ToolDefinitionsDeleteSubject = "agents.tool-definitions.delete";
|
|
1828
|
-
/**
|
|
1829
|
-
* ToolDefinitions Management
|
|
1830
|
-
*/
|
|
1831
|
-
declare const ToolDefinitionsDeletedSubject = "agents.tool-definitions.deleted";
|
|
1832
|
-
/**
|
|
1833
|
-
* ToolDefinitions Management
|
|
1834
|
-
*/
|
|
1835
|
-
declare const ToolDefinitionsListSubject = "agents.tool-definitions.list";
|
|
1836
|
-
/**
|
|
1837
|
-
* ToolDefinitions Management
|
|
1838
|
-
*/
|
|
1839
|
-
declare const ToolDefinitionsGetByIDsSubject = "agents.tool-definitions.get-by-ids";
|
|
1840
|
-
/**
|
|
1841
|
-
* ToolDefinitions Management
|
|
1842
|
-
*/
|
|
1843
|
-
declare const ToolDefinitionsExecuteSubject = "agents.tool-definitions.execute";
|
|
1844
|
-
/**
|
|
1845
|
-
* ToolDefinitions Management
|
|
1846
|
-
*/
|
|
1847
|
-
declare const ToolDefinitionsValidateSubject = "agents.tool-definitions.validate";
|
|
1848
|
-
/**
|
|
1849
|
-
* SubAgents Management
|
|
1850
|
-
*/
|
|
1851
|
-
declare const SubAgentsCreateSubject = "agents.subagents.create";
|
|
1852
|
-
/**
|
|
1853
|
-
* SubAgents Management
|
|
1854
|
-
*/
|
|
1855
|
-
declare const SubAgentsCreatedSubject = "agents.subagents.created";
|
|
1856
|
-
/**
|
|
1857
|
-
* SubAgents Management
|
|
1858
|
-
*/
|
|
1859
|
-
declare const SubAgentsGetSubject = "agents.subagents.get";
|
|
1860
|
-
/**
|
|
1861
|
-
* SubAgents Management
|
|
1862
|
-
*/
|
|
1863
|
-
declare const SubAgentsUpdateSubject = "agents.subagents.update";
|
|
1864
|
-
/**
|
|
1865
|
-
* SubAgents Management
|
|
1866
|
-
*/
|
|
1867
|
-
declare const SubAgentsUpdatedSubject = "agents.subagents.updated";
|
|
1868
|
-
/**
|
|
1869
|
-
* SubAgents Management
|
|
1870
|
-
*/
|
|
1871
|
-
declare const SubAgentsDeleteSubject = "agents.subagents.delete";
|
|
1872
|
-
/**
|
|
1873
|
-
* SubAgents Management
|
|
1874
|
-
*/
|
|
1875
|
-
declare const SubAgentsDeletedSubject = "agents.subagents.deleted";
|
|
1876
|
-
/**
|
|
1877
|
-
* SubAgents Management
|
|
1878
|
-
*/
|
|
1879
|
-
declare const SubAgentsListSubject = "agents.subagents.list";
|
|
1880
|
-
/**
|
|
1881
|
-
* SubAgents Management
|
|
1882
|
-
*/
|
|
1883
|
-
declare const SubAgentsGetByIDsSubject = "agents.subagents.get-by-ids";
|
|
1884
|
-
/**
|
|
1885
|
-
* SubAgents Management
|
|
1886
|
-
*/
|
|
1887
|
-
declare const SubAgentsExecuteSubject = "agents.subagents.execute";
|
|
1888
|
-
/**
|
|
1889
|
-
* SubAgents Management
|
|
1890
|
-
*/
|
|
1891
|
-
declare const SubAgentsValidateSubject = "agents.subagents.validate";
|
|
1892
|
-
/**
|
|
1893
|
-
* Skills Management
|
|
1894
|
-
*/
|
|
1895
|
-
declare const SkillsCreateSubject = "agents.skills.create";
|
|
1896
|
-
/**
|
|
1897
|
-
* Skills Management
|
|
1898
|
-
*/
|
|
1899
|
-
declare const SkillsCreatedSubject = "agents.skills.created";
|
|
1900
|
-
/**
|
|
1901
|
-
* Skills Management
|
|
1902
|
-
*/
|
|
1903
|
-
declare const SkillsGetSubject = "agents.skills.get";
|
|
1904
|
-
/**
|
|
1905
|
-
* Skills Management
|
|
1906
|
-
*/
|
|
1907
|
-
declare const SkillsUpdateSubject = "agents.skills.update";
|
|
1908
|
-
/**
|
|
1909
|
-
* Skills Management
|
|
1910
|
-
*/
|
|
1911
|
-
declare const SkillsUpdatedSubject = "agents.skills.updated";
|
|
1912
|
-
/**
|
|
1913
|
-
* Skills Management
|
|
1914
|
-
*/
|
|
1915
|
-
declare const SkillsDeleteSubject = "agents.skills.delete";
|
|
1916
|
-
/**
|
|
1917
|
-
* Skills Management
|
|
1918
|
-
*/
|
|
1919
|
-
declare const SkillsDeletedSubject = "agents.skills.deleted";
|
|
1920
|
-
/**
|
|
1921
|
-
* Skills Management
|
|
1922
|
-
*/
|
|
1923
|
-
declare const SkillsListSubject = "agents.skills.list";
|
|
1924
|
-
/**
|
|
1925
|
-
* Skills Management
|
|
1926
|
-
*/
|
|
1927
|
-
declare const SkillsGetByIDsSubject = "agents.skills.get-by-ids";
|
|
1928
|
-
/**
|
|
1929
|
-
* Skill Org Config
|
|
1930
|
-
*/
|
|
1931
|
-
declare const SkillsUpdateOrgConfigSubject = "agents.skills.update-org-config";
|
|
1932
|
-
/**
|
|
1933
|
-
* Agent Skill Config
|
|
1934
|
-
*/
|
|
1935
|
-
declare const AgentSkillUpdateConfigSubject = "agents.skills.agent.update-config";
|
|
1936
|
-
/**
|
|
1937
|
-
* Skills Management
|
|
1938
|
-
*/
|
|
1939
|
-
declare const AgentSkillGetConfigSubject = "agents.skills.agent.get-config";
|
|
1940
|
-
/**
|
|
1941
|
-
* Skill User Config Management
|
|
1942
|
-
*/
|
|
1943
|
-
declare const SkillUserConfigGetSubject = "agents.skills.user-config.get";
|
|
1944
|
-
/**
|
|
1945
|
-
* Skill User Config Management
|
|
1946
|
-
*/
|
|
1947
|
-
declare const SkillUserConfigUpdateSubject = "agents.skills.user-config.update";
|
|
1948
|
-
/**
|
|
1949
|
-
* Skill User Config Management
|
|
1950
|
-
*/
|
|
1951
|
-
declare const SkillUserConfigDeleteSubject = "agents.skills.user-config.delete";
|
|
1952
|
-
/**
|
|
1953
|
-
* Skill User Config Management
|
|
1954
|
-
*/
|
|
1955
|
-
declare const SkillUserConfigListSubject = "agents.skills.user-config.list";
|
|
1956
|
-
/**
|
|
1957
|
-
* Config Resolution (merges org + agent + user config)
|
|
1958
|
-
*/
|
|
1959
|
-
declare const SkillResolveConfigSubject = "agents.skills.resolve-config";
|
|
1960
|
-
/**
|
|
1961
|
-
* Widget Config Management
|
|
1962
|
-
*/
|
|
1963
|
-
declare const WidgetConfigGetByAgentSubject = "widgets.config.get.by.agent";
|
|
1964
|
-
/**
|
|
1965
|
-
* Widget Config Management
|
|
1966
|
-
*/
|
|
1967
|
-
declare const WidgetConfigSaveSubject = "widgets.config.save";
|
|
1968
|
-
/**
|
|
1969
|
-
* Job CRUD Operations
|
|
1970
|
-
*/
|
|
1971
|
-
declare const AgentJobCreateSubject = "agents.jobs.create";
|
|
1972
|
-
/**
|
|
1973
|
-
* Agent Job Management
|
|
1974
|
-
*/
|
|
1975
|
-
declare const AgentJobGetSubject = "agents.jobs.get";
|
|
1976
|
-
/**
|
|
1977
|
-
* Agent Job Management
|
|
1978
|
-
*/
|
|
1979
|
-
declare const AgentJobUpdateSubject = "agents.jobs.update";
|
|
1980
|
-
/**
|
|
1981
|
-
* Agent Job Management
|
|
1982
|
-
*/
|
|
1983
|
-
declare const AgentJobDeleteSubject = "agents.jobs.delete";
|
|
1984
|
-
/**
|
|
1985
|
-
* Agent Job Management
|
|
1986
|
-
*/
|
|
1987
|
-
declare const AgentJobListSubject = "agents.jobs.list";
|
|
1988
|
-
/**
|
|
1989
|
-
* Job Actions
|
|
1990
|
-
*/
|
|
1991
|
-
declare const AgentJobPauseSubject = "agents.jobs.pause";
|
|
1992
|
-
/**
|
|
1993
|
-
* Agent Job Management
|
|
1994
|
-
*/
|
|
1995
|
-
declare const AgentJobResumeSubject = "agents.jobs.resume";
|
|
1996
|
-
/**
|
|
1997
|
-
* Job Trigger (from Scheduler Service)
|
|
1998
|
-
*/
|
|
1999
|
-
declare const AgentJobTriggerSubject = "agents.job.trigger";
|
|
2000
|
-
/**
|
|
2001
|
-
* Execution Query Operations
|
|
2002
|
-
*/
|
|
2003
|
-
declare const JobExecutionGetSubject = "agents.executions.get";
|
|
2004
|
-
/**
|
|
2005
|
-
* Job Execution Management
|
|
2006
|
-
*/
|
|
2007
|
-
declare const JobExecutionListSubject = "agents.executions.list";
|
|
2008
|
-
/**
|
|
2009
|
-
* Runtime Service Communication
|
|
2010
|
-
*/
|
|
2011
|
-
declare const RuntimeJobExecuteSubject = "runtime.job.execute";
|
|
2012
|
-
/**
|
|
2013
|
-
* Job Execution Management
|
|
2014
|
-
*/
|
|
2015
|
-
declare const RuntimeJobCompletedSubject = "runtime.job.completed";
|
|
2016
|
-
/**
|
|
2017
|
-
* TTL Cleanup (triggered by Scheduler)
|
|
2018
|
-
*/
|
|
2019
|
-
declare const ExecutionsTTLCleanupSubject = "maintenance.executions.cleanup";
|
|
2020
|
-
/**
|
|
2021
|
-
* Agent Instance Management
|
|
2022
|
-
*/
|
|
2023
|
-
declare const AgentInstanceCreateSubject = "agents.instance.create";
|
|
2024
|
-
/**
|
|
2025
|
-
* Agent Instance Management
|
|
2026
|
-
*/
|
|
2027
|
-
declare const AgentInstanceCreatedSubject = "agents.instance.created";
|
|
2028
|
-
/**
|
|
2029
|
-
* Agent Instance Management
|
|
2030
|
-
*/
|
|
2031
|
-
declare const AgentInstanceGetSubject = "agents.instance.get";
|
|
2032
|
-
/**
|
|
2033
|
-
* Agent Instance Management
|
|
2034
|
-
*/
|
|
2035
|
-
declare const AgentInstanceUpdateSubject = "agents.instance.update";
|
|
2036
|
-
/**
|
|
2037
|
-
* Agent Instance Management
|
|
2038
|
-
*/
|
|
2039
|
-
declare const AgentInstanceUpdatedSubject = "agents.instance.updated";
|
|
2040
|
-
/**
|
|
2041
|
-
* Agent Instance Management
|
|
2042
|
-
*/
|
|
2043
|
-
declare const AgentInstanceListSubject = "agents.instance.list";
|
|
2044
|
-
/**
|
|
2045
|
-
* Agent Instance Management
|
|
2046
|
-
*/
|
|
2047
|
-
declare const AgentInstanceDeleteSubject = "agents.instance.delete";
|
|
2048
|
-
/**
|
|
2049
|
-
* Agent Instance Management
|
|
2050
|
-
*/
|
|
2051
|
-
declare const AgentInstanceDeletedSubject = "agents.instance.deleted";
|
|
2052
|
-
/**
|
|
2053
|
-
* Execution Plan Operations
|
|
2054
|
-
*/
|
|
2055
|
-
declare const AgentInstanceCreatePlanSubject = "agents.instance.create-plan";
|
|
2056
|
-
/**
|
|
2057
|
-
* Agent Instance Management
|
|
2058
|
-
*/
|
|
2059
|
-
declare const AgentInstanceExecutePlanSubject = "agents.instance.execute-plan";
|
|
2060
|
-
/**
|
|
2061
|
-
* Agent Instance Management
|
|
2062
|
-
*/
|
|
2063
|
-
declare const AgentInstancePausePlanSubject = "agents.instance.pause-plan";
|
|
2064
|
-
/**
|
|
2065
|
-
* Agent Instance Management
|
|
2066
|
-
*/
|
|
2067
|
-
declare const AgentInstanceResumePlanSubject = "agents.instance.resume-plan";
|
|
2068
|
-
/**
|
|
2069
|
-
* Agent Instance Management
|
|
2070
|
-
*/
|
|
2071
|
-
declare const AgentInstanceCancelPlanSubject = "agents.instance.cancel-plan";
|
|
2072
|
-
/**
|
|
2073
|
-
* Execution History
|
|
2074
|
-
*/
|
|
2075
|
-
declare const AgentInstanceGetHistorySubject = "agents.instance.get-history";
|
|
2076
|
-
/**
|
|
2077
|
-
* Agent Instance Management
|
|
2078
|
-
*/
|
|
2079
|
-
declare const AgentInstanceClearHistorySubject = "agents.instance.clear-history";
|
|
2080
|
-
/**
|
|
2081
|
-
* Config and request models for product service integration
|
|
2082
|
-
*/
|
|
2083
|
-
interface UserSuggestedActionsConfig {
|
|
2084
|
-
enabled: boolean;
|
|
2085
|
-
actionTypes: string[];
|
|
2086
|
-
maxActions: number;
|
|
2087
|
-
cooldownSeconds: number;
|
|
2088
|
-
}
|
|
2089
|
-
interface UserSuggestedAction {
|
|
2090
|
-
title: string;
|
|
2091
|
-
actionType: string;
|
|
2092
|
-
input?: string;
|
|
2093
|
-
priority?: number;
|
|
2094
|
-
metadata?: {
|
|
2095
|
-
[key: string]: any;
|
|
2096
|
-
};
|
|
2097
|
-
}
|
|
2098
|
-
interface UserSuggestedActionsRequest {
|
|
2099
|
-
orgId: string;
|
|
2100
|
-
chatKey: string;
|
|
2101
|
-
config: UserSuggestedActionsConfig;
|
|
2102
|
-
metadata?: {
|
|
2103
|
-
[key: string]: any;
|
|
2104
|
-
};
|
|
2105
|
-
}
|
|
2106
|
-
interface UserSuggestedActionsResponse {
|
|
2107
|
-
actions: UserSuggestedAction[];
|
|
2108
|
-
metadata: any;
|
|
2109
|
-
}
|
|
2110
|
-
/**
|
|
2111
|
-
* ValidationError represents a validation error with field and message
|
|
2112
|
-
*/
|
|
2113
|
-
interface ValidationError {
|
|
2114
|
-
field: string;
|
|
2115
|
-
message: string;
|
|
2116
|
-
}
|
|
2117
|
-
/**
|
|
2118
|
-
* ValidationErrors represents a collection of validation errors
|
|
2119
|
-
*/
|
|
2120
|
-
type ValidationErrors = ValidationError[];
|
|
2121
|
-
/**
|
|
2122
|
-
* AgentWidget represents a widget configuration for an agent
|
|
2123
|
-
*/
|
|
2124
|
-
interface AgentWidget {
|
|
2125
|
-
id: string;
|
|
2126
|
-
agentId: string;
|
|
2127
|
-
orgId: string;
|
|
2128
|
-
widgetId: string;
|
|
2129
|
-
name: string;
|
|
2130
|
-
title: string;
|
|
2131
|
-
description?: string;
|
|
2132
|
-
enabled: boolean;
|
|
2133
|
-
isDefault: boolean;
|
|
2134
|
-
appearance: WidgetAppearance;
|
|
2135
|
-
behavior: WidgetBehavior;
|
|
2136
|
-
security: WidgetSecurity;
|
|
2137
|
-
createdAt: string;
|
|
2138
|
-
updatedAt: string;
|
|
2139
|
-
createdBy?: string;
|
|
2140
|
-
}
|
|
2141
|
-
/**
|
|
2142
|
-
* AgentWidget NATS Subjects
|
|
2143
|
-
*/
|
|
2144
|
-
declare const AgentWidgetsCreateSubject = "agents.widgets.create";
|
|
2145
|
-
/**
|
|
2146
|
-
* AgentWidget NATS Subjects
|
|
2147
|
-
*/
|
|
2148
|
-
declare const AgentWidgetsGetSubject = "agents.widgets.get";
|
|
2149
|
-
/**
|
|
2150
|
-
* AgentWidget NATS Subjects
|
|
2151
|
-
*/
|
|
2152
|
-
declare const AgentWidgetsGetByWidgetID = "agents.widgets.get-by-widget-id";
|
|
2153
|
-
/**
|
|
2154
|
-
* AgentWidget NATS Subjects
|
|
2155
|
-
*/
|
|
2156
|
-
declare const AgentWidgetsUpdateSubject = "agents.widgets.update";
|
|
2157
|
-
/**
|
|
2158
|
-
* AgentWidget NATS Subjects
|
|
2159
|
-
*/
|
|
2160
|
-
declare const AgentWidgetsDeleteSubject = "agents.widgets.delete";
|
|
2161
|
-
/**
|
|
2162
|
-
* AgentWidget NATS Subjects
|
|
2163
|
-
*/
|
|
2164
|
-
declare const AgentWidgetsListSubject = "agents.widgets.list";
|
|
2165
|
-
/**
|
|
2166
|
-
* AgentWidget NATS Subjects
|
|
2167
|
-
*/
|
|
2168
|
-
declare const AgentWidgetsSetDefaultSubject = "agents.widgets.set-default";
|
|
2169
|
-
/**
|
|
2170
|
-
* AgentWidget NATS Subjects
|
|
2171
|
-
*/
|
|
2172
|
-
declare const AgentWidgetsGetDefaultSubject = "agents.widgets.get-default";
|
|
2173
|
-
/**
|
|
2174
|
-
* CreateAgentWidgetRequest is the request to create a new widget
|
|
2175
|
-
*/
|
|
2176
|
-
interface CreateAgentWidgetRequest {
|
|
2177
|
-
orgId: string;
|
|
2178
|
-
agentId: string;
|
|
2179
|
-
widget: AgentWidget;
|
|
2180
|
-
}
|
|
2181
|
-
/**
|
|
2182
|
-
* AgentWidgetResponse is the response for single widget operations
|
|
2183
|
-
*/
|
|
2184
|
-
interface AgentWidgetResponse {
|
|
2185
|
-
widget?: AgentWidget;
|
|
2186
|
-
metadata: any;
|
|
2187
|
-
}
|
|
2188
|
-
/**
|
|
2189
|
-
* GetAgentWidgetRequest is the request to get a widget by ID
|
|
2190
|
-
*/
|
|
2191
|
-
interface GetAgentWidgetRequest {
|
|
2192
|
-
orgId: string;
|
|
2193
|
-
widgetId: string;
|
|
2194
|
-
}
|
|
2195
|
-
/**
|
|
2196
|
-
* GetWidgetByWidgetIDRequest is the request to get a widget by its embed widget_id
|
|
2197
|
-
*/
|
|
2198
|
-
interface GetWidgetByWidgetIDRequest {
|
|
2199
|
-
widgetId: string;
|
|
2200
|
-
}
|
|
2201
|
-
/**
|
|
2202
|
-
* UpdateAgentWidgetRequest is the request to update a widget
|
|
2203
|
-
*/
|
|
2204
|
-
interface UpdateAgentWidgetRequest {
|
|
2205
|
-
orgId: string;
|
|
2206
|
-
widget: AgentWidget;
|
|
2207
|
-
}
|
|
2208
|
-
/**
|
|
2209
|
-
* DeleteAgentWidgetRequest is the request to delete a widget
|
|
2210
|
-
*/
|
|
2211
|
-
interface DeleteAgentWidgetRequest {
|
|
2212
|
-
orgId: string;
|
|
2213
|
-
widgetId: string;
|
|
2214
|
-
}
|
|
2215
|
-
/**
|
|
2216
|
-
* ListAgentWidgetsRequest is the request to list widgets for an agent
|
|
2217
|
-
*/
|
|
2218
|
-
interface ListAgentWidgetsRequest {
|
|
2219
|
-
orgId: string;
|
|
2220
|
-
agentId: string;
|
|
2221
|
-
}
|
|
2222
|
-
/**
|
|
2223
|
-
* ListAgentWidgetsResponse is the response for listing widgets
|
|
2224
|
-
*/
|
|
2225
|
-
interface ListAgentWidgetsResponse {
|
|
2226
|
-
widgets: AgentWidget[];
|
|
2227
|
-
metadata: any;
|
|
2228
|
-
}
|
|
2229
|
-
/**
|
|
2230
|
-
* SetDefaultWidgetRequest is the request to set a widget as default
|
|
2231
|
-
*/
|
|
2232
|
-
interface SetDefaultWidgetRequest {
|
|
2233
|
-
orgId: string;
|
|
2234
|
-
agentId: string;
|
|
2235
|
-
widgetId: string;
|
|
2236
|
-
}
|
|
2237
|
-
/**
|
|
2238
|
-
* GetDefaultWidgetRequest is the request to get the default widget for an agent
|
|
2239
|
-
*/
|
|
2240
|
-
interface GetDefaultWidgetRequest {
|
|
2241
|
-
orgId: string;
|
|
2242
|
-
agentId: string;
|
|
2243
|
-
}
|
|
2244
|
-
/**
|
|
2245
|
-
* PublicWidgetConfig is the config exposed to the widget client (no sensitive data)
|
|
2246
|
-
*/
|
|
2247
|
-
interface PublicWidgetConfig {
|
|
2248
|
-
widgetId: string;
|
|
2249
|
-
agentId: string;
|
|
2250
|
-
orgId: string;
|
|
2251
|
-
name: string;
|
|
2252
|
-
title: string;
|
|
2253
|
-
appearance: WidgetAppearance;
|
|
2254
|
-
behavior: WidgetBehavior;
|
|
2255
|
-
}
|
|
95
|
+
declare const HubEventsUpdateTaskOutcomeStatus = "hub.events.update_task_outcome_status";
|
|
2256
96
|
|
|
2257
|
-
export { type
|
|
97
|
+
export { type AiTaskOutcome, HubAnalyticsGetTaskMetrics, HubAnalyticsGetTaskOutcomes, HubEventsInsertTaskOutcomes, HubEventsUpdateTaskOutcomeStatus, type TaskOutcomeInsertionResponse, type TaskOutcomeStatusUpdateRequest, type TaskOutcomeStatusUpdateResponse, type TaskOutcomesInsertRequest };
|