@elqnt/agents 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-models-C36pvpUb.d.mts → agent-models-DLQlC7N6.d.mts} +143 -2
- package/dist/{agent-models-C36pvpUb.d.ts → agent-models-DLQlC7N6.d.ts} +143 -2
- package/dist/api/index.d.mts +52 -5
- package/dist/api/index.d.ts +52 -5
- package/dist/api/index.js +12 -2
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +11 -1
- package/dist/api/server.d.mts +4 -2
- package/dist/api/server.d.ts +4 -2
- package/dist/api/server.js +9 -1
- package/dist/api/server.js.map +1 -1
- package/dist/api/server.mjs +8 -0
- package/dist/api/server.mjs.map +1 -1
- package/dist/chunk-2JDVRL35.js +133 -0
- package/dist/chunk-2JDVRL35.js.map +1 -0
- package/dist/{chunk-V5GHDXSW.mjs → chunk-2QL3LLC3.mjs} +457 -153
- package/dist/chunk-2QL3LLC3.mjs.map +1 -0
- package/dist/chunk-3EHE4O57.mjs +133 -0
- package/dist/chunk-3EHE4O57.mjs.map +1 -0
- package/dist/{chunk-TPQS2XAW.js → chunk-3VM5TCJR.js} +8 -2
- package/dist/chunk-3VM5TCJR.js.map +1 -0
- package/dist/chunk-AF4QJD73.js +1075 -0
- package/dist/chunk-AF4QJD73.js.map +1 -0
- package/dist/{chunk-IUKM3T2S.js → chunk-BH2FIDFK.js} +49 -2
- package/dist/chunk-BH2FIDFK.js.map +1 -0
- package/dist/{chunk-FR422IHO.mjs → chunk-GOHHT3ET.mjs} +48 -1
- package/dist/chunk-GOHHT3ET.mjs.map +1 -0
- package/dist/{chunk-SXYTVNKJ.mjs → chunk-ZK27UGO6.mjs} +7 -1
- package/dist/{chunk-SXYTVNKJ.mjs.map → chunk-ZK27UGO6.mjs.map} +1 -1
- package/dist/hooks/index.d.mts +127 -70
- package/dist/hooks/index.d.ts +127 -70
- package/dist/hooks/index.js +4 -5
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +5 -6
- package/dist/index.d.mts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +19 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -7
- package/dist/models/index.d.mts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +8 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/index.mjs +7 -1
- package/dist/{sandbox-BHeWPjLU.d.mts → sandbox-DOxoM2Ge.d.mts} +1 -0
- package/dist/{sandbox-BHeWPjLU.d.ts → sandbox-DOxoM2Ge.d.ts} +1 -0
- package/dist/transport/index.d.mts +36 -0
- package/dist/transport/index.d.ts +36 -0
- package/dist/transport/index.js +8 -0
- package/dist/transport/index.js.map +1 -0
- package/dist/transport/index.mjs +8 -0
- package/dist/transport/index.mjs.map +1 -0
- package/dist/types-C2qd5f-E.d.mts +51 -0
- package/dist/types-k9PszCzt.d.ts +51 -0
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +10 -4
- package/dist/chunk-FR422IHO.mjs.map +0 -1
- package/dist/chunk-IUKM3T2S.js.map +0 -1
- package/dist/chunk-RGVWAFZP.js +0 -771
- package/dist/chunk-RGVWAFZP.js.map +0 -1
- package/dist/chunk-TPQS2XAW.js.map +0 -1
- package/dist/chunk-V5GHDXSW.mjs.map +0 -1
|
@@ -724,6 +724,72 @@ interface ExecutionResponse {
|
|
|
724
724
|
execution?: JobExecution;
|
|
725
725
|
metadata: any;
|
|
726
726
|
}
|
|
727
|
+
/**
|
|
728
|
+
* TriggerBackgroundAgentRequest is the input for the trigger_background_agent tool.
|
|
729
|
+
* The main agent calls this to run another agent by name in the background.
|
|
730
|
+
*/
|
|
731
|
+
interface TriggerBackgroundAgentRequest {
|
|
732
|
+
/**
|
|
733
|
+
* Required fields (from LLM tool input)
|
|
734
|
+
*/
|
|
735
|
+
name: string;
|
|
736
|
+
prompt: string;
|
|
737
|
+
agentName: string;
|
|
738
|
+
/**
|
|
739
|
+
* Optional fields (from LLM tool input)
|
|
740
|
+
*/
|
|
741
|
+
context?: string;
|
|
742
|
+
frequency?: JobFrequency;
|
|
743
|
+
cron?: string;
|
|
744
|
+
timezone?: string;
|
|
745
|
+
scope?: JobScope;
|
|
746
|
+
description?: string;
|
|
747
|
+
enableSSE?: boolean;
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* TriggerBackgroundAgentResponse is returned by the trigger_background_agent tool.
|
|
751
|
+
* NOTE: No ExecutionID — CreateJob dispatches one-time jobs in a goroutine AFTER returning.
|
|
752
|
+
* The execution record doesn't exist yet at response time. Use JobID for status checks.
|
|
753
|
+
*/
|
|
754
|
+
interface TriggerBackgroundAgentResponse {
|
|
755
|
+
status: string;
|
|
756
|
+
message: string;
|
|
757
|
+
jobId?: string;
|
|
758
|
+
agentName?: string;
|
|
759
|
+
agentId?: string;
|
|
760
|
+
sseEnabled?: boolean;
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* BackgroundAgentStatusRequest is the input for the check_background_agent_status tool.
|
|
764
|
+
*/
|
|
765
|
+
interface BackgroundAgentStatusRequest {
|
|
766
|
+
jobId: string;
|
|
767
|
+
}
|
|
768
|
+
/**
|
|
769
|
+
* BackgroundAgentStatusResponse is returned by the check_background_agent_status tool.
|
|
770
|
+
*/
|
|
771
|
+
interface BackgroundAgentStatusResponse {
|
|
772
|
+
status: string;
|
|
773
|
+
agentName?: string;
|
|
774
|
+
roundsExecuted: number;
|
|
775
|
+
totalTokens: number;
|
|
776
|
+
result?: string;
|
|
777
|
+
error?: string;
|
|
778
|
+
artifacts?: ArtifactRef[];
|
|
779
|
+
startedAt: string;
|
|
780
|
+
completedAt?: string;
|
|
781
|
+
}
|
|
782
|
+
type TaskStatusTS = "processing" | "completed" | "failed";
|
|
783
|
+
/**
|
|
784
|
+
* AgentStatusUpdate represents a single status update from an agent.
|
|
785
|
+
* Used by the report_status tool to track progress of background tasks.
|
|
786
|
+
* Stored in chat metadata as statusHistory array for persistence.
|
|
787
|
+
*/
|
|
788
|
+
interface AgentStatusUpdate {
|
|
789
|
+
status: TaskStatusTS;
|
|
790
|
+
message: string;
|
|
791
|
+
timestamp: number;
|
|
792
|
+
}
|
|
727
793
|
/**
|
|
728
794
|
* TTLCleanupRequest represents a request to run TTL cleanup
|
|
729
795
|
*/
|
|
@@ -744,7 +810,7 @@ interface TTLCleanupResponse {
|
|
|
744
810
|
type AgentTypeTS = 'chat' | 'react';
|
|
745
811
|
type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';
|
|
746
812
|
type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';
|
|
747
|
-
type AgentScopeTS = 'org' | 'team' | 'user';
|
|
813
|
+
type AgentScopeTS = 'org' | 'team' | 'user' | 'custom';
|
|
748
814
|
/**
|
|
749
815
|
* AgentScope defines the visibility scope of an agent
|
|
750
816
|
*/
|
|
@@ -752,6 +818,7 @@ type AgentScope = string;
|
|
|
752
818
|
declare const AgentScopeOrg: AgentScope;
|
|
753
819
|
declare const AgentScopeTeam: AgentScope;
|
|
754
820
|
declare const AgentScopeUser: AgentScope;
|
|
821
|
+
declare const AgentScopeCustom: AgentScope;
|
|
755
822
|
type SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';
|
|
756
823
|
type SkillCategory = string;
|
|
757
824
|
declare const SkillCategoryProductivity: SkillCategory;
|
|
@@ -809,15 +876,46 @@ interface Skill {
|
|
|
809
876
|
}
|
|
810
877
|
/**
|
|
811
878
|
* AgentSkill represents an agent's configuration for a specific skill
|
|
879
|
+
* AgentSkill represents a skill attached to an agent with full customizable data
|
|
880
|
+
* This is a full copy of the skill, allowing per-agent customization of system prompts, tools, and configs
|
|
812
881
|
*/
|
|
813
882
|
interface AgentSkill {
|
|
883
|
+
/**
|
|
884
|
+
* Reference to source skill (for tracking origin)
|
|
885
|
+
*/
|
|
814
886
|
skillId: string;
|
|
815
887
|
skillName?: string;
|
|
888
|
+
/**
|
|
889
|
+
* Customizable fields (copied from source Skill, can be modified per-agent)
|
|
890
|
+
*/
|
|
891
|
+
title?: string;
|
|
892
|
+
description?: string;
|
|
893
|
+
category?: string;
|
|
894
|
+
slashCommand?: string;
|
|
895
|
+
iconName?: string;
|
|
896
|
+
systemPromptExtension?: string;
|
|
897
|
+
tools?: AgentSkillTool[];
|
|
898
|
+
/**
|
|
899
|
+
* Agent-specific metadata
|
|
900
|
+
*/
|
|
816
901
|
enabled: boolean;
|
|
817
902
|
order: number;
|
|
903
|
+
}
|
|
904
|
+
/**
|
|
905
|
+
* AgentSkillTool represents a tool within an agent's skill with customizable config
|
|
906
|
+
*/
|
|
907
|
+
interface AgentSkillTool {
|
|
908
|
+
toolId: string;
|
|
909
|
+
toolName: string;
|
|
910
|
+
title?: string;
|
|
911
|
+
description?: string;
|
|
912
|
+
type?: string;
|
|
913
|
+
inputSchema?: JSONSchema;
|
|
914
|
+
configSchema?: JSONSchema;
|
|
818
915
|
config?: {
|
|
819
916
|
[key: string]: any;
|
|
820
917
|
};
|
|
918
|
+
enabled: boolean;
|
|
821
919
|
}
|
|
822
920
|
/**
|
|
823
921
|
* SkillUserConfig stores user-level preferences and OAuth tokens for a skill
|
|
@@ -1081,6 +1179,9 @@ interface AgentSummary {
|
|
|
1081
1179
|
status: AgentStatusTS;
|
|
1082
1180
|
isDefault: boolean;
|
|
1083
1181
|
isPublic: boolean;
|
|
1182
|
+
scope: AgentScopeTS;
|
|
1183
|
+
provider?: string;
|
|
1184
|
+
model?: string;
|
|
1084
1185
|
capabilities?: string[];
|
|
1085
1186
|
samplePrompts?: string[];
|
|
1086
1187
|
skills?: AgentSkill[];
|
|
@@ -1460,6 +1561,38 @@ interface ExecuteJobRequest {
|
|
|
1460
1561
|
[key: string]: any;
|
|
1461
1562
|
};
|
|
1462
1563
|
}
|
|
1564
|
+
/**
|
|
1565
|
+
* BackgroundAgentProgressEvent is published to the SSE broker per round.
|
|
1566
|
+
* Mirrors what RecordChatRound saves to Chat KV — human-readable content
|
|
1567
|
+
* and tool call metadata, NOT the full ExecutionPlan/AgentExecution structs.
|
|
1568
|
+
*/
|
|
1569
|
+
interface BackgroundAgentProgressEvent {
|
|
1570
|
+
type: string;
|
|
1571
|
+
executionId: string;
|
|
1572
|
+
jobId: string;
|
|
1573
|
+
agentName: string;
|
|
1574
|
+
/**
|
|
1575
|
+
* Round data (only for "bg_agent.round" type)
|
|
1576
|
+
*/
|
|
1577
|
+
round?: number;
|
|
1578
|
+
content?: string;
|
|
1579
|
+
toolCalls?: {
|
|
1580
|
+
[key: string]: any;
|
|
1581
|
+
}[];
|
|
1582
|
+
llmUsage?: {
|
|
1583
|
+
[key: string]: any;
|
|
1584
|
+
};
|
|
1585
|
+
/**
|
|
1586
|
+
* Completion data (only for "bg_agent.completed" / "bg_agent.failed" type)
|
|
1587
|
+
*/
|
|
1588
|
+
status?: string;
|
|
1589
|
+
result?: string;
|
|
1590
|
+
roundsExecuted?: number;
|
|
1591
|
+
totalTokens?: number;
|
|
1592
|
+
artifacts?: ArtifactRef[];
|
|
1593
|
+
error?: string;
|
|
1594
|
+
timestamp: number;
|
|
1595
|
+
}
|
|
1463
1596
|
/**
|
|
1464
1597
|
* ExecutionCompletedEvent is received from Runtime Service when execution completes
|
|
1465
1598
|
*/
|
|
@@ -2026,6 +2159,14 @@ declare const AgentJobResumeSubject = "agents.jobs.resume";
|
|
|
2026
2159
|
* Job Trigger (from Scheduler Service)
|
|
2027
2160
|
*/
|
|
2028
2161
|
declare const AgentJobTriggerSubject = "agents.job.trigger";
|
|
2162
|
+
/**
|
|
2163
|
+
* Background Agent Tool Subjects (from chat agent tool calls)
|
|
2164
|
+
*/
|
|
2165
|
+
declare const TriggerBackgroundAgentToolSubject = "agents.tool.execute.trigger_background_agent";
|
|
2166
|
+
/**
|
|
2167
|
+
* Background Agent Tool Subjects (from chat agent tool calls)
|
|
2168
|
+
*/
|
|
2169
|
+
declare const CheckBackgroundAgentStatusToolSubject = "agents.tool.execute.check_background_agent_status";
|
|
2029
2170
|
/**
|
|
2030
2171
|
* Execution Query Operations
|
|
2031
2172
|
*/
|
|
@@ -2406,4 +2547,4 @@ interface PublicWidgetConfig {
|
|
|
2406
2547
|
behavior: WidgetBehavior;
|
|
2407
2548
|
}
|
|
2408
2549
|
|
|
2409
|
-
export { AgentJobDeleteSubject as $, type Agent as A, AgentExecuteSubject as B, type AgentExecution as C, AgentExportSubject as D, type AgentFilters as E, AgentFromTemplateSubject as F, AgentGetByOrgSubject as G, AgentGetDefaultSubject as H, AgentGetSubject as I, AgentImportSubject as J, AgentInstanceCancelPlanSubject as K, AgentInstanceClearHistorySubject as L, AgentInstanceCreatePlanSubject as M, AgentInstanceCreateSubject as N, AgentInstanceCreatedSubject as O, AgentInstanceDeleteSubject as P, AgentInstanceDeletedSubject as Q, AgentInstanceExecutePlanSubject as R, AgentInstanceGetHistorySubject as S, AgentInstanceGetSubject as T, AgentInstanceListSubject as U, AgentInstancePausePlanSubject as V, AgentInstanceResumePlanSubject as W, AgentInstanceUpdateSubject as X, AgentInstanceUpdatedSubject as Y, type AgentJob as Z, AgentJobCreateSubject as _, type AgentCategory as a, AgentWidgetsDeleteSubject as a$, AgentJobGetSubject as a0, type AgentJobIDRequest as a1, AgentJobListSubject as a2, AgentJobPauseSubject as a3, type AgentJobResponse as a4, AgentJobResumeSubject as a5, type AgentJobTriggerRequest as a6, type AgentJobTriggerResponse as a7, AgentJobTriggerSubject as a8, AgentJobUpdateSubject as a9, AgentSubTypeChat as aA, AgentSubTypeDocument as aB, AgentSubTypeReact as aC, type AgentSubTypeTS as aD, AgentSubTypeWorkflow as aE, type AgentSummary as aF, type AgentTemplate as aG, AgentTemplateGetSubject as aH, AgentTemplateListSubject as aI, type AgentTool as aJ, type AgentToolConfiguration as aK, type AgentType as aL, AgentTypeChat as aM, AgentTypeReact as aN, type AgentTypeTS as aO, AgentUpdateOrgSubject as aP, AgentUpdateSubject as aQ, AgentUpdatedSubject as aR, AgentVersionActivateSubject as aS, AgentVersionActivatedSubject as aT, AgentVersionCreateSubject as aU, AgentVersionCreatedSubject as aV, AgentVersionGetSubject as aW, AgentVersionListSubject as aX, type AgentWidget as aY, type AgentWidgetResponse as aZ, AgentWidgetsCreateSubject as a_, type AgentJobsListResponse as aa, AgentListSubject as ab, AgentListSummarySubject as ac, type AgentProvisionDefinition as ad, AgentReactCreateSubject as ae, AgentReactGetSubject as af, AgentReactUpdateSubject as ag, AgentReactValidateSubject as ah, type AgentResponse as ai, type AgentScope as aj, AgentScopeOrg as ak, type AgentScopeTS as al, AgentScopeTeam as am, AgentScopeUser as an, AgentSearchSubject as ao, type AgentSkill as ap, type AgentSkillConfigResponse as aq, AgentSkillGetConfigSubject as ar, AgentSkillUpdateConfigSubject as as, type AgentStatus as at, AgentStatusActive as au, AgentStatusArchived as av, AgentStatusDraft as aw, AgentStatusInactive as ax, type AgentStatusTS as ay, type AgentSubType as az, AgentCategoryDevelopment as b, type GetSubAgentsByIDsRequest as b$, AgentWidgetsGetByWidgetID as b0, AgentWidgetsGetDefaultSubject as b1, AgentWidgetsGetSubject as b2, AgentWidgetsListSubject as b3, AgentWidgetsSetDefaultSubject as b4, AgentWidgetsUpdateSubject as b5, type ArtifactRef as b6, type CSATAnswer as b7, type CSATConfig as b8, type CSATQuestion as b9, type ExecutionMode as bA, ExecutionModeAsync as bB, ExecutionModeAsyncClient as bC, ExecutionModeSync as bD, type ExecutionModeTS as bE, type ExecutionPlan as bF, type ExecutionResponse as bG, type ExecutionStatus as bH, ExecutionStatusCompleted as bI, ExecutionStatusFailed as bJ, ExecutionStatusPending as bK, ExecutionStatusRunning as bL, ExecutionStatusSkipped as bM, type ExecutionStatusTS as bN, ExecutionTTLHours as bO, ExecutionsTTLCleanupSubject as bP, type GetAgentRequest as bQ, type GetAgentSkillConfigRequest as bR, type GetAgentWidgetRequest as bS, type GetDefaultAgentRequest as bT, type GetDefaultWidgetRequest as bU, type GetExecutionRequest as bV, type GetSkillRequest as bW, type GetSkillUserConfigRequest as bX, type GetSkillsByIDsRequest as bY, type GetSkillsByIDsResponse as bZ, type GetSubAgentRequest as b_, type CSATResponse as ba, type CSATSurvey as bb, ChatAgentExecuteSubject as bc, ChatAgentStatusSubject as bd, type CreateAgentJobRequest as be, type CreateAgentRequest as bf, type CreateAgentWidgetRequest as bg, type CreateExecutionPlanRequest as bh, type CreateExecutionPlanResponse as bi, type CreateSkillRequest as bj, type CreateSubAgentRequest as bk, type CreateToolDefinitionRequest as bl, type CustomizableField as bm, type DefaultDefinitions as bn, type DeleteAgentRequest as bo, type DeleteAgentWidgetRequest as bp, type DeleteSkillRequest as bq, type DeleteSkillUserConfigRequest as br, type DeleteSubAgentRequest as bs, type DeleteToolDefinitionRequest as bt, type ExecuteJobRequest as bu, type ExecutePlanRequest as bv, type ExecutePlanResponse as bw, type ExecuteToolRequest as bx, type ExecuteToolResponse as by, type ExecutionCompletedEvent as bz, AgentCategoryFinance as c, PlanStatusRejected as c$, type GetSubAgentsByIDsResponse as c0, type GetToolDefinitionRequest as c1, type GetToolDefinitionsByIDsRequest as c2, type GetToolDefinitionsByIDsResponse as c3, type GetWidgetByWidgetIDRequest as c4, type GetWidgetConfigRequest as c5, type GetWidgetConfigResponse as c6, type HandoffConfig as c7, type IntegrationRequirement as c8, type JobExecution as c9, type ListAgentWidgetsResponse as cA, type ListAgentsRequest as cB, type ListAgentsResponse as cC, type ListAgentsSummaryRequest as cD, type ListAgentsSummaryResponse as cE, type ListExecutionsByAgentRequest as cF, type ListExecutionsByJobRequest as cG, type ListExecutionsResponse as cH, type ListSkillUserConfigRequest as cI, type ListSkillsRequest as cJ, type ListSubAgentsRequest as cK, type ListToolDefinitionsRequest as cL, type MCPServerConfig as cM, MaxExecutions as cN, type MergeConfig as cO, type MergeStrategy as cP, MergeStrategyAppend as cQ, MergeStrategyMerge as cR, MergeStrategyReplace as cS, type MergeStrategyTS as cT, type PlanApprovalConfig as cU, type PlanStatus as cV, PlanStatusApproved as cW, PlanStatusCancelled as cX, PlanStatusCompleted as cY, PlanStatusExecuting as cZ, PlanStatusPendingApproval as c_, JobExecutionGetSubject as ca, JobExecutionListSubject as cb, type JobExecutionResult as cc, type JobExecutionStatus as cd, JobExecutionStatusFailed as ce, JobExecutionStatusRunning as cf, JobExecutionStatusSuccess as cg, type JobExecutionStatusTS as ch, JobExecutionStatusTimedOut as ci, type JobFrequency as cj, JobFrequencyOneTime as ck, JobFrequencySchedule as cl, type JobFrequencyTS as cm, type JobScope as cn, JobScopeOrg as co, JobScopePrivate as cp, type JobScopeTS as cq, JobScopeTeam as cr, type JobStatus as cs, JobStatusActive as ct, JobStatusDisabled as cu, JobStatusExecuting as cv, JobStatusPaused as cw, type JobStatusTS as cx, type ListAgentJobsRequest as cy, type ListAgentWidgetsRequest as cz, AgentCategoryGeneral as d, SubAgentsValidateSubject as d$, type PlanStatusTS as d0, type PlannedStep as d1, type ProcessJobTriggerResult as d2, type PublicWidgetConfig as d3, type PublisherType as d4, PublisherTypeEloquent as d5, PublisherTypePartner as d6, type PublisherTypeTS as d7, type ReactAgentConfig as d8, ReactAgentExecuteSubject as d9, SkillUserConfigListSubject as dA, type SkillUserConfigResponse as dB, SkillUserConfigUpdateSubject as dC, SkillsCreateSubject as dD, SkillsCreatedSubject as dE, SkillsDeleteSubject as dF, SkillsDeletedSubject as dG, SkillsGetByIDsSubject as dH, SkillsGetSubject as dI, type SkillsListResponse as dJ, SkillsListSubject as dK, SkillsUpdateOrgConfigSubject as dL, SkillsUpdateSubject as dM, SkillsUpdatedSubject as dN, type SubAgent as dO, type SubAgentResponse as dP, SubAgentsCreateSubject as dQ, SubAgentsCreatedSubject as dR, SubAgentsDeleteSubject as dS, SubAgentsDeletedSubject as dT, SubAgentsExecuteSubject as dU, SubAgentsGetByIDsSubject as dV, SubAgentsGetSubject as dW, type SubAgentsListResponse as dX, SubAgentsListSubject as dY, SubAgentsUpdateSubject as dZ, SubAgentsUpdatedSubject as d_, ReactAgentStatusSubject as da, ReactAgentStopSubject as db, type ResolveSkillConfigRequest as dc, type ResolveSkillConfigResponse as dd, type RetryPolicy as de, RuntimeJobCompletedSubject as df, RuntimeJobExecuteSubject as dg, type SaveWidgetConfigRequest as dh, type SaveWidgetConfigResponse as di, type SetDefaultWidgetRequest as dj, type Skill as dk, type SkillCategory as dl, SkillCategoryAnalysis as dm, SkillCategoryCommunication as dn, SkillCategoryCreative as dp, SkillCategoryCustom as dq, SkillCategoryIntegration as dr, SkillCategoryProductivity as ds, type SkillCategoryTS as dt, SkillResolveConfigSubject as du, type SkillResponse as dv, type SkillUserConfig as dw, SkillUserConfigDeleteSubject as dx, SkillUserConfigGetSubject as dy, type SkillUserConfigListResponse as dz, AgentCategoryHR as e, type TTLCleanupRequest as e0, type TTLCleanupResponse as e1, type TemplateCategoryCount as e2, type TemplateFilters as e3, type TemplateStatus as e4, TemplateStatusDraft as e5, TemplateStatusPublished as e6, type TemplateStatusTS as e7, type ToolConfig as e8, type ToolDefinition as e9, type UpdateAgentSkillConfigRequest as eA, type UpdateAgentWidgetRequest as eB, type UpdateOrgAgentsRequest as eC, type UpdateOrgAgentsResponse as eD, type UpdateSkillOrgConfigRequest as eE, type UpdateSkillRequest as eF, type UpdateSkillUserConfigRequest as eG, type UpdateSubAgentRequest as eH, type UpdateToolDefinitionRequest as eI, type UserSuggestedAction as eJ, type UserSuggestedActionsConfig as eK, type UserSuggestedActionsRequest as eL, type UserSuggestedActionsResponse as eM, type ValidationError as eN, type ValidationErrors as eO, type WidgetAppearance as eP, type WidgetBehavior as eQ, type WidgetConfig as eR, WidgetConfigGetByAgentSubject as eS, WidgetConfigSaveSubject as eT, type WidgetSecurity as eU, WorkflowAgentGetSubject as eV, WorkflowAgentUpdateSubject as eW, type ToolDefinitionResponse as ea, ToolDefinitionsCreateSubject as eb, ToolDefinitionsCreatedSubject as ec, ToolDefinitionsDeleteSubject as ed, ToolDefinitionsDeletedSubject as ee, ToolDefinitionsExecuteSubject as ef, ToolDefinitionsGetByIDsSubject as eg, ToolDefinitionsGetSubject as eh, type ToolDefinitionsListResponse as ei, ToolDefinitionsListSubject as ej, ToolDefinitionsUpdateSubject as ek, ToolDefinitionsUpdatedSubject as el, ToolDefinitionsValidateSubject as em, type ToolExecution as en, type ToolExecutionPolicy as eo, type ToolExecutionProgress as ep, type ToolExecutionStatus as eq, ToolExecutionStatusCompleted as er, ToolExecutionStatusExecuting as es, ToolExecutionStatusFailed as et, ToolExecutionStatusSkipped as eu, ToolExecutionStatusStarted as ev, type ToolExecutionStatusTS as ew, ToolExecutionStatusTimeout as ex, type UpdateAgentJobRequest as ey, type UpdateAgentRequest as ez, AgentCategoryMarketing as f, AgentCategoryProductivity as g, AgentCategoryResearch as h, AgentCategorySales as i, AgentCategorySupport as j, type AgentCategoryTS as k, AgentCategoryWriting as l, AgentChatCreateSubject as m, AgentChatGetSubject as n, AgentChatUpdateSubject as o, AgentChatValidateSubject as p, AgentCloneSubject as q, type AgentContext as r, type AgentContextConfig as s, AgentCreateSubject as t, AgentCreatedSubject as u, AgentDeleteSubject as v, AgentDeletedSubject as w, AgentEnsureDefaultSubject as x, AgentExecuteStatusSubject as y, AgentExecuteStopSubject as z };
|
|
2550
|
+
export { AgentJobDeleteSubject as $, type Agent as A, AgentExecuteSubject as B, type AgentExecution as C, AgentExportSubject as D, type AgentFilters as E, AgentFromTemplateSubject as F, AgentGetByOrgSubject as G, AgentGetDefaultSubject as H, AgentGetSubject as I, AgentImportSubject as J, AgentInstanceCancelPlanSubject as K, AgentInstanceClearHistorySubject as L, AgentInstanceCreatePlanSubject as M, AgentInstanceCreateSubject as N, AgentInstanceCreatedSubject as O, AgentInstanceDeleteSubject as P, AgentInstanceDeletedSubject as Q, AgentInstanceExecutePlanSubject as R, AgentInstanceGetHistorySubject as S, AgentInstanceGetSubject as T, AgentInstanceListSubject as U, AgentInstancePausePlanSubject as V, AgentInstanceResumePlanSubject as W, AgentInstanceUpdateSubject as X, AgentInstanceUpdatedSubject as Y, type AgentJob as Z, AgentJobCreateSubject as _, type AgentCategory as a, type AgentWidget as a$, AgentJobGetSubject as a0, type AgentJobIDRequest as a1, AgentJobListSubject as a2, AgentJobPauseSubject as a3, type AgentJobResponse as a4, AgentJobResumeSubject as a5, type AgentJobTriggerRequest as a6, type AgentJobTriggerResponse as a7, AgentJobTriggerSubject as a8, AgentJobUpdateSubject as a9, type AgentStatusTS as aA, type AgentStatusUpdate as aB, type AgentSubType as aC, AgentSubTypeChat as aD, AgentSubTypeDocument as aE, AgentSubTypeReact as aF, type AgentSubTypeTS as aG, AgentSubTypeWorkflow as aH, type AgentSummary as aI, type AgentTemplate as aJ, AgentTemplateGetSubject as aK, AgentTemplateListSubject as aL, type AgentTool as aM, type AgentToolConfiguration as aN, type AgentType as aO, AgentTypeChat as aP, AgentTypeReact as aQ, type AgentTypeTS as aR, AgentUpdateOrgSubject as aS, AgentUpdateSubject as aT, AgentUpdatedSubject as aU, AgentVersionActivateSubject as aV, AgentVersionActivatedSubject as aW, AgentVersionCreateSubject as aX, AgentVersionCreatedSubject as aY, AgentVersionGetSubject as aZ, AgentVersionListSubject as a_, type AgentJobsListResponse as aa, AgentListSubject as ab, AgentListSummarySubject as ac, type AgentProvisionDefinition as ad, AgentReactCreateSubject as ae, AgentReactGetSubject as af, AgentReactUpdateSubject as ag, AgentReactValidateSubject as ah, type AgentResponse as ai, type AgentScope as aj, AgentScopeCustom as ak, AgentScopeOrg as al, type AgentScopeTS as am, AgentScopeTeam as an, AgentScopeUser as ao, AgentSearchSubject as ap, type AgentSkill as aq, type AgentSkillConfigResponse as ar, AgentSkillGetConfigSubject as as, type AgentSkillTool as at, AgentSkillUpdateConfigSubject as au, type AgentStatus as av, AgentStatusActive as aw, AgentStatusArchived as ax, AgentStatusDraft as ay, AgentStatusInactive as az, AgentCategoryDevelopment as b, type GetDefaultWidgetRequest as b$, type AgentWidgetResponse as b0, AgentWidgetsCreateSubject as b1, AgentWidgetsDeleteSubject as b2, AgentWidgetsGetByWidgetID as b3, AgentWidgetsGetDefaultSubject as b4, AgentWidgetsGetSubject as b5, AgentWidgetsListSubject as b6, AgentWidgetsSetDefaultSubject as b7, AgentWidgetsUpdateSubject as b8, type ArtifactRef as b9, type DeleteToolDefinitionRequest as bA, type ExecuteJobRequest as bB, type ExecutePlanRequest as bC, type ExecutePlanResponse as bD, type ExecuteToolRequest as bE, type ExecuteToolResponse as bF, type ExecutionCompletedEvent as bG, type ExecutionMode as bH, ExecutionModeAsync as bI, ExecutionModeAsyncClient as bJ, ExecutionModeSync as bK, type ExecutionModeTS as bL, type ExecutionPlan as bM, type ExecutionResponse as bN, type ExecutionStatus as bO, ExecutionStatusCompleted as bP, ExecutionStatusFailed as bQ, ExecutionStatusPending as bR, ExecutionStatusRunning as bS, ExecutionStatusSkipped as bT, type ExecutionStatusTS as bU, ExecutionTTLHours as bV, ExecutionsTTLCleanupSubject as bW, type GetAgentRequest as bX, type GetAgentSkillConfigRequest as bY, type GetAgentWidgetRequest as bZ, type GetDefaultAgentRequest as b_, type BackgroundAgentProgressEvent as ba, type BackgroundAgentStatusRequest as bb, type BackgroundAgentStatusResponse as bc, type CSATAnswer as bd, type CSATConfig as be, type CSATQuestion as bf, type CSATResponse as bg, type CSATSurvey as bh, ChatAgentExecuteSubject as bi, ChatAgentStatusSubject as bj, CheckBackgroundAgentStatusToolSubject as bk, type CreateAgentJobRequest as bl, type CreateAgentRequest as bm, type CreateAgentWidgetRequest as bn, type CreateExecutionPlanRequest as bo, type CreateExecutionPlanResponse as bp, type CreateSkillRequest as bq, type CreateSubAgentRequest as br, type CreateToolDefinitionRequest as bs, type CustomizableField as bt, type DefaultDefinitions as bu, type DeleteAgentRequest as bv, type DeleteAgentWidgetRequest as bw, type DeleteSkillRequest as bx, type DeleteSkillUserConfigRequest as by, type DeleteSubAgentRequest as bz, AgentCategoryFinance as c, type PlanApprovalConfig as c$, type GetExecutionRequest as c0, type GetSkillRequest as c1, type GetSkillUserConfigRequest as c2, type GetSkillsByIDsRequest as c3, type GetSkillsByIDsResponse as c4, type GetSubAgentRequest as c5, type GetSubAgentsByIDsRequest as c6, type GetSubAgentsByIDsResponse as c7, type GetToolDefinitionRequest as c8, type GetToolDefinitionsByIDsRequest as c9, JobStatusActive as cA, JobStatusDisabled as cB, JobStatusExecuting as cC, JobStatusPaused as cD, type JobStatusTS as cE, type ListAgentJobsRequest as cF, type ListAgentWidgetsRequest as cG, type ListAgentWidgetsResponse as cH, type ListAgentsRequest as cI, type ListAgentsResponse as cJ, type ListAgentsSummaryRequest as cK, type ListAgentsSummaryResponse as cL, type ListExecutionsByAgentRequest as cM, type ListExecutionsByJobRequest as cN, type ListExecutionsResponse as cO, type ListSkillUserConfigRequest as cP, type ListSkillsRequest as cQ, type ListSubAgentsRequest as cR, type ListToolDefinitionsRequest as cS, type MCPServerConfig as cT, MaxExecutions as cU, type MergeConfig as cV, type MergeStrategy as cW, MergeStrategyAppend as cX, MergeStrategyMerge as cY, MergeStrategyReplace as cZ, type MergeStrategyTS as c_, type GetToolDefinitionsByIDsResponse as ca, type GetWidgetByWidgetIDRequest as cb, type GetWidgetConfigRequest as cc, type GetWidgetConfigResponse as cd, type HandoffConfig as ce, type IntegrationRequirement as cf, type JobExecution as cg, JobExecutionGetSubject as ch, JobExecutionListSubject as ci, type JobExecutionResult as cj, type JobExecutionStatus as ck, JobExecutionStatusFailed as cl, JobExecutionStatusRunning as cm, JobExecutionStatusSuccess as cn, type JobExecutionStatusTS as co, JobExecutionStatusTimedOut as cp, type JobFrequency as cq, JobFrequencyOneTime as cr, JobFrequencySchedule as cs, type JobFrequencyTS as ct, type JobScope as cu, JobScopeOrg as cv, JobScopePrivate as cw, type JobScopeTS as cx, JobScopeTeam as cy, type JobStatus as cz, AgentCategoryGeneral as d, SubAgentsExecuteSubject as d$, type PlanStatus as d0, PlanStatusApproved as d1, PlanStatusCancelled as d2, PlanStatusCompleted as d3, PlanStatusExecuting as d4, PlanStatusPendingApproval as d5, PlanStatusRejected as d6, type PlanStatusTS as d7, type PlannedStep as d8, type ProcessJobTriggerResult as d9, type SkillCategoryTS as dA, SkillResolveConfigSubject as dB, type SkillResponse as dC, type SkillUserConfig as dD, SkillUserConfigDeleteSubject as dE, SkillUserConfigGetSubject as dF, type SkillUserConfigListResponse as dG, SkillUserConfigListSubject as dH, type SkillUserConfigResponse as dI, SkillUserConfigUpdateSubject as dJ, SkillsCreateSubject as dK, SkillsCreatedSubject as dL, SkillsDeleteSubject as dM, SkillsDeletedSubject as dN, SkillsGetByIDsSubject as dO, SkillsGetSubject as dP, type SkillsListResponse as dQ, SkillsListSubject as dR, SkillsUpdateOrgConfigSubject as dS, SkillsUpdateSubject as dT, SkillsUpdatedSubject as dU, type SubAgent as dV, type SubAgentResponse as dW, SubAgentsCreateSubject as dX, SubAgentsCreatedSubject as dY, SubAgentsDeleteSubject as dZ, SubAgentsDeletedSubject as d_, type PublicWidgetConfig as da, type PublisherType as db, PublisherTypeEloquent as dc, PublisherTypePartner as dd, type PublisherTypeTS as de, type ReactAgentConfig as df, ReactAgentExecuteSubject as dg, ReactAgentStatusSubject as dh, ReactAgentStopSubject as di, type ResolveSkillConfigRequest as dj, type ResolveSkillConfigResponse as dk, type RetryPolicy as dl, RuntimeJobCompletedSubject as dm, RuntimeJobExecuteSubject as dn, type SaveWidgetConfigRequest as dp, type SaveWidgetConfigResponse as dq, type SetDefaultWidgetRequest as dr, type Skill as ds, type SkillCategory as dt, SkillCategoryAnalysis as du, SkillCategoryCommunication as dv, SkillCategoryCreative as dw, SkillCategoryCustom as dx, SkillCategoryIntegration as dy, SkillCategoryProductivity as dz, AgentCategoryHR as e, type WidgetBehavior as e$, SubAgentsGetByIDsSubject as e0, SubAgentsGetSubject as e1, type SubAgentsListResponse as e2, SubAgentsListSubject as e3, SubAgentsUpdateSubject as e4, SubAgentsUpdatedSubject as e5, SubAgentsValidateSubject as e6, type TTLCleanupRequest as e7, type TTLCleanupResponse as e8, type TaskStatusTS as e9, ToolExecutionStatusExecuting as eA, ToolExecutionStatusFailed as eB, ToolExecutionStatusSkipped as eC, ToolExecutionStatusStarted as eD, type ToolExecutionStatusTS as eE, ToolExecutionStatusTimeout as eF, type TriggerBackgroundAgentRequest as eG, type TriggerBackgroundAgentResponse as eH, TriggerBackgroundAgentToolSubject as eI, type UpdateAgentJobRequest as eJ, type UpdateAgentRequest as eK, type UpdateAgentSkillConfigRequest as eL, type UpdateAgentWidgetRequest as eM, type UpdateOrgAgentsRequest as eN, type UpdateOrgAgentsResponse as eO, type UpdateSkillOrgConfigRequest as eP, type UpdateSkillRequest as eQ, type UpdateSkillUserConfigRequest as eR, type UpdateSubAgentRequest as eS, type UpdateToolDefinitionRequest as eT, type UserSuggestedAction as eU, type UserSuggestedActionsConfig as eV, type UserSuggestedActionsRequest as eW, type UserSuggestedActionsResponse as eX, type ValidationError as eY, type ValidationErrors as eZ, type WidgetAppearance as e_, type TemplateCategoryCount as ea, type TemplateFilters as eb, type TemplateStatus as ec, TemplateStatusDraft as ed, TemplateStatusPublished as ee, type TemplateStatusTS as ef, type ToolConfig as eg, type ToolDefinition as eh, type ToolDefinitionResponse as ei, ToolDefinitionsCreateSubject as ej, ToolDefinitionsCreatedSubject as ek, ToolDefinitionsDeleteSubject as el, ToolDefinitionsDeletedSubject as em, ToolDefinitionsExecuteSubject as en, ToolDefinitionsGetByIDsSubject as eo, ToolDefinitionsGetSubject as ep, type ToolDefinitionsListResponse as eq, ToolDefinitionsListSubject as er, ToolDefinitionsUpdateSubject as es, ToolDefinitionsUpdatedSubject as et, ToolDefinitionsValidateSubject as eu, type ToolExecution as ev, type ToolExecutionPolicy as ew, type ToolExecutionProgress as ex, type ToolExecutionStatus as ey, ToolExecutionStatusCompleted as ez, AgentCategoryMarketing as f, type WidgetConfig as f0, WidgetConfigGetByAgentSubject as f1, WidgetConfigSaveSubject as f2, type WidgetSecurity as f3, WorkflowAgentGetSubject as f4, WorkflowAgentUpdateSubject as f5, AgentCategoryProductivity as g, AgentCategoryResearch as h, AgentCategorySales as i, AgentCategorySupport as j, type AgentCategoryTS as k, AgentCategoryWriting as l, AgentChatCreateSubject as m, AgentChatGetSubject as n, AgentChatUpdateSubject as o, AgentChatValidateSubject as p, AgentCloneSubject as q, type AgentContext as r, type AgentContextConfig as s, AgentCreateSubject as t, AgentCreatedSubject as u, AgentDeleteSubject as v, AgentDeletedSubject as w, AgentEnsureDefaultSubject as x, AgentExecuteStatusSubject as y, AgentExecuteStopSubject as z };
|
|
@@ -724,6 +724,72 @@ interface ExecutionResponse {
|
|
|
724
724
|
execution?: JobExecution;
|
|
725
725
|
metadata: any;
|
|
726
726
|
}
|
|
727
|
+
/**
|
|
728
|
+
* TriggerBackgroundAgentRequest is the input for the trigger_background_agent tool.
|
|
729
|
+
* The main agent calls this to run another agent by name in the background.
|
|
730
|
+
*/
|
|
731
|
+
interface TriggerBackgroundAgentRequest {
|
|
732
|
+
/**
|
|
733
|
+
* Required fields (from LLM tool input)
|
|
734
|
+
*/
|
|
735
|
+
name: string;
|
|
736
|
+
prompt: string;
|
|
737
|
+
agentName: string;
|
|
738
|
+
/**
|
|
739
|
+
* Optional fields (from LLM tool input)
|
|
740
|
+
*/
|
|
741
|
+
context?: string;
|
|
742
|
+
frequency?: JobFrequency;
|
|
743
|
+
cron?: string;
|
|
744
|
+
timezone?: string;
|
|
745
|
+
scope?: JobScope;
|
|
746
|
+
description?: string;
|
|
747
|
+
enableSSE?: boolean;
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* TriggerBackgroundAgentResponse is returned by the trigger_background_agent tool.
|
|
751
|
+
* NOTE: No ExecutionID — CreateJob dispatches one-time jobs in a goroutine AFTER returning.
|
|
752
|
+
* The execution record doesn't exist yet at response time. Use JobID for status checks.
|
|
753
|
+
*/
|
|
754
|
+
interface TriggerBackgroundAgentResponse {
|
|
755
|
+
status: string;
|
|
756
|
+
message: string;
|
|
757
|
+
jobId?: string;
|
|
758
|
+
agentName?: string;
|
|
759
|
+
agentId?: string;
|
|
760
|
+
sseEnabled?: boolean;
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* BackgroundAgentStatusRequest is the input for the check_background_agent_status tool.
|
|
764
|
+
*/
|
|
765
|
+
interface BackgroundAgentStatusRequest {
|
|
766
|
+
jobId: string;
|
|
767
|
+
}
|
|
768
|
+
/**
|
|
769
|
+
* BackgroundAgentStatusResponse is returned by the check_background_agent_status tool.
|
|
770
|
+
*/
|
|
771
|
+
interface BackgroundAgentStatusResponse {
|
|
772
|
+
status: string;
|
|
773
|
+
agentName?: string;
|
|
774
|
+
roundsExecuted: number;
|
|
775
|
+
totalTokens: number;
|
|
776
|
+
result?: string;
|
|
777
|
+
error?: string;
|
|
778
|
+
artifacts?: ArtifactRef[];
|
|
779
|
+
startedAt: string;
|
|
780
|
+
completedAt?: string;
|
|
781
|
+
}
|
|
782
|
+
type TaskStatusTS = "processing" | "completed" | "failed";
|
|
783
|
+
/**
|
|
784
|
+
* AgentStatusUpdate represents a single status update from an agent.
|
|
785
|
+
* Used by the report_status tool to track progress of background tasks.
|
|
786
|
+
* Stored in chat metadata as statusHistory array for persistence.
|
|
787
|
+
*/
|
|
788
|
+
interface AgentStatusUpdate {
|
|
789
|
+
status: TaskStatusTS;
|
|
790
|
+
message: string;
|
|
791
|
+
timestamp: number;
|
|
792
|
+
}
|
|
727
793
|
/**
|
|
728
794
|
* TTLCleanupRequest represents a request to run TTL cleanup
|
|
729
795
|
*/
|
|
@@ -744,7 +810,7 @@ interface TTLCleanupResponse {
|
|
|
744
810
|
type AgentTypeTS = 'chat' | 'react';
|
|
745
811
|
type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';
|
|
746
812
|
type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';
|
|
747
|
-
type AgentScopeTS = 'org' | 'team' | 'user';
|
|
813
|
+
type AgentScopeTS = 'org' | 'team' | 'user' | 'custom';
|
|
748
814
|
/**
|
|
749
815
|
* AgentScope defines the visibility scope of an agent
|
|
750
816
|
*/
|
|
@@ -752,6 +818,7 @@ type AgentScope = string;
|
|
|
752
818
|
declare const AgentScopeOrg: AgentScope;
|
|
753
819
|
declare const AgentScopeTeam: AgentScope;
|
|
754
820
|
declare const AgentScopeUser: AgentScope;
|
|
821
|
+
declare const AgentScopeCustom: AgentScope;
|
|
755
822
|
type SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';
|
|
756
823
|
type SkillCategory = string;
|
|
757
824
|
declare const SkillCategoryProductivity: SkillCategory;
|
|
@@ -809,15 +876,46 @@ interface Skill {
|
|
|
809
876
|
}
|
|
810
877
|
/**
|
|
811
878
|
* AgentSkill represents an agent's configuration for a specific skill
|
|
879
|
+
* AgentSkill represents a skill attached to an agent with full customizable data
|
|
880
|
+
* This is a full copy of the skill, allowing per-agent customization of system prompts, tools, and configs
|
|
812
881
|
*/
|
|
813
882
|
interface AgentSkill {
|
|
883
|
+
/**
|
|
884
|
+
* Reference to source skill (for tracking origin)
|
|
885
|
+
*/
|
|
814
886
|
skillId: string;
|
|
815
887
|
skillName?: string;
|
|
888
|
+
/**
|
|
889
|
+
* Customizable fields (copied from source Skill, can be modified per-agent)
|
|
890
|
+
*/
|
|
891
|
+
title?: string;
|
|
892
|
+
description?: string;
|
|
893
|
+
category?: string;
|
|
894
|
+
slashCommand?: string;
|
|
895
|
+
iconName?: string;
|
|
896
|
+
systemPromptExtension?: string;
|
|
897
|
+
tools?: AgentSkillTool[];
|
|
898
|
+
/**
|
|
899
|
+
* Agent-specific metadata
|
|
900
|
+
*/
|
|
816
901
|
enabled: boolean;
|
|
817
902
|
order: number;
|
|
903
|
+
}
|
|
904
|
+
/**
|
|
905
|
+
* AgentSkillTool represents a tool within an agent's skill with customizable config
|
|
906
|
+
*/
|
|
907
|
+
interface AgentSkillTool {
|
|
908
|
+
toolId: string;
|
|
909
|
+
toolName: string;
|
|
910
|
+
title?: string;
|
|
911
|
+
description?: string;
|
|
912
|
+
type?: string;
|
|
913
|
+
inputSchema?: JSONSchema;
|
|
914
|
+
configSchema?: JSONSchema;
|
|
818
915
|
config?: {
|
|
819
916
|
[key: string]: any;
|
|
820
917
|
};
|
|
918
|
+
enabled: boolean;
|
|
821
919
|
}
|
|
822
920
|
/**
|
|
823
921
|
* SkillUserConfig stores user-level preferences and OAuth tokens for a skill
|
|
@@ -1081,6 +1179,9 @@ interface AgentSummary {
|
|
|
1081
1179
|
status: AgentStatusTS;
|
|
1082
1180
|
isDefault: boolean;
|
|
1083
1181
|
isPublic: boolean;
|
|
1182
|
+
scope: AgentScopeTS;
|
|
1183
|
+
provider?: string;
|
|
1184
|
+
model?: string;
|
|
1084
1185
|
capabilities?: string[];
|
|
1085
1186
|
samplePrompts?: string[];
|
|
1086
1187
|
skills?: AgentSkill[];
|
|
@@ -1460,6 +1561,38 @@ interface ExecuteJobRequest {
|
|
|
1460
1561
|
[key: string]: any;
|
|
1461
1562
|
};
|
|
1462
1563
|
}
|
|
1564
|
+
/**
|
|
1565
|
+
* BackgroundAgentProgressEvent is published to the SSE broker per round.
|
|
1566
|
+
* Mirrors what RecordChatRound saves to Chat KV — human-readable content
|
|
1567
|
+
* and tool call metadata, NOT the full ExecutionPlan/AgentExecution structs.
|
|
1568
|
+
*/
|
|
1569
|
+
interface BackgroundAgentProgressEvent {
|
|
1570
|
+
type: string;
|
|
1571
|
+
executionId: string;
|
|
1572
|
+
jobId: string;
|
|
1573
|
+
agentName: string;
|
|
1574
|
+
/**
|
|
1575
|
+
* Round data (only for "bg_agent.round" type)
|
|
1576
|
+
*/
|
|
1577
|
+
round?: number;
|
|
1578
|
+
content?: string;
|
|
1579
|
+
toolCalls?: {
|
|
1580
|
+
[key: string]: any;
|
|
1581
|
+
}[];
|
|
1582
|
+
llmUsage?: {
|
|
1583
|
+
[key: string]: any;
|
|
1584
|
+
};
|
|
1585
|
+
/**
|
|
1586
|
+
* Completion data (only for "bg_agent.completed" / "bg_agent.failed" type)
|
|
1587
|
+
*/
|
|
1588
|
+
status?: string;
|
|
1589
|
+
result?: string;
|
|
1590
|
+
roundsExecuted?: number;
|
|
1591
|
+
totalTokens?: number;
|
|
1592
|
+
artifacts?: ArtifactRef[];
|
|
1593
|
+
error?: string;
|
|
1594
|
+
timestamp: number;
|
|
1595
|
+
}
|
|
1463
1596
|
/**
|
|
1464
1597
|
* ExecutionCompletedEvent is received from Runtime Service when execution completes
|
|
1465
1598
|
*/
|
|
@@ -2026,6 +2159,14 @@ declare const AgentJobResumeSubject = "agents.jobs.resume";
|
|
|
2026
2159
|
* Job Trigger (from Scheduler Service)
|
|
2027
2160
|
*/
|
|
2028
2161
|
declare const AgentJobTriggerSubject = "agents.job.trigger";
|
|
2162
|
+
/**
|
|
2163
|
+
* Background Agent Tool Subjects (from chat agent tool calls)
|
|
2164
|
+
*/
|
|
2165
|
+
declare const TriggerBackgroundAgentToolSubject = "agents.tool.execute.trigger_background_agent";
|
|
2166
|
+
/**
|
|
2167
|
+
* Background Agent Tool Subjects (from chat agent tool calls)
|
|
2168
|
+
*/
|
|
2169
|
+
declare const CheckBackgroundAgentStatusToolSubject = "agents.tool.execute.check_background_agent_status";
|
|
2029
2170
|
/**
|
|
2030
2171
|
* Execution Query Operations
|
|
2031
2172
|
*/
|
|
@@ -2406,4 +2547,4 @@ interface PublicWidgetConfig {
|
|
|
2406
2547
|
behavior: WidgetBehavior;
|
|
2407
2548
|
}
|
|
2408
2549
|
|
|
2409
|
-
export { AgentJobDeleteSubject as $, type Agent as A, AgentExecuteSubject as B, type AgentExecution as C, AgentExportSubject as D, type AgentFilters as E, AgentFromTemplateSubject as F, AgentGetByOrgSubject as G, AgentGetDefaultSubject as H, AgentGetSubject as I, AgentImportSubject as J, AgentInstanceCancelPlanSubject as K, AgentInstanceClearHistorySubject as L, AgentInstanceCreatePlanSubject as M, AgentInstanceCreateSubject as N, AgentInstanceCreatedSubject as O, AgentInstanceDeleteSubject as P, AgentInstanceDeletedSubject as Q, AgentInstanceExecutePlanSubject as R, AgentInstanceGetHistorySubject as S, AgentInstanceGetSubject as T, AgentInstanceListSubject as U, AgentInstancePausePlanSubject as V, AgentInstanceResumePlanSubject as W, AgentInstanceUpdateSubject as X, AgentInstanceUpdatedSubject as Y, type AgentJob as Z, AgentJobCreateSubject as _, type AgentCategory as a, AgentWidgetsDeleteSubject as a$, AgentJobGetSubject as a0, type AgentJobIDRequest as a1, AgentJobListSubject as a2, AgentJobPauseSubject as a3, type AgentJobResponse as a4, AgentJobResumeSubject as a5, type AgentJobTriggerRequest as a6, type AgentJobTriggerResponse as a7, AgentJobTriggerSubject as a8, AgentJobUpdateSubject as a9, AgentSubTypeChat as aA, AgentSubTypeDocument as aB, AgentSubTypeReact as aC, type AgentSubTypeTS as aD, AgentSubTypeWorkflow as aE, type AgentSummary as aF, type AgentTemplate as aG, AgentTemplateGetSubject as aH, AgentTemplateListSubject as aI, type AgentTool as aJ, type AgentToolConfiguration as aK, type AgentType as aL, AgentTypeChat as aM, AgentTypeReact as aN, type AgentTypeTS as aO, AgentUpdateOrgSubject as aP, AgentUpdateSubject as aQ, AgentUpdatedSubject as aR, AgentVersionActivateSubject as aS, AgentVersionActivatedSubject as aT, AgentVersionCreateSubject as aU, AgentVersionCreatedSubject as aV, AgentVersionGetSubject as aW, AgentVersionListSubject as aX, type AgentWidget as aY, type AgentWidgetResponse as aZ, AgentWidgetsCreateSubject as a_, type AgentJobsListResponse as aa, AgentListSubject as ab, AgentListSummarySubject as ac, type AgentProvisionDefinition as ad, AgentReactCreateSubject as ae, AgentReactGetSubject as af, AgentReactUpdateSubject as ag, AgentReactValidateSubject as ah, type AgentResponse as ai, type AgentScope as aj, AgentScopeOrg as ak, type AgentScopeTS as al, AgentScopeTeam as am, AgentScopeUser as an, AgentSearchSubject as ao, type AgentSkill as ap, type AgentSkillConfigResponse as aq, AgentSkillGetConfigSubject as ar, AgentSkillUpdateConfigSubject as as, type AgentStatus as at, AgentStatusActive as au, AgentStatusArchived as av, AgentStatusDraft as aw, AgentStatusInactive as ax, type AgentStatusTS as ay, type AgentSubType as az, AgentCategoryDevelopment as b, type GetSubAgentsByIDsRequest as b$, AgentWidgetsGetByWidgetID as b0, AgentWidgetsGetDefaultSubject as b1, AgentWidgetsGetSubject as b2, AgentWidgetsListSubject as b3, AgentWidgetsSetDefaultSubject as b4, AgentWidgetsUpdateSubject as b5, type ArtifactRef as b6, type CSATAnswer as b7, type CSATConfig as b8, type CSATQuestion as b9, type ExecutionMode as bA, ExecutionModeAsync as bB, ExecutionModeAsyncClient as bC, ExecutionModeSync as bD, type ExecutionModeTS as bE, type ExecutionPlan as bF, type ExecutionResponse as bG, type ExecutionStatus as bH, ExecutionStatusCompleted as bI, ExecutionStatusFailed as bJ, ExecutionStatusPending as bK, ExecutionStatusRunning as bL, ExecutionStatusSkipped as bM, type ExecutionStatusTS as bN, ExecutionTTLHours as bO, ExecutionsTTLCleanupSubject as bP, type GetAgentRequest as bQ, type GetAgentSkillConfigRequest as bR, type GetAgentWidgetRequest as bS, type GetDefaultAgentRequest as bT, type GetDefaultWidgetRequest as bU, type GetExecutionRequest as bV, type GetSkillRequest as bW, type GetSkillUserConfigRequest as bX, type GetSkillsByIDsRequest as bY, type GetSkillsByIDsResponse as bZ, type GetSubAgentRequest as b_, type CSATResponse as ba, type CSATSurvey as bb, ChatAgentExecuteSubject as bc, ChatAgentStatusSubject as bd, type CreateAgentJobRequest as be, type CreateAgentRequest as bf, type CreateAgentWidgetRequest as bg, type CreateExecutionPlanRequest as bh, type CreateExecutionPlanResponse as bi, type CreateSkillRequest as bj, type CreateSubAgentRequest as bk, type CreateToolDefinitionRequest as bl, type CustomizableField as bm, type DefaultDefinitions as bn, type DeleteAgentRequest as bo, type DeleteAgentWidgetRequest as bp, type DeleteSkillRequest as bq, type DeleteSkillUserConfigRequest as br, type DeleteSubAgentRequest as bs, type DeleteToolDefinitionRequest as bt, type ExecuteJobRequest as bu, type ExecutePlanRequest as bv, type ExecutePlanResponse as bw, type ExecuteToolRequest as bx, type ExecuteToolResponse as by, type ExecutionCompletedEvent as bz, AgentCategoryFinance as c, PlanStatusRejected as c$, type GetSubAgentsByIDsResponse as c0, type GetToolDefinitionRequest as c1, type GetToolDefinitionsByIDsRequest as c2, type GetToolDefinitionsByIDsResponse as c3, type GetWidgetByWidgetIDRequest as c4, type GetWidgetConfigRequest as c5, type GetWidgetConfigResponse as c6, type HandoffConfig as c7, type IntegrationRequirement as c8, type JobExecution as c9, type ListAgentWidgetsResponse as cA, type ListAgentsRequest as cB, type ListAgentsResponse as cC, type ListAgentsSummaryRequest as cD, type ListAgentsSummaryResponse as cE, type ListExecutionsByAgentRequest as cF, type ListExecutionsByJobRequest as cG, type ListExecutionsResponse as cH, type ListSkillUserConfigRequest as cI, type ListSkillsRequest as cJ, type ListSubAgentsRequest as cK, type ListToolDefinitionsRequest as cL, type MCPServerConfig as cM, MaxExecutions as cN, type MergeConfig as cO, type MergeStrategy as cP, MergeStrategyAppend as cQ, MergeStrategyMerge as cR, MergeStrategyReplace as cS, type MergeStrategyTS as cT, type PlanApprovalConfig as cU, type PlanStatus as cV, PlanStatusApproved as cW, PlanStatusCancelled as cX, PlanStatusCompleted as cY, PlanStatusExecuting as cZ, PlanStatusPendingApproval as c_, JobExecutionGetSubject as ca, JobExecutionListSubject as cb, type JobExecutionResult as cc, type JobExecutionStatus as cd, JobExecutionStatusFailed as ce, JobExecutionStatusRunning as cf, JobExecutionStatusSuccess as cg, type JobExecutionStatusTS as ch, JobExecutionStatusTimedOut as ci, type JobFrequency as cj, JobFrequencyOneTime as ck, JobFrequencySchedule as cl, type JobFrequencyTS as cm, type JobScope as cn, JobScopeOrg as co, JobScopePrivate as cp, type JobScopeTS as cq, JobScopeTeam as cr, type JobStatus as cs, JobStatusActive as ct, JobStatusDisabled as cu, JobStatusExecuting as cv, JobStatusPaused as cw, type JobStatusTS as cx, type ListAgentJobsRequest as cy, type ListAgentWidgetsRequest as cz, AgentCategoryGeneral as d, SubAgentsValidateSubject as d$, type PlanStatusTS as d0, type PlannedStep as d1, type ProcessJobTriggerResult as d2, type PublicWidgetConfig as d3, type PublisherType as d4, PublisherTypeEloquent as d5, PublisherTypePartner as d6, type PublisherTypeTS as d7, type ReactAgentConfig as d8, ReactAgentExecuteSubject as d9, SkillUserConfigListSubject as dA, type SkillUserConfigResponse as dB, SkillUserConfigUpdateSubject as dC, SkillsCreateSubject as dD, SkillsCreatedSubject as dE, SkillsDeleteSubject as dF, SkillsDeletedSubject as dG, SkillsGetByIDsSubject as dH, SkillsGetSubject as dI, type SkillsListResponse as dJ, SkillsListSubject as dK, SkillsUpdateOrgConfigSubject as dL, SkillsUpdateSubject as dM, SkillsUpdatedSubject as dN, type SubAgent as dO, type SubAgentResponse as dP, SubAgentsCreateSubject as dQ, SubAgentsCreatedSubject as dR, SubAgentsDeleteSubject as dS, SubAgentsDeletedSubject as dT, SubAgentsExecuteSubject as dU, SubAgentsGetByIDsSubject as dV, SubAgentsGetSubject as dW, type SubAgentsListResponse as dX, SubAgentsListSubject as dY, SubAgentsUpdateSubject as dZ, SubAgentsUpdatedSubject as d_, ReactAgentStatusSubject as da, ReactAgentStopSubject as db, type ResolveSkillConfigRequest as dc, type ResolveSkillConfigResponse as dd, type RetryPolicy as de, RuntimeJobCompletedSubject as df, RuntimeJobExecuteSubject as dg, type SaveWidgetConfigRequest as dh, type SaveWidgetConfigResponse as di, type SetDefaultWidgetRequest as dj, type Skill as dk, type SkillCategory as dl, SkillCategoryAnalysis as dm, SkillCategoryCommunication as dn, SkillCategoryCreative as dp, SkillCategoryCustom as dq, SkillCategoryIntegration as dr, SkillCategoryProductivity as ds, type SkillCategoryTS as dt, SkillResolveConfigSubject as du, type SkillResponse as dv, type SkillUserConfig as dw, SkillUserConfigDeleteSubject as dx, SkillUserConfigGetSubject as dy, type SkillUserConfigListResponse as dz, AgentCategoryHR as e, type TTLCleanupRequest as e0, type TTLCleanupResponse as e1, type TemplateCategoryCount as e2, type TemplateFilters as e3, type TemplateStatus as e4, TemplateStatusDraft as e5, TemplateStatusPublished as e6, type TemplateStatusTS as e7, type ToolConfig as e8, type ToolDefinition as e9, type UpdateAgentSkillConfigRequest as eA, type UpdateAgentWidgetRequest as eB, type UpdateOrgAgentsRequest as eC, type UpdateOrgAgentsResponse as eD, type UpdateSkillOrgConfigRequest as eE, type UpdateSkillRequest as eF, type UpdateSkillUserConfigRequest as eG, type UpdateSubAgentRequest as eH, type UpdateToolDefinitionRequest as eI, type UserSuggestedAction as eJ, type UserSuggestedActionsConfig as eK, type UserSuggestedActionsRequest as eL, type UserSuggestedActionsResponse as eM, type ValidationError as eN, type ValidationErrors as eO, type WidgetAppearance as eP, type WidgetBehavior as eQ, type WidgetConfig as eR, WidgetConfigGetByAgentSubject as eS, WidgetConfigSaveSubject as eT, type WidgetSecurity as eU, WorkflowAgentGetSubject as eV, WorkflowAgentUpdateSubject as eW, type ToolDefinitionResponse as ea, ToolDefinitionsCreateSubject as eb, ToolDefinitionsCreatedSubject as ec, ToolDefinitionsDeleteSubject as ed, ToolDefinitionsDeletedSubject as ee, ToolDefinitionsExecuteSubject as ef, ToolDefinitionsGetByIDsSubject as eg, ToolDefinitionsGetSubject as eh, type ToolDefinitionsListResponse as ei, ToolDefinitionsListSubject as ej, ToolDefinitionsUpdateSubject as ek, ToolDefinitionsUpdatedSubject as el, ToolDefinitionsValidateSubject as em, type ToolExecution as en, type ToolExecutionPolicy as eo, type ToolExecutionProgress as ep, type ToolExecutionStatus as eq, ToolExecutionStatusCompleted as er, ToolExecutionStatusExecuting as es, ToolExecutionStatusFailed as et, ToolExecutionStatusSkipped as eu, ToolExecutionStatusStarted as ev, type ToolExecutionStatusTS as ew, ToolExecutionStatusTimeout as ex, type UpdateAgentJobRequest as ey, type UpdateAgentRequest as ez, AgentCategoryMarketing as f, AgentCategoryProductivity as g, AgentCategoryResearch as h, AgentCategorySales as i, AgentCategorySupport as j, type AgentCategoryTS as k, AgentCategoryWriting as l, AgentChatCreateSubject as m, AgentChatGetSubject as n, AgentChatUpdateSubject as o, AgentChatValidateSubject as p, AgentCloneSubject as q, type AgentContext as r, type AgentContextConfig as s, AgentCreateSubject as t, AgentCreatedSubject as u, AgentDeleteSubject as v, AgentDeletedSubject as w, AgentEnsureDefaultSubject as x, AgentExecuteStatusSubject as y, AgentExecuteStopSubject as z };
|
|
2550
|
+
export { AgentJobDeleteSubject as $, type Agent as A, AgentExecuteSubject as B, type AgentExecution as C, AgentExportSubject as D, type AgentFilters as E, AgentFromTemplateSubject as F, AgentGetByOrgSubject as G, AgentGetDefaultSubject as H, AgentGetSubject as I, AgentImportSubject as J, AgentInstanceCancelPlanSubject as K, AgentInstanceClearHistorySubject as L, AgentInstanceCreatePlanSubject as M, AgentInstanceCreateSubject as N, AgentInstanceCreatedSubject as O, AgentInstanceDeleteSubject as P, AgentInstanceDeletedSubject as Q, AgentInstanceExecutePlanSubject as R, AgentInstanceGetHistorySubject as S, AgentInstanceGetSubject as T, AgentInstanceListSubject as U, AgentInstancePausePlanSubject as V, AgentInstanceResumePlanSubject as W, AgentInstanceUpdateSubject as X, AgentInstanceUpdatedSubject as Y, type AgentJob as Z, AgentJobCreateSubject as _, type AgentCategory as a, type AgentWidget as a$, AgentJobGetSubject as a0, type AgentJobIDRequest as a1, AgentJobListSubject as a2, AgentJobPauseSubject as a3, type AgentJobResponse as a4, AgentJobResumeSubject as a5, type AgentJobTriggerRequest as a6, type AgentJobTriggerResponse as a7, AgentJobTriggerSubject as a8, AgentJobUpdateSubject as a9, type AgentStatusTS as aA, type AgentStatusUpdate as aB, type AgentSubType as aC, AgentSubTypeChat as aD, AgentSubTypeDocument as aE, AgentSubTypeReact as aF, type AgentSubTypeTS as aG, AgentSubTypeWorkflow as aH, type AgentSummary as aI, type AgentTemplate as aJ, AgentTemplateGetSubject as aK, AgentTemplateListSubject as aL, type AgentTool as aM, type AgentToolConfiguration as aN, type AgentType as aO, AgentTypeChat as aP, AgentTypeReact as aQ, type AgentTypeTS as aR, AgentUpdateOrgSubject as aS, AgentUpdateSubject as aT, AgentUpdatedSubject as aU, AgentVersionActivateSubject as aV, AgentVersionActivatedSubject as aW, AgentVersionCreateSubject as aX, AgentVersionCreatedSubject as aY, AgentVersionGetSubject as aZ, AgentVersionListSubject as a_, type AgentJobsListResponse as aa, AgentListSubject as ab, AgentListSummarySubject as ac, type AgentProvisionDefinition as ad, AgentReactCreateSubject as ae, AgentReactGetSubject as af, AgentReactUpdateSubject as ag, AgentReactValidateSubject as ah, type AgentResponse as ai, type AgentScope as aj, AgentScopeCustom as ak, AgentScopeOrg as al, type AgentScopeTS as am, AgentScopeTeam as an, AgentScopeUser as ao, AgentSearchSubject as ap, type AgentSkill as aq, type AgentSkillConfigResponse as ar, AgentSkillGetConfigSubject as as, type AgentSkillTool as at, AgentSkillUpdateConfigSubject as au, type AgentStatus as av, AgentStatusActive as aw, AgentStatusArchived as ax, AgentStatusDraft as ay, AgentStatusInactive as az, AgentCategoryDevelopment as b, type GetDefaultWidgetRequest as b$, type AgentWidgetResponse as b0, AgentWidgetsCreateSubject as b1, AgentWidgetsDeleteSubject as b2, AgentWidgetsGetByWidgetID as b3, AgentWidgetsGetDefaultSubject as b4, AgentWidgetsGetSubject as b5, AgentWidgetsListSubject as b6, AgentWidgetsSetDefaultSubject as b7, AgentWidgetsUpdateSubject as b8, type ArtifactRef as b9, type DeleteToolDefinitionRequest as bA, type ExecuteJobRequest as bB, type ExecutePlanRequest as bC, type ExecutePlanResponse as bD, type ExecuteToolRequest as bE, type ExecuteToolResponse as bF, type ExecutionCompletedEvent as bG, type ExecutionMode as bH, ExecutionModeAsync as bI, ExecutionModeAsyncClient as bJ, ExecutionModeSync as bK, type ExecutionModeTS as bL, type ExecutionPlan as bM, type ExecutionResponse as bN, type ExecutionStatus as bO, ExecutionStatusCompleted as bP, ExecutionStatusFailed as bQ, ExecutionStatusPending as bR, ExecutionStatusRunning as bS, ExecutionStatusSkipped as bT, type ExecutionStatusTS as bU, ExecutionTTLHours as bV, ExecutionsTTLCleanupSubject as bW, type GetAgentRequest as bX, type GetAgentSkillConfigRequest as bY, type GetAgentWidgetRequest as bZ, type GetDefaultAgentRequest as b_, type BackgroundAgentProgressEvent as ba, type BackgroundAgentStatusRequest as bb, type BackgroundAgentStatusResponse as bc, type CSATAnswer as bd, type CSATConfig as be, type CSATQuestion as bf, type CSATResponse as bg, type CSATSurvey as bh, ChatAgentExecuteSubject as bi, ChatAgentStatusSubject as bj, CheckBackgroundAgentStatusToolSubject as bk, type CreateAgentJobRequest as bl, type CreateAgentRequest as bm, type CreateAgentWidgetRequest as bn, type CreateExecutionPlanRequest as bo, type CreateExecutionPlanResponse as bp, type CreateSkillRequest as bq, type CreateSubAgentRequest as br, type CreateToolDefinitionRequest as bs, type CustomizableField as bt, type DefaultDefinitions as bu, type DeleteAgentRequest as bv, type DeleteAgentWidgetRequest as bw, type DeleteSkillRequest as bx, type DeleteSkillUserConfigRequest as by, type DeleteSubAgentRequest as bz, AgentCategoryFinance as c, type PlanApprovalConfig as c$, type GetExecutionRequest as c0, type GetSkillRequest as c1, type GetSkillUserConfigRequest as c2, type GetSkillsByIDsRequest as c3, type GetSkillsByIDsResponse as c4, type GetSubAgentRequest as c5, type GetSubAgentsByIDsRequest as c6, type GetSubAgentsByIDsResponse as c7, type GetToolDefinitionRequest as c8, type GetToolDefinitionsByIDsRequest as c9, JobStatusActive as cA, JobStatusDisabled as cB, JobStatusExecuting as cC, JobStatusPaused as cD, type JobStatusTS as cE, type ListAgentJobsRequest as cF, type ListAgentWidgetsRequest as cG, type ListAgentWidgetsResponse as cH, type ListAgentsRequest as cI, type ListAgentsResponse as cJ, type ListAgentsSummaryRequest as cK, type ListAgentsSummaryResponse as cL, type ListExecutionsByAgentRequest as cM, type ListExecutionsByJobRequest as cN, type ListExecutionsResponse as cO, type ListSkillUserConfigRequest as cP, type ListSkillsRequest as cQ, type ListSubAgentsRequest as cR, type ListToolDefinitionsRequest as cS, type MCPServerConfig as cT, MaxExecutions as cU, type MergeConfig as cV, type MergeStrategy as cW, MergeStrategyAppend as cX, MergeStrategyMerge as cY, MergeStrategyReplace as cZ, type MergeStrategyTS as c_, type GetToolDefinitionsByIDsResponse as ca, type GetWidgetByWidgetIDRequest as cb, type GetWidgetConfigRequest as cc, type GetWidgetConfigResponse as cd, type HandoffConfig as ce, type IntegrationRequirement as cf, type JobExecution as cg, JobExecutionGetSubject as ch, JobExecutionListSubject as ci, type JobExecutionResult as cj, type JobExecutionStatus as ck, JobExecutionStatusFailed as cl, JobExecutionStatusRunning as cm, JobExecutionStatusSuccess as cn, type JobExecutionStatusTS as co, JobExecutionStatusTimedOut as cp, type JobFrequency as cq, JobFrequencyOneTime as cr, JobFrequencySchedule as cs, type JobFrequencyTS as ct, type JobScope as cu, JobScopeOrg as cv, JobScopePrivate as cw, type JobScopeTS as cx, JobScopeTeam as cy, type JobStatus as cz, AgentCategoryGeneral as d, SubAgentsExecuteSubject as d$, type PlanStatus as d0, PlanStatusApproved as d1, PlanStatusCancelled as d2, PlanStatusCompleted as d3, PlanStatusExecuting as d4, PlanStatusPendingApproval as d5, PlanStatusRejected as d6, type PlanStatusTS as d7, type PlannedStep as d8, type ProcessJobTriggerResult as d9, type SkillCategoryTS as dA, SkillResolveConfigSubject as dB, type SkillResponse as dC, type SkillUserConfig as dD, SkillUserConfigDeleteSubject as dE, SkillUserConfigGetSubject as dF, type SkillUserConfigListResponse as dG, SkillUserConfigListSubject as dH, type SkillUserConfigResponse as dI, SkillUserConfigUpdateSubject as dJ, SkillsCreateSubject as dK, SkillsCreatedSubject as dL, SkillsDeleteSubject as dM, SkillsDeletedSubject as dN, SkillsGetByIDsSubject as dO, SkillsGetSubject as dP, type SkillsListResponse as dQ, SkillsListSubject as dR, SkillsUpdateOrgConfigSubject as dS, SkillsUpdateSubject as dT, SkillsUpdatedSubject as dU, type SubAgent as dV, type SubAgentResponse as dW, SubAgentsCreateSubject as dX, SubAgentsCreatedSubject as dY, SubAgentsDeleteSubject as dZ, SubAgentsDeletedSubject as d_, type PublicWidgetConfig as da, type PublisherType as db, PublisherTypeEloquent as dc, PublisherTypePartner as dd, type PublisherTypeTS as de, type ReactAgentConfig as df, ReactAgentExecuteSubject as dg, ReactAgentStatusSubject as dh, ReactAgentStopSubject as di, type ResolveSkillConfigRequest as dj, type ResolveSkillConfigResponse as dk, type RetryPolicy as dl, RuntimeJobCompletedSubject as dm, RuntimeJobExecuteSubject as dn, type SaveWidgetConfigRequest as dp, type SaveWidgetConfigResponse as dq, type SetDefaultWidgetRequest as dr, type Skill as ds, type SkillCategory as dt, SkillCategoryAnalysis as du, SkillCategoryCommunication as dv, SkillCategoryCreative as dw, SkillCategoryCustom as dx, SkillCategoryIntegration as dy, SkillCategoryProductivity as dz, AgentCategoryHR as e, type WidgetBehavior as e$, SubAgentsGetByIDsSubject as e0, SubAgentsGetSubject as e1, type SubAgentsListResponse as e2, SubAgentsListSubject as e3, SubAgentsUpdateSubject as e4, SubAgentsUpdatedSubject as e5, SubAgentsValidateSubject as e6, type TTLCleanupRequest as e7, type TTLCleanupResponse as e8, type TaskStatusTS as e9, ToolExecutionStatusExecuting as eA, ToolExecutionStatusFailed as eB, ToolExecutionStatusSkipped as eC, ToolExecutionStatusStarted as eD, type ToolExecutionStatusTS as eE, ToolExecutionStatusTimeout as eF, type TriggerBackgroundAgentRequest as eG, type TriggerBackgroundAgentResponse as eH, TriggerBackgroundAgentToolSubject as eI, type UpdateAgentJobRequest as eJ, type UpdateAgentRequest as eK, type UpdateAgentSkillConfigRequest as eL, type UpdateAgentWidgetRequest as eM, type UpdateOrgAgentsRequest as eN, type UpdateOrgAgentsResponse as eO, type UpdateSkillOrgConfigRequest as eP, type UpdateSkillRequest as eQ, type UpdateSkillUserConfigRequest as eR, type UpdateSubAgentRequest as eS, type UpdateToolDefinitionRequest as eT, type UserSuggestedAction as eU, type UserSuggestedActionsConfig as eV, type UserSuggestedActionsRequest as eW, type UserSuggestedActionsResponse as eX, type ValidationError as eY, type ValidationErrors as eZ, type WidgetAppearance as e_, type TemplateCategoryCount as ea, type TemplateFilters as eb, type TemplateStatus as ec, TemplateStatusDraft as ed, TemplateStatusPublished as ee, type TemplateStatusTS as ef, type ToolConfig as eg, type ToolDefinition as eh, type ToolDefinitionResponse as ei, ToolDefinitionsCreateSubject as ej, ToolDefinitionsCreatedSubject as ek, ToolDefinitionsDeleteSubject as el, ToolDefinitionsDeletedSubject as em, ToolDefinitionsExecuteSubject as en, ToolDefinitionsGetByIDsSubject as eo, ToolDefinitionsGetSubject as ep, type ToolDefinitionsListResponse as eq, ToolDefinitionsListSubject as er, ToolDefinitionsUpdateSubject as es, ToolDefinitionsUpdatedSubject as et, ToolDefinitionsValidateSubject as eu, type ToolExecution as ev, type ToolExecutionPolicy as ew, type ToolExecutionProgress as ex, type ToolExecutionStatus as ey, ToolExecutionStatusCompleted as ez, AgentCategoryMarketing as f, type WidgetConfig as f0, WidgetConfigGetByAgentSubject as f1, WidgetConfigSaveSubject as f2, type WidgetSecurity as f3, WorkflowAgentGetSubject as f4, WorkflowAgentUpdateSubject as f5, AgentCategoryProductivity as g, AgentCategoryResearch as h, AgentCategorySales as i, AgentCategorySupport as j, type AgentCategoryTS as k, AgentCategoryWriting as l, AgentChatCreateSubject as m, AgentChatGetSubject as n, AgentChatUpdateSubject as o, AgentChatValidateSubject as p, AgentCloneSubject as q, type AgentContext as r, type AgentContextConfig as s, AgentCreateSubject as t, AgentCreatedSubject as u, AgentDeleteSubject as v, AgentDeletedSubject as w, AgentEnsureDefaultSubject as x, AgentExecuteStatusSubject as y, AgentExecuteStopSubject as z };
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ApiClientOptions, ApiResponse } from '@elqnt/api-client';
|
|
2
2
|
import { ResponseMetadata } from '@elqnt/types';
|
|
3
|
-
import { A as Agent, ai as AgentResponse, Z as AgentJob, a4 as AgentJobResponse,
|
|
4
|
-
export {
|
|
5
|
-
import { ap as IntegrationProviderTS, aA as IntegrationTypeTS, e as ConnectIntegrationResponse, h as CreateSandboxRequest, i as CreateSandboxResponse, m as DeleteSandboxResponse, r as DisconnectIntegrationResponse, R as GetUserIntegrationResponse, O as GetSandboxResponse, ai as IntegrationCallbackResponse, aL as ListUserIntegrationsResponse, aJ as ListSandboxesResponse, aT as RefreshIntegrationResponse, aV as RunEmailTriageResponse, b9 as UpdateTriageEnabledResponse, b5 as UpdateSandboxRequest, b6 as UpdateSandboxResponse } from '../sandbox-
|
|
6
|
-
export { aW as Sandbox, ba as UserIntegration } from '../sandbox-
|
|
3
|
+
import { A as Agent, bc as BackgroundAgentStatusResponse, ai as AgentResponse, Z as AgentJob, a4 as AgentJobResponse, ds as Skill, dC as SkillResponse, dV as SubAgent, dW as SubAgentResponse, eh as ToolDefinition, ei as ToolDefinitionResponse, a$ as AgentWidget, b0 as AgentWidgetResponse, dI as SkillUserConfigResponse, c4 as GetSkillsByIDsResponse, ca as GetToolDefinitionsByIDsResponse, aa as AgentJobsListResponse, cJ as ListAgentsResponse, cL as ListAgentsSummaryResponse, dG as SkillUserConfigListResponse, dQ as SkillsListResponse, e2 as SubAgentsListResponse, eq as ToolDefinitionsListResponse, cH as ListAgentWidgetsResponse, dk as ResolveSkillConfigResponse, eG as TriggerBackgroundAgentRequest, eH as TriggerBackgroundAgentResponse } from '../agent-models-DLQlC7N6.mjs';
|
|
4
|
+
export { aI as AgentSummary, dD as SkillUserConfig } from '../agent-models-DLQlC7N6.mjs';
|
|
5
|
+
import { ap as IntegrationProviderTS, aA as IntegrationTypeTS, e as ConnectIntegrationResponse, h as CreateSandboxRequest, i as CreateSandboxResponse, m as DeleteSandboxResponse, r as DisconnectIntegrationResponse, R as GetUserIntegrationResponse, O as GetSandboxResponse, ai as IntegrationCallbackResponse, aL as ListUserIntegrationsResponse, aJ as ListSandboxesResponse, aT as RefreshIntegrationResponse, aV as RunEmailTriageResponse, b9 as UpdateTriageEnabledResponse, b5 as UpdateSandboxRequest, b6 as UpdateSandboxResponse } from '../sandbox-DOxoM2Ge.mjs';
|
|
6
|
+
export { aW as Sandbox, ba as UserIntegration } from '../sandbox-DOxoM2Ge.mjs';
|
|
7
|
+
import { ChatMessage } from '@elqnt/chat/models';
|
|
8
|
+
export { Attachment, ChatMessage } from '@elqnt/chat/models';
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* Agents API functions
|
|
@@ -139,6 +141,51 @@ declare function deleteAgentJobApi(jobId: string, options: ApiClientOptions): Pr
|
|
|
139
141
|
}>>;
|
|
140
142
|
declare function pauseAgentJobApi(jobId: string, options: ApiClientOptions): Promise<ApiResponse<AgentJobResponse>>;
|
|
141
143
|
declare function resumeAgentJobApi(jobId: string, options: ApiClientOptions): Promise<ApiResponse<AgentJobResponse>>;
|
|
144
|
+
declare function triggerBackgroundAgentApi(request: Pick<TriggerBackgroundAgentRequest, "name" | "prompt" | "agentName" | "context" | "enableSSE" | "frequency" | "cron" | "timezone" | "scope" | "description">, options: ApiClientOptions): Promise<ApiResponse<TriggerBackgroundAgentResponse>>;
|
|
145
|
+
declare function checkBackgroundAgentStatusApi(jobId: string, options: ApiClientOptions): Promise<ApiResponse<BackgroundAgentStatusResponse>>;
|
|
146
|
+
interface CreateBackgroundChatRequest {
|
|
147
|
+
agentName: string;
|
|
148
|
+
background: boolean;
|
|
149
|
+
metadata?: Record<string, unknown>;
|
|
150
|
+
}
|
|
151
|
+
interface CreateBackgroundChatResponse {
|
|
152
|
+
chatKey: string;
|
|
153
|
+
}
|
|
154
|
+
interface SendChatMessageRequest {
|
|
155
|
+
chatKey: string;
|
|
156
|
+
message: {
|
|
157
|
+
role: string;
|
|
158
|
+
content: string;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
interface SendChatMessageResponse {
|
|
162
|
+
success: boolean;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
interface LoadChatResponse {
|
|
166
|
+
chat: {
|
|
167
|
+
key: string;
|
|
168
|
+
orgId: string;
|
|
169
|
+
title?: string;
|
|
170
|
+
status?: string;
|
|
171
|
+
messages?: ChatMessage[];
|
|
172
|
+
metadata?: Record<string, unknown>;
|
|
173
|
+
lastUpdated?: number;
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Create a background chat session via the chat service.
|
|
178
|
+
* Uses the existing /v1/chat/create endpoint with background agent metadata.
|
|
179
|
+
*/
|
|
180
|
+
declare function createBackgroundChatApi(request: CreateBackgroundChatRequest, options: ApiClientOptions): Promise<ApiResponse<CreateBackgroundChatResponse>>;
|
|
181
|
+
/**
|
|
182
|
+
* Send a message to a chat session via the chat service.
|
|
183
|
+
*/
|
|
184
|
+
declare function sendChatMessageApi(request: SendChatMessageRequest, options: ApiClientOptions): Promise<ApiResponse<SendChatMessageResponse>>;
|
|
185
|
+
/**
|
|
186
|
+
* Load a chat session including its messages via the chat service.
|
|
187
|
+
*/
|
|
188
|
+
declare function loadChatApi(chatKey: string, options: ApiClientOptions): Promise<ApiResponse<LoadChatResponse>>;
|
|
142
189
|
interface SkillCategoriesResponse {
|
|
143
190
|
categories: string[];
|
|
144
191
|
metadata: ResponseMetadata;
|
|
@@ -364,4 +411,4 @@ declare function resumeScheduleApi(scheduleId: string, options: ApiClientOptions
|
|
|
364
411
|
*/
|
|
365
412
|
declare function runScheduleApi(scheduleId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerScheduleResponse>>;
|
|
366
413
|
|
|
367
|
-
export { Agent, AgentJob, AgentJobResponse, AgentJobsListResponse, AgentWidget, type AnalyticsDataResponse, ConnectIntegrationResponse, CreateSandboxRequest, CreateSandboxResponse, type DateFilter, DeleteSandboxResponse, DisconnectIntegrationResponse, GetSandboxResponse, GetToolDefinitionsByIDsResponse, GetUserIntegrationResponse, IntegrationCallbackResponse, IntegrationProviderTS, IntegrationTypeTS, ListSandboxesResponse, ListUserIntegrationsResponse, type ProvisionAgentsResponse, RefreshIntegrationResponse, ResolveSkillConfigResponse, RunEmailTriageResponse, type SchedulerSchedule, type SchedulerScheduleListResponse, type SchedulerScheduleResponse, type SchedulerTask, type SchedulerTaskListResponse, type SchedulerTaskResponse, Skill, type SkillCategoriesResponse, SkillUserConfigListResponse, SkillUserConfigResponse, SubAgent, ToolDefinition, ToolDefinitionResponse, ToolDefinitionsListResponse, UpdateSandboxRequest, UpdateSandboxResponse, UpdateTriageEnabledResponse, completeSchedulerTaskApi, connectIntegrationApi, createAgentApi, createAgentJobApi, createSandboxApi, createScheduleApi, createSchedulerTaskApi, createSkillApi, createSubAgentApi, createToolDefinitionApi, createWidgetApi, deleteAgentApi, deleteAgentJobApi, deleteSandboxApi, deleteScheduleApi, deleteSchedulerTaskApi, deleteSkillApi, deleteSkillUserConfigApi, deleteSubAgentApi, deleteToolDefinitionApi, deleteWidgetApi, disconnectIntegrationApi, getAgentApi, getAgentByNameApi, getAgentCSATAnalyticsApi, getAgentChatsAnalyticsApi, getAgentJobApi, getAgentListAnalyticsApi, getDefaultAgentApi, getDefaultWidgetApi, getIntegrationApi, getSandboxApi, getScheduleApi, getSchedulerTaskApi, getSkillApi, getSkillCategoriesApi, getSkillUserConfigApi, getSkillsByIdsApi, getSubAgentApi, getTaskOutcomesApi, getToolDefinitionApi, getToolDefinitionsByIdsApi, getWidgetApi, getWidgetByWidgetIdApi, integrationCallbackApi, listAgentJobsApi, listAgentsApi, listAgentsSummaryApi, listIntegrationsApi, listSandboxesApi, listSchedulerTasksApi, listSchedulesApi, listSkillUserConfigsApi, listSkillsApi, listSubAgentsApi, listToolDefinitionsApi, listWidgetsApi, pauseAgentJobApi, pauseScheduleApi, provisionAgentsApi, refreshIntegrationApi, resolveSkillConfigApi, resumeAgentJobApi, resumeScheduleApi, runEmailTriageApi, runScheduleApi, searchSkillsApi, setDefaultWidgetApi, snoozeSchedulerTaskApi, startSchedulerTaskApi, updateAgentApi, updateAgentJobApi, updateIntegrationTriageApi, updateSandboxApi, updateScheduleApi, updateSchedulerTaskApi, updateSkillApi, updateSkillOrgConfigApi, updateSkillUserConfigApi, updateSubAgentApi, updateToolDefinitionApi, updateWidgetApi };
|
|
414
|
+
export { Agent, AgentJob, AgentJobResponse, AgentJobsListResponse, AgentWidget, type AnalyticsDataResponse, ConnectIntegrationResponse, type CreateBackgroundChatRequest, type CreateBackgroundChatResponse, CreateSandboxRequest, CreateSandboxResponse, type DateFilter, DeleteSandboxResponse, DisconnectIntegrationResponse, GetSandboxResponse, GetToolDefinitionsByIDsResponse, GetUserIntegrationResponse, IntegrationCallbackResponse, IntegrationProviderTS, IntegrationTypeTS, ListSandboxesResponse, ListUserIntegrationsResponse, type LoadChatResponse, type ProvisionAgentsResponse, RefreshIntegrationResponse, ResolveSkillConfigResponse, RunEmailTriageResponse, type SchedulerSchedule, type SchedulerScheduleListResponse, type SchedulerScheduleResponse, type SchedulerTask, type SchedulerTaskListResponse, type SchedulerTaskResponse, type SendChatMessageRequest, type SendChatMessageResponse, Skill, type SkillCategoriesResponse, SkillUserConfigListResponse, SkillUserConfigResponse, SubAgent, ToolDefinition, ToolDefinitionResponse, ToolDefinitionsListResponse, UpdateSandboxRequest, UpdateSandboxResponse, UpdateTriageEnabledResponse, checkBackgroundAgentStatusApi, completeSchedulerTaskApi, connectIntegrationApi, createAgentApi, createAgentJobApi, createBackgroundChatApi, createSandboxApi, createScheduleApi, createSchedulerTaskApi, createSkillApi, createSubAgentApi, createToolDefinitionApi, createWidgetApi, deleteAgentApi, deleteAgentJobApi, deleteSandboxApi, deleteScheduleApi, deleteSchedulerTaskApi, deleteSkillApi, deleteSkillUserConfigApi, deleteSubAgentApi, deleteToolDefinitionApi, deleteWidgetApi, disconnectIntegrationApi, getAgentApi, getAgentByNameApi, getAgentCSATAnalyticsApi, getAgentChatsAnalyticsApi, getAgentJobApi, getAgentListAnalyticsApi, getDefaultAgentApi, getDefaultWidgetApi, getIntegrationApi, getSandboxApi, getScheduleApi, getSchedulerTaskApi, getSkillApi, getSkillCategoriesApi, getSkillUserConfigApi, getSkillsByIdsApi, getSubAgentApi, getTaskOutcomesApi, getToolDefinitionApi, getToolDefinitionsByIdsApi, getWidgetApi, getWidgetByWidgetIdApi, integrationCallbackApi, listAgentJobsApi, listAgentsApi, listAgentsSummaryApi, listIntegrationsApi, listSandboxesApi, listSchedulerTasksApi, listSchedulesApi, listSkillUserConfigsApi, listSkillsApi, listSubAgentsApi, listToolDefinitionsApi, listWidgetsApi, loadChatApi, pauseAgentJobApi, pauseScheduleApi, provisionAgentsApi, refreshIntegrationApi, resolveSkillConfigApi, resumeAgentJobApi, resumeScheduleApi, runEmailTriageApi, runScheduleApi, searchSkillsApi, sendChatMessageApi, setDefaultWidgetApi, snoozeSchedulerTaskApi, startSchedulerTaskApi, triggerBackgroundAgentApi, updateAgentApi, updateAgentJobApi, updateIntegrationTriageApi, updateSandboxApi, updateScheduleApi, updateSchedulerTaskApi, updateSkillApi, updateSkillOrgConfigApi, updateSkillUserConfigApi, updateSubAgentApi, updateToolDefinitionApi, updateWidgetApi };
|