@elqnt/agents 1.0.9 → 1.0.12
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.d.mts +58 -53
- package/dist/index.d.ts +58 -53
- package/dist/index.js +33 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -275,37 +275,37 @@ interface PlanApprovalConfig {
|
|
|
275
275
|
allowAutoApprove: boolean;
|
|
276
276
|
}
|
|
277
277
|
/**
|
|
278
|
-
*
|
|
278
|
+
* CreateToolDefinitionRequest represents a request to create a tool definition
|
|
279
279
|
*/
|
|
280
|
-
interface
|
|
280
|
+
interface CreateToolDefinitionRequest {
|
|
281
281
|
orgId: string;
|
|
282
|
-
|
|
282
|
+
toolDefinition?: ToolDefinition;
|
|
283
283
|
}
|
|
284
284
|
/**
|
|
285
|
-
*
|
|
285
|
+
* UpdateToolDefinitionRequest represents a request to update a tool definition
|
|
286
286
|
*/
|
|
287
|
-
interface
|
|
287
|
+
interface UpdateToolDefinitionRequest {
|
|
288
288
|
orgId: string;
|
|
289
|
-
|
|
289
|
+
toolDefinition?: ToolDefinition;
|
|
290
290
|
}
|
|
291
291
|
/**
|
|
292
|
-
*
|
|
292
|
+
* GetToolDefinitionRequest represents a request to get a tool definition
|
|
293
293
|
*/
|
|
294
|
-
interface
|
|
294
|
+
interface GetToolDefinitionRequest {
|
|
295
295
|
orgId: string;
|
|
296
|
-
|
|
296
|
+
toolDefinitionId: string;
|
|
297
297
|
}
|
|
298
298
|
/**
|
|
299
|
-
*
|
|
299
|
+
* DeleteToolDefinitionRequest represents a request to delete a tool definition
|
|
300
300
|
*/
|
|
301
|
-
interface
|
|
301
|
+
interface DeleteToolDefinitionRequest {
|
|
302
302
|
orgId: string;
|
|
303
|
-
|
|
303
|
+
toolDefinitionId: string;
|
|
304
304
|
}
|
|
305
305
|
/**
|
|
306
|
-
*
|
|
306
|
+
* ListToolDefinitionsRequest represents a request to list tool definitions
|
|
307
307
|
*/
|
|
308
|
-
interface
|
|
308
|
+
interface ListToolDefinitionsRequest {
|
|
309
309
|
orgId: string;
|
|
310
310
|
onlySystem?: boolean;
|
|
311
311
|
enabled?: boolean;
|
|
@@ -313,17 +313,17 @@ interface ListToolsRequest {
|
|
|
313
313
|
offset?: number;
|
|
314
314
|
}
|
|
315
315
|
/**
|
|
316
|
-
*
|
|
316
|
+
* ToolDefinitionResponse represents a response containing a tool definition
|
|
317
317
|
*/
|
|
318
|
-
interface
|
|
319
|
-
|
|
318
|
+
interface ToolDefinitionResponse {
|
|
319
|
+
toolDefinition?: ToolDefinition;
|
|
320
320
|
metadata: any;
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
323
|
-
*
|
|
323
|
+
* ToolDefinitionsListResponse represents a response containing multiple tool definitions
|
|
324
324
|
*/
|
|
325
|
-
interface
|
|
326
|
-
|
|
325
|
+
interface ToolDefinitionsListResponse {
|
|
326
|
+
toolDefinitions: ToolDefinition[];
|
|
327
327
|
total: number;
|
|
328
328
|
metadata: any;
|
|
329
329
|
}
|
|
@@ -381,17 +381,17 @@ interface SubAgentsListResponse {
|
|
|
381
381
|
metadata: any;
|
|
382
382
|
}
|
|
383
383
|
/**
|
|
384
|
-
*
|
|
384
|
+
* GetToolDefinitionsByIDsRequest represents a request to get multiple tool definitions by IDs
|
|
385
385
|
*/
|
|
386
|
-
interface
|
|
386
|
+
interface GetToolDefinitionsByIDsRequest {
|
|
387
387
|
orgId: string;
|
|
388
|
-
|
|
388
|
+
toolDefinitionIds: string[];
|
|
389
389
|
}
|
|
390
390
|
/**
|
|
391
|
-
*
|
|
391
|
+
* GetToolDefinitionsByIDsResponse represents a response containing multiple tool definitions
|
|
392
392
|
*/
|
|
393
|
-
interface
|
|
394
|
-
|
|
393
|
+
interface GetToolDefinitionsByIDsResponse {
|
|
394
|
+
toolDefinitions: ToolDefinition[];
|
|
395
395
|
metadata: any;
|
|
396
396
|
}
|
|
397
397
|
/**
|
|
@@ -410,6 +410,7 @@ interface GetSubAgentsByIDsResponse {
|
|
|
410
410
|
}
|
|
411
411
|
interface ExecuteToolRequest {
|
|
412
412
|
orgId: string;
|
|
413
|
+
agentId?: string;
|
|
413
414
|
tool?: AgentTool;
|
|
414
415
|
input: {
|
|
415
416
|
[key: string]: any;
|
|
@@ -569,7 +570,7 @@ declare const AgentStatusInactive: AgentStatus;
|
|
|
569
570
|
declare const AgentStatusArchived: AgentStatus;
|
|
570
571
|
interface DefaultDefinitions {
|
|
571
572
|
agents: Agent[];
|
|
572
|
-
|
|
573
|
+
toolDefinitions: ToolDefinition[];
|
|
573
574
|
subAgents: SubAgent[];
|
|
574
575
|
skills?: Skill[];
|
|
575
576
|
}
|
|
@@ -733,9 +734,10 @@ interface AgentSummary {
|
|
|
733
734
|
};
|
|
734
735
|
}
|
|
735
736
|
/**
|
|
736
|
-
*
|
|
737
|
+
* ToolDefinition represents an abstract/generic tool definition that can be customized per agent
|
|
738
|
+
* This is the "template" that agents use to create their AgentTool configurations
|
|
737
739
|
*/
|
|
738
|
-
interface
|
|
740
|
+
interface ToolDefinition {
|
|
739
741
|
id: string;
|
|
740
742
|
name: string;
|
|
741
743
|
title: string;
|
|
@@ -750,6 +752,9 @@ interface Tool {
|
|
|
750
752
|
mergeConfig?: MergeConfig;
|
|
751
753
|
enabled: boolean;
|
|
752
754
|
isSystem: boolean;
|
|
755
|
+
metadata?: {
|
|
756
|
+
[key: string]: any;
|
|
757
|
+
};
|
|
753
758
|
createdAt: string;
|
|
754
759
|
updatedAt: string;
|
|
755
760
|
}
|
|
@@ -861,7 +866,7 @@ interface CreateExecutionPlanRequest {
|
|
|
861
866
|
context?: {
|
|
862
867
|
[key: string]: any;
|
|
863
868
|
};
|
|
864
|
-
availableTools:
|
|
869
|
+
availableTools: ToolDefinition[];
|
|
865
870
|
}
|
|
866
871
|
/**
|
|
867
872
|
* CreateExecutionPlanResponse represents the response with an execution plan
|
|
@@ -1223,49 +1228,49 @@ declare const WorkflowAgentGetSubject = "workflow.agent.get";
|
|
|
1223
1228
|
*/
|
|
1224
1229
|
declare const WorkflowAgentUpdateSubject = "workflow.agent.update";
|
|
1225
1230
|
/**
|
|
1226
|
-
*
|
|
1231
|
+
* ToolDefinitions Management
|
|
1227
1232
|
*/
|
|
1228
|
-
declare const
|
|
1233
|
+
declare const ToolDefinitionsCreateSubject = "agents.tool-definitions.create";
|
|
1229
1234
|
/**
|
|
1230
|
-
*
|
|
1235
|
+
* ToolDefinitions Management
|
|
1231
1236
|
*/
|
|
1232
|
-
declare const
|
|
1237
|
+
declare const ToolDefinitionsCreatedSubject = "agents.tool-definitions.created";
|
|
1233
1238
|
/**
|
|
1234
|
-
*
|
|
1239
|
+
* ToolDefinitions Management
|
|
1235
1240
|
*/
|
|
1236
|
-
declare const
|
|
1241
|
+
declare const ToolDefinitionsGetSubject = "agents.tool-definitions.get";
|
|
1237
1242
|
/**
|
|
1238
|
-
*
|
|
1243
|
+
* ToolDefinitions Management
|
|
1239
1244
|
*/
|
|
1240
|
-
declare const
|
|
1245
|
+
declare const ToolDefinitionsUpdateSubject = "agents.tool-definitions.update";
|
|
1241
1246
|
/**
|
|
1242
|
-
*
|
|
1247
|
+
* ToolDefinitions Management
|
|
1243
1248
|
*/
|
|
1244
|
-
declare const
|
|
1249
|
+
declare const ToolDefinitionsUpdatedSubject = "agents.tool-definitions.updated";
|
|
1245
1250
|
/**
|
|
1246
|
-
*
|
|
1251
|
+
* ToolDefinitions Management
|
|
1247
1252
|
*/
|
|
1248
|
-
declare const
|
|
1253
|
+
declare const ToolDefinitionsDeleteSubject = "agents.tool-definitions.delete";
|
|
1249
1254
|
/**
|
|
1250
|
-
*
|
|
1255
|
+
* ToolDefinitions Management
|
|
1251
1256
|
*/
|
|
1252
|
-
declare const
|
|
1257
|
+
declare const ToolDefinitionsDeletedSubject = "agents.tool-definitions.deleted";
|
|
1253
1258
|
/**
|
|
1254
|
-
*
|
|
1259
|
+
* ToolDefinitions Management
|
|
1255
1260
|
*/
|
|
1256
|
-
declare const
|
|
1261
|
+
declare const ToolDefinitionsListSubject = "agents.tool-definitions.list";
|
|
1257
1262
|
/**
|
|
1258
|
-
*
|
|
1263
|
+
* ToolDefinitions Management
|
|
1259
1264
|
*/
|
|
1260
|
-
declare const
|
|
1265
|
+
declare const ToolDefinitionsGetByIDsSubject = "agents.tool-definitions.get-by-ids";
|
|
1261
1266
|
/**
|
|
1262
|
-
*
|
|
1267
|
+
* ToolDefinitions Management
|
|
1263
1268
|
*/
|
|
1264
|
-
declare const
|
|
1269
|
+
declare const ToolDefinitionsExecuteSubject = "agents.tool-definitions.execute";
|
|
1265
1270
|
/**
|
|
1266
|
-
*
|
|
1271
|
+
* ToolDefinitions Management
|
|
1267
1272
|
*/
|
|
1268
|
-
declare const
|
|
1273
|
+
declare const ToolDefinitionsValidateSubject = "agents.tool-definitions.validate";
|
|
1269
1274
|
/**
|
|
1270
1275
|
* SubAgents Management
|
|
1271
1276
|
*/
|
|
@@ -1448,4 +1453,4 @@ interface ValidationError {
|
|
|
1448
1453
|
*/
|
|
1449
1454
|
type ValidationErrors = ValidationError[];
|
|
1450
1455
|
|
|
1451
|
-
export { type Agent, AgentChatCreateSubject, AgentChatGetSubject, AgentChatUpdateSubject, AgentChatValidateSubject, AgentCloneSubject, type AgentContext, type AgentContextConfig, AgentCreateSubject, AgentCreatedSubject, AgentDeleteSubject, AgentDeletedSubject, AgentEnsureDefaultSubject, AgentExecuteStatusSubject, AgentExecuteStopSubject, AgentExecuteSubject, type AgentExecution, AgentExportSubject, type AgentFilters, AgentFromTemplateSubject, AgentGetByOrgSubject, AgentGetDefaultSubject, AgentGetSubject, AgentImportSubject, AgentInstanceCancelPlanSubject, AgentInstanceClearHistorySubject, AgentInstanceCreatePlanSubject, AgentInstanceCreateSubject, AgentInstanceCreatedSubject, AgentInstanceDeleteSubject, AgentInstanceDeletedSubject, AgentInstanceExecutePlanSubject, AgentInstanceGetHistorySubject, AgentInstanceGetSubject, AgentInstanceListSubject, AgentInstancePausePlanSubject, AgentInstanceResumePlanSubject, AgentInstanceUpdateSubject, AgentInstanceUpdatedSubject, AgentListSubject, AgentListSummarySubject, AgentReactCreateSubject, AgentReactGetSubject, AgentReactUpdateSubject, AgentReactValidateSubject, type AgentResponse, AgentSearchSubject, type AgentSkill, type AgentStatus, AgentStatusActive, AgentStatusArchived, AgentStatusDraft, AgentStatusInactive, type AgentStatusTS, type AgentSubType, AgentSubTypeChat, AgentSubTypeDocument, AgentSubTypeReact, type AgentSubTypeTS, AgentSubTypeWorkflow, type AgentSummary, AgentTemplateGetSubject, AgentTemplateListSubject, type AgentTool, type AgentToolConfiguration, type AgentType, AgentTypeChat, AgentTypeReact, type AgentTypeTS, AgentUpdateOrgSubject, AgentUpdateSubject, AgentUpdatedSubject, AgentVersionActivateSubject, AgentVersionActivatedSubject, AgentVersionCreateSubject, AgentVersionCreatedSubject, AgentVersionGetSubject, AgentVersionListSubject, type CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type
|
|
1456
|
+
export { type Agent, AgentChatCreateSubject, AgentChatGetSubject, AgentChatUpdateSubject, AgentChatValidateSubject, AgentCloneSubject, type AgentContext, type AgentContextConfig, AgentCreateSubject, AgentCreatedSubject, AgentDeleteSubject, AgentDeletedSubject, AgentEnsureDefaultSubject, AgentExecuteStatusSubject, AgentExecuteStopSubject, AgentExecuteSubject, type AgentExecution, AgentExportSubject, type AgentFilters, AgentFromTemplateSubject, AgentGetByOrgSubject, AgentGetDefaultSubject, AgentGetSubject, AgentImportSubject, AgentInstanceCancelPlanSubject, AgentInstanceClearHistorySubject, AgentInstanceCreatePlanSubject, AgentInstanceCreateSubject, AgentInstanceCreatedSubject, AgentInstanceDeleteSubject, AgentInstanceDeletedSubject, AgentInstanceExecutePlanSubject, AgentInstanceGetHistorySubject, AgentInstanceGetSubject, AgentInstanceListSubject, AgentInstancePausePlanSubject, AgentInstanceResumePlanSubject, AgentInstanceUpdateSubject, AgentInstanceUpdatedSubject, AgentListSubject, AgentListSummarySubject, AgentReactCreateSubject, AgentReactGetSubject, AgentReactUpdateSubject, AgentReactValidateSubject, type AgentResponse, AgentSearchSubject, type AgentSkill, type AgentStatus, AgentStatusActive, AgentStatusArchived, AgentStatusDraft, AgentStatusInactive, type AgentStatusTS, type AgentSubType, AgentSubTypeChat, AgentSubTypeDocument, AgentSubTypeReact, type AgentSubTypeTS, AgentSubTypeWorkflow, type AgentSummary, AgentTemplateGetSubject, AgentTemplateListSubject, type AgentTool, type AgentToolConfiguration, type AgentType, AgentTypeChat, AgentTypeReact, type AgentTypeTS, AgentUpdateOrgSubject, AgentUpdateSubject, AgentUpdatedSubject, AgentVersionActivateSubject, AgentVersionActivatedSubject, AgentVersionCreateSubject, AgentVersionCreatedSubject, AgentVersionGetSubject, AgentVersionListSubject, type CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type CreateToolDefinitionRequest, type DefaultDefinitions, type DeleteAgentRequest, type DeleteSkillRequest, type DeleteSubAgentRequest, type DeleteToolDefinitionRequest, type ExecutePlanRequest, type ExecutePlanResponse, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionMode, ExecutionModeAsync, ExecutionModeAsyncClient, ExecutionModeSync, type ExecutionModeTS, type ExecutionPlan, type ExecutionStatus, ExecutionStatusCompleted, ExecutionStatusFailed, ExecutionStatusPending, ExecutionStatusRunning, ExecutionStatusSkipped, type ExecutionStatusTS, ExecutionTTLHours, type GetAgentRequest, type GetDefaultAgentRequest, type GetSkillRequest, type GetSkillsByIDsRequest, type GetSkillsByIDsResponse, type GetSubAgentRequest, type GetSubAgentsByIDsRequest, type GetSubAgentsByIDsResponse, type GetToolDefinitionRequest, type GetToolDefinitionsByIDsRequest, type GetToolDefinitionsByIDsResponse, type HandoffConfig, type ListAgentsRequest, type ListAgentsResponse, type ListAgentsSummaryRequest, type ListAgentsSummaryResponse, type ListSkillsRequest, type ListSubAgentsRequest, type ListToolDefinitionsRequest, type MCPServerConfig, MaxExecutions, type MergeConfig, type MergeStrategy, MergeStrategyAppend, MergeStrategyMerge, MergeStrategyReplace, type MergeStrategyTS, type PlanApprovalConfig, type PlanStatus, PlanStatusApproved, PlanStatusCancelled, PlanStatusCompleted, PlanStatusExecuting, PlanStatusPendingApproval, PlanStatusRejected, type PlanStatusTS, type PlannedStep, type ReactAgentConfig, ReactAgentExecuteSubject, ReactAgentStatusSubject, ReactAgentStopSubject, type RetryPolicy, type Skill, type SkillCategory, SkillCategoryAnalysis, SkillCategoryCommunication, SkillCategoryCreative, SkillCategoryCustom, SkillCategoryIntegration, SkillCategoryProductivity, type SkillCategoryTS, type SkillResponse, SkillsCreateSubject, SkillsCreatedSubject, SkillsDeleteSubject, SkillsDeletedSubject, SkillsGetByIDsSubject, SkillsGetSubject, type SkillsListResponse, SkillsListSubject, SkillsUpdateSubject, SkillsUpdatedSubject, type SubAgent, type SubAgentResponse, SubAgentsCreateSubject, SubAgentsCreatedSubject, SubAgentsDeleteSubject, SubAgentsDeletedSubject, SubAgentsExecuteSubject, SubAgentsGetByIDsSubject, SubAgentsGetSubject, type SubAgentsListResponse, SubAgentsListSubject, SubAgentsUpdateSubject, SubAgentsUpdatedSubject, SubAgentsValidateSubject, type ToolConfig, type ToolDefinition, type ToolDefinitionResponse, ToolDefinitionsCreateSubject, ToolDefinitionsCreatedSubject, ToolDefinitionsDeleteSubject, ToolDefinitionsDeletedSubject, ToolDefinitionsExecuteSubject, ToolDefinitionsGetByIDsSubject, ToolDefinitionsGetSubject, type ToolDefinitionsListResponse, ToolDefinitionsListSubject, ToolDefinitionsUpdateSubject, ToolDefinitionsUpdatedSubject, ToolDefinitionsValidateSubject, type ToolExecution, type ToolExecutionPolicy, type ToolExecutionProgress, type ToolExecutionStatus, ToolExecutionStatusCompleted, ToolExecutionStatusExecuting, ToolExecutionStatusFailed, ToolExecutionStatusSkipped, ToolExecutionStatusStarted, type ToolExecutionStatusTS, ToolExecutionStatusTimeout, type UpdateAgentRequest, type UpdateOrgAgentsRequest, type UpdateOrgAgentsResponse, type UpdateSkillRequest, type UpdateSubAgentRequest, type UpdateToolDefinitionRequest, type UserSuggestedAction, type UserSuggestedActionsConfig, type UserSuggestedActionsRequest, type UserSuggestedActionsResponse, type ValidationError, type ValidationErrors, WorkflowAgentGetSubject, WorkflowAgentUpdateSubject };
|
package/dist/index.d.ts
CHANGED
|
@@ -275,37 +275,37 @@ interface PlanApprovalConfig {
|
|
|
275
275
|
allowAutoApprove: boolean;
|
|
276
276
|
}
|
|
277
277
|
/**
|
|
278
|
-
*
|
|
278
|
+
* CreateToolDefinitionRequest represents a request to create a tool definition
|
|
279
279
|
*/
|
|
280
|
-
interface
|
|
280
|
+
interface CreateToolDefinitionRequest {
|
|
281
281
|
orgId: string;
|
|
282
|
-
|
|
282
|
+
toolDefinition?: ToolDefinition;
|
|
283
283
|
}
|
|
284
284
|
/**
|
|
285
|
-
*
|
|
285
|
+
* UpdateToolDefinitionRequest represents a request to update a tool definition
|
|
286
286
|
*/
|
|
287
|
-
interface
|
|
287
|
+
interface UpdateToolDefinitionRequest {
|
|
288
288
|
orgId: string;
|
|
289
|
-
|
|
289
|
+
toolDefinition?: ToolDefinition;
|
|
290
290
|
}
|
|
291
291
|
/**
|
|
292
|
-
*
|
|
292
|
+
* GetToolDefinitionRequest represents a request to get a tool definition
|
|
293
293
|
*/
|
|
294
|
-
interface
|
|
294
|
+
interface GetToolDefinitionRequest {
|
|
295
295
|
orgId: string;
|
|
296
|
-
|
|
296
|
+
toolDefinitionId: string;
|
|
297
297
|
}
|
|
298
298
|
/**
|
|
299
|
-
*
|
|
299
|
+
* DeleteToolDefinitionRequest represents a request to delete a tool definition
|
|
300
300
|
*/
|
|
301
|
-
interface
|
|
301
|
+
interface DeleteToolDefinitionRequest {
|
|
302
302
|
orgId: string;
|
|
303
|
-
|
|
303
|
+
toolDefinitionId: string;
|
|
304
304
|
}
|
|
305
305
|
/**
|
|
306
|
-
*
|
|
306
|
+
* ListToolDefinitionsRequest represents a request to list tool definitions
|
|
307
307
|
*/
|
|
308
|
-
interface
|
|
308
|
+
interface ListToolDefinitionsRequest {
|
|
309
309
|
orgId: string;
|
|
310
310
|
onlySystem?: boolean;
|
|
311
311
|
enabled?: boolean;
|
|
@@ -313,17 +313,17 @@ interface ListToolsRequest {
|
|
|
313
313
|
offset?: number;
|
|
314
314
|
}
|
|
315
315
|
/**
|
|
316
|
-
*
|
|
316
|
+
* ToolDefinitionResponse represents a response containing a tool definition
|
|
317
317
|
*/
|
|
318
|
-
interface
|
|
319
|
-
|
|
318
|
+
interface ToolDefinitionResponse {
|
|
319
|
+
toolDefinition?: ToolDefinition;
|
|
320
320
|
metadata: any;
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
323
|
-
*
|
|
323
|
+
* ToolDefinitionsListResponse represents a response containing multiple tool definitions
|
|
324
324
|
*/
|
|
325
|
-
interface
|
|
326
|
-
|
|
325
|
+
interface ToolDefinitionsListResponse {
|
|
326
|
+
toolDefinitions: ToolDefinition[];
|
|
327
327
|
total: number;
|
|
328
328
|
metadata: any;
|
|
329
329
|
}
|
|
@@ -381,17 +381,17 @@ interface SubAgentsListResponse {
|
|
|
381
381
|
metadata: any;
|
|
382
382
|
}
|
|
383
383
|
/**
|
|
384
|
-
*
|
|
384
|
+
* GetToolDefinitionsByIDsRequest represents a request to get multiple tool definitions by IDs
|
|
385
385
|
*/
|
|
386
|
-
interface
|
|
386
|
+
interface GetToolDefinitionsByIDsRequest {
|
|
387
387
|
orgId: string;
|
|
388
|
-
|
|
388
|
+
toolDefinitionIds: string[];
|
|
389
389
|
}
|
|
390
390
|
/**
|
|
391
|
-
*
|
|
391
|
+
* GetToolDefinitionsByIDsResponse represents a response containing multiple tool definitions
|
|
392
392
|
*/
|
|
393
|
-
interface
|
|
394
|
-
|
|
393
|
+
interface GetToolDefinitionsByIDsResponse {
|
|
394
|
+
toolDefinitions: ToolDefinition[];
|
|
395
395
|
metadata: any;
|
|
396
396
|
}
|
|
397
397
|
/**
|
|
@@ -410,6 +410,7 @@ interface GetSubAgentsByIDsResponse {
|
|
|
410
410
|
}
|
|
411
411
|
interface ExecuteToolRequest {
|
|
412
412
|
orgId: string;
|
|
413
|
+
agentId?: string;
|
|
413
414
|
tool?: AgentTool;
|
|
414
415
|
input: {
|
|
415
416
|
[key: string]: any;
|
|
@@ -569,7 +570,7 @@ declare const AgentStatusInactive: AgentStatus;
|
|
|
569
570
|
declare const AgentStatusArchived: AgentStatus;
|
|
570
571
|
interface DefaultDefinitions {
|
|
571
572
|
agents: Agent[];
|
|
572
|
-
|
|
573
|
+
toolDefinitions: ToolDefinition[];
|
|
573
574
|
subAgents: SubAgent[];
|
|
574
575
|
skills?: Skill[];
|
|
575
576
|
}
|
|
@@ -733,9 +734,10 @@ interface AgentSummary {
|
|
|
733
734
|
};
|
|
734
735
|
}
|
|
735
736
|
/**
|
|
736
|
-
*
|
|
737
|
+
* ToolDefinition represents an abstract/generic tool definition that can be customized per agent
|
|
738
|
+
* This is the "template" that agents use to create their AgentTool configurations
|
|
737
739
|
*/
|
|
738
|
-
interface
|
|
740
|
+
interface ToolDefinition {
|
|
739
741
|
id: string;
|
|
740
742
|
name: string;
|
|
741
743
|
title: string;
|
|
@@ -750,6 +752,9 @@ interface Tool {
|
|
|
750
752
|
mergeConfig?: MergeConfig;
|
|
751
753
|
enabled: boolean;
|
|
752
754
|
isSystem: boolean;
|
|
755
|
+
metadata?: {
|
|
756
|
+
[key: string]: any;
|
|
757
|
+
};
|
|
753
758
|
createdAt: string;
|
|
754
759
|
updatedAt: string;
|
|
755
760
|
}
|
|
@@ -861,7 +866,7 @@ interface CreateExecutionPlanRequest {
|
|
|
861
866
|
context?: {
|
|
862
867
|
[key: string]: any;
|
|
863
868
|
};
|
|
864
|
-
availableTools:
|
|
869
|
+
availableTools: ToolDefinition[];
|
|
865
870
|
}
|
|
866
871
|
/**
|
|
867
872
|
* CreateExecutionPlanResponse represents the response with an execution plan
|
|
@@ -1223,49 +1228,49 @@ declare const WorkflowAgentGetSubject = "workflow.agent.get";
|
|
|
1223
1228
|
*/
|
|
1224
1229
|
declare const WorkflowAgentUpdateSubject = "workflow.agent.update";
|
|
1225
1230
|
/**
|
|
1226
|
-
*
|
|
1231
|
+
* ToolDefinitions Management
|
|
1227
1232
|
*/
|
|
1228
|
-
declare const
|
|
1233
|
+
declare const ToolDefinitionsCreateSubject = "agents.tool-definitions.create";
|
|
1229
1234
|
/**
|
|
1230
|
-
*
|
|
1235
|
+
* ToolDefinitions Management
|
|
1231
1236
|
*/
|
|
1232
|
-
declare const
|
|
1237
|
+
declare const ToolDefinitionsCreatedSubject = "agents.tool-definitions.created";
|
|
1233
1238
|
/**
|
|
1234
|
-
*
|
|
1239
|
+
* ToolDefinitions Management
|
|
1235
1240
|
*/
|
|
1236
|
-
declare const
|
|
1241
|
+
declare const ToolDefinitionsGetSubject = "agents.tool-definitions.get";
|
|
1237
1242
|
/**
|
|
1238
|
-
*
|
|
1243
|
+
* ToolDefinitions Management
|
|
1239
1244
|
*/
|
|
1240
|
-
declare const
|
|
1245
|
+
declare const ToolDefinitionsUpdateSubject = "agents.tool-definitions.update";
|
|
1241
1246
|
/**
|
|
1242
|
-
*
|
|
1247
|
+
* ToolDefinitions Management
|
|
1243
1248
|
*/
|
|
1244
|
-
declare const
|
|
1249
|
+
declare const ToolDefinitionsUpdatedSubject = "agents.tool-definitions.updated";
|
|
1245
1250
|
/**
|
|
1246
|
-
*
|
|
1251
|
+
* ToolDefinitions Management
|
|
1247
1252
|
*/
|
|
1248
|
-
declare const
|
|
1253
|
+
declare const ToolDefinitionsDeleteSubject = "agents.tool-definitions.delete";
|
|
1249
1254
|
/**
|
|
1250
|
-
*
|
|
1255
|
+
* ToolDefinitions Management
|
|
1251
1256
|
*/
|
|
1252
|
-
declare const
|
|
1257
|
+
declare const ToolDefinitionsDeletedSubject = "agents.tool-definitions.deleted";
|
|
1253
1258
|
/**
|
|
1254
|
-
*
|
|
1259
|
+
* ToolDefinitions Management
|
|
1255
1260
|
*/
|
|
1256
|
-
declare const
|
|
1261
|
+
declare const ToolDefinitionsListSubject = "agents.tool-definitions.list";
|
|
1257
1262
|
/**
|
|
1258
|
-
*
|
|
1263
|
+
* ToolDefinitions Management
|
|
1259
1264
|
*/
|
|
1260
|
-
declare const
|
|
1265
|
+
declare const ToolDefinitionsGetByIDsSubject = "agents.tool-definitions.get-by-ids";
|
|
1261
1266
|
/**
|
|
1262
|
-
*
|
|
1267
|
+
* ToolDefinitions Management
|
|
1263
1268
|
*/
|
|
1264
|
-
declare const
|
|
1269
|
+
declare const ToolDefinitionsExecuteSubject = "agents.tool-definitions.execute";
|
|
1265
1270
|
/**
|
|
1266
|
-
*
|
|
1271
|
+
* ToolDefinitions Management
|
|
1267
1272
|
*/
|
|
1268
|
-
declare const
|
|
1273
|
+
declare const ToolDefinitionsValidateSubject = "agents.tool-definitions.validate";
|
|
1269
1274
|
/**
|
|
1270
1275
|
* SubAgents Management
|
|
1271
1276
|
*/
|
|
@@ -1448,4 +1453,4 @@ interface ValidationError {
|
|
|
1448
1453
|
*/
|
|
1449
1454
|
type ValidationErrors = ValidationError[];
|
|
1450
1455
|
|
|
1451
|
-
export { type Agent, AgentChatCreateSubject, AgentChatGetSubject, AgentChatUpdateSubject, AgentChatValidateSubject, AgentCloneSubject, type AgentContext, type AgentContextConfig, AgentCreateSubject, AgentCreatedSubject, AgentDeleteSubject, AgentDeletedSubject, AgentEnsureDefaultSubject, AgentExecuteStatusSubject, AgentExecuteStopSubject, AgentExecuteSubject, type AgentExecution, AgentExportSubject, type AgentFilters, AgentFromTemplateSubject, AgentGetByOrgSubject, AgentGetDefaultSubject, AgentGetSubject, AgentImportSubject, AgentInstanceCancelPlanSubject, AgentInstanceClearHistorySubject, AgentInstanceCreatePlanSubject, AgentInstanceCreateSubject, AgentInstanceCreatedSubject, AgentInstanceDeleteSubject, AgentInstanceDeletedSubject, AgentInstanceExecutePlanSubject, AgentInstanceGetHistorySubject, AgentInstanceGetSubject, AgentInstanceListSubject, AgentInstancePausePlanSubject, AgentInstanceResumePlanSubject, AgentInstanceUpdateSubject, AgentInstanceUpdatedSubject, AgentListSubject, AgentListSummarySubject, AgentReactCreateSubject, AgentReactGetSubject, AgentReactUpdateSubject, AgentReactValidateSubject, type AgentResponse, AgentSearchSubject, type AgentSkill, type AgentStatus, AgentStatusActive, AgentStatusArchived, AgentStatusDraft, AgentStatusInactive, type AgentStatusTS, type AgentSubType, AgentSubTypeChat, AgentSubTypeDocument, AgentSubTypeReact, type AgentSubTypeTS, AgentSubTypeWorkflow, type AgentSummary, AgentTemplateGetSubject, AgentTemplateListSubject, type AgentTool, type AgentToolConfiguration, type AgentType, AgentTypeChat, AgentTypeReact, type AgentTypeTS, AgentUpdateOrgSubject, AgentUpdateSubject, AgentUpdatedSubject, AgentVersionActivateSubject, AgentVersionActivatedSubject, AgentVersionCreateSubject, AgentVersionCreatedSubject, AgentVersionGetSubject, AgentVersionListSubject, type CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type
|
|
1456
|
+
export { type Agent, AgentChatCreateSubject, AgentChatGetSubject, AgentChatUpdateSubject, AgentChatValidateSubject, AgentCloneSubject, type AgentContext, type AgentContextConfig, AgentCreateSubject, AgentCreatedSubject, AgentDeleteSubject, AgentDeletedSubject, AgentEnsureDefaultSubject, AgentExecuteStatusSubject, AgentExecuteStopSubject, AgentExecuteSubject, type AgentExecution, AgentExportSubject, type AgentFilters, AgentFromTemplateSubject, AgentGetByOrgSubject, AgentGetDefaultSubject, AgentGetSubject, AgentImportSubject, AgentInstanceCancelPlanSubject, AgentInstanceClearHistorySubject, AgentInstanceCreatePlanSubject, AgentInstanceCreateSubject, AgentInstanceCreatedSubject, AgentInstanceDeleteSubject, AgentInstanceDeletedSubject, AgentInstanceExecutePlanSubject, AgentInstanceGetHistorySubject, AgentInstanceGetSubject, AgentInstanceListSubject, AgentInstancePausePlanSubject, AgentInstanceResumePlanSubject, AgentInstanceUpdateSubject, AgentInstanceUpdatedSubject, AgentListSubject, AgentListSummarySubject, AgentReactCreateSubject, AgentReactGetSubject, AgentReactUpdateSubject, AgentReactValidateSubject, type AgentResponse, AgentSearchSubject, type AgentSkill, type AgentStatus, AgentStatusActive, AgentStatusArchived, AgentStatusDraft, AgentStatusInactive, type AgentStatusTS, type AgentSubType, AgentSubTypeChat, AgentSubTypeDocument, AgentSubTypeReact, type AgentSubTypeTS, AgentSubTypeWorkflow, type AgentSummary, AgentTemplateGetSubject, AgentTemplateListSubject, type AgentTool, type AgentToolConfiguration, type AgentType, AgentTypeChat, AgentTypeReact, type AgentTypeTS, AgentUpdateOrgSubject, AgentUpdateSubject, AgentUpdatedSubject, AgentVersionActivateSubject, AgentVersionActivatedSubject, AgentVersionCreateSubject, AgentVersionCreatedSubject, AgentVersionGetSubject, AgentVersionListSubject, type CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type CreateToolDefinitionRequest, type DefaultDefinitions, type DeleteAgentRequest, type DeleteSkillRequest, type DeleteSubAgentRequest, type DeleteToolDefinitionRequest, type ExecutePlanRequest, type ExecutePlanResponse, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionMode, ExecutionModeAsync, ExecutionModeAsyncClient, ExecutionModeSync, type ExecutionModeTS, type ExecutionPlan, type ExecutionStatus, ExecutionStatusCompleted, ExecutionStatusFailed, ExecutionStatusPending, ExecutionStatusRunning, ExecutionStatusSkipped, type ExecutionStatusTS, ExecutionTTLHours, type GetAgentRequest, type GetDefaultAgentRequest, type GetSkillRequest, type GetSkillsByIDsRequest, type GetSkillsByIDsResponse, type GetSubAgentRequest, type GetSubAgentsByIDsRequest, type GetSubAgentsByIDsResponse, type GetToolDefinitionRequest, type GetToolDefinitionsByIDsRequest, type GetToolDefinitionsByIDsResponse, type HandoffConfig, type ListAgentsRequest, type ListAgentsResponse, type ListAgentsSummaryRequest, type ListAgentsSummaryResponse, type ListSkillsRequest, type ListSubAgentsRequest, type ListToolDefinitionsRequest, type MCPServerConfig, MaxExecutions, type MergeConfig, type MergeStrategy, MergeStrategyAppend, MergeStrategyMerge, MergeStrategyReplace, type MergeStrategyTS, type PlanApprovalConfig, type PlanStatus, PlanStatusApproved, PlanStatusCancelled, PlanStatusCompleted, PlanStatusExecuting, PlanStatusPendingApproval, PlanStatusRejected, type PlanStatusTS, type PlannedStep, type ReactAgentConfig, ReactAgentExecuteSubject, ReactAgentStatusSubject, ReactAgentStopSubject, type RetryPolicy, type Skill, type SkillCategory, SkillCategoryAnalysis, SkillCategoryCommunication, SkillCategoryCreative, SkillCategoryCustom, SkillCategoryIntegration, SkillCategoryProductivity, type SkillCategoryTS, type SkillResponse, SkillsCreateSubject, SkillsCreatedSubject, SkillsDeleteSubject, SkillsDeletedSubject, SkillsGetByIDsSubject, SkillsGetSubject, type SkillsListResponse, SkillsListSubject, SkillsUpdateSubject, SkillsUpdatedSubject, type SubAgent, type SubAgentResponse, SubAgentsCreateSubject, SubAgentsCreatedSubject, SubAgentsDeleteSubject, SubAgentsDeletedSubject, SubAgentsExecuteSubject, SubAgentsGetByIDsSubject, SubAgentsGetSubject, type SubAgentsListResponse, SubAgentsListSubject, SubAgentsUpdateSubject, SubAgentsUpdatedSubject, SubAgentsValidateSubject, type ToolConfig, type ToolDefinition, type ToolDefinitionResponse, ToolDefinitionsCreateSubject, ToolDefinitionsCreatedSubject, ToolDefinitionsDeleteSubject, ToolDefinitionsDeletedSubject, ToolDefinitionsExecuteSubject, ToolDefinitionsGetByIDsSubject, ToolDefinitionsGetSubject, type ToolDefinitionsListResponse, ToolDefinitionsListSubject, ToolDefinitionsUpdateSubject, ToolDefinitionsUpdatedSubject, ToolDefinitionsValidateSubject, type ToolExecution, type ToolExecutionPolicy, type ToolExecutionProgress, type ToolExecutionStatus, ToolExecutionStatusCompleted, ToolExecutionStatusExecuting, ToolExecutionStatusFailed, ToolExecutionStatusSkipped, ToolExecutionStatusStarted, type ToolExecutionStatusTS, ToolExecutionStatusTimeout, type UpdateAgentRequest, type UpdateOrgAgentsRequest, type UpdateOrgAgentsResponse, type UpdateSkillRequest, type UpdateSubAgentRequest, type UpdateToolDefinitionRequest, type UserSuggestedAction, type UserSuggestedActionsConfig, type UserSuggestedActionsRequest, type UserSuggestedActionsResponse, type ValidationError, type ValidationErrors, WorkflowAgentGetSubject, WorkflowAgentUpdateSubject };
|
package/dist/index.js
CHANGED
|
@@ -132,23 +132,23 @@ __export(index_exports, {
|
|
|
132
132
|
SubAgentsUpdateSubject: () => SubAgentsUpdateSubject,
|
|
133
133
|
SubAgentsUpdatedSubject: () => SubAgentsUpdatedSubject,
|
|
134
134
|
SubAgentsValidateSubject: () => SubAgentsValidateSubject,
|
|
135
|
+
ToolDefinitionsCreateSubject: () => ToolDefinitionsCreateSubject,
|
|
136
|
+
ToolDefinitionsCreatedSubject: () => ToolDefinitionsCreatedSubject,
|
|
137
|
+
ToolDefinitionsDeleteSubject: () => ToolDefinitionsDeleteSubject,
|
|
138
|
+
ToolDefinitionsDeletedSubject: () => ToolDefinitionsDeletedSubject,
|
|
139
|
+
ToolDefinitionsExecuteSubject: () => ToolDefinitionsExecuteSubject,
|
|
140
|
+
ToolDefinitionsGetByIDsSubject: () => ToolDefinitionsGetByIDsSubject,
|
|
141
|
+
ToolDefinitionsGetSubject: () => ToolDefinitionsGetSubject,
|
|
142
|
+
ToolDefinitionsListSubject: () => ToolDefinitionsListSubject,
|
|
143
|
+
ToolDefinitionsUpdateSubject: () => ToolDefinitionsUpdateSubject,
|
|
144
|
+
ToolDefinitionsUpdatedSubject: () => ToolDefinitionsUpdatedSubject,
|
|
145
|
+
ToolDefinitionsValidateSubject: () => ToolDefinitionsValidateSubject,
|
|
135
146
|
ToolExecutionStatusCompleted: () => ToolExecutionStatusCompleted,
|
|
136
147
|
ToolExecutionStatusExecuting: () => ToolExecutionStatusExecuting,
|
|
137
148
|
ToolExecutionStatusFailed: () => ToolExecutionStatusFailed,
|
|
138
149
|
ToolExecutionStatusSkipped: () => ToolExecutionStatusSkipped,
|
|
139
150
|
ToolExecutionStatusStarted: () => ToolExecutionStatusStarted,
|
|
140
151
|
ToolExecutionStatusTimeout: () => ToolExecutionStatusTimeout,
|
|
141
|
-
ToolsCreateSubject: () => ToolsCreateSubject,
|
|
142
|
-
ToolsCreatedSubject: () => ToolsCreatedSubject,
|
|
143
|
-
ToolsDeleteSubject: () => ToolsDeleteSubject,
|
|
144
|
-
ToolsDeletedSubject: () => ToolsDeletedSubject,
|
|
145
|
-
ToolsExecuteSubject: () => ToolsExecuteSubject,
|
|
146
|
-
ToolsGetByIDsSubject: () => ToolsGetByIDsSubject,
|
|
147
|
-
ToolsGetSubject: () => ToolsGetSubject,
|
|
148
|
-
ToolsListSubject: () => ToolsListSubject,
|
|
149
|
-
ToolsUpdateSubject: () => ToolsUpdateSubject,
|
|
150
|
-
ToolsUpdatedSubject: () => ToolsUpdatedSubject,
|
|
151
|
-
ToolsValidateSubject: () => ToolsValidateSubject,
|
|
152
152
|
WorkflowAgentGetSubject: () => WorkflowAgentGetSubject,
|
|
153
153
|
WorkflowAgentUpdateSubject: () => WorkflowAgentUpdateSubject
|
|
154
154
|
});
|
|
@@ -240,17 +240,17 @@ var ReactAgentStatusSubject = "react.agent.status";
|
|
|
240
240
|
var ReactAgentStopSubject = "react.agent.stop";
|
|
241
241
|
var WorkflowAgentGetSubject = "workflow.agent.get";
|
|
242
242
|
var WorkflowAgentUpdateSubject = "workflow.agent.update";
|
|
243
|
-
var
|
|
244
|
-
var
|
|
245
|
-
var
|
|
246
|
-
var
|
|
247
|
-
var
|
|
248
|
-
var
|
|
249
|
-
var
|
|
250
|
-
var
|
|
251
|
-
var
|
|
252
|
-
var
|
|
253
|
-
var
|
|
243
|
+
var ToolDefinitionsCreateSubject = "agents.tool-definitions.create";
|
|
244
|
+
var ToolDefinitionsCreatedSubject = "agents.tool-definitions.created";
|
|
245
|
+
var ToolDefinitionsGetSubject = "agents.tool-definitions.get";
|
|
246
|
+
var ToolDefinitionsUpdateSubject = "agents.tool-definitions.update";
|
|
247
|
+
var ToolDefinitionsUpdatedSubject = "agents.tool-definitions.updated";
|
|
248
|
+
var ToolDefinitionsDeleteSubject = "agents.tool-definitions.delete";
|
|
249
|
+
var ToolDefinitionsDeletedSubject = "agents.tool-definitions.deleted";
|
|
250
|
+
var ToolDefinitionsListSubject = "agents.tool-definitions.list";
|
|
251
|
+
var ToolDefinitionsGetByIDsSubject = "agents.tool-definitions.get-by-ids";
|
|
252
|
+
var ToolDefinitionsExecuteSubject = "agents.tool-definitions.execute";
|
|
253
|
+
var ToolDefinitionsValidateSubject = "agents.tool-definitions.validate";
|
|
254
254
|
var SubAgentsCreateSubject = "agents.subagents.create";
|
|
255
255
|
var SubAgentsCreatedSubject = "agents.subagents.created";
|
|
256
256
|
var SubAgentsGetSubject = "agents.subagents.get";
|
|
@@ -400,23 +400,23 @@ var AgentInstanceClearHistorySubject = "agents.instance.clear-history";
|
|
|
400
400
|
SubAgentsUpdateSubject,
|
|
401
401
|
SubAgentsUpdatedSubject,
|
|
402
402
|
SubAgentsValidateSubject,
|
|
403
|
+
ToolDefinitionsCreateSubject,
|
|
404
|
+
ToolDefinitionsCreatedSubject,
|
|
405
|
+
ToolDefinitionsDeleteSubject,
|
|
406
|
+
ToolDefinitionsDeletedSubject,
|
|
407
|
+
ToolDefinitionsExecuteSubject,
|
|
408
|
+
ToolDefinitionsGetByIDsSubject,
|
|
409
|
+
ToolDefinitionsGetSubject,
|
|
410
|
+
ToolDefinitionsListSubject,
|
|
411
|
+
ToolDefinitionsUpdateSubject,
|
|
412
|
+
ToolDefinitionsUpdatedSubject,
|
|
413
|
+
ToolDefinitionsValidateSubject,
|
|
403
414
|
ToolExecutionStatusCompleted,
|
|
404
415
|
ToolExecutionStatusExecuting,
|
|
405
416
|
ToolExecutionStatusFailed,
|
|
406
417
|
ToolExecutionStatusSkipped,
|
|
407
418
|
ToolExecutionStatusStarted,
|
|
408
419
|
ToolExecutionStatusTimeout,
|
|
409
|
-
ToolsCreateSubject,
|
|
410
|
-
ToolsCreatedSubject,
|
|
411
|
-
ToolsDeleteSubject,
|
|
412
|
-
ToolsDeletedSubject,
|
|
413
|
-
ToolsExecuteSubject,
|
|
414
|
-
ToolsGetByIDsSubject,
|
|
415
|
-
ToolsGetSubject,
|
|
416
|
-
ToolsListSubject,
|
|
417
|
-
ToolsUpdateSubject,
|
|
418
|
-
ToolsUpdatedSubject,
|
|
419
|
-
ToolsValidateSubject,
|
|
420
420
|
WorkflowAgentGetSubject,
|
|
421
421
|
WorkflowAgentUpdateSubject
|
|
422
422
|
});
|
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 * CreateSkillRequest represents a request to create a skill\n */\nexport interface CreateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * UpdateSkillRequest represents a request to update a skill\n */\nexport interface UpdateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * GetSkillRequest represents a request to get a skill\n */\nexport interface GetSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * DeleteSkillRequest represents a request to delete a skill\n */\nexport interface DeleteSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * ListSkillsRequest represents a request to list skills\n */\nexport interface ListSkillsRequest {\n orgId: string /* uuid */;\n category?: SkillCategory;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SkillResponse represents a response containing a skill\n */\nexport interface SkillResponse {\n skill?: Skill;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SkillsListResponse represents a response containing multiple skills\n */\nexport interface SkillsListResponse {\n skills: Skill[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSkillsByIDsRequest represents a request to get multiple skills by IDs\n */\nexport interface GetSkillsByIDsRequest {\n orgId: string /* uuid */;\n skillIds: string /* uuid */[];\n}\n/**\n * GetSkillsByIDsResponse represents a response containing multiple skills\n */\nexport interface GetSkillsByIDsResponse {\n skills: Skill[];\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 SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';\nexport type SkillCategory = string;\nexport const SkillCategoryProductivity: SkillCategory = \"productivity\";\nexport const SkillCategoryCreative: SkillCategory = \"creative\";\nexport const SkillCategoryIntegration: SkillCategory = \"integration\";\nexport const SkillCategoryAnalysis: SkillCategory = \"analysis\";\nexport const SkillCategoryCommunication: SkillCategory = \"communication\";\nexport const SkillCategoryCustom: SkillCategory = \"custom\";\n/**\n * Skill represents a bundled set of tools with a prompt extension\n * Skills can be activated at runtime to extend agent capabilities\n */\nexport interface Skill {\n id: string /* uuid */;\n orgId?: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"code_review\")\n title: string; // Human-readable title (e.g., \"Code Review\")\n description?: string;\n category: SkillCategoryTS;\n slashCommand?: string; // Optional slash command trigger (e.g., \"/review\")\n tags?: string[];\n tools?: AgentTool[]; // Tools bundled with this skill\n systemPromptExtension?: string; // Prompt to append when skill is active\n iconName?: string; // Lucide icon name for UI display\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n enabled: boolean;\n isSystem?: boolean;\n displayOrder?: number /* int */;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n}\n/**\n * AgentSkill represents an agent's configuration for a specific skill\n */\nexport interface AgentSkill {\n skillId: string /* uuid */;\n skillName?: string; // Denormalized for runtime performance\n enabled: boolean;\n order?: number /* int */;\n}\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 skills?: Skill[];\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 * === Skills Configuration ===\n */\n useSkills?: boolean; // Enable skills system for this agent\n skills?: AgentSkill[]; // Skills assigned to this agent\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 skillsCreated: 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 * Skills Management\n */\nexport const SkillsCreateSubject = \"agents.skills.create\";\n/**\n * Skills Management\n */\nexport const SkillsCreatedSubject = \"agents.skills.created\";\n/**\n * Skills Management\n */\nexport const SkillsGetSubject = \"agents.skills.get\";\n/**\n * Skills Management\n */\nexport const SkillsUpdateSubject = \"agents.skills.update\";\n/**\n * Skills Management\n */\nexport const SkillsUpdatedSubject = \"agents.skills.updated\";\n/**\n * Skills Management\n */\nexport const SkillsDeleteSubject = \"agents.skills.delete\";\n/**\n * Skills Management\n */\nexport const SkillsDeletedSubject = \"agents.skills.deleted\";\n/**\n * Skills Management\n */\nexport const SkillsListSubject = \"agents.skills.list\";\n/**\n * Skills Management\n */\nexport const SkillsGetByIDsSubject = \"agents.skills.get-by-ids\";\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 * CreateToolDefinitionRequest represents a request to create a tool definition\n */\nexport interface CreateToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinition?: ToolDefinition;\n}\n/**\n * UpdateToolDefinitionRequest represents a request to update a tool definition\n */\nexport interface UpdateToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinition?: ToolDefinition;\n}\n/**\n * GetToolDefinitionRequest represents a request to get a tool definition\n */\nexport interface GetToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinitionId: string /* uuid */;\n}\n/**\n * DeleteToolDefinitionRequest represents a request to delete a tool definition\n */\nexport interface DeleteToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinitionId: string /* uuid */;\n}\n/**\n * ListToolDefinitionsRequest represents a request to list tool definitions\n */\nexport interface ListToolDefinitionsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * ToolDefinitionResponse represents a response containing a tool definition\n */\nexport interface ToolDefinitionResponse {\n toolDefinition?: ToolDefinition;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ToolDefinitionsListResponse represents a response containing multiple tool definitions\n */\nexport interface ToolDefinitionsListResponse {\n toolDefinitions: ToolDefinition[];\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 * GetToolDefinitionsByIDsRequest represents a request to get multiple tool definitions by IDs\n */\nexport interface GetToolDefinitionsByIDsRequest {\n orgId: string /* uuid */;\n toolDefinitionIds: string /* uuid */[];\n}\n/**\n * GetToolDefinitionsByIDsResponse represents a response containing multiple tool definitions\n */\nexport interface GetToolDefinitionsByIDsResponse {\n toolDefinitions: ToolDefinition[];\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 agentId?: 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 * CreateSkillRequest represents a request to create a skill\n */\nexport interface CreateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * UpdateSkillRequest represents a request to update a skill\n */\nexport interface UpdateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * GetSkillRequest represents a request to get a skill\n */\nexport interface GetSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * DeleteSkillRequest represents a request to delete a skill\n */\nexport interface DeleteSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * ListSkillsRequest represents a request to list skills\n */\nexport interface ListSkillsRequest {\n orgId: string /* uuid */;\n category?: SkillCategory;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SkillResponse represents a response containing a skill\n */\nexport interface SkillResponse {\n skill?: Skill;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SkillsListResponse represents a response containing multiple skills\n */\nexport interface SkillsListResponse {\n skills: Skill[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSkillsByIDsRequest represents a request to get multiple skills by IDs\n */\nexport interface GetSkillsByIDsRequest {\n orgId: string /* uuid */;\n skillIds: string /* uuid */[];\n}\n/**\n * GetSkillsByIDsResponse represents a response containing multiple skills\n */\nexport interface GetSkillsByIDsResponse {\n skills: Skill[];\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 SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';\nexport type SkillCategory = string;\nexport const SkillCategoryProductivity: SkillCategory = \"productivity\";\nexport const SkillCategoryCreative: SkillCategory = \"creative\";\nexport const SkillCategoryIntegration: SkillCategory = \"integration\";\nexport const SkillCategoryAnalysis: SkillCategory = \"analysis\";\nexport const SkillCategoryCommunication: SkillCategory = \"communication\";\nexport const SkillCategoryCustom: SkillCategory = \"custom\";\n/**\n * Skill represents a bundled set of tools with a prompt extension\n * Skills can be activated at runtime to extend agent capabilities\n */\nexport interface Skill {\n id: string /* uuid */;\n orgId?: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"code_review\")\n title: string; // Human-readable title (e.g., \"Code Review\")\n description?: string;\n category: SkillCategoryTS;\n slashCommand?: string; // Optional slash command trigger (e.g., \"/review\")\n tags?: string[];\n tools?: AgentTool[]; // Tools bundled with this skill\n systemPromptExtension?: string; // Prompt to append when skill is active\n iconName?: string; // Lucide icon name for UI display\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n enabled: boolean;\n isSystem?: boolean;\n displayOrder?: number /* int */;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n}\n/**\n * AgentSkill represents an agent's configuration for a specific skill\n */\nexport interface AgentSkill {\n skillId: string /* uuid */;\n skillName?: string; // Denormalized for runtime performance\n enabled: boolean;\n order?: number /* int */;\n}\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 toolDefinitions: ToolDefinition[];\n subAgents: SubAgent[];\n skills?: Skill[];\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 * === Skills Configuration ===\n */\n useSkills?: boolean; // Enable skills system for this agent\n skills?: AgentSkill[]; // Skills assigned to this agent\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 * ToolDefinition represents an abstract/generic tool definition that can be customized per agent\n * This is the \"template\" that agents use to create their AgentTool configurations\n */\nexport interface ToolDefinition {\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 metadata?: { [key: string]: any}; // Flexible metadata for UI (category, icon, etc.)\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: ToolDefinition[];\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 skillsCreated: 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 * ToolDefinitions Management\n */\nexport const ToolDefinitionsCreateSubject = \"agents.tool-definitions.create\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsCreatedSubject = \"agents.tool-definitions.created\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsGetSubject = \"agents.tool-definitions.get\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsUpdateSubject = \"agents.tool-definitions.update\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsUpdatedSubject = \"agents.tool-definitions.updated\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsDeleteSubject = \"agents.tool-definitions.delete\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsDeletedSubject = \"agents.tool-definitions.deleted\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsListSubject = \"agents.tool-definitions.list\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsGetByIDsSubject = \"agents.tool-definitions.get-by-ids\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsExecuteSubject = \"agents.tool-definitions.execute\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsValidateSubject = \"agents.tool-definitions.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 * Skills Management\n */\nexport const SkillsCreateSubject = \"agents.skills.create\";\n/**\n * Skills Management\n */\nexport const SkillsCreatedSubject = \"agents.skills.created\";\n/**\n * Skills Management\n */\nexport const SkillsGetSubject = \"agents.skills.get\";\n/**\n * Skills Management\n */\nexport const SkillsUpdateSubject = \"agents.skills.update\";\n/**\n * Skills Management\n */\nexport const SkillsUpdatedSubject = \"agents.skills.updated\";\n/**\n * Skills Management\n */\nexport const SkillsDeleteSubject = \"agents.skills.delete\";\n/**\n * Skills Management\n */\nexport const SkillsDeletedSubject = \"agents.skills.deleted\";\n/**\n * Skills Management\n */\nexport const SkillsListSubject = \"agents.skills.list\";\n/**\n * Skills Management\n */\nexport const SkillsGetByIDsSubject = \"agents.skills.get-by-ids\";\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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACmGO,IAAM,yBAA0C;AAChD,IAAM,yBAA0C;AAChD,IAAM,2BAA4C;AAClD,IAAM,wBAAyC;AAC/C,IAAM,yBAA0C;AA2BhD,IAAM,uBAAsC;AAC5C,IAAM,qBAAoC;AAC1C,IAAM,sBAAqC;AAsB3C,IAAM,gBAAgB;AAItB,IAAM,oBAAoB;AA0C1B,IAAM,4BAAwC;AAC9C,IAAM,qBAAiC;AACvC,IAAM,sBAAkC;AACxC,IAAM,sBAAkC;AACxC,IAAM,qBAAiC;AACvC,IAAM,sBAAkC;AAqSxC,IAAM,4BAA2C;AACjD,IAAM,wBAAuC;AAC7C,IAAM,2BAA0C;AAChD,IAAM,wBAAuC;AAC7C,IAAM,6BAA4C;AAClD,IAAM,sBAAqC;AAmC3C,IAAM,gBAA2B;AACjC,IAAM,iBAA4B;AAKlC,IAAM,mBAAiC;AAIvC,IAAM,oBAAkC;AAIxC,IAAM,uBAAqC;AAI3C,IAAM,uBAAqC;AAE3C,IAAM,mBAAgC;AACtC,IAAM,oBAAiC;AACvC,IAAM,sBAAmC;AACzC,IAAM,sBAAmC;AAgNzC,IAAM,6BAAkD;AACxD,IAAM,+BAAoD;AAC1D,IAAM,+BAAoD;AAC1D,IAAM,4BAAiD;AACvD,IAAM,6BAAkD;AACxD,IAAM,6BAAkD;AAiDxD,IAAM,oBAAmC;AACzC,IAAM,qBAAoC;AAC1C,IAAM,2BAA0C;AA6MhD,IAAM,qBAAqB;AAI3B,IAAM,sBAAsB;AAI5B,IAAM,kBAAkB;AAIxB,IAAM,qBAAqB;AAI3B,IAAM,sBAAsB;AAI5B,IAAM,qBAAqB;AAI3B,IAAM,sBAAsB;AAI5B,IAAM,mBAAmB;AAIzB,IAAM,0BAA0B;AAIhC,IAAM,qBAAqB;AAI3B,IAAM,yBAAyB;AAI/B,IAAM,yBAAyB;AAI/B,IAAM,sBAAsB;AAI5B,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,0BAA0B;AAIhC,IAAM,uBAAuB;AAI7B,IAAM,4BAA4B;AAIlC,IAAM,sBAAsB;AAI5B,IAAM,4BAA4B;AAIlC,IAAM,0BAA0B;AAIhC,IAAM,4BAA4B;AAIlC,IAAM,6BAA6B;AAInC,IAAM,yBAAyB;AAI/B,IAAM,0BAA0B;AAIhC,IAAM,8BAA8B;AAIpC,IAAM,+BAA+B;AAIrC,IAAM,4BAA4B;AAIlC,IAAM,yBAAyB;AAI/B,IAAM,uBAAuB;AAI7B,IAAM,oBAAoB;AAI1B,IAAM,qBAAqB;AAI3B,IAAM,qBAAqB;AAI3B,IAAM,wBAAwB;AAI9B,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,yBAAyB;AAI/B,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,wBAAwB;AAI9B,IAAM,0BAA0B;AAIhC,IAAM,6BAA6B;AAInC,IAAM,+BAA+B;AAIrC,IAAM,gCAAgC;AAItC,IAAM,4BAA4B;AAIlC,IAAM,+BAA+B;AAIrC,IAAM,gCAAgC;AAItC,IAAM,+BAA+B;AAIrC,IAAM,gCAAgC;AAItC,IAAM,6BAA6B;AAInC,IAAM,iCAAiC;AAIvC,IAAM,gCAAgC;AAItC,IAAM,iCAAiC;AAIvC,IAAM,yBAAyB;AAI/B,IAAM,0BAA0B;AAIhC,IAAM,sBAAsB;AAI5B,IAAM,yBAAyB;AAI/B,IAAM,0BAA0B;AAIhC,IAAM,yBAAyB;AAI/B,IAAM,0BAA0B;AAIhC,IAAM,uBAAuB;AAI7B,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,2BAA2B;AAIjC,IAAM,sBAAsB;AAI5B,IAAM,uBAAuB;AAI7B,IAAM,mBAAmB;AAIzB,IAAM,sBAAsB;AAI5B,IAAM,uBAAuB;AAI7B,IAAM,sBAAsB;AAI5B,IAAM,uBAAuB;AAI7B,IAAM,oBAAoB;AAI1B,IAAM,wBAAwB;AAI9B,IAAM,6BAA6B;AAInC,IAAM,8BAA8B;AAIpC,IAAM,0BAA0B;AAIhC,IAAM,6BAA6B;AAInC,IAAM,8BAA8B;AAIpC,IAAM,2BAA2B;AAIjC,IAAM,6BAA6B;AAInC,IAAM,8BAA8B;AAIpC,IAAM,iCAAiC;AAIvC,IAAM,kCAAkC;AAIxC,IAAM,gCAAgC;AAItC,IAAM,iCAAiC;AAIvC,IAAM,iCAAiC;AAIvC,IAAM,iCAAiC;AAIvC,IAAM,mCAAmC;","names":[]}
|
package/dist/index.mjs
CHANGED
|
@@ -84,17 +84,17 @@ var ReactAgentStatusSubject = "react.agent.status";
|
|
|
84
84
|
var ReactAgentStopSubject = "react.agent.stop";
|
|
85
85
|
var WorkflowAgentGetSubject = "workflow.agent.get";
|
|
86
86
|
var WorkflowAgentUpdateSubject = "workflow.agent.update";
|
|
87
|
-
var
|
|
88
|
-
var
|
|
89
|
-
var
|
|
90
|
-
var
|
|
91
|
-
var
|
|
92
|
-
var
|
|
93
|
-
var
|
|
94
|
-
var
|
|
95
|
-
var
|
|
96
|
-
var
|
|
97
|
-
var
|
|
87
|
+
var ToolDefinitionsCreateSubject = "agents.tool-definitions.create";
|
|
88
|
+
var ToolDefinitionsCreatedSubject = "agents.tool-definitions.created";
|
|
89
|
+
var ToolDefinitionsGetSubject = "agents.tool-definitions.get";
|
|
90
|
+
var ToolDefinitionsUpdateSubject = "agents.tool-definitions.update";
|
|
91
|
+
var ToolDefinitionsUpdatedSubject = "agents.tool-definitions.updated";
|
|
92
|
+
var ToolDefinitionsDeleteSubject = "agents.tool-definitions.delete";
|
|
93
|
+
var ToolDefinitionsDeletedSubject = "agents.tool-definitions.deleted";
|
|
94
|
+
var ToolDefinitionsListSubject = "agents.tool-definitions.list";
|
|
95
|
+
var ToolDefinitionsGetByIDsSubject = "agents.tool-definitions.get-by-ids";
|
|
96
|
+
var ToolDefinitionsExecuteSubject = "agents.tool-definitions.execute";
|
|
97
|
+
var ToolDefinitionsValidateSubject = "agents.tool-definitions.validate";
|
|
98
98
|
var SubAgentsCreateSubject = "agents.subagents.create";
|
|
99
99
|
var SubAgentsCreatedSubject = "agents.subagents.created";
|
|
100
100
|
var SubAgentsGetSubject = "agents.subagents.get";
|
|
@@ -243,23 +243,23 @@ export {
|
|
|
243
243
|
SubAgentsUpdateSubject,
|
|
244
244
|
SubAgentsUpdatedSubject,
|
|
245
245
|
SubAgentsValidateSubject,
|
|
246
|
+
ToolDefinitionsCreateSubject,
|
|
247
|
+
ToolDefinitionsCreatedSubject,
|
|
248
|
+
ToolDefinitionsDeleteSubject,
|
|
249
|
+
ToolDefinitionsDeletedSubject,
|
|
250
|
+
ToolDefinitionsExecuteSubject,
|
|
251
|
+
ToolDefinitionsGetByIDsSubject,
|
|
252
|
+
ToolDefinitionsGetSubject,
|
|
253
|
+
ToolDefinitionsListSubject,
|
|
254
|
+
ToolDefinitionsUpdateSubject,
|
|
255
|
+
ToolDefinitionsUpdatedSubject,
|
|
256
|
+
ToolDefinitionsValidateSubject,
|
|
246
257
|
ToolExecutionStatusCompleted,
|
|
247
258
|
ToolExecutionStatusExecuting,
|
|
248
259
|
ToolExecutionStatusFailed,
|
|
249
260
|
ToolExecutionStatusSkipped,
|
|
250
261
|
ToolExecutionStatusStarted,
|
|
251
262
|
ToolExecutionStatusTimeout,
|
|
252
|
-
ToolsCreateSubject,
|
|
253
|
-
ToolsCreatedSubject,
|
|
254
|
-
ToolsDeleteSubject,
|
|
255
|
-
ToolsDeletedSubject,
|
|
256
|
-
ToolsExecuteSubject,
|
|
257
|
-
ToolsGetByIDsSubject,
|
|
258
|
-
ToolsGetSubject,
|
|
259
|
-
ToolsListSubject,
|
|
260
|
-
ToolsUpdateSubject,
|
|
261
|
-
ToolsUpdatedSubject,
|
|
262
|
-
ToolsValidateSubject,
|
|
263
263
|
WorkflowAgentGetSubject,
|
|
264
264
|
WorkflowAgentUpdateSubject
|
|
265
265
|
};
|
package/dist/index.mjs.map
CHANGED
|
@@ -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 * CreateSkillRequest represents a request to create a skill\n */\nexport interface CreateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * UpdateSkillRequest represents a request to update a skill\n */\nexport interface UpdateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * GetSkillRequest represents a request to get a skill\n */\nexport interface GetSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * DeleteSkillRequest represents a request to delete a skill\n */\nexport interface DeleteSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * ListSkillsRequest represents a request to list skills\n */\nexport interface ListSkillsRequest {\n orgId: string /* uuid */;\n category?: SkillCategory;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SkillResponse represents a response containing a skill\n */\nexport interface SkillResponse {\n skill?: Skill;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SkillsListResponse represents a response containing multiple skills\n */\nexport interface SkillsListResponse {\n skills: Skill[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSkillsByIDsRequest represents a request to get multiple skills by IDs\n */\nexport interface GetSkillsByIDsRequest {\n orgId: string /* uuid */;\n skillIds: string /* uuid */[];\n}\n/**\n * GetSkillsByIDsResponse represents a response containing multiple skills\n */\nexport interface GetSkillsByIDsResponse {\n skills: Skill[];\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 SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';\nexport type SkillCategory = string;\nexport const SkillCategoryProductivity: SkillCategory = \"productivity\";\nexport const SkillCategoryCreative: SkillCategory = \"creative\";\nexport const SkillCategoryIntegration: SkillCategory = \"integration\";\nexport const SkillCategoryAnalysis: SkillCategory = \"analysis\";\nexport const SkillCategoryCommunication: SkillCategory = \"communication\";\nexport const SkillCategoryCustom: SkillCategory = \"custom\";\n/**\n * Skill represents a bundled set of tools with a prompt extension\n * Skills can be activated at runtime to extend agent capabilities\n */\nexport interface Skill {\n id: string /* uuid */;\n orgId?: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"code_review\")\n title: string; // Human-readable title (e.g., \"Code Review\")\n description?: string;\n category: SkillCategoryTS;\n slashCommand?: string; // Optional slash command trigger (e.g., \"/review\")\n tags?: string[];\n tools?: AgentTool[]; // Tools bundled with this skill\n systemPromptExtension?: string; // Prompt to append when skill is active\n iconName?: string; // Lucide icon name for UI display\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n enabled: boolean;\n isSystem?: boolean;\n displayOrder?: number /* int */;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n}\n/**\n * AgentSkill represents an agent's configuration for a specific skill\n */\nexport interface AgentSkill {\n skillId: string /* uuid */;\n skillName?: string; // Denormalized for runtime performance\n enabled: boolean;\n order?: number /* int */;\n}\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 skills?: Skill[];\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 * === Skills Configuration ===\n */\n useSkills?: boolean; // Enable skills system for this agent\n skills?: AgentSkill[]; // Skills assigned to this agent\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 skillsCreated: 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 * Skills Management\n */\nexport const SkillsCreateSubject = \"agents.skills.create\";\n/**\n * Skills Management\n */\nexport const SkillsCreatedSubject = \"agents.skills.created\";\n/**\n * Skills Management\n */\nexport const SkillsGetSubject = \"agents.skills.get\";\n/**\n * Skills Management\n */\nexport const SkillsUpdateSubject = \"agents.skills.update\";\n/**\n * Skills Management\n */\nexport const SkillsUpdatedSubject = \"agents.skills.updated\";\n/**\n * Skills Management\n */\nexport const SkillsDeleteSubject = \"agents.skills.delete\";\n/**\n * Skills Management\n */\nexport const SkillsDeletedSubject = \"agents.skills.deleted\";\n/**\n * Skills Management\n */\nexport const SkillsListSubject = \"agents.skills.list\";\n/**\n * Skills Management\n */\nexport const SkillsGetByIDsSubject = \"agents.skills.get-by-ids\";\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 * CreateToolDefinitionRequest represents a request to create a tool definition\n */\nexport interface CreateToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinition?: ToolDefinition;\n}\n/**\n * UpdateToolDefinitionRequest represents a request to update a tool definition\n */\nexport interface UpdateToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinition?: ToolDefinition;\n}\n/**\n * GetToolDefinitionRequest represents a request to get a tool definition\n */\nexport interface GetToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinitionId: string /* uuid */;\n}\n/**\n * DeleteToolDefinitionRequest represents a request to delete a tool definition\n */\nexport interface DeleteToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinitionId: string /* uuid */;\n}\n/**\n * ListToolDefinitionsRequest represents a request to list tool definitions\n */\nexport interface ListToolDefinitionsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * ToolDefinitionResponse represents a response containing a tool definition\n */\nexport interface ToolDefinitionResponse {\n toolDefinition?: ToolDefinition;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ToolDefinitionsListResponse represents a response containing multiple tool definitions\n */\nexport interface ToolDefinitionsListResponse {\n toolDefinitions: ToolDefinition[];\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 * GetToolDefinitionsByIDsRequest represents a request to get multiple tool definitions by IDs\n */\nexport interface GetToolDefinitionsByIDsRequest {\n orgId: string /* uuid */;\n toolDefinitionIds: string /* uuid */[];\n}\n/**\n * GetToolDefinitionsByIDsResponse represents a response containing multiple tool definitions\n */\nexport interface GetToolDefinitionsByIDsResponse {\n toolDefinitions: ToolDefinition[];\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 agentId?: 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 * CreateSkillRequest represents a request to create a skill\n */\nexport interface CreateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * UpdateSkillRequest represents a request to update a skill\n */\nexport interface UpdateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * GetSkillRequest represents a request to get a skill\n */\nexport interface GetSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * DeleteSkillRequest represents a request to delete a skill\n */\nexport interface DeleteSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * ListSkillsRequest represents a request to list skills\n */\nexport interface ListSkillsRequest {\n orgId: string /* uuid */;\n category?: SkillCategory;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SkillResponse represents a response containing a skill\n */\nexport interface SkillResponse {\n skill?: Skill;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SkillsListResponse represents a response containing multiple skills\n */\nexport interface SkillsListResponse {\n skills: Skill[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSkillsByIDsRequest represents a request to get multiple skills by IDs\n */\nexport interface GetSkillsByIDsRequest {\n orgId: string /* uuid */;\n skillIds: string /* uuid */[];\n}\n/**\n * GetSkillsByIDsResponse represents a response containing multiple skills\n */\nexport interface GetSkillsByIDsResponse {\n skills: Skill[];\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 SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';\nexport type SkillCategory = string;\nexport const SkillCategoryProductivity: SkillCategory = \"productivity\";\nexport const SkillCategoryCreative: SkillCategory = \"creative\";\nexport const SkillCategoryIntegration: SkillCategory = \"integration\";\nexport const SkillCategoryAnalysis: SkillCategory = \"analysis\";\nexport const SkillCategoryCommunication: SkillCategory = \"communication\";\nexport const SkillCategoryCustom: SkillCategory = \"custom\";\n/**\n * Skill represents a bundled set of tools with a prompt extension\n * Skills can be activated at runtime to extend agent capabilities\n */\nexport interface Skill {\n id: string /* uuid */;\n orgId?: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"code_review\")\n title: string; // Human-readable title (e.g., \"Code Review\")\n description?: string;\n category: SkillCategoryTS;\n slashCommand?: string; // Optional slash command trigger (e.g., \"/review\")\n tags?: string[];\n tools?: AgentTool[]; // Tools bundled with this skill\n systemPromptExtension?: string; // Prompt to append when skill is active\n iconName?: string; // Lucide icon name for UI display\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n enabled: boolean;\n isSystem?: boolean;\n displayOrder?: number /* int */;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n}\n/**\n * AgentSkill represents an agent's configuration for a specific skill\n */\nexport interface AgentSkill {\n skillId: string /* uuid */;\n skillName?: string; // Denormalized for runtime performance\n enabled: boolean;\n order?: number /* int */;\n}\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 toolDefinitions: ToolDefinition[];\n subAgents: SubAgent[];\n skills?: Skill[];\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 * === Skills Configuration ===\n */\n useSkills?: boolean; // Enable skills system for this agent\n skills?: AgentSkill[]; // Skills assigned to this agent\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 * ToolDefinition represents an abstract/generic tool definition that can be customized per agent\n * This is the \"template\" that agents use to create their AgentTool configurations\n */\nexport interface ToolDefinition {\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 metadata?: { [key: string]: any}; // Flexible metadata for UI (category, icon, etc.)\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: ToolDefinition[];\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 skillsCreated: 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 * ToolDefinitions Management\n */\nexport const ToolDefinitionsCreateSubject = \"agents.tool-definitions.create\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsCreatedSubject = \"agents.tool-definitions.created\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsGetSubject = \"agents.tool-definitions.get\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsUpdateSubject = \"agents.tool-definitions.update\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsUpdatedSubject = \"agents.tool-definitions.updated\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsDeleteSubject = \"agents.tool-definitions.delete\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsDeletedSubject = \"agents.tool-definitions.deleted\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsListSubject = \"agents.tool-definitions.list\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsGetByIDsSubject = \"agents.tool-definitions.get-by-ids\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsExecuteSubject = \"agents.tool-definitions.execute\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsValidateSubject = \"agents.tool-definitions.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 * Skills Management\n */\nexport const SkillsCreateSubject = \"agents.skills.create\";\n/**\n * Skills Management\n */\nexport const SkillsCreatedSubject = \"agents.skills.created\";\n/**\n * Skills Management\n */\nexport const SkillsGetSubject = \"agents.skills.get\";\n/**\n * Skills Management\n */\nexport const SkillsUpdateSubject = \"agents.skills.update\";\n/**\n * Skills Management\n */\nexport const SkillsUpdatedSubject = \"agents.skills.updated\";\n/**\n * Skills Management\n */\nexport const SkillsDeleteSubject = \"agents.skills.delete\";\n/**\n * Skills Management\n */\nexport const SkillsDeletedSubject = \"agents.skills.deleted\";\n/**\n * Skills Management\n */\nexport const SkillsListSubject = \"agents.skills.list\";\n/**\n * Skills Management\n */\nexport const SkillsGetByIDsSubject = \"agents.skills.get-by-ids\";\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":";AAmGO,IAAM,yBAA0C;AAChD,IAAM,yBAA0C;AAChD,IAAM,2BAA4C;AAClD,IAAM,wBAAyC;AAC/C,IAAM,yBAA0C;AA2BhD,IAAM,uBAAsC;AAC5C,IAAM,qBAAoC;AAC1C,IAAM,sBAAqC;AAsB3C,IAAM,gBAAgB;AAItB,IAAM,oBAAoB;AA0C1B,IAAM,4BAAwC;AAC9C,IAAM,qBAAiC;AACvC,IAAM,sBAAkC;AACxC,IAAM,sBAAkC;AACxC,IAAM,qBAAiC;AACvC,IAAM,sBAAkC;AAqSxC,IAAM,4BAA2C;AACjD,IAAM,wBAAuC;AAC7C,IAAM,2BAA0C;AAChD,IAAM,wBAAuC;AAC7C,IAAM,6BAA4C;AAClD,IAAM,sBAAqC;AAmC3C,IAAM,gBAA2B;AACjC,IAAM,iBAA4B;AAKlC,IAAM,mBAAiC;AAIvC,IAAM,oBAAkC;AAIxC,IAAM,uBAAqC;AAI3C,IAAM,uBAAqC;AAE3C,IAAM,mBAAgC;AACtC,IAAM,oBAAiC;AACvC,IAAM,sBAAmC;AACzC,IAAM,sBAAmC;AAgNzC,IAAM,6BAAkD;AACxD,IAAM,+BAAoD;AAC1D,IAAM,+BAAoD;AAC1D,IAAM,4BAAiD;AACvD,IAAM,6BAAkD;AACxD,IAAM,6BAAkD;AAiDxD,IAAM,oBAAmC;AACzC,IAAM,qBAAoC;AAC1C,IAAM,2BAA0C;AA6MhD,IAAM,qBAAqB;AAI3B,IAAM,sBAAsB;AAI5B,IAAM,kBAAkB;AAIxB,IAAM,qBAAqB;AAI3B,IAAM,sBAAsB;AAI5B,IAAM,qBAAqB;AAI3B,IAAM,sBAAsB;AAI5B,IAAM,mBAAmB;AAIzB,IAAM,0BAA0B;AAIhC,IAAM,qBAAqB;AAI3B,IAAM,yBAAyB;AAI/B,IAAM,yBAAyB;AAI/B,IAAM,sBAAsB;AAI5B,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,0BAA0B;AAIhC,IAAM,uBAAuB;AAI7B,IAAM,4BAA4B;AAIlC,IAAM,sBAAsB;AAI5B,IAAM,4BAA4B;AAIlC,IAAM,0BAA0B;AAIhC,IAAM,4BAA4B;AAIlC,IAAM,6BAA6B;AAInC,IAAM,yBAAyB;AAI/B,IAAM,0BAA0B;AAIhC,IAAM,8BAA8B;AAIpC,IAAM,+BAA+B;AAIrC,IAAM,4BAA4B;AAIlC,IAAM,yBAAyB;AAI/B,IAAM,uBAAuB;AAI7B,IAAM,oBAAoB;AAI1B,IAAM,qBAAqB;AAI3B,IAAM,qBAAqB;AAI3B,IAAM,wBAAwB;AAI9B,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,yBAAyB;AAI/B,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,wBAAwB;AAI9B,IAAM,0BAA0B;AAIhC,IAAM,6BAA6B;AAInC,IAAM,+BAA+B;AAIrC,IAAM,gCAAgC;AAItC,IAAM,4BAA4B;AAIlC,IAAM,+BAA+B;AAIrC,IAAM,gCAAgC;AAItC,IAAM,+BAA+B;AAIrC,IAAM,gCAAgC;AAItC,IAAM,6BAA6B;AAInC,IAAM,iCAAiC;AAIvC,IAAM,gCAAgC;AAItC,IAAM,iCAAiC;AAIvC,IAAM,yBAAyB;AAI/B,IAAM,0BAA0B;AAIhC,IAAM,sBAAsB;AAI5B,IAAM,yBAAyB;AAI/B,IAAM,0BAA0B;AAIhC,IAAM,yBAAyB;AAI/B,IAAM,0BAA0B;AAIhC,IAAM,uBAAuB;AAI7B,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,2BAA2B;AAIjC,IAAM,sBAAsB;AAI5B,IAAM,uBAAuB;AAI7B,IAAM,mBAAmB;AAIzB,IAAM,sBAAsB;AAI5B,IAAM,uBAAuB;AAI7B,IAAM,sBAAsB;AAI5B,IAAM,uBAAuB;AAI7B,IAAM,oBAAoB;AAI1B,IAAM,wBAAwB;AAI9B,IAAM,6BAA6B;AAInC,IAAM,8BAA8B;AAIpC,IAAM,0BAA0B;AAIhC,IAAM,6BAA6B;AAInC,IAAM,8BAA8B;AAIpC,IAAM,2BAA2B;AAIjC,IAAM,6BAA6B;AAInC,IAAM,8BAA8B;AAIpC,IAAM,iCAAiC;AAIvC,IAAM,kCAAkC;AAIxC,IAAM,gCAAgC;AAItC,IAAM,iCAAiC;AAIvC,IAAM,iCAAiC;AAIvC,IAAM,iCAAiC;AAIvC,IAAM,mCAAmC;","names":[]}
|