@contractspec/example.agent-console 0.0.0-canary-20260113170453
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/.turbo/turbo-build$colon$bundle.log +280 -0
- package/.turbo/turbo-build.log +281 -0
- package/CHANGELOG.md +368 -0
- package/LICENSE +21 -0
- package/README.md +86 -0
- package/dist/agent/agent.entity.d.ts +55 -0
- package/dist/agent/agent.entity.d.ts.map +1 -0
- package/dist/agent/agent.entity.js +136 -0
- package/dist/agent/agent.entity.js.map +1 -0
- package/dist/agent/agent.enum.d.ts +18 -0
- package/dist/agent/agent.enum.d.ts.map +1 -0
- package/dist/agent/agent.enum.js +34 -0
- package/dist/agent/agent.enum.js.map +1 -0
- package/dist/agent/agent.event.d.ts +128 -0
- package/dist/agent/agent.event.d.ts.map +1 -0
- package/dist/agent/agent.event.js +210 -0
- package/dist/agent/agent.event.js.map +1 -0
- package/dist/agent/agent.handler.d.ts +100 -0
- package/dist/agent/agent.handler.d.ts.map +1 -0
- package/dist/agent/agent.handler.js +84 -0
- package/dist/agent/agent.handler.js.map +1 -0
- package/dist/agent/agent.operation.d.ts +471 -0
- package/dist/agent/agent.operation.d.ts.map +1 -0
- package/dist/agent/agent.operation.js +486 -0
- package/dist/agent/agent.operation.js.map +1 -0
- package/dist/agent/agent.presentation.d.ts +18 -0
- package/dist/agent/agent.presentation.d.ts.map +1 -0
- package/dist/agent/agent.presentation.js +89 -0
- package/dist/agent/agent.presentation.js.map +1 -0
- package/dist/agent/agent.schema.d.ts +401 -0
- package/dist/agent/agent.schema.d.ts.map +1 -0
- package/dist/agent/agent.schema.js +406 -0
- package/dist/agent/agent.schema.js.map +1 -0
- package/dist/agent/agent.test-spec.d.ts +8 -0
- package/dist/agent/agent.test-spec.d.ts.map +1 -0
- package/dist/agent/agent.test-spec.js +65 -0
- package/dist/agent/agent.test-spec.js.map +1 -0
- package/dist/agent/index.d.ts +8 -0
- package/dist/agent/index.js +9 -0
- package/dist/agent.capability.d.ts +7 -0
- package/dist/agent.capability.d.ts.map +1 -0
- package/dist/agent.capability.js +20 -0
- package/dist/agent.capability.js.map +1 -0
- package/dist/agent.feature.d.ts +12 -0
- package/dist/agent.feature.d.ts.map +1 -0
- package/dist/agent.feature.js +305 -0
- package/dist/agent.feature.js.map +1 -0
- package/dist/docs/agent-console.docblock.d.ts +1 -0
- package/dist/docs/agent-console.docblock.js +113 -0
- package/dist/docs/agent-console.docblock.js.map +1 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/index.js +1 -0
- package/dist/example.d.ts +7 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +58 -0
- package/dist/example.js.map +1 -0
- package/dist/handlers/agent.handlers.d.ts +135 -0
- package/dist/handlers/agent.handlers.d.ts.map +1 -0
- package/dist/handlers/agent.handlers.js +263 -0
- package/dist/handlers/agent.handlers.js.map +1 -0
- package/dist/handlers/index.d.ts +5 -0
- package/dist/handlers/index.js +6 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +50 -0
- package/dist/presentations/index.d.ts +4 -0
- package/dist/presentations/index.js +5 -0
- package/dist/run/index.d.ts +8 -0
- package/dist/run/index.js +9 -0
- package/dist/run/run.entity.d.ts +82 -0
- package/dist/run/run.entity.d.ts.map +1 -0
- package/dist/run/run.entity.js +205 -0
- package/dist/run/run.entity.js.map +1 -0
- package/dist/run/run.enum.d.ts +22 -0
- package/dist/run/run.enum.d.ts.map +1 -0
- package/dist/run/run.enum.js +45 -0
- package/dist/run/run.enum.js.map +1 -0
- package/dist/run/run.event.d.ts +290 -0
- package/dist/run/run.event.d.ts.map +1 -0
- package/dist/run/run.event.js +434 -0
- package/dist/run/run.event.js.map +1 -0
- package/dist/run/run.handler.d.ts +203 -0
- package/dist/run/run.handler.d.ts.map +1 -0
- package/dist/run/run.handler.js +83 -0
- package/dist/run/run.handler.js.map +1 -0
- package/dist/run/run.operation.d.ts +720 -0
- package/dist/run/run.operation.d.ts.map +1 -0
- package/dist/run/run.operation.js +626 -0
- package/dist/run/run.operation.js.map +1 -0
- package/dist/run/run.presentation.d.ts +14 -0
- package/dist/run/run.presentation.d.ts.map +1 -0
- package/dist/run/run.presentation.js +65 -0
- package/dist/run/run.presentation.js.map +1 -0
- package/dist/run/run.schema.d.ts +416 -0
- package/dist/run/run.schema.d.ts.map +1 -0
- package/dist/run/run.schema.js +338 -0
- package/dist/run/run.schema.js.map +1 -0
- package/dist/run/run.test-spec.d.ts +8 -0
- package/dist/run/run.test-spec.d.ts.map +1 -0
- package/dist/run/run.test-spec.js +65 -0
- package/dist/run/run.test-spec.js.map +1 -0
- package/dist/seeders/index.d.ts +10 -0
- package/dist/seeders/index.d.ts.map +1 -0
- package/dist/seeders/index.js +20 -0
- package/dist/seeders/index.js.map +1 -0
- package/dist/shared/index.d.ts +4 -0
- package/dist/shared/index.js +5 -0
- package/dist/shared/mock-agents.d.ts +88 -0
- package/dist/shared/mock-agents.d.ts.map +1 -0
- package/dist/shared/mock-agents.js +94 -0
- package/dist/shared/mock-agents.js.map +1 -0
- package/dist/shared/mock-runs.d.ts +120 -0
- package/dist/shared/mock-runs.d.ts.map +1 -0
- package/dist/shared/mock-runs.js +118 -0
- package/dist/shared/mock-runs.js.map +1 -0
- package/dist/shared/mock-tools.d.ts +244 -0
- package/dist/shared/mock-tools.d.ts.map +1 -0
- package/dist/shared/mock-tools.js +181 -0
- package/dist/shared/mock-tools.js.map +1 -0
- package/dist/shared/overlay-types.d.ts +34 -0
- package/dist/shared/overlay-types.d.ts.map +1 -0
- package/dist/shared/overlay-types.js +0 -0
- package/dist/tool/index.d.ts +8 -0
- package/dist/tool/index.js +9 -0
- package/dist/tool/tool.entity.d.ts +42 -0
- package/dist/tool/tool.entity.d.ts.map +1 -0
- package/dist/tool/tool.entity.js +105 -0
- package/dist/tool/tool.entity.js.map +1 -0
- package/dist/tool/tool.enum.d.ts +18 -0
- package/dist/tool/tool.enum.d.ts.map +1 -0
- package/dist/tool/tool.enum.js +35 -0
- package/dist/tool/tool.enum.js.map +1 -0
- package/dist/tool/tool.event.d.ts +103 -0
- package/dist/tool/tool.event.d.ts.map +1 -0
- package/dist/tool/tool.event.js +159 -0
- package/dist/tool/tool.event.js.map +1 -0
- package/dist/tool/tool.handler.d.ts +315 -0
- package/dist/tool/tool.handler.d.ts.map +1 -0
- package/dist/tool/tool.handler.js +87 -0
- package/dist/tool/tool.handler.js.map +1 -0
- package/dist/tool/tool.operation.d.ts +411 -0
- package/dist/tool/tool.operation.d.ts.map +1 -0
- package/dist/tool/tool.operation.js +406 -0
- package/dist/tool/tool.operation.js.map +1 -0
- package/dist/tool/tool.presentation.d.ts +14 -0
- package/dist/tool/tool.presentation.d.ts.map +1 -0
- package/dist/tool/tool.presentation.js +65 -0
- package/dist/tool/tool.presentation.js.map +1 -0
- package/dist/tool/tool.schema.d.ts +218 -0
- package/dist/tool/tool.schema.d.ts.map +1 -0
- package/dist/tool/tool.schema.js +236 -0
- package/dist/tool/tool.schema.js.map +1 -0
- package/dist/tool/tool.test-spec.d.ts +8 -0
- package/dist/tool/tool.test-spec.d.ts.map +1 -0
- package/dist/tool/tool.test-spec.js +65 -0
- package/dist/tool/tool.test-spec.js.map +1 -0
- package/dist/ui/AgentDashboard.d.ts +7 -0
- package/dist/ui/AgentDashboard.d.ts.map +1 -0
- package/dist/ui/AgentDashboard.js +420 -0
- package/dist/ui/AgentDashboard.js.map +1 -0
- package/dist/ui/AgentRunList.d.ts +2 -0
- package/dist/ui/AgentRunList.js +5 -0
- package/dist/ui/AgentToolRegistry.d.ts +2 -0
- package/dist/ui/AgentToolRegistry.js +5 -0
- package/dist/ui/hooks/index.d.ts +6 -0
- package/dist/ui/hooks/index.js +8 -0
- package/dist/ui/hooks/useAgentList.d.ts +28 -0
- package/dist/ui/hooks/useAgentList.d.ts.map +1 -0
- package/dist/ui/hooks/useAgentList.js +66 -0
- package/dist/ui/hooks/useAgentList.js.map +1 -0
- package/dist/ui/hooks/useAgentMutations.d.ts +29 -0
- package/dist/ui/hooks/useAgentMutations.d.ts.map +1 -0
- package/dist/ui/hooks/useAgentMutations.js +124 -0
- package/dist/ui/hooks/useAgentMutations.js.map +1 -0
- package/dist/ui/hooks/useRunList.d.ts +24 -0
- package/dist/ui/hooks/useRunList.d.ts.map +1 -0
- package/dist/ui/hooks/useRunList.js +66 -0
- package/dist/ui/hooks/useRunList.js.map +1 -0
- package/dist/ui/hooks/useToolList.d.ts +40 -0
- package/dist/ui/hooks/useToolList.d.ts.map +1 -0
- package/dist/ui/hooks/useToolList.js +96 -0
- package/dist/ui/hooks/useToolList.js.map +1 -0
- package/dist/ui/index.d.ts +24 -0
- package/dist/ui/index.js +24 -0
- package/dist/ui/modals/AgentActionsModal.d.ts +27 -0
- package/dist/ui/modals/AgentActionsModal.d.ts.map +1 -0
- package/dist/ui/modals/AgentActionsModal.js +262 -0
- package/dist/ui/modals/AgentActionsModal.js.map +1 -0
- package/dist/ui/modals/CreateAgentModal.d.ts +25 -0
- package/dist/ui/modals/CreateAgentModal.d.ts.map +1 -0
- package/dist/ui/modals/CreateAgentModal.js +214 -0
- package/dist/ui/modals/CreateAgentModal.js.map +1 -0
- package/dist/ui/modals/index.d.ts +3 -0
- package/dist/ui/modals/index.js +4 -0
- package/dist/ui/overlays/demo-overlays.d.ts +19 -0
- package/dist/ui/overlays/demo-overlays.d.ts.map +1 -0
- package/dist/ui/overlays/demo-overlays.js +73 -0
- package/dist/ui/overlays/demo-overlays.js.map +1 -0
- package/dist/ui/overlays/index.d.ts +2 -0
- package/dist/ui/overlays/index.js +3 -0
- package/dist/ui/renderers/agent-list.markdown.d.ts +15 -0
- package/dist/ui/renderers/agent-list.markdown.d.ts.map +1 -0
- package/dist/ui/renderers/agent-list.markdown.js +51 -0
- package/dist/ui/renderers/agent-list.markdown.js.map +1 -0
- package/dist/ui/renderers/agent-list.renderer.d.ts +11 -0
- package/dist/ui/renderers/agent-list.renderer.d.ts.map +1 -0
- package/dist/ui/renderers/agent-list.renderer.js +19 -0
- package/dist/ui/renderers/agent-list.renderer.js.map +1 -0
- package/dist/ui/renderers/dashboard.markdown.d.ts +15 -0
- package/dist/ui/renderers/dashboard.markdown.d.ts.map +1 -0
- package/dist/ui/renderers/dashboard.markdown.js +100 -0
- package/dist/ui/renderers/dashboard.markdown.js.map +1 -0
- package/dist/ui/renderers/index.d.ts +6 -0
- package/dist/ui/renderers/index.js +7 -0
- package/dist/ui/renderers/run-list.markdown.d.ts +15 -0
- package/dist/ui/renderers/run-list.markdown.d.ts.map +1 -0
- package/dist/ui/renderers/run-list.markdown.js +44 -0
- package/dist/ui/renderers/run-list.markdown.js.map +1 -0
- package/dist/ui/renderers/tool-registry.markdown.d.ts +15 -0
- package/dist/ui/renderers/tool-registry.markdown.d.ts.map +1 -0
- package/dist/ui/renderers/tool-registry.markdown.js +55 -0
- package/dist/ui/renderers/tool-registry.markdown.js.map +1 -0
- package/dist/ui/views/AgentListView.d.ts +7 -0
- package/dist/ui/views/AgentListView.d.ts.map +1 -0
- package/dist/ui/views/AgentListView.js +93 -0
- package/dist/ui/views/AgentListView.js.map +1 -0
- package/dist/ui/views/RunListView.d.ts +14 -0
- package/dist/ui/views/RunListView.d.ts.map +1 -0
- package/dist/ui/views/RunListView.js +165 -0
- package/dist/ui/views/RunListView.js.map +1 -0
- package/dist/ui/views/ToolRegistryView.d.ts +14 -0
- package/dist/ui/views/ToolRegistryView.d.ts.map +1 -0
- package/dist/ui/views/ToolRegistryView.js +97 -0
- package/dist/ui/views/ToolRegistryView.js.map +1 -0
- package/dist/ui/views/index.d.ts +4 -0
- package/dist/ui/views/index.js +5 -0
- package/example.ts +1 -0
- package/package.json +155 -0
- package/src/agent/agent.entity.ts +137 -0
- package/src/agent/agent.enum.ts +31 -0
- package/src/agent/agent.event.ts +142 -0
- package/src/agent/agent.handler.ts +178 -0
- package/src/agent/agent.operation.ts +444 -0
- package/src/agent/agent.presentation.ts +80 -0
- package/src/agent/agent.schema.ts +214 -0
- package/src/agent/agent.test-spec.ts +55 -0
- package/src/agent/index.ts +67 -0
- package/src/agent.capability.ts +13 -0
- package/src/agent.feature.ts +147 -0
- package/src/docs/agent-console.docblock.ts +97 -0
- package/src/docs/index.ts +1 -0
- package/src/example.ts +41 -0
- package/src/handlers/agent.handlers.ts +572 -0
- package/src/handlers/index.ts +30 -0
- package/src/index.ts +32 -0
- package/src/presentations/index.ts +26 -0
- package/src/run/index.ts +68 -0
- package/src/run/run.entity.ts +175 -0
- package/src/run/run.enum.ts +43 -0
- package/src/run/run.event.ts +264 -0
- package/src/run/run.handler.ts +138 -0
- package/src/run/run.operation.ts +524 -0
- package/src/run/run.presentation.ts +54 -0
- package/src/run/run.schema.ts +169 -0
- package/src/run/run.test-spec.ts +55 -0
- package/src/seeders/index.ts +29 -0
- package/src/shared/index.ts +6 -0
- package/src/shared/mock-agents.ts +81 -0
- package/src/shared/mock-runs.ts +107 -0
- package/src/shared/mock-tools.ts +145 -0
- package/src/shared/overlay-types.ts +39 -0
- package/src/tool/index.ts +60 -0
- package/src/tool/tool.entity.ts +99 -0
- package/src/tool/tool.enum.ts +32 -0
- package/src/tool/tool.event.ts +119 -0
- package/src/tool/tool.handler.ts +154 -0
- package/src/tool/tool.operation.ts +366 -0
- package/src/tool/tool.presentation.ts +55 -0
- package/src/tool/tool.schema.ts +133 -0
- package/src/tool/tool.test-spec.ts +55 -0
- package/src/ui/AgentDashboard.tsx +416 -0
- package/src/ui/AgentRunList.tsx +8 -0
- package/src/ui/AgentToolRegistry.tsx +8 -0
- package/src/ui/hooks/index.ts +14 -0
- package/src/ui/hooks/useAgentList.ts +80 -0
- package/src/ui/hooks/useAgentMutations.ts +156 -0
- package/src/ui/hooks/useRunList.ts +81 -0
- package/src/ui/hooks/useToolList.ts +122 -0
- package/src/ui/index.ts +21 -0
- package/src/ui/modals/AgentActionsModal.tsx +306 -0
- package/src/ui/modals/CreateAgentModal.tsx +257 -0
- package/src/ui/modals/index.ts +2 -0
- package/src/ui/overlays/demo-overlays.ts +77 -0
- package/src/ui/overlays/index.ts +1 -0
- package/src/ui/renderers/agent-list.markdown.ts +84 -0
- package/src/ui/renderers/agent-list.renderer.tsx +27 -0
- package/src/ui/renderers/dashboard.markdown.ts +169 -0
- package/src/ui/renderers/index.ts +12 -0
- package/src/ui/renderers/run-list.markdown.ts +75 -0
- package/src/ui/renderers/tool-registry.markdown.ts +91 -0
- package/src/ui/views/AgentListView.tsx +113 -0
- package/src/ui/views/RunListView.tsx +173 -0
- package/src/ui/views/ToolRegistryView.tsx +140 -0
- package/src/ui/views/index.ts +6 -0
- package/tsconfig.json +10 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/tsdown.config.js +7 -0
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import * as _contractspec_lib_contracts19 from "@contractspec/lib.contracts";
|
|
2
|
+
import * as _contractspec_lib_schema367 from "@contractspec/lib.schema";
|
|
3
|
+
|
|
4
|
+
//#region src/agent/agent.operation.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* CreateAgentCommand - Creates a new agent configuration.
|
|
7
|
+
*/
|
|
8
|
+
declare const CreateAgentCommand: _contractspec_lib_contracts19.OperationSpec<_contractspec_lib_schema367.SchemaModel<{
|
|
9
|
+
organizationId: {
|
|
10
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
name: {
|
|
14
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
15
|
+
isOptional: false;
|
|
16
|
+
};
|
|
17
|
+
slug: {
|
|
18
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
19
|
+
isOptional: false;
|
|
20
|
+
};
|
|
21
|
+
description: {
|
|
22
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
23
|
+
isOptional: true;
|
|
24
|
+
};
|
|
25
|
+
modelProvider: {
|
|
26
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string, string, string]>;
|
|
27
|
+
isOptional: false;
|
|
28
|
+
};
|
|
29
|
+
modelName: {
|
|
30
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
31
|
+
isOptional: false;
|
|
32
|
+
};
|
|
33
|
+
modelConfig: {
|
|
34
|
+
type: _contractspec_lib_schema367.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
35
|
+
isOptional: true;
|
|
36
|
+
};
|
|
37
|
+
systemPrompt: {
|
|
38
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
39
|
+
isOptional: false;
|
|
40
|
+
};
|
|
41
|
+
userPromptTemplate: {
|
|
42
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
43
|
+
isOptional: true;
|
|
44
|
+
};
|
|
45
|
+
toolIds: {
|
|
46
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
47
|
+
isArray: true;
|
|
48
|
+
isOptional: true;
|
|
49
|
+
};
|
|
50
|
+
toolChoice: {
|
|
51
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string]>;
|
|
52
|
+
isOptional: true;
|
|
53
|
+
};
|
|
54
|
+
maxIterations: {
|
|
55
|
+
type: _contractspec_lib_schema367.FieldType<number, number>;
|
|
56
|
+
isOptional: true;
|
|
57
|
+
};
|
|
58
|
+
maxTokensPerRun: {
|
|
59
|
+
type: _contractspec_lib_schema367.FieldType<number, number>;
|
|
60
|
+
isOptional: true;
|
|
61
|
+
};
|
|
62
|
+
timeoutMs: {
|
|
63
|
+
type: _contractspec_lib_schema367.FieldType<number, number>;
|
|
64
|
+
isOptional: true;
|
|
65
|
+
};
|
|
66
|
+
tags: {
|
|
67
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
68
|
+
isArray: true;
|
|
69
|
+
isOptional: true;
|
|
70
|
+
};
|
|
71
|
+
}>, _contractspec_lib_schema367.SchemaModel<{
|
|
72
|
+
id: {
|
|
73
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
74
|
+
isOptional: false;
|
|
75
|
+
};
|
|
76
|
+
name: {
|
|
77
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
78
|
+
isOptional: false;
|
|
79
|
+
};
|
|
80
|
+
slug: {
|
|
81
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
82
|
+
isOptional: false;
|
|
83
|
+
};
|
|
84
|
+
status: {
|
|
85
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string, string]>;
|
|
86
|
+
isOptional: false;
|
|
87
|
+
};
|
|
88
|
+
}>, {
|
|
89
|
+
ref: _contractspec_lib_contracts19.EventSpecMeta;
|
|
90
|
+
when: string;
|
|
91
|
+
}[]>;
|
|
92
|
+
/**
|
|
93
|
+
* UpdateAgentCommand - Updates an existing agent.
|
|
94
|
+
*/
|
|
95
|
+
declare const UpdateAgentCommand: _contractspec_lib_contracts19.OperationSpec<_contractspec_lib_schema367.SchemaModel<{
|
|
96
|
+
agentId: {
|
|
97
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
98
|
+
isOptional: false;
|
|
99
|
+
};
|
|
100
|
+
name: {
|
|
101
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
102
|
+
isOptional: true;
|
|
103
|
+
};
|
|
104
|
+
description: {
|
|
105
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
106
|
+
isOptional: true;
|
|
107
|
+
};
|
|
108
|
+
status: {
|
|
109
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string, string]>;
|
|
110
|
+
isOptional: true;
|
|
111
|
+
};
|
|
112
|
+
modelConfig: {
|
|
113
|
+
type: _contractspec_lib_schema367.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
114
|
+
isOptional: true;
|
|
115
|
+
};
|
|
116
|
+
systemPrompt: {
|
|
117
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
118
|
+
isOptional: true;
|
|
119
|
+
};
|
|
120
|
+
userPromptTemplate: {
|
|
121
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
122
|
+
isOptional: true;
|
|
123
|
+
};
|
|
124
|
+
toolIds: {
|
|
125
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
126
|
+
isArray: true;
|
|
127
|
+
isOptional: true;
|
|
128
|
+
};
|
|
129
|
+
toolChoice: {
|
|
130
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string]>;
|
|
131
|
+
isOptional: true;
|
|
132
|
+
};
|
|
133
|
+
maxIterations: {
|
|
134
|
+
type: _contractspec_lib_schema367.FieldType<number, number>;
|
|
135
|
+
isOptional: true;
|
|
136
|
+
};
|
|
137
|
+
maxTokensPerRun: {
|
|
138
|
+
type: _contractspec_lib_schema367.FieldType<number, number>;
|
|
139
|
+
isOptional: true;
|
|
140
|
+
};
|
|
141
|
+
timeoutMs: {
|
|
142
|
+
type: _contractspec_lib_schema367.FieldType<number, number>;
|
|
143
|
+
isOptional: true;
|
|
144
|
+
};
|
|
145
|
+
tags: {
|
|
146
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
147
|
+
isArray: true;
|
|
148
|
+
isOptional: true;
|
|
149
|
+
};
|
|
150
|
+
}>, _contractspec_lib_schema367.SchemaModel<{
|
|
151
|
+
id: {
|
|
152
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
153
|
+
isOptional: false;
|
|
154
|
+
};
|
|
155
|
+
name: {
|
|
156
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
157
|
+
isOptional: false;
|
|
158
|
+
};
|
|
159
|
+
status: {
|
|
160
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string, string]>;
|
|
161
|
+
isOptional: false;
|
|
162
|
+
};
|
|
163
|
+
updatedAt: {
|
|
164
|
+
type: _contractspec_lib_schema367.FieldType<Date, string>;
|
|
165
|
+
isOptional: false;
|
|
166
|
+
};
|
|
167
|
+
}>, {
|
|
168
|
+
key: string;
|
|
169
|
+
version: string;
|
|
170
|
+
stability: string;
|
|
171
|
+
owners: "@agent-console-team"[];
|
|
172
|
+
tags: string[];
|
|
173
|
+
when: string;
|
|
174
|
+
payload: _contractspec_lib_schema367.SchemaModel<{
|
|
175
|
+
id: {
|
|
176
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
177
|
+
isOptional: false;
|
|
178
|
+
};
|
|
179
|
+
name: {
|
|
180
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
181
|
+
isOptional: false;
|
|
182
|
+
};
|
|
183
|
+
slug: {
|
|
184
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
185
|
+
isOptional: false;
|
|
186
|
+
};
|
|
187
|
+
description: {
|
|
188
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
189
|
+
isOptional: true;
|
|
190
|
+
};
|
|
191
|
+
status: {
|
|
192
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string, string]>;
|
|
193
|
+
isOptional: false;
|
|
194
|
+
};
|
|
195
|
+
modelProvider: {
|
|
196
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string, string, string]>;
|
|
197
|
+
isOptional: false;
|
|
198
|
+
};
|
|
199
|
+
modelName: {
|
|
200
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
201
|
+
isOptional: false;
|
|
202
|
+
};
|
|
203
|
+
version: {
|
|
204
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
205
|
+
isOptional: false;
|
|
206
|
+
};
|
|
207
|
+
createdAt: {
|
|
208
|
+
type: _contractspec_lib_schema367.FieldType<Date, string>;
|
|
209
|
+
isOptional: false;
|
|
210
|
+
};
|
|
211
|
+
}>;
|
|
212
|
+
}[]>;
|
|
213
|
+
/**
|
|
214
|
+
* GetAgentQuery - Retrieves an agent by ID.
|
|
215
|
+
*/
|
|
216
|
+
declare const GetAgentQuery: _contractspec_lib_contracts19.OperationSpec<_contractspec_lib_schema367.SchemaModel<{
|
|
217
|
+
agentId: {
|
|
218
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
219
|
+
isOptional: false;
|
|
220
|
+
};
|
|
221
|
+
includeTools: {
|
|
222
|
+
type: _contractspec_lib_schema367.FieldType<boolean, boolean>;
|
|
223
|
+
isOptional: true;
|
|
224
|
+
};
|
|
225
|
+
}>, _contractspec_lib_schema367.SchemaModel<{
|
|
226
|
+
id: {
|
|
227
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
228
|
+
isOptional: false;
|
|
229
|
+
};
|
|
230
|
+
organizationId: {
|
|
231
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
232
|
+
isOptional: false;
|
|
233
|
+
};
|
|
234
|
+
name: {
|
|
235
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
236
|
+
isOptional: false;
|
|
237
|
+
};
|
|
238
|
+
slug: {
|
|
239
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
240
|
+
isOptional: false;
|
|
241
|
+
};
|
|
242
|
+
description: {
|
|
243
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
244
|
+
isOptional: true;
|
|
245
|
+
};
|
|
246
|
+
status: {
|
|
247
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string, string]>;
|
|
248
|
+
isOptional: false;
|
|
249
|
+
};
|
|
250
|
+
modelProvider: {
|
|
251
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string, string, string]>;
|
|
252
|
+
isOptional: false;
|
|
253
|
+
};
|
|
254
|
+
modelName: {
|
|
255
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
256
|
+
isOptional: false;
|
|
257
|
+
};
|
|
258
|
+
modelConfig: {
|
|
259
|
+
type: _contractspec_lib_schema367.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
260
|
+
isOptional: true;
|
|
261
|
+
};
|
|
262
|
+
systemPrompt: {
|
|
263
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
264
|
+
isOptional: false;
|
|
265
|
+
};
|
|
266
|
+
userPromptTemplate: {
|
|
267
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
268
|
+
isOptional: true;
|
|
269
|
+
};
|
|
270
|
+
toolIds: {
|
|
271
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
272
|
+
isArray: true;
|
|
273
|
+
isOptional: true;
|
|
274
|
+
};
|
|
275
|
+
toolChoice: {
|
|
276
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string]>;
|
|
277
|
+
isOptional: false;
|
|
278
|
+
};
|
|
279
|
+
maxIterations: {
|
|
280
|
+
type: _contractspec_lib_schema367.FieldType<number, number>;
|
|
281
|
+
isOptional: false;
|
|
282
|
+
};
|
|
283
|
+
maxTokensPerRun: {
|
|
284
|
+
type: _contractspec_lib_schema367.FieldType<number, number>;
|
|
285
|
+
isOptional: true;
|
|
286
|
+
};
|
|
287
|
+
timeoutMs: {
|
|
288
|
+
type: _contractspec_lib_schema367.FieldType<number, number>;
|
|
289
|
+
isOptional: false;
|
|
290
|
+
};
|
|
291
|
+
version: {
|
|
292
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
293
|
+
isOptional: false;
|
|
294
|
+
};
|
|
295
|
+
tags: {
|
|
296
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
297
|
+
isArray: true;
|
|
298
|
+
isOptional: true;
|
|
299
|
+
};
|
|
300
|
+
createdAt: {
|
|
301
|
+
type: _contractspec_lib_schema367.FieldType<Date, string>;
|
|
302
|
+
isOptional: false;
|
|
303
|
+
};
|
|
304
|
+
updatedAt: {
|
|
305
|
+
type: _contractspec_lib_schema367.FieldType<Date, string>;
|
|
306
|
+
isOptional: false;
|
|
307
|
+
};
|
|
308
|
+
tools: {
|
|
309
|
+
type: _contractspec_lib_schema367.SchemaModel<{
|
|
310
|
+
id: {
|
|
311
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
312
|
+
isOptional: false;
|
|
313
|
+
};
|
|
314
|
+
name: {
|
|
315
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
316
|
+
isOptional: false;
|
|
317
|
+
};
|
|
318
|
+
slug: {
|
|
319
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
320
|
+
isOptional: false;
|
|
321
|
+
};
|
|
322
|
+
description: {
|
|
323
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
324
|
+
isOptional: false;
|
|
325
|
+
};
|
|
326
|
+
category: {
|
|
327
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
328
|
+
isOptional: false;
|
|
329
|
+
};
|
|
330
|
+
}>;
|
|
331
|
+
isArray: true;
|
|
332
|
+
isOptional: true;
|
|
333
|
+
};
|
|
334
|
+
}>, undefined>;
|
|
335
|
+
/**
|
|
336
|
+
* ListAgentsQuery - Lists agents for an organization.
|
|
337
|
+
*/
|
|
338
|
+
declare const ListAgentsQuery: _contractspec_lib_contracts19.OperationSpec<_contractspec_lib_schema367.SchemaModel<{
|
|
339
|
+
organizationId: {
|
|
340
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
341
|
+
isOptional: false;
|
|
342
|
+
};
|
|
343
|
+
status: {
|
|
344
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string, string]>;
|
|
345
|
+
isOptional: true;
|
|
346
|
+
};
|
|
347
|
+
modelProvider: {
|
|
348
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string, string, string]>;
|
|
349
|
+
isOptional: true;
|
|
350
|
+
};
|
|
351
|
+
search: {
|
|
352
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
353
|
+
isOptional: true;
|
|
354
|
+
};
|
|
355
|
+
limit: {
|
|
356
|
+
type: _contractspec_lib_schema367.FieldType<number, number>;
|
|
357
|
+
isOptional: true;
|
|
358
|
+
defaultValue: number;
|
|
359
|
+
};
|
|
360
|
+
offset: {
|
|
361
|
+
type: _contractspec_lib_schema367.FieldType<number, number>;
|
|
362
|
+
isOptional: true;
|
|
363
|
+
defaultValue: number;
|
|
364
|
+
};
|
|
365
|
+
}>, _contractspec_lib_schema367.SchemaModel<{
|
|
366
|
+
items: {
|
|
367
|
+
type: _contractspec_lib_schema367.SchemaModel<{
|
|
368
|
+
id: {
|
|
369
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
370
|
+
isOptional: false;
|
|
371
|
+
};
|
|
372
|
+
name: {
|
|
373
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
374
|
+
isOptional: false;
|
|
375
|
+
};
|
|
376
|
+
slug: {
|
|
377
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
378
|
+
isOptional: false;
|
|
379
|
+
};
|
|
380
|
+
description: {
|
|
381
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
382
|
+
isOptional: true;
|
|
383
|
+
};
|
|
384
|
+
status: {
|
|
385
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string, string]>;
|
|
386
|
+
isOptional: false;
|
|
387
|
+
};
|
|
388
|
+
modelProvider: {
|
|
389
|
+
type: _contractspec_lib_schema367.EnumType<[string, string, string, string, string]>;
|
|
390
|
+
isOptional: false;
|
|
391
|
+
};
|
|
392
|
+
modelName: {
|
|
393
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
394
|
+
isOptional: false;
|
|
395
|
+
};
|
|
396
|
+
version: {
|
|
397
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
398
|
+
isOptional: false;
|
|
399
|
+
};
|
|
400
|
+
createdAt: {
|
|
401
|
+
type: _contractspec_lib_schema367.FieldType<Date, string>;
|
|
402
|
+
isOptional: false;
|
|
403
|
+
};
|
|
404
|
+
}>;
|
|
405
|
+
isArray: true;
|
|
406
|
+
isOptional: false;
|
|
407
|
+
};
|
|
408
|
+
total: {
|
|
409
|
+
type: _contractspec_lib_schema367.FieldType<number, number>;
|
|
410
|
+
isOptional: false;
|
|
411
|
+
};
|
|
412
|
+
hasMore: {
|
|
413
|
+
type: _contractspec_lib_schema367.FieldType<boolean, boolean>;
|
|
414
|
+
isOptional: false;
|
|
415
|
+
};
|
|
416
|
+
}>, undefined>;
|
|
417
|
+
/**
|
|
418
|
+
* AssignToolToAgentCommand - Assigns a tool to an agent.
|
|
419
|
+
*/
|
|
420
|
+
declare const AssignToolToAgentCommand: _contractspec_lib_contracts19.OperationSpec<_contractspec_lib_schema367.SchemaModel<{
|
|
421
|
+
agentId: {
|
|
422
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
423
|
+
isOptional: false;
|
|
424
|
+
};
|
|
425
|
+
toolId: {
|
|
426
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
427
|
+
isOptional: false;
|
|
428
|
+
};
|
|
429
|
+
config: {
|
|
430
|
+
type: _contractspec_lib_schema367.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
431
|
+
isOptional: true;
|
|
432
|
+
};
|
|
433
|
+
order: {
|
|
434
|
+
type: _contractspec_lib_schema367.FieldType<number, number>;
|
|
435
|
+
isOptional: true;
|
|
436
|
+
};
|
|
437
|
+
}>, _contractspec_lib_schema367.SchemaModel<{
|
|
438
|
+
agentToolId: {
|
|
439
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
440
|
+
isOptional: false;
|
|
441
|
+
};
|
|
442
|
+
agentId: {
|
|
443
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
444
|
+
isOptional: false;
|
|
445
|
+
};
|
|
446
|
+
toolId: {
|
|
447
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
448
|
+
isOptional: false;
|
|
449
|
+
};
|
|
450
|
+
}>, undefined>;
|
|
451
|
+
/**
|
|
452
|
+
* RemoveToolFromAgentCommand - Removes a tool from an agent.
|
|
453
|
+
*/
|
|
454
|
+
declare const RemoveToolFromAgentCommand: _contractspec_lib_contracts19.OperationSpec<_contractspec_lib_schema367.SchemaModel<{
|
|
455
|
+
agentId: {
|
|
456
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
457
|
+
isOptional: false;
|
|
458
|
+
};
|
|
459
|
+
toolId: {
|
|
460
|
+
type: _contractspec_lib_schema367.FieldType<string, string>;
|
|
461
|
+
isOptional: false;
|
|
462
|
+
};
|
|
463
|
+
}>, _contractspec_lib_schema367.SchemaModel<{
|
|
464
|
+
success: {
|
|
465
|
+
type: _contractspec_lib_schema367.FieldType<boolean, boolean>;
|
|
466
|
+
isOptional: false;
|
|
467
|
+
};
|
|
468
|
+
}>, undefined>;
|
|
469
|
+
//#endregion
|
|
470
|
+
export { AssignToolToAgentCommand, CreateAgentCommand, GetAgentQuery, ListAgentsQuery, RemoveToolFromAgentCommand, UpdateAgentCommand };
|
|
471
|
+
//# sourceMappingURL=agent.operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.operation.d.ts","names":[],"sources":["../../src/agent/agent.operation.ts"],"sourcesContent":[],"mappings":";;;;;;;cAmBa,kDAAkB,0CAAA;EAAlB,cAAA,EAAA;IAiFX,IAAA,EAAA,2BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;EAjF6B,CAAA;;;;;;+CAAA,OAAA,CAAA,MAAA,EAAA,OAAA,CAAA,QAAA,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA;IAAA,UAAA,EAAA,IAAA;EAsFlB,CAAA;EA8EX,YAAA,EAAA;;;;;;;;;;;;;;;;EA9E6B,CAAA;;;;;;;;;;;;;;;;;;CAAA,CAAA,yCAAA,CAAA;EAmFlB,EAAA,EAAA;IA0DX,IAAA,EAnO6B,2BAAA,CAAA,SAmO7B,CAAA,MAAA,EAAA,MAAA,CAAA;;;EA1DwB,IAAA,EAAA;;;;;;;;;;;;;;;;;;;cAnFb,kDAAkB,0CAAA;;UA8E7B,2BAAA,CAAA;;;;;;;;;;;EAKwB,MAAA,EAAA;IA+Db,IAAA,sCAmEX,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;IAnE0B,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;EAAA,CAAA;EAwEf,aAAA,EAAA;IAsEX,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAtEmC,SAAA,EAAA;;;;;IAAA,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IA2ExB,OAAA,EAAA,IAAA;IA6CX,UAAA,EAAA,IAAA;;2CA7CqC,CAAA;EAAA,EAAA,EAAA;UArSR,2BAAA,CAAA;;EAqSQ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAlN1B,6CAAa,0CAAA;;UA0DxB,2BAAA,CAAA;;;;;;;;;UA1DwB,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+Db,+CAAe,0CAAA;;UAmE1B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAnE0B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwEf,wDAAwB,0CAAA;;UAsEnC,2BAAA,CAAA;;;;;;;;;;;;;;;;;UAtEmC,2BAAA,CAAA;;;;;;;;;;;;;;;cA2ExB,0DAA0B,0CAAA;;UA6CrC,2BAAA,CAAA;;;;;;;;;UA7CqC,2BAAA,CAAA"}
|