@elqnt/agents 1.0.14 → 1.0.15
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 +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
package/dist/index.d.mts
CHANGED
|
@@ -570,6 +570,8 @@ type AgentTypeTS = 'chat' | 'react';
|
|
|
570
570
|
type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';
|
|
571
571
|
type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';
|
|
572
572
|
type SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';
|
|
573
|
+
type IntegrationProviderTS = 'google' | 'microsoft';
|
|
574
|
+
type IntegrationTypeTS = 'email' | 'calendar' | 'drive';
|
|
573
575
|
type SkillCategory = string;
|
|
574
576
|
declare const SkillCategoryProductivity: SkillCategory;
|
|
575
577
|
declare const SkillCategoryCreative: SkillCategory;
|
|
@@ -577,6 +579,14 @@ declare const SkillCategoryIntegration: SkillCategory;
|
|
|
577
579
|
declare const SkillCategoryAnalysis: SkillCategory;
|
|
578
580
|
declare const SkillCategoryCommunication: SkillCategory;
|
|
579
581
|
declare const SkillCategoryCustom: SkillCategory;
|
|
582
|
+
/**
|
|
583
|
+
* IntegrationRequirement specifies an OAuth integration needed for a skill to function
|
|
584
|
+
* Skills with integration requirements are only available to users who have connected the required provider
|
|
585
|
+
*/
|
|
586
|
+
interface IntegrationRequirement {
|
|
587
|
+
provider: string;
|
|
588
|
+
type: string;
|
|
589
|
+
}
|
|
580
590
|
/**
|
|
581
591
|
* Skill represents a bundled set of tools with a prompt extension
|
|
582
592
|
* Skills can be activated at runtime to extend agent capabilities
|
|
@@ -597,6 +607,7 @@ interface Skill {
|
|
|
597
607
|
config?: {
|
|
598
608
|
[key: string]: any;
|
|
599
609
|
};
|
|
610
|
+
requiredIntegrations?: IntegrationRequirement[];
|
|
600
611
|
enabled: boolean;
|
|
601
612
|
isSystem?: boolean;
|
|
602
613
|
persisted?: boolean;
|
|
@@ -840,6 +851,7 @@ interface AgentSummary {
|
|
|
840
851
|
isPublic: boolean;
|
|
841
852
|
capabilities?: string[];
|
|
842
853
|
samplePrompts?: string[];
|
|
854
|
+
skills?: AgentSkill[];
|
|
843
855
|
metadata?: {
|
|
844
856
|
[key: string]: any;
|
|
845
857
|
};
|
|
@@ -1857,4 +1869,4 @@ interface PublicWidgetConfig {
|
|
|
1857
1869
|
behavior: WidgetBehavior;
|
|
1858
1870
|
}
|
|
1859
1871
|
|
|
1860
|
-
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, type AgentJob, AgentJobCreateSubject, AgentJobDeleteSubject, AgentJobGetSubject, type AgentJobIDRequest, AgentJobListSubject, AgentJobPauseSubject, type AgentJobResponse, AgentJobResumeSubject, type AgentJobTriggerRequest, type AgentJobTriggerResponse, AgentJobTriggerSubject, AgentJobUpdateSubject, type AgentJobsListResponse, 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 AgentWidget, type AgentWidgetResponse, AgentWidgetsCreateSubject, AgentWidgetsDeleteSubject, AgentWidgetsGetByWidgetID, AgentWidgetsGetDefaultSubject, AgentWidgetsGetSubject, AgentWidgetsListSubject, AgentWidgetsSetDefaultSubject, AgentWidgetsUpdateSubject, type CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentJobRequest, type CreateAgentRequest, type CreateAgentWidgetRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type CreateToolDefinitionRequest, type DefaultDefinitions, type DeleteAgentRequest, type DeleteAgentWidgetRequest, 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 GetAgentWidgetRequest, type GetDefaultAgentRequest, type GetDefaultWidgetRequest, type GetSkillRequest, type GetSkillsByIDsRequest, type GetSkillsByIDsResponse, type GetSubAgentRequest, type GetSubAgentsByIDsRequest, type GetSubAgentsByIDsResponse, type GetToolDefinitionRequest, type GetToolDefinitionsByIDsRequest, type GetToolDefinitionsByIDsResponse, type GetWidgetByWidgetIDRequest, type GetWidgetConfigRequest, type GetWidgetConfigResponse, type HandoffConfig, type JobExecutionResult, type JobFrequency, JobFrequencyOneTime, JobFrequencySchedule, type JobFrequencyTS, type JobScope, JobScopeOrg, JobScopePrivate, type JobScopeTS, JobScopeTeam, type JobStatus, JobStatusActive, JobStatusDisabled, JobStatusPaused, type JobStatusTS, type ListAgentJobsRequest, type ListAgentWidgetsRequest, type ListAgentWidgetsResponse, 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 ProcessJobTriggerResult, type PublicWidgetConfig, type ReactAgentConfig, ReactAgentExecuteSubject, ReactAgentStatusSubject, ReactAgentStopSubject, type RetryPolicy, type SaveWidgetConfigRequest, type SaveWidgetConfigResponse, type SetDefaultWidgetRequest, 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 UpdateAgentJobRequest, type UpdateAgentRequest, type UpdateAgentWidgetRequest, type UpdateOrgAgentsRequest, type UpdateOrgAgentsResponse, type UpdateSkillRequest, type UpdateSubAgentRequest, type UpdateToolDefinitionRequest, type UserSuggestedAction, type UserSuggestedActionsConfig, type UserSuggestedActionsRequest, type UserSuggestedActionsResponse, type ValidationError, type ValidationErrors, type WidgetAppearance, type WidgetBehavior, type WidgetConfig, WidgetConfigGetByAgentSubject, WidgetConfigSaveSubject, type WidgetSecurity, WorkflowAgentGetSubject, WorkflowAgentUpdateSubject };
|
|
1872
|
+
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, type AgentJob, AgentJobCreateSubject, AgentJobDeleteSubject, AgentJobGetSubject, type AgentJobIDRequest, AgentJobListSubject, AgentJobPauseSubject, type AgentJobResponse, AgentJobResumeSubject, type AgentJobTriggerRequest, type AgentJobTriggerResponse, AgentJobTriggerSubject, AgentJobUpdateSubject, type AgentJobsListResponse, 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 AgentWidget, type AgentWidgetResponse, AgentWidgetsCreateSubject, AgentWidgetsDeleteSubject, AgentWidgetsGetByWidgetID, AgentWidgetsGetDefaultSubject, AgentWidgetsGetSubject, AgentWidgetsListSubject, AgentWidgetsSetDefaultSubject, AgentWidgetsUpdateSubject, type CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentJobRequest, type CreateAgentRequest, type CreateAgentWidgetRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type CreateToolDefinitionRequest, type DefaultDefinitions, type DeleteAgentRequest, type DeleteAgentWidgetRequest, 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 GetAgentWidgetRequest, type GetDefaultAgentRequest, type GetDefaultWidgetRequest, type GetSkillRequest, type GetSkillsByIDsRequest, type GetSkillsByIDsResponse, type GetSubAgentRequest, type GetSubAgentsByIDsRequest, type GetSubAgentsByIDsResponse, type GetToolDefinitionRequest, type GetToolDefinitionsByIDsRequest, type GetToolDefinitionsByIDsResponse, type GetWidgetByWidgetIDRequest, type GetWidgetConfigRequest, type GetWidgetConfigResponse, type HandoffConfig, type IntegrationProviderTS, type IntegrationRequirement, type IntegrationTypeTS, type JobExecutionResult, type JobFrequency, JobFrequencyOneTime, JobFrequencySchedule, type JobFrequencyTS, type JobScope, JobScopeOrg, JobScopePrivate, type JobScopeTS, JobScopeTeam, type JobStatus, JobStatusActive, JobStatusDisabled, JobStatusPaused, type JobStatusTS, type ListAgentJobsRequest, type ListAgentWidgetsRequest, type ListAgentWidgetsResponse, 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 ProcessJobTriggerResult, type PublicWidgetConfig, type ReactAgentConfig, ReactAgentExecuteSubject, ReactAgentStatusSubject, ReactAgentStopSubject, type RetryPolicy, type SaveWidgetConfigRequest, type SaveWidgetConfigResponse, type SetDefaultWidgetRequest, 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 UpdateAgentJobRequest, type UpdateAgentRequest, type UpdateAgentWidgetRequest, type UpdateOrgAgentsRequest, type UpdateOrgAgentsResponse, type UpdateSkillRequest, type UpdateSubAgentRequest, type UpdateToolDefinitionRequest, type UserSuggestedAction, type UserSuggestedActionsConfig, type UserSuggestedActionsRequest, type UserSuggestedActionsResponse, type ValidationError, type ValidationErrors, type WidgetAppearance, type WidgetBehavior, type WidgetConfig, WidgetConfigGetByAgentSubject, WidgetConfigSaveSubject, type WidgetSecurity, WorkflowAgentGetSubject, WorkflowAgentUpdateSubject };
|
package/dist/index.d.ts
CHANGED
|
@@ -570,6 +570,8 @@ type AgentTypeTS = 'chat' | 'react';
|
|
|
570
570
|
type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';
|
|
571
571
|
type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';
|
|
572
572
|
type SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';
|
|
573
|
+
type IntegrationProviderTS = 'google' | 'microsoft';
|
|
574
|
+
type IntegrationTypeTS = 'email' | 'calendar' | 'drive';
|
|
573
575
|
type SkillCategory = string;
|
|
574
576
|
declare const SkillCategoryProductivity: SkillCategory;
|
|
575
577
|
declare const SkillCategoryCreative: SkillCategory;
|
|
@@ -577,6 +579,14 @@ declare const SkillCategoryIntegration: SkillCategory;
|
|
|
577
579
|
declare const SkillCategoryAnalysis: SkillCategory;
|
|
578
580
|
declare const SkillCategoryCommunication: SkillCategory;
|
|
579
581
|
declare const SkillCategoryCustom: SkillCategory;
|
|
582
|
+
/**
|
|
583
|
+
* IntegrationRequirement specifies an OAuth integration needed for a skill to function
|
|
584
|
+
* Skills with integration requirements are only available to users who have connected the required provider
|
|
585
|
+
*/
|
|
586
|
+
interface IntegrationRequirement {
|
|
587
|
+
provider: string;
|
|
588
|
+
type: string;
|
|
589
|
+
}
|
|
580
590
|
/**
|
|
581
591
|
* Skill represents a bundled set of tools with a prompt extension
|
|
582
592
|
* Skills can be activated at runtime to extend agent capabilities
|
|
@@ -597,6 +607,7 @@ interface Skill {
|
|
|
597
607
|
config?: {
|
|
598
608
|
[key: string]: any;
|
|
599
609
|
};
|
|
610
|
+
requiredIntegrations?: IntegrationRequirement[];
|
|
600
611
|
enabled: boolean;
|
|
601
612
|
isSystem?: boolean;
|
|
602
613
|
persisted?: boolean;
|
|
@@ -840,6 +851,7 @@ interface AgentSummary {
|
|
|
840
851
|
isPublic: boolean;
|
|
841
852
|
capabilities?: string[];
|
|
842
853
|
samplePrompts?: string[];
|
|
854
|
+
skills?: AgentSkill[];
|
|
843
855
|
metadata?: {
|
|
844
856
|
[key: string]: any;
|
|
845
857
|
};
|
|
@@ -1857,4 +1869,4 @@ interface PublicWidgetConfig {
|
|
|
1857
1869
|
behavior: WidgetBehavior;
|
|
1858
1870
|
}
|
|
1859
1871
|
|
|
1860
|
-
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, type AgentJob, AgentJobCreateSubject, AgentJobDeleteSubject, AgentJobGetSubject, type AgentJobIDRequest, AgentJobListSubject, AgentJobPauseSubject, type AgentJobResponse, AgentJobResumeSubject, type AgentJobTriggerRequest, type AgentJobTriggerResponse, AgentJobTriggerSubject, AgentJobUpdateSubject, type AgentJobsListResponse, 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 AgentWidget, type AgentWidgetResponse, AgentWidgetsCreateSubject, AgentWidgetsDeleteSubject, AgentWidgetsGetByWidgetID, AgentWidgetsGetDefaultSubject, AgentWidgetsGetSubject, AgentWidgetsListSubject, AgentWidgetsSetDefaultSubject, AgentWidgetsUpdateSubject, type CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentJobRequest, type CreateAgentRequest, type CreateAgentWidgetRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type CreateToolDefinitionRequest, type DefaultDefinitions, type DeleteAgentRequest, type DeleteAgentWidgetRequest, 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 GetAgentWidgetRequest, type GetDefaultAgentRequest, type GetDefaultWidgetRequest, type GetSkillRequest, type GetSkillsByIDsRequest, type GetSkillsByIDsResponse, type GetSubAgentRequest, type GetSubAgentsByIDsRequest, type GetSubAgentsByIDsResponse, type GetToolDefinitionRequest, type GetToolDefinitionsByIDsRequest, type GetToolDefinitionsByIDsResponse, type GetWidgetByWidgetIDRequest, type GetWidgetConfigRequest, type GetWidgetConfigResponse, type HandoffConfig, type JobExecutionResult, type JobFrequency, JobFrequencyOneTime, JobFrequencySchedule, type JobFrequencyTS, type JobScope, JobScopeOrg, JobScopePrivate, type JobScopeTS, JobScopeTeam, type JobStatus, JobStatusActive, JobStatusDisabled, JobStatusPaused, type JobStatusTS, type ListAgentJobsRequest, type ListAgentWidgetsRequest, type ListAgentWidgetsResponse, 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 ProcessJobTriggerResult, type PublicWidgetConfig, type ReactAgentConfig, ReactAgentExecuteSubject, ReactAgentStatusSubject, ReactAgentStopSubject, type RetryPolicy, type SaveWidgetConfigRequest, type SaveWidgetConfigResponse, type SetDefaultWidgetRequest, 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 UpdateAgentJobRequest, type UpdateAgentRequest, type UpdateAgentWidgetRequest, type UpdateOrgAgentsRequest, type UpdateOrgAgentsResponse, type UpdateSkillRequest, type UpdateSubAgentRequest, type UpdateToolDefinitionRequest, type UserSuggestedAction, type UserSuggestedActionsConfig, type UserSuggestedActionsRequest, type UserSuggestedActionsResponse, type ValidationError, type ValidationErrors, type WidgetAppearance, type WidgetBehavior, type WidgetConfig, WidgetConfigGetByAgentSubject, WidgetConfigSaveSubject, type WidgetSecurity, WorkflowAgentGetSubject, WorkflowAgentUpdateSubject };
|
|
1872
|
+
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, type AgentJob, AgentJobCreateSubject, AgentJobDeleteSubject, AgentJobGetSubject, type AgentJobIDRequest, AgentJobListSubject, AgentJobPauseSubject, type AgentJobResponse, AgentJobResumeSubject, type AgentJobTriggerRequest, type AgentJobTriggerResponse, AgentJobTriggerSubject, AgentJobUpdateSubject, type AgentJobsListResponse, 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 AgentWidget, type AgentWidgetResponse, AgentWidgetsCreateSubject, AgentWidgetsDeleteSubject, AgentWidgetsGetByWidgetID, AgentWidgetsGetDefaultSubject, AgentWidgetsGetSubject, AgentWidgetsListSubject, AgentWidgetsSetDefaultSubject, AgentWidgetsUpdateSubject, type CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentJobRequest, type CreateAgentRequest, type CreateAgentWidgetRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type CreateToolDefinitionRequest, type DefaultDefinitions, type DeleteAgentRequest, type DeleteAgentWidgetRequest, 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 GetAgentWidgetRequest, type GetDefaultAgentRequest, type GetDefaultWidgetRequest, type GetSkillRequest, type GetSkillsByIDsRequest, type GetSkillsByIDsResponse, type GetSubAgentRequest, type GetSubAgentsByIDsRequest, type GetSubAgentsByIDsResponse, type GetToolDefinitionRequest, type GetToolDefinitionsByIDsRequest, type GetToolDefinitionsByIDsResponse, type GetWidgetByWidgetIDRequest, type GetWidgetConfigRequest, type GetWidgetConfigResponse, type HandoffConfig, type IntegrationProviderTS, type IntegrationRequirement, type IntegrationTypeTS, type JobExecutionResult, type JobFrequency, JobFrequencyOneTime, JobFrequencySchedule, type JobFrequencyTS, type JobScope, JobScopeOrg, JobScopePrivate, type JobScopeTS, JobScopeTeam, type JobStatus, JobStatusActive, JobStatusDisabled, JobStatusPaused, type JobStatusTS, type ListAgentJobsRequest, type ListAgentWidgetsRequest, type ListAgentWidgetsResponse, 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 ProcessJobTriggerResult, type PublicWidgetConfig, type ReactAgentConfig, ReactAgentExecuteSubject, ReactAgentStatusSubject, ReactAgentStopSubject, type RetryPolicy, type SaveWidgetConfigRequest, type SaveWidgetConfigResponse, type SetDefaultWidgetRequest, 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 UpdateAgentJobRequest, type UpdateAgentRequest, type UpdateAgentWidgetRequest, type UpdateOrgAgentsRequest, type UpdateOrgAgentsResponse, type UpdateSkillRequest, type UpdateSubAgentRequest, type UpdateToolDefinitionRequest, type UserSuggestedAction, type UserSuggestedActionsConfig, type UserSuggestedActionsRequest, type UserSuggestedActionsResponse, type ValidationError, type ValidationErrors, type WidgetAppearance, type WidgetBehavior, type WidgetConfig, WidgetConfigGetByAgentSubject, WidgetConfigSaveSubject, type WidgetSecurity, WorkflowAgentGetSubject, WorkflowAgentUpdateSubject };
|
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 * 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 * CreateAgentJobRequest represents a request to create an agent job\n */\nexport interface CreateAgentJobRequest {\n orgId: string /* uuid */;\n job?: AgentJob;\n}\n/**\n * UpdateAgentJobRequest represents a request to update an agent job\n */\nexport interface UpdateAgentJobRequest {\n orgId: string /* uuid */;\n job?: AgentJob;\n}\n/**\n * AgentJobIDRequest represents a request that only needs org + job ID\n * Used for: Get, Delete, Pause, Resume operations\n */\nexport interface AgentJobIDRequest {\n orgId: string /* uuid */;\n jobId: string /* uuid */;\n}\n/**\n * ListAgentJobsRequest represents a request to list agent jobs\n */\nexport interface ListAgentJobsRequest {\n orgId: string /* uuid */;\n agentId?: string /* uuid */; // Filter by agent\n ownerId?: string /* uuid */; // Filter by owner\n scope?: JobScope; // Filter by scope\n status?: JobStatus; // Filter by status\n frequency?: JobFrequency; // Filter by frequency\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * AgentJobResponse represents a response containing an agent job\n */\nexport interface AgentJobResponse {\n job?: AgentJob;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * AgentJobsListResponse represents a response containing multiple agent jobs\n */\nexport interface AgentJobsListResponse {\n jobs: AgentJob[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * AgentJobTriggerRequest represents a request from scheduler service to trigger jobs\n */\nexport interface AgentJobTriggerRequest {\n orgId: string /* uuid */;\n timestamp: string /* RFC3339 */;\n}\n/**\n * AgentJobTriggerResponse represents the response for job trigger processing\n */\nexport interface AgentJobTriggerResponse {\n results: JobExecutionResult[];\n orgId: string;\n total: number /* int */;\n executed: number /* int */;\n skipped: number /* int */;\n errors: number /* int */;\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 persisted?: boolean; // Auto-activate by default in new chats\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 goal?: string; // High-level goal description used to auto-generate system prompt\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 skills?: AgentSkill[]; // Skills assigned to this agent\n /**\n * === Essential Configs ===\n */\n csatConfig: CSATConfig;\n handoffConfig: HandoffConfig;\n /**\n * === Widget Embed Config ===\n */\n widgetConfig?: WidgetConfig;\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 * WidgetConfig defines the configuration for an embeddable chat widget\n */\nexport interface WidgetConfig {\n enabled: boolean;\n widgetId: string; // Unique widget identifier (KSUID)\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n security: WidgetSecurity;\n}\n/**\n * WidgetAppearance defines the visual customization of the widget\n */\nexport interface WidgetAppearance {\n position: string; // \"bottom-right\" or \"bottom-left\"\n primaryColor: string; // Hex color for primary elements\n backgroundColor: string; // Hex color for background\n textColor: string; // Hex color for text\n borderRadius: number /* int */; // Border radius in pixels\n bubbleSize: number /* int */; // Bubble size in pixels\n bubbleIconUrl?: string; // Custom icon URL\n}\n/**\n * WidgetBehavior defines the behavioral settings of the widget\n */\nexport interface WidgetBehavior {\n welcomeMessage: string; // Initial greeting message\n suggestedPrompts?: string[]; // Quick action prompts\n autoOpenDelay: number /* int */; // Delay in ms before auto-opening (0 = disabled)\n showPoweredBy: boolean; // Show \"Powered by Eloquent\" attribution\n}\n/**\n * WidgetSecurity defines the security settings for the widget\n */\nexport interface WidgetSecurity {\n allowedDomains: string[]; // Domains allowed to embed this widget\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 * GetWidgetConfigRequest represents a request to get widget config for an agent\n */\nexport interface GetWidgetConfigRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * GetWidgetConfigResponse represents the response with widget config\n */\nexport interface GetWidgetConfigResponse {\n config?: WidgetConfig;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SaveWidgetConfigRequest represents a request to save widget config for an agent\n */\nexport interface SaveWidgetConfigRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n config?: WidgetConfig;\n}\n/**\n * SaveWidgetConfigResponse represents the response after saving widget config\n */\nexport interface SaveWidgetConfigResponse {\n config?: WidgetConfig;\n metadata: any /* types.ResponseMetadata */;\n}\nexport type JobScopeTS = 'private' | 'team' | 'org';\nexport type JobStatusTS = 'active' | 'paused' | 'disabled';\nexport type JobFrequencyTS = 'one-time' | 'schedule';\n/**\n * JobScope defines who can see and use the job\n */\nexport type JobScope = string;\nexport const JobScopePrivate: JobScope = \"private\"; // Only owner can see/manage\nexport const JobScopeTeam: JobScope = \"team\"; // Team members can see/manage\nexport const JobScopeOrg: JobScope = \"org\"; // Organization-wide\n/**\n * JobStatus defines the current state of a job\n */\nexport type JobStatus = string;\nexport const JobStatusActive: JobStatus = \"active\"; // Running on schedule\nexport const JobStatusPaused: JobStatus = \"paused\"; // Temporarily stopped\nexport const JobStatusDisabled: JobStatus = \"disabled\"; // Permanently disabled\n/**\n * JobFrequency defines whether a job runs once or on a schedule\n */\nexport type JobFrequency = string;\nexport const JobFrequencyOneTime: JobFrequency = \"one-time\"; // Single execution\nexport const JobFrequencySchedule: JobFrequency = \"schedule\"; // Recurring cron-based\n/**\n * AgentJob represents a scheduled or one-time execution configuration for an agent\n */\nexport interface AgentJob {\n id: string /* uuid */;\n agentId: string /* uuid */;\n ownerId: string /* uuid */; // User who created the job\n teamId?: string /* uuid */;\n /**\n * Job identity\n */\n name: string;\n description?: string;\n /**\n * Scope determines who can see/manage and execution context\n */\n scope: JobScopeTS;\n /**\n * Job configuration\n */\n frequency: JobFrequencyTS; // 'one-time' or 'schedule'\n cron?: string; // Cron expression (required for 'schedule' frequency)\n timezone?: string; // IANA timezone (default: UTC)\n prompt: string; // The prompt to execute\n /**\n * Status\n */\n status: JobStatusTS;\n /**\n * Tracking fields (managed by system)\n */\n lastRunAt?: string /* RFC3339 */;\n nextRunAt?: string /* RFC3339 */;\n runCount: number /* int */;\n lastError?: string;\n /**\n * Circuit breaker fields\n */\n consecutiveFailures: number /* int */;\n disabledUntil?: string /* RFC3339 */;\n /**\n * Audit fields\n */\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * JobExecutionResult represents the result of processing a single agent job\n */\nexport interface JobExecutionResult {\n jobId: string;\n agentId: string;\n jobName: string;\n executed: boolean;\n error?: string;\n}\n/**\n * ProcessJobTriggerResult represents the result of processing all agent jobs\n */\nexport interface ProcessJobTriggerResult {\n results: JobExecutionResult[];\n total: number /* int */;\n executed: number /* int */;\n skipped: number /* int */;\n errors: number /* int */;\n}\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 * Widget Config Management\n */\nexport const WidgetConfigGetByAgentSubject = \"widgets.config.get.by.agent\";\n/**\n * Widget Config Management\n */\nexport const WidgetConfigSaveSubject = \"widgets.config.save\";\n/**\n * Job CRUD Operations\n */\nexport const AgentJobCreateSubject = \"agents.jobs.create\";\n/**\n * Agent Job Management\n */\nexport const AgentJobGetSubject = \"agents.jobs.get\";\n/**\n * Agent Job Management\n */\nexport const AgentJobUpdateSubject = \"agents.jobs.update\";\n/**\n * Agent Job Management\n */\nexport const AgentJobDeleteSubject = \"agents.jobs.delete\";\n/**\n * Agent Job Management\n */\nexport const AgentJobListSubject = \"agents.jobs.list\";\n/**\n * Job Actions\n */\nexport const AgentJobPauseSubject = \"agents.jobs.pause\";\n/**\n * Agent Job Management\n */\nexport const AgentJobResumeSubject = \"agents.jobs.resume\";\n/**\n * Job Trigger (from Scheduler Service)\n */\nexport const AgentJobTriggerSubject = \"agents.job.trigger\";\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\n//////////\n// source: widget-models.go\n\n/**\n * AgentWidget represents a widget configuration for an agent\n */\nexport interface AgentWidget {\n id: string /* uuid */;\n agentId: string /* uuid */;\n orgId: string /* uuid */; // Derived from schema context\n widgetId: string /* uuid */; // Unique ID for embed URL\n name: string; // Internal name/identifier\n title: string; // Display title in widget header\n description?: string;\n enabled: boolean;\n isDefault: boolean;\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n security: WidgetSecurity;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy?: string;\n}\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsCreateSubject = \"agents.widgets.create\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetSubject = \"agents.widgets.get\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetByWidgetID = \"agents.widgets.get-by-widget-id\"; // For embed lookup\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsUpdateSubject = \"agents.widgets.update\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsDeleteSubject = \"agents.widgets.delete\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsListSubject = \"agents.widgets.list\"; // List by agent\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsSetDefaultSubject = \"agents.widgets.set-default\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetDefaultSubject = \"agents.widgets.get-default\";\n/**\n * CreateAgentWidgetRequest is the request to create a new widget\n */\nexport interface CreateAgentWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n widget: AgentWidget;\n}\n/**\n * AgentWidgetResponse is the response for single widget operations\n */\nexport interface AgentWidgetResponse {\n widget?: AgentWidget;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetAgentWidgetRequest is the request to get a widget by ID\n */\nexport interface GetAgentWidgetRequest {\n orgId: string /* uuid */;\n widgetId: string /* uuid */; // This is the primary key ID\n}\n/**\n * GetWidgetByWidgetIDRequest is the request to get a widget by its embed widget_id\n */\nexport interface GetWidgetByWidgetIDRequest {\n widgetId: string /* uuid */; // The widget_id field (for embed lookup)\n}\n/**\n * UpdateAgentWidgetRequest is the request to update a widget\n */\nexport interface UpdateAgentWidgetRequest {\n orgId: string /* uuid */;\n widget: AgentWidget;\n}\n/**\n * DeleteAgentWidgetRequest is the request to delete a widget\n */\nexport interface DeleteAgentWidgetRequest {\n orgId: string /* uuid */;\n widgetId: string /* uuid */; // Primary key ID\n}\n/**\n * ListAgentWidgetsRequest is the request to list widgets for an agent\n */\nexport interface ListAgentWidgetsRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * ListAgentWidgetsResponse is the response for listing widgets\n */\nexport interface ListAgentWidgetsResponse {\n widgets: AgentWidget[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SetDefaultWidgetRequest is the request to set a widget as default\n */\nexport interface SetDefaultWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n widgetId: string /* uuid */; // Primary key ID of widget to set as default\n}\n/**\n * GetDefaultWidgetRequest is the request to get the default widget for an agent\n */\nexport interface GetDefaultWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * PublicWidgetConfig is the config exposed to the widget client (no sensitive data)\n */\nexport interface PublicWidgetConfig {\n widgetId: string /* uuid */;\n agentId: string /* uuid */;\n orgId: string /* uuid */;\n name: string;\n title: string;\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n}\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 * CreateAgentJobRequest represents a request to create an agent job\n */\nexport interface CreateAgentJobRequest {\n orgId: string /* uuid */;\n job?: AgentJob;\n}\n/**\n * UpdateAgentJobRequest represents a request to update an agent job\n */\nexport interface UpdateAgentJobRequest {\n orgId: string /* uuid */;\n job?: AgentJob;\n}\n/**\n * AgentJobIDRequest represents a request that only needs org + job ID\n * Used for: Get, Delete, Pause, Resume operations\n */\nexport interface AgentJobIDRequest {\n orgId: string /* uuid */;\n jobId: string /* uuid */;\n}\n/**\n * ListAgentJobsRequest represents a request to list agent jobs\n */\nexport interface ListAgentJobsRequest {\n orgId: string /* uuid */;\n agentId?: string /* uuid */; // Filter by agent\n ownerId?: string /* uuid */; // Filter by owner\n scope?: JobScope; // Filter by scope\n status?: JobStatus; // Filter by status\n frequency?: JobFrequency; // Filter by frequency\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * AgentJobResponse represents a response containing an agent job\n */\nexport interface AgentJobResponse {\n job?: AgentJob;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * AgentJobsListResponse represents a response containing multiple agent jobs\n */\nexport interface AgentJobsListResponse {\n jobs: AgentJob[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * AgentJobTriggerRequest represents a request from scheduler service to trigger jobs\n */\nexport interface AgentJobTriggerRequest {\n orgId: string /* uuid */;\n timestamp: string /* RFC3339 */;\n}\n/**\n * AgentJobTriggerResponse represents the response for job trigger processing\n */\nexport interface AgentJobTriggerResponse {\n results: JobExecutionResult[];\n orgId: string;\n total: number /* int */;\n executed: number /* int */;\n skipped: number /* int */;\n errors: number /* int */;\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 IntegrationProviderTS = 'google' | 'microsoft';\nexport type IntegrationTypeTS = 'email' | 'calendar' | 'drive';\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 * IntegrationRequirement specifies an OAuth integration needed for a skill to function\n * Skills with integration requirements are only available to users who have connected the required provider\n */\nexport interface IntegrationRequirement {\n provider: string; // \"google\" | \"microsoft\"\n type: string; // \"email\" | \"calendar\" | \"drive\"\n}\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 requiredIntegrations?: IntegrationRequirement[]; // OAuth integrations needed for this skill\n enabled: boolean;\n isSystem?: boolean;\n persisted?: boolean; // Auto-activate by default in new chats\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 goal?: string; // High-level goal description used to auto-generate system prompt\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 skills?: AgentSkill[]; // Skills assigned to this agent\n /**\n * === Essential Configs ===\n */\n csatConfig: CSATConfig;\n handoffConfig: HandoffConfig;\n /**\n * === Widget Embed Config ===\n */\n widgetConfig?: WidgetConfig;\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 * WidgetConfig defines the configuration for an embeddable chat widget\n */\nexport interface WidgetConfig {\n enabled: boolean;\n widgetId: string; // Unique widget identifier (KSUID)\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n security: WidgetSecurity;\n}\n/**\n * WidgetAppearance defines the visual customization of the widget\n */\nexport interface WidgetAppearance {\n position: string; // \"bottom-right\" or \"bottom-left\"\n primaryColor: string; // Hex color for primary elements\n backgroundColor: string; // Hex color for background\n textColor: string; // Hex color for text\n borderRadius: number /* int */; // Border radius in pixels\n bubbleSize: number /* int */; // Bubble size in pixels\n bubbleIconUrl?: string; // Custom icon URL\n}\n/**\n * WidgetBehavior defines the behavioral settings of the widget\n */\nexport interface WidgetBehavior {\n welcomeMessage: string; // Initial greeting message\n suggestedPrompts?: string[]; // Quick action prompts\n autoOpenDelay: number /* int */; // Delay in ms before auto-opening (0 = disabled)\n showPoweredBy: boolean; // Show \"Powered by Eloquent\" attribution\n}\n/**\n * WidgetSecurity defines the security settings for the widget\n */\nexport interface WidgetSecurity {\n allowedDomains: string[]; // Domains allowed to embed this widget\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 skills?: AgentSkill[];\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 * GetWidgetConfigRequest represents a request to get widget config for an agent\n */\nexport interface GetWidgetConfigRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * GetWidgetConfigResponse represents the response with widget config\n */\nexport interface GetWidgetConfigResponse {\n config?: WidgetConfig;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SaveWidgetConfigRequest represents a request to save widget config for an agent\n */\nexport interface SaveWidgetConfigRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n config?: WidgetConfig;\n}\n/**\n * SaveWidgetConfigResponse represents the response after saving widget config\n */\nexport interface SaveWidgetConfigResponse {\n config?: WidgetConfig;\n metadata: any /* types.ResponseMetadata */;\n}\nexport type JobScopeTS = 'private' | 'team' | 'org';\nexport type JobStatusTS = 'active' | 'paused' | 'disabled';\nexport type JobFrequencyTS = 'one-time' | 'schedule';\n/**\n * JobScope defines who can see and use the job\n */\nexport type JobScope = string;\nexport const JobScopePrivate: JobScope = \"private\"; // Only owner can see/manage\nexport const JobScopeTeam: JobScope = \"team\"; // Team members can see/manage\nexport const JobScopeOrg: JobScope = \"org\"; // Organization-wide\n/**\n * JobStatus defines the current state of a job\n */\nexport type JobStatus = string;\nexport const JobStatusActive: JobStatus = \"active\"; // Running on schedule\nexport const JobStatusPaused: JobStatus = \"paused\"; // Temporarily stopped\nexport const JobStatusDisabled: JobStatus = \"disabled\"; // Permanently disabled\n/**\n * JobFrequency defines whether a job runs once or on a schedule\n */\nexport type JobFrequency = string;\nexport const JobFrequencyOneTime: JobFrequency = \"one-time\"; // Single execution\nexport const JobFrequencySchedule: JobFrequency = \"schedule\"; // Recurring cron-based\n/**\n * AgentJob represents a scheduled or one-time execution configuration for an agent\n */\nexport interface AgentJob {\n id: string /* uuid */;\n agentId: string /* uuid */;\n ownerId: string /* uuid */; // User who created the job\n teamId?: string /* uuid */;\n /**\n * Job identity\n */\n name: string;\n description?: string;\n /**\n * Scope determines who can see/manage and execution context\n */\n scope: JobScopeTS;\n /**\n * Job configuration\n */\n frequency: JobFrequencyTS; // 'one-time' or 'schedule'\n cron?: string; // Cron expression (required for 'schedule' frequency)\n timezone?: string; // IANA timezone (default: UTC)\n prompt: string; // The prompt to execute\n /**\n * Status\n */\n status: JobStatusTS;\n /**\n * Tracking fields (managed by system)\n */\n lastRunAt?: string /* RFC3339 */;\n nextRunAt?: string /* RFC3339 */;\n runCount: number /* int */;\n lastError?: string;\n /**\n * Circuit breaker fields\n */\n consecutiveFailures: number /* int */;\n disabledUntil?: string /* RFC3339 */;\n /**\n * Audit fields\n */\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * JobExecutionResult represents the result of processing a single agent job\n */\nexport interface JobExecutionResult {\n jobId: string;\n agentId: string;\n jobName: string;\n executed: boolean;\n error?: string;\n}\n/**\n * ProcessJobTriggerResult represents the result of processing all agent jobs\n */\nexport interface ProcessJobTriggerResult {\n results: JobExecutionResult[];\n total: number /* int */;\n executed: number /* int */;\n skipped: number /* int */;\n errors: number /* int */;\n}\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 * Widget Config Management\n */\nexport const WidgetConfigGetByAgentSubject = \"widgets.config.get.by.agent\";\n/**\n * Widget Config Management\n */\nexport const WidgetConfigSaveSubject = \"widgets.config.save\";\n/**\n * Job CRUD Operations\n */\nexport const AgentJobCreateSubject = \"agents.jobs.create\";\n/**\n * Agent Job Management\n */\nexport const AgentJobGetSubject = \"agents.jobs.get\";\n/**\n * Agent Job Management\n */\nexport const AgentJobUpdateSubject = \"agents.jobs.update\";\n/**\n * Agent Job Management\n */\nexport const AgentJobDeleteSubject = \"agents.jobs.delete\";\n/**\n * Agent Job Management\n */\nexport const AgentJobListSubject = \"agents.jobs.list\";\n/**\n * Job Actions\n */\nexport const AgentJobPauseSubject = \"agents.jobs.pause\";\n/**\n * Agent Job Management\n */\nexport const AgentJobResumeSubject = \"agents.jobs.resume\";\n/**\n * Job Trigger (from Scheduler Service)\n */\nexport const AgentJobTriggerSubject = \"agents.job.trigger\";\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\n//////////\n// source: widget-models.go\n\n/**\n * AgentWidget represents a widget configuration for an agent\n */\nexport interface AgentWidget {\n id: string /* uuid */;\n agentId: string /* uuid */;\n orgId: string /* uuid */; // Derived from schema context\n widgetId: string /* uuid */; // Unique ID for embed URL\n name: string; // Internal name/identifier\n title: string; // Display title in widget header\n description?: string;\n enabled: boolean;\n isDefault: boolean;\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n security: WidgetSecurity;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy?: string;\n}\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsCreateSubject = \"agents.widgets.create\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetSubject = \"agents.widgets.get\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetByWidgetID = \"agents.widgets.get-by-widget-id\"; // For embed lookup\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsUpdateSubject = \"agents.widgets.update\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsDeleteSubject = \"agents.widgets.delete\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsListSubject = \"agents.widgets.list\"; // List by agent\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsSetDefaultSubject = \"agents.widgets.set-default\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetDefaultSubject = \"agents.widgets.get-default\";\n/**\n * CreateAgentWidgetRequest is the request to create a new widget\n */\nexport interface CreateAgentWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n widget: AgentWidget;\n}\n/**\n * AgentWidgetResponse is the response for single widget operations\n */\nexport interface AgentWidgetResponse {\n widget?: AgentWidget;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetAgentWidgetRequest is the request to get a widget by ID\n */\nexport interface GetAgentWidgetRequest {\n orgId: string /* uuid */;\n widgetId: string /* uuid */; // This is the primary key ID\n}\n/**\n * GetWidgetByWidgetIDRequest is the request to get a widget by its embed widget_id\n */\nexport interface GetWidgetByWidgetIDRequest {\n widgetId: string /* uuid */; // The widget_id field (for embed lookup)\n}\n/**\n * UpdateAgentWidgetRequest is the request to update a widget\n */\nexport interface UpdateAgentWidgetRequest {\n orgId: string /* uuid */;\n widget: AgentWidget;\n}\n/**\n * DeleteAgentWidgetRequest is the request to delete a widget\n */\nexport interface DeleteAgentWidgetRequest {\n orgId: string /* uuid */;\n widgetId: string /* uuid */; // Primary key ID\n}\n/**\n * ListAgentWidgetsRequest is the request to list widgets for an agent\n */\nexport interface ListAgentWidgetsRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * ListAgentWidgetsResponse is the response for listing widgets\n */\nexport interface ListAgentWidgetsResponse {\n widgets: AgentWidget[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SetDefaultWidgetRequest is the request to set a widget as default\n */\nexport interface SetDefaultWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n widgetId: string /* uuid */; // Primary key ID of widget to set as default\n}\n/**\n * GetDefaultWidgetRequest is the request to get the default widget for an agent\n */\nexport interface GetDefaultWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * PublicWidgetConfig is the config exposed to the widget client (no sensitive data)\n */\nexport interface PublicWidgetConfig {\n widgetId: string /* uuid */;\n agentId: string /* uuid */;\n orgId: string /* uuid */;\n name: string;\n title: string;\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n}\n"],"mappings":"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","names":[]}
|
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 * 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 * CreateAgentJobRequest represents a request to create an agent job\n */\nexport interface CreateAgentJobRequest {\n orgId: string /* uuid */;\n job?: AgentJob;\n}\n/**\n * UpdateAgentJobRequest represents a request to update an agent job\n */\nexport interface UpdateAgentJobRequest {\n orgId: string /* uuid */;\n job?: AgentJob;\n}\n/**\n * AgentJobIDRequest represents a request that only needs org + job ID\n * Used for: Get, Delete, Pause, Resume operations\n */\nexport interface AgentJobIDRequest {\n orgId: string /* uuid */;\n jobId: string /* uuid */;\n}\n/**\n * ListAgentJobsRequest represents a request to list agent jobs\n */\nexport interface ListAgentJobsRequest {\n orgId: string /* uuid */;\n agentId?: string /* uuid */; // Filter by agent\n ownerId?: string /* uuid */; // Filter by owner\n scope?: JobScope; // Filter by scope\n status?: JobStatus; // Filter by status\n frequency?: JobFrequency; // Filter by frequency\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * AgentJobResponse represents a response containing an agent job\n */\nexport interface AgentJobResponse {\n job?: AgentJob;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * AgentJobsListResponse represents a response containing multiple agent jobs\n */\nexport interface AgentJobsListResponse {\n jobs: AgentJob[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * AgentJobTriggerRequest represents a request from scheduler service to trigger jobs\n */\nexport interface AgentJobTriggerRequest {\n orgId: string /* uuid */;\n timestamp: string /* RFC3339 */;\n}\n/**\n * AgentJobTriggerResponse represents the response for job trigger processing\n */\nexport interface AgentJobTriggerResponse {\n results: JobExecutionResult[];\n orgId: string;\n total: number /* int */;\n executed: number /* int */;\n skipped: number /* int */;\n errors: number /* int */;\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 persisted?: boolean; // Auto-activate by default in new chats\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 goal?: string; // High-level goal description used to auto-generate system prompt\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 skills?: AgentSkill[]; // Skills assigned to this agent\n /**\n * === Essential Configs ===\n */\n csatConfig: CSATConfig;\n handoffConfig: HandoffConfig;\n /**\n * === Widget Embed Config ===\n */\n widgetConfig?: WidgetConfig;\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 * WidgetConfig defines the configuration for an embeddable chat widget\n */\nexport interface WidgetConfig {\n enabled: boolean;\n widgetId: string; // Unique widget identifier (KSUID)\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n security: WidgetSecurity;\n}\n/**\n * WidgetAppearance defines the visual customization of the widget\n */\nexport interface WidgetAppearance {\n position: string; // \"bottom-right\" or \"bottom-left\"\n primaryColor: string; // Hex color for primary elements\n backgroundColor: string; // Hex color for background\n textColor: string; // Hex color for text\n borderRadius: number /* int */; // Border radius in pixels\n bubbleSize: number /* int */; // Bubble size in pixels\n bubbleIconUrl?: string; // Custom icon URL\n}\n/**\n * WidgetBehavior defines the behavioral settings of the widget\n */\nexport interface WidgetBehavior {\n welcomeMessage: string; // Initial greeting message\n suggestedPrompts?: string[]; // Quick action prompts\n autoOpenDelay: number /* int */; // Delay in ms before auto-opening (0 = disabled)\n showPoweredBy: boolean; // Show \"Powered by Eloquent\" attribution\n}\n/**\n * WidgetSecurity defines the security settings for the widget\n */\nexport interface WidgetSecurity {\n allowedDomains: string[]; // Domains allowed to embed this widget\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 * GetWidgetConfigRequest represents a request to get widget config for an agent\n */\nexport interface GetWidgetConfigRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * GetWidgetConfigResponse represents the response with widget config\n */\nexport interface GetWidgetConfigResponse {\n config?: WidgetConfig;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SaveWidgetConfigRequest represents a request to save widget config for an agent\n */\nexport interface SaveWidgetConfigRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n config?: WidgetConfig;\n}\n/**\n * SaveWidgetConfigResponse represents the response after saving widget config\n */\nexport interface SaveWidgetConfigResponse {\n config?: WidgetConfig;\n metadata: any /* types.ResponseMetadata */;\n}\nexport type JobScopeTS = 'private' | 'team' | 'org';\nexport type JobStatusTS = 'active' | 'paused' | 'disabled';\nexport type JobFrequencyTS = 'one-time' | 'schedule';\n/**\n * JobScope defines who can see and use the job\n */\nexport type JobScope = string;\nexport const JobScopePrivate: JobScope = \"private\"; // Only owner can see/manage\nexport const JobScopeTeam: JobScope = \"team\"; // Team members can see/manage\nexport const JobScopeOrg: JobScope = \"org\"; // Organization-wide\n/**\n * JobStatus defines the current state of a job\n */\nexport type JobStatus = string;\nexport const JobStatusActive: JobStatus = \"active\"; // Running on schedule\nexport const JobStatusPaused: JobStatus = \"paused\"; // Temporarily stopped\nexport const JobStatusDisabled: JobStatus = \"disabled\"; // Permanently disabled\n/**\n * JobFrequency defines whether a job runs once or on a schedule\n */\nexport type JobFrequency = string;\nexport const JobFrequencyOneTime: JobFrequency = \"one-time\"; // Single execution\nexport const JobFrequencySchedule: JobFrequency = \"schedule\"; // Recurring cron-based\n/**\n * AgentJob represents a scheduled or one-time execution configuration for an agent\n */\nexport interface AgentJob {\n id: string /* uuid */;\n agentId: string /* uuid */;\n ownerId: string /* uuid */; // User who created the job\n teamId?: string /* uuid */;\n /**\n * Job identity\n */\n name: string;\n description?: string;\n /**\n * Scope determines who can see/manage and execution context\n */\n scope: JobScopeTS;\n /**\n * Job configuration\n */\n frequency: JobFrequencyTS; // 'one-time' or 'schedule'\n cron?: string; // Cron expression (required for 'schedule' frequency)\n timezone?: string; // IANA timezone (default: UTC)\n prompt: string; // The prompt to execute\n /**\n * Status\n */\n status: JobStatusTS;\n /**\n * Tracking fields (managed by system)\n */\n lastRunAt?: string /* RFC3339 */;\n nextRunAt?: string /* RFC3339 */;\n runCount: number /* int */;\n lastError?: string;\n /**\n * Circuit breaker fields\n */\n consecutiveFailures: number /* int */;\n disabledUntil?: string /* RFC3339 */;\n /**\n * Audit fields\n */\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * JobExecutionResult represents the result of processing a single agent job\n */\nexport interface JobExecutionResult {\n jobId: string;\n agentId: string;\n jobName: string;\n executed: boolean;\n error?: string;\n}\n/**\n * ProcessJobTriggerResult represents the result of processing all agent jobs\n */\nexport interface ProcessJobTriggerResult {\n results: JobExecutionResult[];\n total: number /* int */;\n executed: number /* int */;\n skipped: number /* int */;\n errors: number /* int */;\n}\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 * Widget Config Management\n */\nexport const WidgetConfigGetByAgentSubject = \"widgets.config.get.by.agent\";\n/**\n * Widget Config Management\n */\nexport const WidgetConfigSaveSubject = \"widgets.config.save\";\n/**\n * Job CRUD Operations\n */\nexport const AgentJobCreateSubject = \"agents.jobs.create\";\n/**\n * Agent Job Management\n */\nexport const AgentJobGetSubject = \"agents.jobs.get\";\n/**\n * Agent Job Management\n */\nexport const AgentJobUpdateSubject = \"agents.jobs.update\";\n/**\n * Agent Job Management\n */\nexport const AgentJobDeleteSubject = \"agents.jobs.delete\";\n/**\n * Agent Job Management\n */\nexport const AgentJobListSubject = \"agents.jobs.list\";\n/**\n * Job Actions\n */\nexport const AgentJobPauseSubject = \"agents.jobs.pause\";\n/**\n * Agent Job Management\n */\nexport const AgentJobResumeSubject = \"agents.jobs.resume\";\n/**\n * Job Trigger (from Scheduler Service)\n */\nexport const AgentJobTriggerSubject = \"agents.job.trigger\";\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\n//////////\n// source: widget-models.go\n\n/**\n * AgentWidget represents a widget configuration for an agent\n */\nexport interface AgentWidget {\n id: string /* uuid */;\n agentId: string /* uuid */;\n orgId: string /* uuid */; // Derived from schema context\n widgetId: string /* uuid */; // Unique ID for embed URL\n name: string; // Internal name/identifier\n title: string; // Display title in widget header\n description?: string;\n enabled: boolean;\n isDefault: boolean;\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n security: WidgetSecurity;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy?: string;\n}\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsCreateSubject = \"agents.widgets.create\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetSubject = \"agents.widgets.get\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetByWidgetID = \"agents.widgets.get-by-widget-id\"; // For embed lookup\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsUpdateSubject = \"agents.widgets.update\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsDeleteSubject = \"agents.widgets.delete\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsListSubject = \"agents.widgets.list\"; // List by agent\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsSetDefaultSubject = \"agents.widgets.set-default\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetDefaultSubject = \"agents.widgets.get-default\";\n/**\n * CreateAgentWidgetRequest is the request to create a new widget\n */\nexport interface CreateAgentWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n widget: AgentWidget;\n}\n/**\n * AgentWidgetResponse is the response for single widget operations\n */\nexport interface AgentWidgetResponse {\n widget?: AgentWidget;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetAgentWidgetRequest is the request to get a widget by ID\n */\nexport interface GetAgentWidgetRequest {\n orgId: string /* uuid */;\n widgetId: string /* uuid */; // This is the primary key ID\n}\n/**\n * GetWidgetByWidgetIDRequest is the request to get a widget by its embed widget_id\n */\nexport interface GetWidgetByWidgetIDRequest {\n widgetId: string /* uuid */; // The widget_id field (for embed lookup)\n}\n/**\n * UpdateAgentWidgetRequest is the request to update a widget\n */\nexport interface UpdateAgentWidgetRequest {\n orgId: string /* uuid */;\n widget: AgentWidget;\n}\n/**\n * DeleteAgentWidgetRequest is the request to delete a widget\n */\nexport interface DeleteAgentWidgetRequest {\n orgId: string /* uuid */;\n widgetId: string /* uuid */; // Primary key ID\n}\n/**\n * ListAgentWidgetsRequest is the request to list widgets for an agent\n */\nexport interface ListAgentWidgetsRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * ListAgentWidgetsResponse is the response for listing widgets\n */\nexport interface ListAgentWidgetsResponse {\n widgets: AgentWidget[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SetDefaultWidgetRequest is the request to set a widget as default\n */\nexport interface SetDefaultWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n widgetId: string /* uuid */; // Primary key ID of widget to set as default\n}\n/**\n * GetDefaultWidgetRequest is the request to get the default widget for an agent\n */\nexport interface GetDefaultWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * PublicWidgetConfig is the config exposed to the widget client (no sensitive data)\n */\nexport interface PublicWidgetConfig {\n widgetId: string /* uuid */;\n agentId: string /* uuid */;\n orgId: string /* uuid */;\n name: string;\n title: string;\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n}\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 * CreateAgentJobRequest represents a request to create an agent job\n */\nexport interface CreateAgentJobRequest {\n orgId: string /* uuid */;\n job?: AgentJob;\n}\n/**\n * UpdateAgentJobRequest represents a request to update an agent job\n */\nexport interface UpdateAgentJobRequest {\n orgId: string /* uuid */;\n job?: AgentJob;\n}\n/**\n * AgentJobIDRequest represents a request that only needs org + job ID\n * Used for: Get, Delete, Pause, Resume operations\n */\nexport interface AgentJobIDRequest {\n orgId: string /* uuid */;\n jobId: string /* uuid */;\n}\n/**\n * ListAgentJobsRequest represents a request to list agent jobs\n */\nexport interface ListAgentJobsRequest {\n orgId: string /* uuid */;\n agentId?: string /* uuid */; // Filter by agent\n ownerId?: string /* uuid */; // Filter by owner\n scope?: JobScope; // Filter by scope\n status?: JobStatus; // Filter by status\n frequency?: JobFrequency; // Filter by frequency\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * AgentJobResponse represents a response containing an agent job\n */\nexport interface AgentJobResponse {\n job?: AgentJob;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * AgentJobsListResponse represents a response containing multiple agent jobs\n */\nexport interface AgentJobsListResponse {\n jobs: AgentJob[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * AgentJobTriggerRequest represents a request from scheduler service to trigger jobs\n */\nexport interface AgentJobTriggerRequest {\n orgId: string /* uuid */;\n timestamp: string /* RFC3339 */;\n}\n/**\n * AgentJobTriggerResponse represents the response for job trigger processing\n */\nexport interface AgentJobTriggerResponse {\n results: JobExecutionResult[];\n orgId: string;\n total: number /* int */;\n executed: number /* int */;\n skipped: number /* int */;\n errors: number /* int */;\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 IntegrationProviderTS = 'google' | 'microsoft';\nexport type IntegrationTypeTS = 'email' | 'calendar' | 'drive';\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 * IntegrationRequirement specifies an OAuth integration needed for a skill to function\n * Skills with integration requirements are only available to users who have connected the required provider\n */\nexport interface IntegrationRequirement {\n provider: string; // \"google\" | \"microsoft\"\n type: string; // \"email\" | \"calendar\" | \"drive\"\n}\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 requiredIntegrations?: IntegrationRequirement[]; // OAuth integrations needed for this skill\n enabled: boolean;\n isSystem?: boolean;\n persisted?: boolean; // Auto-activate by default in new chats\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 goal?: string; // High-level goal description used to auto-generate system prompt\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 skills?: AgentSkill[]; // Skills assigned to this agent\n /**\n * === Essential Configs ===\n */\n csatConfig: CSATConfig;\n handoffConfig: HandoffConfig;\n /**\n * === Widget Embed Config ===\n */\n widgetConfig?: WidgetConfig;\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 * WidgetConfig defines the configuration for an embeddable chat widget\n */\nexport interface WidgetConfig {\n enabled: boolean;\n widgetId: string; // Unique widget identifier (KSUID)\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n security: WidgetSecurity;\n}\n/**\n * WidgetAppearance defines the visual customization of the widget\n */\nexport interface WidgetAppearance {\n position: string; // \"bottom-right\" or \"bottom-left\"\n primaryColor: string; // Hex color for primary elements\n backgroundColor: string; // Hex color for background\n textColor: string; // Hex color for text\n borderRadius: number /* int */; // Border radius in pixels\n bubbleSize: number /* int */; // Bubble size in pixels\n bubbleIconUrl?: string; // Custom icon URL\n}\n/**\n * WidgetBehavior defines the behavioral settings of the widget\n */\nexport interface WidgetBehavior {\n welcomeMessage: string; // Initial greeting message\n suggestedPrompts?: string[]; // Quick action prompts\n autoOpenDelay: number /* int */; // Delay in ms before auto-opening (0 = disabled)\n showPoweredBy: boolean; // Show \"Powered by Eloquent\" attribution\n}\n/**\n * WidgetSecurity defines the security settings for the widget\n */\nexport interface WidgetSecurity {\n allowedDomains: string[]; // Domains allowed to embed this widget\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 skills?: AgentSkill[];\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 * GetWidgetConfigRequest represents a request to get widget config for an agent\n */\nexport interface GetWidgetConfigRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * GetWidgetConfigResponse represents the response with widget config\n */\nexport interface GetWidgetConfigResponse {\n config?: WidgetConfig;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SaveWidgetConfigRequest represents a request to save widget config for an agent\n */\nexport interface SaveWidgetConfigRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n config?: WidgetConfig;\n}\n/**\n * SaveWidgetConfigResponse represents the response after saving widget config\n */\nexport interface SaveWidgetConfigResponse {\n config?: WidgetConfig;\n metadata: any /* types.ResponseMetadata */;\n}\nexport type JobScopeTS = 'private' | 'team' | 'org';\nexport type JobStatusTS = 'active' | 'paused' | 'disabled';\nexport type JobFrequencyTS = 'one-time' | 'schedule';\n/**\n * JobScope defines who can see and use the job\n */\nexport type JobScope = string;\nexport const JobScopePrivate: JobScope = \"private\"; // Only owner can see/manage\nexport const JobScopeTeam: JobScope = \"team\"; // Team members can see/manage\nexport const JobScopeOrg: JobScope = \"org\"; // Organization-wide\n/**\n * JobStatus defines the current state of a job\n */\nexport type JobStatus = string;\nexport const JobStatusActive: JobStatus = \"active\"; // Running on schedule\nexport const JobStatusPaused: JobStatus = \"paused\"; // Temporarily stopped\nexport const JobStatusDisabled: JobStatus = \"disabled\"; // Permanently disabled\n/**\n * JobFrequency defines whether a job runs once or on a schedule\n */\nexport type JobFrequency = string;\nexport const JobFrequencyOneTime: JobFrequency = \"one-time\"; // Single execution\nexport const JobFrequencySchedule: JobFrequency = \"schedule\"; // Recurring cron-based\n/**\n * AgentJob represents a scheduled or one-time execution configuration for an agent\n */\nexport interface AgentJob {\n id: string /* uuid */;\n agentId: string /* uuid */;\n ownerId: string /* uuid */; // User who created the job\n teamId?: string /* uuid */;\n /**\n * Job identity\n */\n name: string;\n description?: string;\n /**\n * Scope determines who can see/manage and execution context\n */\n scope: JobScopeTS;\n /**\n * Job configuration\n */\n frequency: JobFrequencyTS; // 'one-time' or 'schedule'\n cron?: string; // Cron expression (required for 'schedule' frequency)\n timezone?: string; // IANA timezone (default: UTC)\n prompt: string; // The prompt to execute\n /**\n * Status\n */\n status: JobStatusTS;\n /**\n * Tracking fields (managed by system)\n */\n lastRunAt?: string /* RFC3339 */;\n nextRunAt?: string /* RFC3339 */;\n runCount: number /* int */;\n lastError?: string;\n /**\n * Circuit breaker fields\n */\n consecutiveFailures: number /* int */;\n disabledUntil?: string /* RFC3339 */;\n /**\n * Audit fields\n */\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * JobExecutionResult represents the result of processing a single agent job\n */\nexport interface JobExecutionResult {\n jobId: string;\n agentId: string;\n jobName: string;\n executed: boolean;\n error?: string;\n}\n/**\n * ProcessJobTriggerResult represents the result of processing all agent jobs\n */\nexport interface ProcessJobTriggerResult {\n results: JobExecutionResult[];\n total: number /* int */;\n executed: number /* int */;\n skipped: number /* int */;\n errors: number /* int */;\n}\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 * Widget Config Management\n */\nexport const WidgetConfigGetByAgentSubject = \"widgets.config.get.by.agent\";\n/**\n * Widget Config Management\n */\nexport const WidgetConfigSaveSubject = \"widgets.config.save\";\n/**\n * Job CRUD Operations\n */\nexport const AgentJobCreateSubject = \"agents.jobs.create\";\n/**\n * Agent Job Management\n */\nexport const AgentJobGetSubject = \"agents.jobs.get\";\n/**\n * Agent Job Management\n */\nexport const AgentJobUpdateSubject = \"agents.jobs.update\";\n/**\n * Agent Job Management\n */\nexport const AgentJobDeleteSubject = \"agents.jobs.delete\";\n/**\n * Agent Job Management\n */\nexport const AgentJobListSubject = \"agents.jobs.list\";\n/**\n * Job Actions\n */\nexport const AgentJobPauseSubject = \"agents.jobs.pause\";\n/**\n * Agent Job Management\n */\nexport const AgentJobResumeSubject = \"agents.jobs.resume\";\n/**\n * Job Trigger (from Scheduler Service)\n */\nexport const AgentJobTriggerSubject = \"agents.job.trigger\";\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\n//////////\n// source: widget-models.go\n\n/**\n * AgentWidget represents a widget configuration for an agent\n */\nexport interface AgentWidget {\n id: string /* uuid */;\n agentId: string /* uuid */;\n orgId: string /* uuid */; // Derived from schema context\n widgetId: string /* uuid */; // Unique ID for embed URL\n name: string; // Internal name/identifier\n title: string; // Display title in widget header\n description?: string;\n enabled: boolean;\n isDefault: boolean;\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n security: WidgetSecurity;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy?: string;\n}\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsCreateSubject = \"agents.widgets.create\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetSubject = \"agents.widgets.get\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetByWidgetID = \"agents.widgets.get-by-widget-id\"; // For embed lookup\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsUpdateSubject = \"agents.widgets.update\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsDeleteSubject = \"agents.widgets.delete\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsListSubject = \"agents.widgets.list\"; // List by agent\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsSetDefaultSubject = \"agents.widgets.set-default\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetDefaultSubject = \"agents.widgets.get-default\";\n/**\n * CreateAgentWidgetRequest is the request to create a new widget\n */\nexport interface CreateAgentWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n widget: AgentWidget;\n}\n/**\n * AgentWidgetResponse is the response for single widget operations\n */\nexport interface AgentWidgetResponse {\n widget?: AgentWidget;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetAgentWidgetRequest is the request to get a widget by ID\n */\nexport interface GetAgentWidgetRequest {\n orgId: string /* uuid */;\n widgetId: string /* uuid */; // This is the primary key ID\n}\n/**\n * GetWidgetByWidgetIDRequest is the request to get a widget by its embed widget_id\n */\nexport interface GetWidgetByWidgetIDRequest {\n widgetId: string /* uuid */; // The widget_id field (for embed lookup)\n}\n/**\n * UpdateAgentWidgetRequest is the request to update a widget\n */\nexport interface UpdateAgentWidgetRequest {\n orgId: string /* uuid */;\n widget: AgentWidget;\n}\n/**\n * DeleteAgentWidgetRequest is the request to delete a widget\n */\nexport interface DeleteAgentWidgetRequest {\n orgId: string /* uuid */;\n widgetId: string /* uuid */; // Primary key ID\n}\n/**\n * ListAgentWidgetsRequest is the request to list widgets for an agent\n */\nexport interface ListAgentWidgetsRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * ListAgentWidgetsResponse is the response for listing widgets\n */\nexport interface ListAgentWidgetsResponse {\n widgets: AgentWidget[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SetDefaultWidgetRequest is the request to set a widget as default\n */\nexport interface SetDefaultWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n widgetId: string /* uuid */; // Primary key ID of widget to set as default\n}\n/**\n * GetDefaultWidgetRequest is the request to get the default widget for an agent\n */\nexport interface GetDefaultWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * PublicWidgetConfig is the config exposed to the widget client (no sensitive data)\n */\nexport interface PublicWidgetConfig {\n widgetId: string /* uuid */;\n agentId: string /* uuid */;\n orgId: string /* uuid */;\n name: string;\n title: string;\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n}\n"],"mappings":"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","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elqnt/agents",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "Agent management and orchestration for Eloquent platform",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"types": "./dist/index.d.ts"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
"files": [
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
16
18
|
"scripts": {
|
|
17
19
|
"build": "tsup",
|
|
18
20
|
"dev": "tsup --watch",
|