@contractspec/example.agent-console 3.8.8 → 3.8.10
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.log +225 -222
- package/CHANGELOG.md +34 -0
- package/dist/agent/agent.entity.js +1 -127
- package/dist/agent/agent.enum.js +1 -25
- package/dist/agent/agent.event.js +1 -116
- package/dist/agent/agent.handler.js +1 -1030
- package/dist/agent/agent.operation.js +1 -735
- package/dist/agent/agent.presentation.js +1 -282
- package/dist/agent/agent.schema.js +1 -215
- package/dist/agent/agent.test-spec.js +1 -58
- package/dist/agent/index.js +1 -1248
- package/dist/agent.capability.js +1 -19
- package/dist/agent.feature.js +1 -305
- package/dist/browser/agent/agent.entity.js +1 -127
- package/dist/browser/agent/agent.enum.js +1 -25
- package/dist/browser/agent/agent.event.js +1 -116
- package/dist/browser/agent/agent.handler.js +1 -1030
- package/dist/browser/agent/agent.operation.js +1 -735
- package/dist/browser/agent/agent.presentation.js +1 -282
- package/dist/browser/agent/agent.schema.js +1 -215
- package/dist/browser/agent/agent.test-spec.js +1 -58
- package/dist/browser/agent/index.js +1 -1248
- package/dist/browser/agent.capability.js +1 -19
- package/dist/browser/agent.feature.js +1 -305
- package/dist/browser/docs/agent-console.docblock.js +5 -49
- package/dist/browser/docs/index.js +5 -49
- package/dist/browser/example.js +1 -41
- package/dist/browser/handlers/agent.handlers.js +6 -2143
- package/dist/browser/handlers/index.js +6 -2943
- package/dist/browser/index.js +14 -6828
- package/dist/browser/presentations/index.js +1 -693
- package/dist/browser/run/index.js +1 -1363
- package/dist/browser/run/run.entity.js +1 -160
- package/dist/browser/run/run.enum.js +1 -34
- package/dist/browser/run/run.event.js +1 -217
- package/dist/browser/run/run.handler.js +1 -919
- package/dist/browser/run/run.operation.js +1 -667
- package/dist/browser/run/run.presentation.js +1 -223
- package/dist/browser/run/run.schema.js +1 -179
- package/dist/browser/run/run.test-spec.js +1 -58
- package/dist/browser/seeders/index.js +2 -21
- package/dist/browser/shared/index.js +1 -626
- package/dist/browser/shared/mock-agents.js +1 -82
- package/dist/browser/shared/mock-runs.js +1 -113
- package/dist/browser/shared/mock-tools.js +1 -146
- package/dist/browser/tool/index.js +1 -949
- package/dist/browser/tool/tool.entity.js +1 -90
- package/dist/browser/tool/tool.enum.js +1 -26
- package/dist/browser/tool/tool.event.js +1 -99
- package/dist/browser/tool/tool.handler.js +1 -699
- package/dist/browser/tool/tool.operation.js +1 -482
- package/dist/browser/tool/tool.presentation.js +1 -188
- package/dist/browser/tool/tool.schema.js +1 -141
- package/dist/browser/tool/tool.test-spec.js +1 -58
- package/dist/browser/ui/AgentDashboard.js +1 -2527
- package/dist/browser/ui/AgentDashboard.visualizations.js +1 -217
- package/dist/browser/ui/AgentRunList.js +1 -482
- package/dist/browser/ui/AgentToolRegistry.js +1 -212
- package/dist/browser/ui/ExecutionConsoleHost.js +1 -0
- package/dist/browser/ui/hooks/index.js +1 -740
- package/dist/browser/ui/hooks/useAgentList.js +1 -55
- package/dist/browser/ui/hooks/useAgentMutations.js +1 -530
- package/dist/browser/ui/hooks/useRunList.js +1 -70
- package/dist/browser/ui/hooks/useToolList.js +1 -85
- package/dist/browser/ui/index.js +5 -3018
- package/dist/browser/ui/modals/AgentActionsModal.js +1 -304
- package/dist/browser/ui/modals/CreateAgentModal.js +1 -243
- package/dist/browser/ui/modals/index.js +1 -546
- package/dist/browser/ui/overlays/demo-overlays.js +1 -64
- package/dist/browser/ui/overlays/index.js +1 -64
- package/dist/browser/ui/renderers/agent-list.markdown.js +2 -64
- package/dist/browser/ui/renderers/agent-list.renderer.js +1 -180
- package/dist/browser/ui/renderers/dashboard.markdown.js +2 -288
- package/dist/browser/ui/renderers/index.js +5 -642
- package/dist/browser/ui/renderers/run-list.markdown.js +2 -50
- package/dist/browser/ui/renderers/tool-registry.markdown.js +2 -64
- package/dist/browser/ui/views/AgentListView.js +1 -165
- package/dist/browser/ui/views/RunDataTable.js +1 -326
- package/dist/browser/ui/views/RunListView.js +1 -479
- package/dist/browser/ui/views/ToolRegistryView.js +1 -209
- package/dist/browser/ui/views/index.js +1 -851
- package/dist/browser/ui/views/run-data-table.columns.js +1 -271
- package/dist/browser/ui/views/run-list.shared.js +1 -177
- package/dist/browser/visualizations/catalog.js +1 -134
- package/dist/browser/visualizations/index.js +1 -187
- package/dist/browser/visualizations/selectors.js +1 -181
- package/dist/docs/agent-console.docblock.js +5 -49
- package/dist/docs/index.js +5 -49
- package/dist/example.js +1 -41
- package/dist/handlers/agent.handlers.js +6 -2143
- package/dist/handlers/index.js +6 -2943
- package/dist/index.js +14 -6828
- package/dist/node/agent/agent.entity.js +1 -127
- package/dist/node/agent/agent.enum.js +1 -25
- package/dist/node/agent/agent.event.js +1 -116
- package/dist/node/agent/agent.handler.js +1 -1030
- package/dist/node/agent/agent.operation.js +1 -735
- package/dist/node/agent/agent.presentation.js +1 -282
- package/dist/node/agent/agent.schema.js +1 -215
- package/dist/node/agent/agent.test-spec.js +1 -58
- package/dist/node/agent/index.js +1 -1248
- package/dist/node/agent.capability.js +1 -19
- package/dist/node/agent.feature.js +1 -305
- package/dist/node/docs/agent-console.docblock.js +5 -49
- package/dist/node/docs/index.js +5 -49
- package/dist/node/example.js +1 -41
- package/dist/node/handlers/agent.handlers.js +6 -2143
- package/dist/node/handlers/index.js +6 -2943
- package/dist/node/index.js +14 -6828
- package/dist/node/presentations/index.js +1 -693
- package/dist/node/run/index.js +1 -1363
- package/dist/node/run/run.entity.js +1 -160
- package/dist/node/run/run.enum.js +1 -34
- package/dist/node/run/run.event.js +1 -217
- package/dist/node/run/run.handler.js +1 -919
- package/dist/node/run/run.operation.js +1 -667
- package/dist/node/run/run.presentation.js +1 -223
- package/dist/node/run/run.schema.js +1 -179
- package/dist/node/run/run.test-spec.js +1 -58
- package/dist/node/seeders/index.js +2 -21
- package/dist/node/shared/index.js +1 -626
- package/dist/node/shared/mock-agents.js +1 -82
- package/dist/node/shared/mock-runs.js +1 -113
- package/dist/node/shared/mock-tools.js +1 -146
- package/dist/node/tool/index.js +1 -949
- package/dist/node/tool/tool.entity.js +1 -90
- package/dist/node/tool/tool.enum.js +1 -26
- package/dist/node/tool/tool.event.js +1 -99
- package/dist/node/tool/tool.handler.js +1 -699
- package/dist/node/tool/tool.operation.js +1 -482
- package/dist/node/tool/tool.presentation.js +1 -188
- package/dist/node/tool/tool.schema.js +1 -141
- package/dist/node/tool/tool.test-spec.js +1 -58
- package/dist/node/ui/AgentDashboard.js +1 -2527
- package/dist/node/ui/AgentDashboard.visualizations.js +1 -217
- package/dist/node/ui/AgentRunList.js +1 -482
- package/dist/node/ui/AgentToolRegistry.js +1 -212
- package/dist/node/ui/ExecutionConsoleHost.js +1 -0
- package/dist/node/ui/hooks/index.js +1 -740
- package/dist/node/ui/hooks/useAgentList.js +1 -55
- package/dist/node/ui/hooks/useAgentMutations.js +1 -530
- package/dist/node/ui/hooks/useRunList.js +1 -70
- package/dist/node/ui/hooks/useToolList.js +1 -85
- package/dist/node/ui/index.js +5 -3018
- package/dist/node/ui/modals/AgentActionsModal.js +1 -304
- package/dist/node/ui/modals/CreateAgentModal.js +1 -243
- package/dist/node/ui/modals/index.js +1 -546
- package/dist/node/ui/overlays/demo-overlays.js +1 -64
- package/dist/node/ui/overlays/index.js +1 -64
- package/dist/node/ui/renderers/agent-list.markdown.js +2 -64
- package/dist/node/ui/renderers/agent-list.renderer.js +1 -180
- package/dist/node/ui/renderers/dashboard.markdown.js +2 -288
- package/dist/node/ui/renderers/index.js +5 -642
- package/dist/node/ui/renderers/run-list.markdown.js +2 -50
- package/dist/node/ui/renderers/tool-registry.markdown.js +2 -64
- package/dist/node/ui/views/AgentListView.js +1 -165
- package/dist/node/ui/views/RunDataTable.js +1 -326
- package/dist/node/ui/views/RunListView.js +1 -479
- package/dist/node/ui/views/ToolRegistryView.js +1 -209
- package/dist/node/ui/views/index.js +1 -851
- package/dist/node/ui/views/run-data-table.columns.js +1 -271
- package/dist/node/ui/views/run-list.shared.js +1 -177
- package/dist/node/visualizations/catalog.js +1 -134
- package/dist/node/visualizations/index.js +1 -187
- package/dist/node/visualizations/selectors.js +1 -181
- package/dist/presentations/index.js +1 -693
- package/dist/run/index.js +1 -1363
- package/dist/run/run.entity.js +1 -160
- package/dist/run/run.enum.js +1 -34
- package/dist/run/run.event.js +1 -217
- package/dist/run/run.handler.js +1 -919
- package/dist/run/run.operation.js +1 -667
- package/dist/run/run.presentation.js +1 -223
- package/dist/run/run.schema.js +1 -179
- package/dist/run/run.test-spec.js +1 -58
- package/dist/seeders/index.js +2 -21
- package/dist/shared/index.js +1 -626
- package/dist/shared/mock-agents.js +1 -82
- package/dist/shared/mock-runs.js +1 -113
- package/dist/shared/mock-tools.js +1 -146
- package/dist/tool/index.js +1 -949
- package/dist/tool/tool.entity.js +1 -90
- package/dist/tool/tool.enum.js +1 -26
- package/dist/tool/tool.event.js +1 -99
- package/dist/tool/tool.handler.js +1 -699
- package/dist/tool/tool.operation.js +1 -482
- package/dist/tool/tool.presentation.js +1 -188
- package/dist/tool/tool.schema.js +1 -141
- package/dist/tool/tool.test-spec.js +1 -58
- package/dist/ui/AgentDashboard.js +1 -2527
- package/dist/ui/AgentDashboard.visualizations.js +1 -217
- package/dist/ui/AgentRunList.js +1 -482
- package/dist/ui/AgentToolRegistry.js +1 -212
- package/dist/ui/ExecutionConsoleHost.d.ts +1 -0
- package/dist/ui/ExecutionConsoleHost.js +2 -0
- package/dist/ui/ExecutionConsoleHost.test.d.ts +1 -0
- package/dist/ui/hooks/index.js +1 -740
- package/dist/ui/hooks/useAgentList.js +1 -55
- package/dist/ui/hooks/useAgentMutations.js +1 -530
- package/dist/ui/hooks/useRunList.js +1 -70
- package/dist/ui/hooks/useToolList.js +1 -85
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +5 -3018
- package/dist/ui/modals/AgentActionsModal.js +1 -304
- package/dist/ui/modals/CreateAgentModal.js +1 -243
- package/dist/ui/modals/index.js +1 -546
- package/dist/ui/overlays/demo-overlays.js +1 -64
- package/dist/ui/overlays/index.js +1 -64
- package/dist/ui/renderers/agent-list.markdown.js +2 -64
- package/dist/ui/renderers/agent-list.renderer.js +1 -180
- package/dist/ui/renderers/dashboard.markdown.js +2 -288
- package/dist/ui/renderers/index.js +5 -642
- package/dist/ui/renderers/run-list.markdown.js +2 -50
- package/dist/ui/renderers/tool-registry.markdown.js +2 -64
- package/dist/ui/views/AgentListView.js +1 -165
- package/dist/ui/views/RunDataTable.js +1 -326
- package/dist/ui/views/RunListView.js +1 -479
- package/dist/ui/views/ToolRegistryView.js +1 -209
- package/dist/ui/views/index.js +1 -851
- package/dist/ui/views/run-data-table.columns.js +1 -271
- package/dist/ui/views/run-list.shared.js +1 -177
- package/dist/visualizations/catalog.js +1 -134
- package/dist/visualizations/index.js +1 -187
- package/dist/visualizations/selectors.js +1 -181
- package/package.json +29 -13
- package/src/ui/ExecutionConsoleHost.test.tsx +110 -0
- package/src/ui/ExecutionConsoleHost.tsx +14 -0
- package/src/ui/index.ts +1 -1
|
@@ -1,693 +1 @@
|
|
|
1
|
-
// src/agent/agent.enum.ts
|
|
2
|
-
import { defineEnum } from "@contractspec/lib.schema";
|
|
3
|
-
var AgentStatusEnum = defineEnum("AgentStatus", [
|
|
4
|
-
"DRAFT",
|
|
5
|
-
"ACTIVE",
|
|
6
|
-
"PAUSED",
|
|
7
|
-
"ARCHIVED"
|
|
8
|
-
]);
|
|
9
|
-
var ModelProviderEnum = defineEnum("ModelProvider", [
|
|
10
|
-
"OPENAI",
|
|
11
|
-
"ANTHROPIC",
|
|
12
|
-
"GOOGLE",
|
|
13
|
-
"MISTRAL",
|
|
14
|
-
"CUSTOM"
|
|
15
|
-
]);
|
|
16
|
-
var ToolChoiceEnum = defineEnum("ToolChoice", [
|
|
17
|
-
"auto",
|
|
18
|
-
"required",
|
|
19
|
-
"none"
|
|
20
|
-
]);
|
|
21
|
-
|
|
22
|
-
// src/agent/agent.schema.ts
|
|
23
|
-
import { defineSchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
24
|
-
var AgentModel = defineSchemaModel({
|
|
25
|
-
name: "Agent",
|
|
26
|
-
description: "AI agent configuration",
|
|
27
|
-
fields: {
|
|
28
|
-
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
29
|
-
organizationId: {
|
|
30
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
31
|
-
isOptional: false
|
|
32
|
-
},
|
|
33
|
-
name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
34
|
-
slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
35
|
-
description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
36
|
-
status: { type: AgentStatusEnum, isOptional: false },
|
|
37
|
-
modelProvider: { type: ModelProviderEnum, isOptional: false },
|
|
38
|
-
modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
39
|
-
modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
|
|
40
|
-
systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
41
|
-
userPromptTemplate: {
|
|
42
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
43
|
-
isOptional: true
|
|
44
|
-
},
|
|
45
|
-
toolIds: {
|
|
46
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
47
|
-
isArray: true,
|
|
48
|
-
isOptional: true
|
|
49
|
-
},
|
|
50
|
-
toolChoice: {
|
|
51
|
-
type: ToolChoiceEnum,
|
|
52
|
-
isOptional: false,
|
|
53
|
-
defaultValue: "auto"
|
|
54
|
-
},
|
|
55
|
-
maxIterations: {
|
|
56
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
57
|
-
isOptional: false,
|
|
58
|
-
defaultValue: 10
|
|
59
|
-
},
|
|
60
|
-
maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
61
|
-
timeoutMs: {
|
|
62
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
63
|
-
isOptional: false,
|
|
64
|
-
defaultValue: 120000
|
|
65
|
-
},
|
|
66
|
-
version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
67
|
-
tags: {
|
|
68
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
69
|
-
isArray: true,
|
|
70
|
-
isOptional: true
|
|
71
|
-
},
|
|
72
|
-
createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
73
|
-
updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
var AgentSummaryModel = defineSchemaModel({
|
|
77
|
-
name: "AgentSummary",
|
|
78
|
-
description: "Summary of an agent for list views",
|
|
79
|
-
fields: {
|
|
80
|
-
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
81
|
-
name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
82
|
-
slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
83
|
-
description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
84
|
-
status: { type: AgentStatusEnum, isOptional: false },
|
|
85
|
-
modelProvider: { type: ModelProviderEnum, isOptional: false },
|
|
86
|
-
modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
87
|
-
version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
88
|
-
createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
var AgentToolRefModel = defineSchemaModel({
|
|
92
|
-
name: "AgentToolRef",
|
|
93
|
-
description: "Tool reference in agent context",
|
|
94
|
-
fields: {
|
|
95
|
-
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
96
|
-
name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
97
|
-
slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
98
|
-
description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
99
|
-
category: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
var AgentWithToolsModel = defineSchemaModel({
|
|
103
|
-
name: "AgentWithTools",
|
|
104
|
-
description: "Agent with associated tools",
|
|
105
|
-
fields: {
|
|
106
|
-
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
107
|
-
organizationId: {
|
|
108
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
109
|
-
isOptional: false
|
|
110
|
-
},
|
|
111
|
-
name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
112
|
-
slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
113
|
-
description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
114
|
-
status: { type: AgentStatusEnum, isOptional: false },
|
|
115
|
-
modelProvider: { type: ModelProviderEnum, isOptional: false },
|
|
116
|
-
modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
117
|
-
modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
|
|
118
|
-
systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
119
|
-
userPromptTemplate: {
|
|
120
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
121
|
-
isOptional: true
|
|
122
|
-
},
|
|
123
|
-
toolIds: {
|
|
124
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
125
|
-
isArray: true,
|
|
126
|
-
isOptional: true
|
|
127
|
-
},
|
|
128
|
-
toolChoice: { type: ToolChoiceEnum, isOptional: false },
|
|
129
|
-
maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
130
|
-
maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
131
|
-
timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
132
|
-
version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
133
|
-
tags: {
|
|
134
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
135
|
-
isArray: true,
|
|
136
|
-
isOptional: true
|
|
137
|
-
},
|
|
138
|
-
createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
139
|
-
updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
140
|
-
tools: { type: AgentToolRefModel, isArray: true, isOptional: true }
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
var CreateAgentInputModel = defineSchemaModel({
|
|
144
|
-
name: "CreateAgentInput",
|
|
145
|
-
description: "Input for creating an agent",
|
|
146
|
-
fields: {
|
|
147
|
-
organizationId: {
|
|
148
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
149
|
-
isOptional: false
|
|
150
|
-
},
|
|
151
|
-
name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
152
|
-
slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
153
|
-
description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
154
|
-
modelProvider: { type: ModelProviderEnum, isOptional: false },
|
|
155
|
-
modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
156
|
-
modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
|
|
157
|
-
systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
158
|
-
userPromptTemplate: {
|
|
159
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
160
|
-
isOptional: true
|
|
161
|
-
},
|
|
162
|
-
toolIds: {
|
|
163
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
164
|
-
isArray: true,
|
|
165
|
-
isOptional: true
|
|
166
|
-
},
|
|
167
|
-
toolChoice: { type: ToolChoiceEnum, isOptional: true },
|
|
168
|
-
maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
169
|
-
maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
170
|
-
timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
171
|
-
tags: {
|
|
172
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
173
|
-
isArray: true,
|
|
174
|
-
isOptional: true
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
var UpdateAgentInputModel = defineSchemaModel({
|
|
179
|
-
name: "UpdateAgentInput",
|
|
180
|
-
description: "Input for updating an agent",
|
|
181
|
-
fields: {
|
|
182
|
-
agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
183
|
-
name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: true },
|
|
184
|
-
description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
185
|
-
status: { type: AgentStatusEnum, isOptional: true },
|
|
186
|
-
modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
|
|
187
|
-
systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
188
|
-
userPromptTemplate: {
|
|
189
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
190
|
-
isOptional: true
|
|
191
|
-
},
|
|
192
|
-
toolIds: {
|
|
193
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
194
|
-
isArray: true,
|
|
195
|
-
isOptional: true
|
|
196
|
-
},
|
|
197
|
-
toolChoice: { type: ToolChoiceEnum, isOptional: true },
|
|
198
|
-
maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
199
|
-
maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
200
|
-
timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
201
|
-
tags: {
|
|
202
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
203
|
-
isArray: true,
|
|
204
|
-
isOptional: true
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
// src/agent/agent.presentation.ts
|
|
210
|
-
import {
|
|
211
|
-
definePresentation,
|
|
212
|
-
StabilityEnum
|
|
213
|
-
} from "@contractspec/lib.contracts-spec";
|
|
214
|
-
var AgentListPresentation = definePresentation({
|
|
215
|
-
meta: {
|
|
216
|
-
key: "agent-console.agent.viewList",
|
|
217
|
-
version: "1.0.0",
|
|
218
|
-
title: "Agent List",
|
|
219
|
-
description: "List view of AI agents with status, model provider, and version info",
|
|
220
|
-
goal: "Provide an overview of all agents in an organization.",
|
|
221
|
-
context: "Main landing page for agent management.",
|
|
222
|
-
domain: "agent-console",
|
|
223
|
-
owners: ["@agent-console-team"],
|
|
224
|
-
tags: ["agent", "list", "dashboard"],
|
|
225
|
-
stability: StabilityEnum.Experimental
|
|
226
|
-
},
|
|
227
|
-
source: {
|
|
228
|
-
type: "component",
|
|
229
|
-
framework: "react",
|
|
230
|
-
componentKey: "AgentListView",
|
|
231
|
-
props: AgentSummaryModel
|
|
232
|
-
},
|
|
233
|
-
targets: ["react", "markdown", "application/json"],
|
|
234
|
-
policy: { flags: ["agent-console.enabled"] }
|
|
235
|
-
});
|
|
236
|
-
var AgentDetailPresentation = definePresentation({
|
|
237
|
-
meta: {
|
|
238
|
-
key: "agent-console.agent.detail",
|
|
239
|
-
version: "1.0.0",
|
|
240
|
-
title: "Agent Details",
|
|
241
|
-
description: "Detailed view of an AI agent with configuration, tools, and recent runs",
|
|
242
|
-
goal: "Allow users to inspect and configure a specific agent.",
|
|
243
|
-
context: "Detailed view of an agent.",
|
|
244
|
-
domain: "agent-console",
|
|
245
|
-
owners: ["@agent-console-team"],
|
|
246
|
-
tags: ["agent", "detail"],
|
|
247
|
-
stability: StabilityEnum.Experimental
|
|
248
|
-
},
|
|
249
|
-
source: {
|
|
250
|
-
type: "component",
|
|
251
|
-
framework: "react",
|
|
252
|
-
componentKey: "AgentDetailView"
|
|
253
|
-
},
|
|
254
|
-
targets: ["react", "markdown"],
|
|
255
|
-
policy: { flags: ["agent-console.enabled"] }
|
|
256
|
-
});
|
|
257
|
-
var AgentConsoleDashboardPresentation = definePresentation({
|
|
258
|
-
meta: {
|
|
259
|
-
key: "agent-console.dashboard",
|
|
260
|
-
version: "1.0.0",
|
|
261
|
-
title: "Agent Console Dashboard",
|
|
262
|
-
description: "Dashboard overview of AI agents, runs, and tools",
|
|
263
|
-
goal: "Provide a high-level overview of the AI platform health and usage.",
|
|
264
|
-
context: "Root dashboard of the Agent Console.",
|
|
265
|
-
domain: "agent-console",
|
|
266
|
-
owners: ["@agent-console-team"],
|
|
267
|
-
tags: ["dashboard", "overview"],
|
|
268
|
-
stability: StabilityEnum.Experimental
|
|
269
|
-
},
|
|
270
|
-
source: {
|
|
271
|
-
type: "component",
|
|
272
|
-
framework: "react",
|
|
273
|
-
componentKey: "AgentConsoleDashboard"
|
|
274
|
-
},
|
|
275
|
-
targets: ["react", "markdown"],
|
|
276
|
-
policy: { flags: ["agent-console.enabled"] }
|
|
277
|
-
});
|
|
278
|
-
|
|
279
|
-
// src/run/run.enum.ts
|
|
280
|
-
import { defineEnum as defineEnum2 } from "@contractspec/lib.schema";
|
|
281
|
-
var RunStatusEnum = defineEnum2("RunStatus", [
|
|
282
|
-
"QUEUED",
|
|
283
|
-
"IN_PROGRESS",
|
|
284
|
-
"COMPLETED",
|
|
285
|
-
"FAILED",
|
|
286
|
-
"CANCELLED",
|
|
287
|
-
"EXPIRED"
|
|
288
|
-
]);
|
|
289
|
-
var RunStepTypeEnum = defineEnum2("RunStepType", [
|
|
290
|
-
"MESSAGE_CREATION",
|
|
291
|
-
"TOOL_CALL",
|
|
292
|
-
"TOOL_RESULT",
|
|
293
|
-
"ERROR"
|
|
294
|
-
]);
|
|
295
|
-
var LogLevelEnum = defineEnum2("LogLevel", [
|
|
296
|
-
"DEBUG",
|
|
297
|
-
"INFO",
|
|
298
|
-
"WARN",
|
|
299
|
-
"ERROR"
|
|
300
|
-
]);
|
|
301
|
-
var GranularityEnum = defineEnum2("Granularity", [
|
|
302
|
-
"hour",
|
|
303
|
-
"day",
|
|
304
|
-
"week",
|
|
305
|
-
"month"
|
|
306
|
-
]);
|
|
307
|
-
|
|
308
|
-
// src/run/run.schema.ts
|
|
309
|
-
import { defineSchemaModel as defineSchemaModel2, ScalarTypeEnum as ScalarTypeEnum2 } from "@contractspec/lib.schema";
|
|
310
|
-
var RunInputModel = defineSchemaModel2({
|
|
311
|
-
name: "RunInput",
|
|
312
|
-
description: "Input data for agent execution",
|
|
313
|
-
fields: {
|
|
314
|
-
message: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
|
|
315
|
-
context: { type: ScalarTypeEnum2.JSONObject(), isOptional: true }
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
var RunStepModel = defineSchemaModel2({
|
|
319
|
-
name: "RunStep",
|
|
320
|
-
description: "Individual step within a run",
|
|
321
|
-
fields: {
|
|
322
|
-
id: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
323
|
-
stepNumber: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: false },
|
|
324
|
-
type: { type: RunStepTypeEnum, isOptional: false },
|
|
325
|
-
toolId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
326
|
-
toolName: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
327
|
-
input: { type: ScalarTypeEnum2.JSONObject(), isOptional: true },
|
|
328
|
-
output: { type: ScalarTypeEnum2.JSONObject(), isOptional: true },
|
|
329
|
-
status: { type: RunStatusEnum, isOptional: false },
|
|
330
|
-
errorMessage: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
331
|
-
tokensUsed: {
|
|
332
|
-
type: ScalarTypeEnum2.Int_unsecure(),
|
|
333
|
-
isOptional: false,
|
|
334
|
-
defaultValue: 0
|
|
335
|
-
},
|
|
336
|
-
durationMs: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
|
|
337
|
-
startedAt: { type: ScalarTypeEnum2.DateTime(), isOptional: false },
|
|
338
|
-
completedAt: { type: ScalarTypeEnum2.DateTime(), isOptional: true }
|
|
339
|
-
}
|
|
340
|
-
});
|
|
341
|
-
var RunLogModel = defineSchemaModel2({
|
|
342
|
-
name: "RunLog",
|
|
343
|
-
description: "Execution log entry",
|
|
344
|
-
fields: {
|
|
345
|
-
id: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
346
|
-
stepId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
347
|
-
level: { type: LogLevelEnum, isOptional: false },
|
|
348
|
-
message: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
349
|
-
data: { type: ScalarTypeEnum2.JSONObject(), isOptional: true },
|
|
350
|
-
source: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
351
|
-
traceId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
352
|
-
spanId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
353
|
-
timestamp: { type: ScalarTypeEnum2.DateTime(), isOptional: false }
|
|
354
|
-
}
|
|
355
|
-
});
|
|
356
|
-
var RunAgentRefModel = defineSchemaModel2({
|
|
357
|
-
name: "RunAgentRef",
|
|
358
|
-
description: "Agent reference in a run",
|
|
359
|
-
fields: {
|
|
360
|
-
id: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
361
|
-
name: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
|
|
362
|
-
modelProvider: {
|
|
363
|
-
type: ScalarTypeEnum2.String_unsecure(),
|
|
364
|
-
isOptional: false
|
|
365
|
-
},
|
|
366
|
-
modelName: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false }
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
|
-
var RunModel = defineSchemaModel2({
|
|
370
|
-
name: "Run",
|
|
371
|
-
description: "Agent execution instance",
|
|
372
|
-
fields: {
|
|
373
|
-
id: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
374
|
-
organizationId: {
|
|
375
|
-
type: ScalarTypeEnum2.String_unsecure(),
|
|
376
|
-
isOptional: false
|
|
377
|
-
},
|
|
378
|
-
agentId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
379
|
-
userId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
380
|
-
sessionId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
381
|
-
input: { type: ScalarTypeEnum2.JSONObject(), isOptional: false },
|
|
382
|
-
output: { type: ScalarTypeEnum2.JSONObject(), isOptional: true },
|
|
383
|
-
status: { type: RunStatusEnum, isOptional: false },
|
|
384
|
-
errorMessage: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
385
|
-
errorCode: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
386
|
-
totalTokens: {
|
|
387
|
-
type: ScalarTypeEnum2.Int_unsecure(),
|
|
388
|
-
isOptional: false,
|
|
389
|
-
defaultValue: 0
|
|
390
|
-
},
|
|
391
|
-
promptTokens: {
|
|
392
|
-
type: ScalarTypeEnum2.Int_unsecure(),
|
|
393
|
-
isOptional: false,
|
|
394
|
-
defaultValue: 0
|
|
395
|
-
},
|
|
396
|
-
completionTokens: {
|
|
397
|
-
type: ScalarTypeEnum2.Int_unsecure(),
|
|
398
|
-
isOptional: false,
|
|
399
|
-
defaultValue: 0
|
|
400
|
-
},
|
|
401
|
-
totalIterations: {
|
|
402
|
-
type: ScalarTypeEnum2.Int_unsecure(),
|
|
403
|
-
isOptional: false,
|
|
404
|
-
defaultValue: 0
|
|
405
|
-
},
|
|
406
|
-
durationMs: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
|
|
407
|
-
estimatedCostUsd: {
|
|
408
|
-
type: ScalarTypeEnum2.Float_unsecure(),
|
|
409
|
-
isOptional: true
|
|
410
|
-
},
|
|
411
|
-
queuedAt: { type: ScalarTypeEnum2.DateTime(), isOptional: false },
|
|
412
|
-
startedAt: { type: ScalarTypeEnum2.DateTime(), isOptional: true },
|
|
413
|
-
completedAt: { type: ScalarTypeEnum2.DateTime(), isOptional: true },
|
|
414
|
-
metadata: { type: ScalarTypeEnum2.JSONObject(), isOptional: true },
|
|
415
|
-
steps: { type: RunStepModel, isArray: true, isOptional: true },
|
|
416
|
-
logs: { type: RunLogModel, isArray: true, isOptional: true },
|
|
417
|
-
agent: { type: RunAgentRefModel, isOptional: true }
|
|
418
|
-
}
|
|
419
|
-
});
|
|
420
|
-
var RunSummaryModel = defineSchemaModel2({
|
|
421
|
-
name: "RunSummary",
|
|
422
|
-
description: "Summary of a run for list views",
|
|
423
|
-
fields: {
|
|
424
|
-
id: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
425
|
-
agentId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
426
|
-
agentName: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
|
|
427
|
-
status: { type: RunStatusEnum, isOptional: false },
|
|
428
|
-
totalTokens: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: false },
|
|
429
|
-
durationMs: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
|
|
430
|
-
estimatedCostUsd: {
|
|
431
|
-
type: ScalarTypeEnum2.Float_unsecure(),
|
|
432
|
-
isOptional: true
|
|
433
|
-
},
|
|
434
|
-
queuedAt: { type: ScalarTypeEnum2.DateTime(), isOptional: false },
|
|
435
|
-
completedAt: { type: ScalarTypeEnum2.DateTime(), isOptional: true }
|
|
436
|
-
}
|
|
437
|
-
});
|
|
438
|
-
var TimelineDataPointModel = defineSchemaModel2({
|
|
439
|
-
name: "TimelineDataPoint",
|
|
440
|
-
description: "Timeline data point for metrics",
|
|
441
|
-
fields: {
|
|
442
|
-
period: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
443
|
-
runs: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: false },
|
|
444
|
-
tokens: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: false },
|
|
445
|
-
costUsd: { type: ScalarTypeEnum2.Float_unsecure(), isOptional: false },
|
|
446
|
-
avgDurationMs: { type: ScalarTypeEnum2.Float_unsecure(), isOptional: false }
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
|
|
450
|
-
// src/tool/tool.enum.ts
|
|
451
|
-
import { defineEnum as defineEnum3 } from "@contractspec/lib.schema";
|
|
452
|
-
var ToolCategoryEnum = defineEnum3("ToolCategory", [
|
|
453
|
-
"RETRIEVAL",
|
|
454
|
-
"COMPUTATION",
|
|
455
|
-
"COMMUNICATION",
|
|
456
|
-
"INTEGRATION",
|
|
457
|
-
"UTILITY",
|
|
458
|
-
"CUSTOM"
|
|
459
|
-
]);
|
|
460
|
-
var ToolStatusEnum = defineEnum3("ToolStatus", [
|
|
461
|
-
"DRAFT",
|
|
462
|
-
"ACTIVE",
|
|
463
|
-
"DEPRECATED",
|
|
464
|
-
"DISABLED"
|
|
465
|
-
]);
|
|
466
|
-
var ImplementationTypeEnum = defineEnum3("ImplementationType", [
|
|
467
|
-
"http",
|
|
468
|
-
"function",
|
|
469
|
-
"workflow"
|
|
470
|
-
]);
|
|
471
|
-
|
|
472
|
-
// src/tool/tool.schema.ts
|
|
473
|
-
import { defineSchemaModel as defineSchemaModel3, ScalarTypeEnum as ScalarTypeEnum3 } from "@contractspec/lib.schema";
|
|
474
|
-
var ToolModel = defineSchemaModel3({
|
|
475
|
-
name: "Tool",
|
|
476
|
-
description: "AI tool definition",
|
|
477
|
-
fields: {
|
|
478
|
-
id: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
|
|
479
|
-
organizationId: {
|
|
480
|
-
type: ScalarTypeEnum3.String_unsecure(),
|
|
481
|
-
isOptional: false
|
|
482
|
-
},
|
|
483
|
-
name: { type: ScalarTypeEnum3.NonEmptyString(), isOptional: false },
|
|
484
|
-
slug: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
|
|
485
|
-
description: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
|
|
486
|
-
category: { type: ToolCategoryEnum, isOptional: false },
|
|
487
|
-
status: { type: ToolStatusEnum, isOptional: false },
|
|
488
|
-
parametersSchema: { type: ScalarTypeEnum3.JSONObject(), isOptional: false },
|
|
489
|
-
outputSchema: { type: ScalarTypeEnum3.JSONObject(), isOptional: true },
|
|
490
|
-
implementationType: { type: ImplementationTypeEnum, isOptional: false },
|
|
491
|
-
implementationConfig: {
|
|
492
|
-
type: ScalarTypeEnum3.JSONObject(),
|
|
493
|
-
isOptional: false
|
|
494
|
-
},
|
|
495
|
-
maxInvocationsPerMinute: {
|
|
496
|
-
type: ScalarTypeEnum3.Int_unsecure(),
|
|
497
|
-
isOptional: true
|
|
498
|
-
},
|
|
499
|
-
timeoutMs: {
|
|
500
|
-
type: ScalarTypeEnum3.Int_unsecure(),
|
|
501
|
-
isOptional: false,
|
|
502
|
-
defaultValue: 30000
|
|
503
|
-
},
|
|
504
|
-
version: { type: ScalarTypeEnum3.NonEmptyString(), isOptional: false },
|
|
505
|
-
tags: {
|
|
506
|
-
type: ScalarTypeEnum3.String_unsecure(),
|
|
507
|
-
isArray: true,
|
|
508
|
-
isOptional: true
|
|
509
|
-
},
|
|
510
|
-
createdAt: { type: ScalarTypeEnum3.DateTime(), isOptional: false },
|
|
511
|
-
updatedAt: { type: ScalarTypeEnum3.DateTime(), isOptional: false }
|
|
512
|
-
}
|
|
513
|
-
});
|
|
514
|
-
var ToolSummaryModel = defineSchemaModel3({
|
|
515
|
-
name: "ToolSummary",
|
|
516
|
-
description: "Summary of a tool for list views",
|
|
517
|
-
fields: {
|
|
518
|
-
id: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
|
|
519
|
-
name: { type: ScalarTypeEnum3.NonEmptyString(), isOptional: false },
|
|
520
|
-
slug: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
|
|
521
|
-
description: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
|
|
522
|
-
category: { type: ToolCategoryEnum, isOptional: false },
|
|
523
|
-
status: { type: ToolStatusEnum, isOptional: false },
|
|
524
|
-
version: { type: ScalarTypeEnum3.NonEmptyString(), isOptional: false },
|
|
525
|
-
createdAt: { type: ScalarTypeEnum3.DateTime(), isOptional: false }
|
|
526
|
-
}
|
|
527
|
-
});
|
|
528
|
-
var CreateToolInputModel = defineSchemaModel3({
|
|
529
|
-
name: "CreateToolInput",
|
|
530
|
-
description: "Input for creating a tool",
|
|
531
|
-
fields: {
|
|
532
|
-
organizationId: {
|
|
533
|
-
type: ScalarTypeEnum3.String_unsecure(),
|
|
534
|
-
isOptional: false
|
|
535
|
-
},
|
|
536
|
-
name: { type: ScalarTypeEnum3.NonEmptyString(), isOptional: false },
|
|
537
|
-
slug: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
|
|
538
|
-
description: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
|
|
539
|
-
category: { type: ToolCategoryEnum, isOptional: true },
|
|
540
|
-
parametersSchema: { type: ScalarTypeEnum3.JSONObject(), isOptional: false },
|
|
541
|
-
outputSchema: { type: ScalarTypeEnum3.JSONObject(), isOptional: true },
|
|
542
|
-
implementationType: { type: ImplementationTypeEnum, isOptional: false },
|
|
543
|
-
implementationConfig: {
|
|
544
|
-
type: ScalarTypeEnum3.JSONObject(),
|
|
545
|
-
isOptional: false
|
|
546
|
-
},
|
|
547
|
-
maxInvocationsPerMinute: {
|
|
548
|
-
type: ScalarTypeEnum3.Int_unsecure(),
|
|
549
|
-
isOptional: true
|
|
550
|
-
},
|
|
551
|
-
timeoutMs: { type: ScalarTypeEnum3.Int_unsecure(), isOptional: true },
|
|
552
|
-
tags: {
|
|
553
|
-
type: ScalarTypeEnum3.String_unsecure(),
|
|
554
|
-
isArray: true,
|
|
555
|
-
isOptional: true
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
});
|
|
559
|
-
var UpdateToolInputModel = defineSchemaModel3({
|
|
560
|
-
name: "UpdateToolInput",
|
|
561
|
-
description: "Input for updating a tool",
|
|
562
|
-
fields: {
|
|
563
|
-
toolId: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
|
|
564
|
-
name: { type: ScalarTypeEnum3.NonEmptyString(), isOptional: true },
|
|
565
|
-
description: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
566
|
-
status: { type: ToolStatusEnum, isOptional: true },
|
|
567
|
-
parametersSchema: { type: ScalarTypeEnum3.JSONObject(), isOptional: true },
|
|
568
|
-
outputSchema: { type: ScalarTypeEnum3.JSONObject(), isOptional: true },
|
|
569
|
-
implementationConfig: {
|
|
570
|
-
type: ScalarTypeEnum3.JSONObject(),
|
|
571
|
-
isOptional: true
|
|
572
|
-
},
|
|
573
|
-
maxInvocationsPerMinute: {
|
|
574
|
-
type: ScalarTypeEnum3.Int_unsecure(),
|
|
575
|
-
isOptional: true
|
|
576
|
-
},
|
|
577
|
-
timeoutMs: { type: ScalarTypeEnum3.Int_unsecure(), isOptional: true },
|
|
578
|
-
tags: {
|
|
579
|
-
type: ScalarTypeEnum3.String_unsecure(),
|
|
580
|
-
isArray: true,
|
|
581
|
-
isOptional: true
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
});
|
|
585
|
-
|
|
586
|
-
// src/run/run.presentation.ts
|
|
587
|
-
import {
|
|
588
|
-
definePresentation as definePresentation2,
|
|
589
|
-
StabilityEnum as StabilityEnum2
|
|
590
|
-
} from "@contractspec/lib.contracts-spec";
|
|
591
|
-
var RunListPresentation = definePresentation2({
|
|
592
|
-
meta: {
|
|
593
|
-
key: "agent-console.run.list",
|
|
594
|
-
version: "1.0.0",
|
|
595
|
-
title: "Run List",
|
|
596
|
-
description: "List view of agent runs with status, tokens, and duration info",
|
|
597
|
-
goal: "Provide an overview of agent execution history and performance.",
|
|
598
|
-
context: "Run history dashboard.",
|
|
599
|
-
domain: "agent-console",
|
|
600
|
-
owners: ["@agent-console-team"],
|
|
601
|
-
tags: ["run", "list", "dashboard"],
|
|
602
|
-
stability: StabilityEnum2.Experimental
|
|
603
|
-
},
|
|
604
|
-
source: {
|
|
605
|
-
type: "component",
|
|
606
|
-
framework: "react",
|
|
607
|
-
componentKey: "RunListView",
|
|
608
|
-
props: RunSummaryModel
|
|
609
|
-
},
|
|
610
|
-
targets: ["react", "markdown", "application/json"],
|
|
611
|
-
policy: { flags: ["agent-console.enabled"] }
|
|
612
|
-
});
|
|
613
|
-
var RunDetailPresentation = definePresentation2({
|
|
614
|
-
meta: {
|
|
615
|
-
key: "agent-console.run.detail",
|
|
616
|
-
version: "1.0.0",
|
|
617
|
-
title: "Run Details",
|
|
618
|
-
description: "Detailed view of an agent run with steps, logs, and metrics",
|
|
619
|
-
goal: "Allow users to inspect and debug a specific agent run.",
|
|
620
|
-
context: "Detailed view of an agent run.",
|
|
621
|
-
domain: "agent-console",
|
|
622
|
-
owners: ["@agent-console-team"],
|
|
623
|
-
tags: ["run", "detail"],
|
|
624
|
-
stability: StabilityEnum2.Experimental
|
|
625
|
-
},
|
|
626
|
-
source: {
|
|
627
|
-
type: "component",
|
|
628
|
-
framework: "react",
|
|
629
|
-
componentKey: "RunDetailView"
|
|
630
|
-
},
|
|
631
|
-
targets: ["react", "markdown"],
|
|
632
|
-
policy: { flags: ["agent-console.enabled"] }
|
|
633
|
-
});
|
|
634
|
-
|
|
635
|
-
// src/tool/tool.presentation.ts
|
|
636
|
-
import {
|
|
637
|
-
definePresentation as definePresentation3,
|
|
638
|
-
StabilityEnum as StabilityEnum3
|
|
639
|
-
} from "@contractspec/lib.contracts-spec";
|
|
640
|
-
var ToolListPresentation = definePresentation3({
|
|
641
|
-
meta: {
|
|
642
|
-
key: "agent-console.tool.list",
|
|
643
|
-
version: "1.0.0",
|
|
644
|
-
title: "Tool List",
|
|
645
|
-
description: "List view of AI tools with category, status, and version info",
|
|
646
|
-
goal: "Provide an overview of all available tools for agents.",
|
|
647
|
-
context: "Tool management dashboard.",
|
|
648
|
-
domain: "agent-console",
|
|
649
|
-
owners: ["@agent-console-team"],
|
|
650
|
-
tags: ["tool", "list", "dashboard"],
|
|
651
|
-
stability: StabilityEnum3.Experimental
|
|
652
|
-
},
|
|
653
|
-
source: {
|
|
654
|
-
type: "component",
|
|
655
|
-
framework: "react",
|
|
656
|
-
componentKey: "ToolListView",
|
|
657
|
-
props: ToolSummaryModel
|
|
658
|
-
},
|
|
659
|
-
targets: ["react", "markdown", "application/json"],
|
|
660
|
-
policy: { flags: ["agent-console.enabled"] }
|
|
661
|
-
});
|
|
662
|
-
var ToolDetailPresentation = definePresentation3({
|
|
663
|
-
meta: {
|
|
664
|
-
key: "agent-console.tool.detail",
|
|
665
|
-
version: "1.0.0",
|
|
666
|
-
title: "Tool Details",
|
|
667
|
-
description: "Detailed view of an AI tool with configuration and test panel",
|
|
668
|
-
goal: "Allow users to inspect and test a specific tool.",
|
|
669
|
-
context: "Detailed view of a tool.",
|
|
670
|
-
domain: "agent-console",
|
|
671
|
-
owners: ["@agent-console-team"],
|
|
672
|
-
tags: ["tool", "detail"],
|
|
673
|
-
stability: StabilityEnum3.Experimental
|
|
674
|
-
},
|
|
675
|
-
source: {
|
|
676
|
-
type: "component",
|
|
677
|
-
framework: "react",
|
|
678
|
-
componentKey: "ToolDetailView"
|
|
679
|
-
},
|
|
680
|
-
targets: ["react", "markdown"],
|
|
681
|
-
policy: { flags: ["agent-console.enabled"] }
|
|
682
|
-
});
|
|
683
|
-
export {
|
|
684
|
-
ToolListPresentation as ToolRegistryPresentation,
|
|
685
|
-
ToolListPresentation,
|
|
686
|
-
ToolDetailPresentation,
|
|
687
|
-
RunDetailPresentation as RunMetricsPresentation,
|
|
688
|
-
RunListPresentation,
|
|
689
|
-
RunDetailPresentation,
|
|
690
|
-
AgentListPresentation,
|
|
691
|
-
AgentDetailPresentation,
|
|
692
|
-
AgentConsoleDashboardPresentation
|
|
693
|
-
};
|
|
1
|
+
import{defineEnum as U}from"@contractspec/lib.schema";var D=U("AgentStatus",["DRAFT","ACTIVE","PAUSED","ARCHIVED"]),F=U("ModelProvider",["OPENAI","ANTHROPIC","GOOGLE","MISTRAL","CUSTOM"]),H=U("ToolChoice",["auto","required","none"]);import{defineSchemaModel as B,ScalarTypeEnum as j}from"@contractspec/lib.schema";var y=B({name:"Agent",description:"AI agent configuration",fields:{id:{type:j.String_unsecure(),isOptional:!1},organizationId:{type:j.String_unsecure(),isOptional:!1},name:{type:j.NonEmptyString(),isOptional:!1},slug:{type:j.String_unsecure(),isOptional:!1},description:{type:j.String_unsecure(),isOptional:!0},status:{type:D,isOptional:!1},modelProvider:{type:F,isOptional:!1},modelName:{type:j.NonEmptyString(),isOptional:!1},modelConfig:{type:j.JSONObject(),isOptional:!0},systemPrompt:{type:j.String_unsecure(),isOptional:!1},userPromptTemplate:{type:j.String_unsecure(),isOptional:!0},toolIds:{type:j.String_unsecure(),isArray:!0,isOptional:!0},toolChoice:{type:H,isOptional:!1,defaultValue:"auto"},maxIterations:{type:j.Int_unsecure(),isOptional:!1,defaultValue:10},maxTokensPerRun:{type:j.Int_unsecure(),isOptional:!0},timeoutMs:{type:j.Int_unsecure(),isOptional:!1,defaultValue:120000},version:{type:j.NonEmptyString(),isOptional:!1},tags:{type:j.String_unsecure(),isArray:!0,isOptional:!0},createdAt:{type:j.DateTime(),isOptional:!1},updatedAt:{type:j.DateTime(),isOptional:!1}}}),Z=B({name:"AgentSummary",description:"Summary of an agent for list views",fields:{id:{type:j.String_unsecure(),isOptional:!1},name:{type:j.NonEmptyString(),isOptional:!1},slug:{type:j.String_unsecure(),isOptional:!1},description:{type:j.String_unsecure(),isOptional:!0},status:{type:D,isOptional:!1},modelProvider:{type:F,isOptional:!1},modelName:{type:j.NonEmptyString(),isOptional:!1},version:{type:j.NonEmptyString(),isOptional:!1},createdAt:{type:j.DateTime(),isOptional:!1}}}),R=B({name:"AgentToolRef",description:"Tool reference in agent context",fields:{id:{type:j.String_unsecure(),isOptional:!1},name:{type:j.NonEmptyString(),isOptional:!1},slug:{type:j.String_unsecure(),isOptional:!1},description:{type:j.String_unsecure(),isOptional:!1},category:{type:j.String_unsecure(),isOptional:!1}}}),p=B({name:"AgentWithTools",description:"Agent with associated tools",fields:{id:{type:j.String_unsecure(),isOptional:!1},organizationId:{type:j.String_unsecure(),isOptional:!1},name:{type:j.NonEmptyString(),isOptional:!1},slug:{type:j.String_unsecure(),isOptional:!1},description:{type:j.String_unsecure(),isOptional:!0},status:{type:D,isOptional:!1},modelProvider:{type:F,isOptional:!1},modelName:{type:j.NonEmptyString(),isOptional:!1},modelConfig:{type:j.JSONObject(),isOptional:!0},systemPrompt:{type:j.String_unsecure(),isOptional:!1},userPromptTemplate:{type:j.String_unsecure(),isOptional:!0},toolIds:{type:j.String_unsecure(),isArray:!0,isOptional:!0},toolChoice:{type:H,isOptional:!1},maxIterations:{type:j.Int_unsecure(),isOptional:!1},maxTokensPerRun:{type:j.Int_unsecure(),isOptional:!0},timeoutMs:{type:j.Int_unsecure(),isOptional:!1},version:{type:j.NonEmptyString(),isOptional:!1},tags:{type:j.String_unsecure(),isArray:!0,isOptional:!0},createdAt:{type:j.DateTime(),isOptional:!1},updatedAt:{type:j.DateTime(),isOptional:!1},tools:{type:R,isArray:!0,isOptional:!0}}}),S=B({name:"CreateAgentInput",description:"Input for creating an agent",fields:{organizationId:{type:j.String_unsecure(),isOptional:!1},name:{type:j.NonEmptyString(),isOptional:!1},slug:{type:j.String_unsecure(),isOptional:!1},description:{type:j.String_unsecure(),isOptional:!0},modelProvider:{type:F,isOptional:!1},modelName:{type:j.NonEmptyString(),isOptional:!1},modelConfig:{type:j.JSONObject(),isOptional:!0},systemPrompt:{type:j.String_unsecure(),isOptional:!1},userPromptTemplate:{type:j.String_unsecure(),isOptional:!0},toolIds:{type:j.String_unsecure(),isArray:!0,isOptional:!0},toolChoice:{type:H,isOptional:!0},maxIterations:{type:j.Int_unsecure(),isOptional:!0},maxTokensPerRun:{type:j.Int_unsecure(),isOptional:!0},timeoutMs:{type:j.Int_unsecure(),isOptional:!0},tags:{type:j.String_unsecure(),isArray:!0,isOptional:!0}}}),E=B({name:"UpdateAgentInput",description:"Input for updating an agent",fields:{agentId:{type:j.String_unsecure(),isOptional:!1},name:{type:j.NonEmptyString(),isOptional:!0},description:{type:j.String_unsecure(),isOptional:!0},status:{type:D,isOptional:!0},modelConfig:{type:j.JSONObject(),isOptional:!0},systemPrompt:{type:j.String_unsecure(),isOptional:!0},userPromptTemplate:{type:j.String_unsecure(),isOptional:!0},toolIds:{type:j.String_unsecure(),isArray:!0,isOptional:!0},toolChoice:{type:H,isOptional:!0},maxIterations:{type:j.Int_unsecure(),isOptional:!0},maxTokensPerRun:{type:j.Int_unsecure(),isOptional:!0},timeoutMs:{type:j.Int_unsecure(),isOptional:!0},tags:{type:j.String_unsecure(),isArray:!0,isOptional:!0}}});import{definePresentation as V,StabilityEnum as W}from"@contractspec/lib.contracts-spec";var P=V({meta:{key:"agent-console.agent.viewList",version:"1.0.0",title:"Agent List",description:"List view of AI agents with status, model provider, and version info",goal:"Provide an overview of all agents in an organization.",context:"Main landing page for agent management.",domain:"agent-console",owners:["@agent-console-team"],tags:["agent","list","dashboard"],stability:W.Experimental},source:{type:"component",framework:"react",componentKey:"AgentListView",props:Z},targets:["react","markdown","application/json"],policy:{flags:["agent-console.enabled"]}}),b=V({meta:{key:"agent-console.agent.detail",version:"1.0.0",title:"Agent Details",description:"Detailed view of an AI agent with configuration, tools, and recent runs",goal:"Allow users to inspect and configure a specific agent.",context:"Detailed view of an agent.",domain:"agent-console",owners:["@agent-console-team"],tags:["agent","detail"],stability:W.Experimental},source:{type:"component",framework:"react",componentKey:"AgentDetailView"},targets:["react","markdown"],policy:{flags:["agent-console.enabled"]}}),g=V({meta:{key:"agent-console.dashboard",version:"1.0.0",title:"Agent Console Dashboard",description:"Dashboard overview of AI agents, runs, and tools",goal:"Provide a high-level overview of the AI platform health and usage.",context:"Root dashboard of the Agent Console.",domain:"agent-console",owners:["@agent-console-team"],tags:["dashboard","overview"],stability:W.Experimental},source:{type:"component",framework:"react",componentKey:"AgentConsoleDashboard"},targets:["react","markdown"],policy:{flags:["agent-console.enabled"]}});import{defineEnum as J}from"@contractspec/lib.schema";var K=J("RunStatus",["QUEUED","IN_PROGRESS","COMPLETED","FAILED","CANCELLED","EXPIRED"]),_=J("RunStepType",["MESSAGE_CREATION","TOOL_CALL","TOOL_RESULT","ERROR"]),$=J("LogLevel",["DEBUG","INFO","WARN","ERROR"]),n=J("Granularity",["hour","day","week","month"]);import{defineSchemaModel as z,ScalarTypeEnum as q}from"@contractspec/lib.schema";var qj=z({name:"RunInput",description:"Input data for agent execution",fields:{message:{type:q.NonEmptyString(),isOptional:!1},context:{type:q.JSONObject(),isOptional:!0}}}),M=z({name:"RunStep",description:"Individual step within a run",fields:{id:{type:q.String_unsecure(),isOptional:!1},stepNumber:{type:q.Int_unsecure(),isOptional:!1},type:{type:_,isOptional:!1},toolId:{type:q.String_unsecure(),isOptional:!0},toolName:{type:q.String_unsecure(),isOptional:!0},input:{type:q.JSONObject(),isOptional:!0},output:{type:q.JSONObject(),isOptional:!0},status:{type:K,isOptional:!1},errorMessage:{type:q.String_unsecure(),isOptional:!0},tokensUsed:{type:q.Int_unsecure(),isOptional:!1,defaultValue:0},durationMs:{type:q.Int_unsecure(),isOptional:!0},startedAt:{type:q.DateTime(),isOptional:!1},completedAt:{type:q.DateTime(),isOptional:!0}}}),h=z({name:"RunLog",description:"Execution log entry",fields:{id:{type:q.String_unsecure(),isOptional:!1},stepId:{type:q.String_unsecure(),isOptional:!0},level:{type:$,isOptional:!1},message:{type:q.String_unsecure(),isOptional:!1},data:{type:q.JSONObject(),isOptional:!0},source:{type:q.String_unsecure(),isOptional:!0},traceId:{type:q.String_unsecure(),isOptional:!0},spanId:{type:q.String_unsecure(),isOptional:!0},timestamp:{type:q.DateTime(),isOptional:!1}}}),f=z({name:"RunAgentRef",description:"Agent reference in a run",fields:{id:{type:q.String_unsecure(),isOptional:!1},name:{type:q.NonEmptyString(),isOptional:!1},modelProvider:{type:q.String_unsecure(),isOptional:!1},modelName:{type:q.String_unsecure(),isOptional:!1}}}),xj=z({name:"Run",description:"Agent execution instance",fields:{id:{type:q.String_unsecure(),isOptional:!1},organizationId:{type:q.String_unsecure(),isOptional:!1},agentId:{type:q.String_unsecure(),isOptional:!1},userId:{type:q.String_unsecure(),isOptional:!0},sessionId:{type:q.String_unsecure(),isOptional:!0},input:{type:q.JSONObject(),isOptional:!1},output:{type:q.JSONObject(),isOptional:!0},status:{type:K,isOptional:!1},errorMessage:{type:q.String_unsecure(),isOptional:!0},errorCode:{type:q.String_unsecure(),isOptional:!0},totalTokens:{type:q.Int_unsecure(),isOptional:!1,defaultValue:0},promptTokens:{type:q.Int_unsecure(),isOptional:!1,defaultValue:0},completionTokens:{type:q.Int_unsecure(),isOptional:!1,defaultValue:0},totalIterations:{type:q.Int_unsecure(),isOptional:!1,defaultValue:0},durationMs:{type:q.Int_unsecure(),isOptional:!0},estimatedCostUsd:{type:q.Float_unsecure(),isOptional:!0},queuedAt:{type:q.DateTime(),isOptional:!1},startedAt:{type:q.DateTime(),isOptional:!0},completedAt:{type:q.DateTime(),isOptional:!0},metadata:{type:q.JSONObject(),isOptional:!0},steps:{type:M,isArray:!0,isOptional:!0},logs:{type:h,isArray:!0,isOptional:!0},agent:{type:f,isOptional:!0}}}),k=z({name:"RunSummary",description:"Summary of a run for list views",fields:{id:{type:q.String_unsecure(),isOptional:!1},agentId:{type:q.String_unsecure(),isOptional:!1},agentName:{type:q.NonEmptyString(),isOptional:!1},status:{type:K,isOptional:!1},totalTokens:{type:q.Int_unsecure(),isOptional:!1},durationMs:{type:q.Int_unsecure(),isOptional:!0},estimatedCostUsd:{type:q.Float_unsecure(),isOptional:!0},queuedAt:{type:q.DateTime(),isOptional:!1},completedAt:{type:q.DateTime(),isOptional:!0}}}),zj=z({name:"TimelineDataPoint",description:"Timeline data point for metrics",fields:{period:{type:q.String_unsecure(),isOptional:!1},runs:{type:q.Int_unsecure(),isOptional:!1},tokens:{type:q.Int_unsecure(),isOptional:!1},costUsd:{type:q.Float_unsecure(),isOptional:!1},avgDurationMs:{type:q.Float_unsecure(),isOptional:!1}}});import{defineEnum as X}from"@contractspec/lib.schema";var N=X("ToolCategory",["RETRIEVAL","COMPUTATION","COMMUNICATION","INTEGRATION","UTILITY","CUSTOM"]),O=X("ToolStatus",["DRAFT","ACTIVE","DEPRECATED","DISABLED"]),Y=X("ImplementationType",["http","function","workflow"]);import{defineSchemaModel as Q,ScalarTypeEnum as x}from"@contractspec/lib.schema";var Kj=Q({name:"Tool",description:"AI tool definition",fields:{id:{type:x.String_unsecure(),isOptional:!1},organizationId:{type:x.String_unsecure(),isOptional:!1},name:{type:x.NonEmptyString(),isOptional:!1},slug:{type:x.String_unsecure(),isOptional:!1},description:{type:x.String_unsecure(),isOptional:!1},category:{type:N,isOptional:!1},status:{type:O,isOptional:!1},parametersSchema:{type:x.JSONObject(),isOptional:!1},outputSchema:{type:x.JSONObject(),isOptional:!0},implementationType:{type:Y,isOptional:!1},implementationConfig:{type:x.JSONObject(),isOptional:!1},maxInvocationsPerMinute:{type:x.Int_unsecure(),isOptional:!0},timeoutMs:{type:x.Int_unsecure(),isOptional:!1,defaultValue:30000},version:{type:x.NonEmptyString(),isOptional:!1},tags:{type:x.String_unsecure(),isArray:!0,isOptional:!0},createdAt:{type:x.DateTime(),isOptional:!1},updatedAt:{type:x.DateTime(),isOptional:!1}}}),w=Q({name:"ToolSummary",description:"Summary of a tool for list views",fields:{id:{type:x.String_unsecure(),isOptional:!1},name:{type:x.NonEmptyString(),isOptional:!1},slug:{type:x.String_unsecure(),isOptional:!1},description:{type:x.String_unsecure(),isOptional:!1},category:{type:N,isOptional:!1},status:{type:O,isOptional:!1},version:{type:x.NonEmptyString(),isOptional:!1},createdAt:{type:x.DateTime(),isOptional:!1}}}),Nj=Q({name:"CreateToolInput",description:"Input for creating a tool",fields:{organizationId:{type:x.String_unsecure(),isOptional:!1},name:{type:x.NonEmptyString(),isOptional:!1},slug:{type:x.String_unsecure(),isOptional:!1},description:{type:x.String_unsecure(),isOptional:!1},category:{type:N,isOptional:!0},parametersSchema:{type:x.JSONObject(),isOptional:!1},outputSchema:{type:x.JSONObject(),isOptional:!0},implementationType:{type:Y,isOptional:!1},implementationConfig:{type:x.JSONObject(),isOptional:!1},maxInvocationsPerMinute:{type:x.Int_unsecure(),isOptional:!0},timeoutMs:{type:x.Int_unsecure(),isOptional:!0},tags:{type:x.String_unsecure(),isArray:!0,isOptional:!0}}}),Oj=Q({name:"UpdateToolInput",description:"Input for updating a tool",fields:{toolId:{type:x.String_unsecure(),isOptional:!1},name:{type:x.NonEmptyString(),isOptional:!0},description:{type:x.String_unsecure(),isOptional:!0},status:{type:O,isOptional:!0},parametersSchema:{type:x.JSONObject(),isOptional:!0},outputSchema:{type:x.JSONObject(),isOptional:!0},implementationConfig:{type:x.JSONObject(),isOptional:!0},maxInvocationsPerMinute:{type:x.Int_unsecure(),isOptional:!0},timeoutMs:{type:x.Int_unsecure(),isOptional:!0},tags:{type:x.String_unsecure(),isArray:!0,isOptional:!0}}});import{definePresentation as G,StabilityEnum as L}from"@contractspec/lib.contracts-spec";var s=G({meta:{key:"agent-console.run.list",version:"1.0.0",title:"Run List",description:"List view of agent runs with status, tokens, and duration info",goal:"Provide an overview of agent execution history and performance.",context:"Run history dashboard.",domain:"agent-console",owners:["@agent-console-team"],tags:["run","list","dashboard"],stability:L.Experimental},source:{type:"component",framework:"react",componentKey:"RunListView",props:k},targets:["react","markdown","application/json"],policy:{flags:["agent-console.enabled"]}}),v=G({meta:{key:"agent-console.run.detail",version:"1.0.0",title:"Run Details",description:"Detailed view of an agent run with steps, logs, and metrics",goal:"Allow users to inspect and debug a specific agent run.",context:"Detailed view of an agent run.",domain:"agent-console",owners:["@agent-console-team"],tags:["run","detail"],stability:L.Experimental},source:{type:"component",framework:"react",componentKey:"RunDetailView"},targets:["react","markdown"],policy:{flags:["agent-console.enabled"]}});import{definePresentation as I,StabilityEnum as C}from"@contractspec/lib.contracts-spec";var A=I({meta:{key:"agent-console.tool.list",version:"1.0.0",title:"Tool List",description:"List view of AI tools with category, status, and version info",goal:"Provide an overview of all available tools for agents.",context:"Tool management dashboard.",domain:"agent-console",owners:["@agent-console-team"],tags:["tool","list","dashboard"],stability:C.Experimental},source:{type:"component",framework:"react",componentKey:"ToolListView",props:w},targets:["react","markdown","application/json"],policy:{flags:["agent-console.enabled"]}}),d=I({meta:{key:"agent-console.tool.detail",version:"1.0.0",title:"Tool Details",description:"Detailed view of an AI tool with configuration and test panel",goal:"Allow users to inspect and test a specific tool.",context:"Detailed view of a tool.",domain:"agent-console",owners:["@agent-console-team"],tags:["tool","detail"],stability:C.Experimental},source:{type:"component",framework:"react",componentKey:"ToolDetailView"},targets:["react","markdown"],policy:{flags:["agent-console.enabled"]}});export{A as ToolRegistryPresentation,A as ToolListPresentation,d as ToolDetailPresentation,v as RunMetricsPresentation,s as RunListPresentation,v as RunDetailPresentation,P as AgentListPresentation,b as AgentDetailPresentation,g as AgentConsoleDashboardPresentation};
|