@contractspec/example.agent-console 1.56.1 → 1.58.0
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 +211 -277
- package/.turbo/turbo-prebuild.log +1 -0
- package/CHANGELOG.md +36 -0
- package/dist/agent/agent.entity.d.ts +35 -40
- package/dist/agent/agent.entity.d.ts.map +1 -1
- package/dist/agent/agent.entity.js +124 -132
- package/dist/agent/agent.enum.d.ts +3 -8
- package/dist/agent/agent.enum.d.ts.map +1 -1
- package/dist/agent/agent.enum.js +22 -30
- package/dist/agent/agent.event.d.ts +105 -111
- package/dist/agent/agent.event.d.ts.map +1 -1
- package/dist/agent/agent.event.js +107 -200
- package/dist/agent/agent.handler.d.ts +74 -77
- package/dist/agent/agent.handler.d.ts.map +1 -1
- package/dist/agent/agent.handler.js +293 -75
- package/dist/agent/agent.operation.d.ts +424 -430
- package/dist/agent/agent.operation.d.ts.map +1 -1
- package/dist/agent/agent.operation.js +728 -478
- package/dist/agent/agent.presentation.d.ts +3 -8
- package/dist/agent/agent.presentation.d.ts.map +1 -1
- package/dist/agent/agent.presentation.js +275 -84
- package/dist/agent/agent.schema.d.ts +371 -376
- package/dist/agent/agent.schema.d.ts.map +1 -1
- package/dist/agent/agent.schema.js +209 -399
- package/dist/agent/agent.test-spec.d.ts +2 -7
- package/dist/agent/agent.test-spec.d.ts.map +1 -1
- package/dist/agent/agent.test-spec.js +56 -62
- package/dist/agent/index.d.ts +11 -8
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/index.js +1245 -9
- package/dist/agent.capability.d.ts +1 -6
- package/dist/agent.capability.d.ts.map +1 -1
- package/dist/agent.capability.js +17 -20
- package/dist/agent.feature.d.ts +7 -7
- package/dist/agent.feature.d.ts.map +1 -1
- package/dist/agent.feature.js +117 -303
- package/dist/browser/agent/agent.entity.js +127 -0
- package/dist/browser/agent/agent.enum.js +25 -0
- package/dist/browser/agent/agent.event.js +116 -0
- package/dist/browser/agent/agent.handler.js +301 -0
- package/dist/browser/agent/agent.operation.js +735 -0
- package/dist/browser/agent/agent.presentation.js +279 -0
- package/dist/browser/agent/agent.schema.js +215 -0
- package/dist/browser/agent/agent.test-spec.js +58 -0
- package/dist/browser/agent/index.js +1244 -0
- package/dist/browser/agent.capability.js +16 -0
- package/dist/browser/agent.feature.js +118 -0
- package/dist/browser/docs/agent-console.docblock.js +93 -0
- package/dist/browser/docs/index.js +93 -0
- package/dist/browser/example.js +42 -0
- package/dist/browser/handlers/agent.handlers.js +252 -0
- package/dist/browser/handlers/index.js +799 -0
- package/dist/browser/index.js +5895 -0
- package/dist/browser/presentations/index.js +684 -0
- package/dist/browser/run/index.js +1350 -0
- package/dist/browser/run/run.entity.js +160 -0
- package/dist/browser/run/run.enum.js +34 -0
- package/dist/browser/run/run.event.js +213 -0
- package/dist/browser/run/run.handler.js +254 -0
- package/dist/browser/run/run.operation.js +667 -0
- package/dist/browser/run/run.presentation.js +220 -0
- package/dist/browser/run/run.schema.js +179 -0
- package/dist/browser/run/run.test-spec.js +58 -0
- package/dist/browser/seeders/index.js +21 -0
- package/dist/browser/shared/index.js +334 -0
- package/dist/browser/shared/mock-agents.js +82 -0
- package/dist/browser/shared/mock-runs.js +108 -0
- package/dist/browser/shared/mock-tools.js +146 -0
- package/dist/browser/shared/overlay-types.js +0 -0
- package/dist/browser/tool/index.js +946 -0
- package/dist/browser/tool/tool.entity.js +90 -0
- package/dist/browser/tool/tool.enum.js +26 -0
- package/dist/browser/tool/tool.event.js +99 -0
- package/dist/browser/tool/tool.handler.js +223 -0
- package/dist/browser/tool/tool.operation.js +482 -0
- package/dist/browser/tool/tool.presentation.js +185 -0
- package/dist/browser/tool/tool.schema.js +141 -0
- package/dist/browser/tool/tool.test-spec.js +58 -0
- package/dist/browser/ui/AgentDashboard.js +1607 -0
- package/dist/browser/ui/AgentRunList.js +250 -0
- package/dist/browser/ui/AgentToolRegistry.js +212 -0
- package/dist/browser/ui/hooks/index.js +271 -0
- package/dist/browser/ui/hooks/useAgentList.js +55 -0
- package/dist/browser/ui/hooks/useAgentMutations.js +76 -0
- package/dist/browser/ui/hooks/useRunList.js +55 -0
- package/dist/browser/ui/hooks/useToolList.js +85 -0
- package/dist/browser/ui/index.js +2080 -0
- package/dist/browser/ui/modals/AgentActionsModal.js +304 -0
- package/dist/browser/ui/modals/CreateAgentModal.js +229 -0
- package/dist/browser/ui/modals/index.js +532 -0
- package/dist/browser/ui/overlays/demo-overlays.js +64 -0
- package/dist/browser/ui/overlays/index.js +64 -0
- package/dist/browser/ui/renderers/agent-list.markdown.js +55 -0
- package/dist/browser/ui/renderers/agent-list.renderer.js +180 -0
- package/dist/browser/ui/renderers/dashboard.markdown.js +117 -0
- package/dist/browser/ui/renderers/index.js +446 -0
- package/dist/browser/ui/renderers/run-list.markdown.js +45 -0
- package/dist/browser/ui/renderers/tool-registry.markdown.js +53 -0
- package/dist/browser/ui/views/AgentListView.js +165 -0
- package/dist/browser/ui/views/RunListView.js +247 -0
- package/dist/browser/ui/views/ToolRegistryView.js +209 -0
- package/dist/browser/ui/views/index.js +619 -0
- package/dist/docs/agent-console.docblock.d.ts +2 -1
- package/dist/docs/agent-console.docblock.d.ts.map +1 -0
- package/dist/docs/agent-console.docblock.js +45 -64
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +94 -1
- package/dist/example.d.ts +2 -6
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +40 -55
- package/dist/handlers/agent.handlers.d.ts +121 -121
- package/dist/handlers/agent.handlers.d.ts.map +1 -1
- package/dist/handlers/agent.handlers.js +235 -245
- package/dist/handlers/index.d.ts +8 -5
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +799 -5
- package/dist/index.d.ts +26 -48
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5896 -50
- package/dist/node/agent/agent.entity.js +127 -0
- package/dist/node/agent/agent.enum.js +25 -0
- package/dist/node/agent/agent.event.js +116 -0
- package/dist/node/agent/agent.handler.js +301 -0
- package/dist/node/agent/agent.operation.js +735 -0
- package/dist/node/agent/agent.presentation.js +279 -0
- package/dist/node/agent/agent.schema.js +215 -0
- package/dist/node/agent/agent.test-spec.js +58 -0
- package/dist/node/agent/index.js +1244 -0
- package/dist/node/agent.capability.js +16 -0
- package/dist/node/agent.feature.js +118 -0
- package/dist/node/docs/agent-console.docblock.js +93 -0
- package/dist/node/docs/index.js +93 -0
- package/dist/node/example.js +42 -0
- package/dist/node/handlers/agent.handlers.js +252 -0
- package/dist/node/handlers/index.js +799 -0
- package/dist/node/index.js +5895 -0
- package/dist/node/presentations/index.js +684 -0
- package/dist/node/run/index.js +1350 -0
- package/dist/node/run/run.entity.js +160 -0
- package/dist/node/run/run.enum.js +34 -0
- package/dist/node/run/run.event.js +213 -0
- package/dist/node/run/run.handler.js +254 -0
- package/dist/node/run/run.operation.js +667 -0
- package/dist/node/run/run.presentation.js +220 -0
- package/dist/node/run/run.schema.js +179 -0
- package/dist/node/run/run.test-spec.js +58 -0
- package/dist/node/seeders/index.js +21 -0
- package/dist/node/shared/index.js +334 -0
- package/dist/node/shared/mock-agents.js +82 -0
- package/dist/node/shared/mock-runs.js +108 -0
- package/dist/node/shared/mock-tools.js +146 -0
- package/dist/node/shared/overlay-types.js +0 -0
- package/dist/node/tool/index.js +946 -0
- package/dist/node/tool/tool.entity.js +90 -0
- package/dist/node/tool/tool.enum.js +26 -0
- package/dist/node/tool/tool.event.js +99 -0
- package/dist/node/tool/tool.handler.js +223 -0
- package/dist/node/tool/tool.operation.js +482 -0
- package/dist/node/tool/tool.presentation.js +185 -0
- package/dist/node/tool/tool.schema.js +141 -0
- package/dist/node/tool/tool.test-spec.js +58 -0
- package/dist/node/ui/AgentDashboard.js +1607 -0
- package/dist/node/ui/AgentRunList.js +250 -0
- package/dist/node/ui/AgentToolRegistry.js +212 -0
- package/dist/node/ui/hooks/index.js +271 -0
- package/dist/node/ui/hooks/useAgentList.js +55 -0
- package/dist/node/ui/hooks/useAgentMutations.js +76 -0
- package/dist/node/ui/hooks/useRunList.js +55 -0
- package/dist/node/ui/hooks/useToolList.js +85 -0
- package/dist/node/ui/index.js +2080 -0
- package/dist/node/ui/modals/AgentActionsModal.js +304 -0
- package/dist/node/ui/modals/CreateAgentModal.js +229 -0
- package/dist/node/ui/modals/index.js +532 -0
- package/dist/node/ui/overlays/demo-overlays.js +64 -0
- package/dist/node/ui/overlays/index.js +64 -0
- package/dist/node/ui/renderers/agent-list.markdown.js +55 -0
- package/dist/node/ui/renderers/agent-list.renderer.js +180 -0
- package/dist/node/ui/renderers/dashboard.markdown.js +117 -0
- package/dist/node/ui/renderers/index.js +446 -0
- package/dist/node/ui/renderers/run-list.markdown.js +45 -0
- package/dist/node/ui/renderers/tool-registry.markdown.js +53 -0
- package/dist/node/ui/views/AgentListView.js +165 -0
- package/dist/node/ui/views/RunListView.js +247 -0
- package/dist/node/ui/views/ToolRegistryView.js +209 -0
- package/dist/node/ui/views/index.js +619 -0
- package/dist/presentations/index.d.ts +9 -4
- package/dist/presentations/index.d.ts.map +1 -0
- package/dist/presentations/index.js +684 -4
- package/dist/run/index.d.ts +11 -8
- package/dist/run/index.d.ts.map +1 -0
- package/dist/run/index.js +1351 -9
- package/dist/run/run.entity.d.ts +55 -60
- package/dist/run/run.entity.d.ts.map +1 -1
- package/dist/run/run.entity.js +155 -199
- package/dist/run/run.enum.d.ts +4 -9
- package/dist/run/run.enum.d.ts.map +1 -1
- package/dist/run/run.enum.js +30 -40
- package/dist/run/run.event.d.ts +255 -261
- package/dist/run/run.event.d.ts.map +1 -1
- package/dist/run/run.event.js +198 -418
- package/dist/run/run.handler.d.ts +169 -172
- package/dist/run/run.handler.d.ts.map +1 -1
- package/dist/run/run.handler.js +246 -74
- package/dist/run/run.operation.d.ts +658 -664
- package/dist/run/run.operation.d.ts.map +1 -1
- package/dist/run/run.operation.js +659 -617
- package/dist/run/run.presentation.d.ts +2 -7
- package/dist/run/run.presentation.d.ts.map +1 -1
- package/dist/run/run.presentation.js +217 -61
- package/dist/run/run.schema.d.ts +367 -372
- package/dist/run/run.schema.d.ts.map +1 -1
- package/dist/run/run.schema.js +172 -330
- package/dist/run/run.test-spec.d.ts +2 -7
- package/dist/run/run.test-spec.d.ts.map +1 -1
- package/dist/run/run.test-spec.js +56 -62
- package/dist/seeders/index.d.ts +4 -8
- package/dist/seeders/index.d.ts.map +1 -1
- package/dist/seeders/index.js +19 -17
- package/dist/shared/index.d.ts +7 -4
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +334 -4
- package/dist/shared/mock-agents.d.ts +77 -80
- package/dist/shared/mock-agents.d.ts.map +1 -1
- package/dist/shared/mock-agents.js +82 -93
- package/dist/shared/mock-runs.d.ts +107 -110
- package/dist/shared/mock-runs.d.ts.map +1 -1
- package/dist/shared/mock-runs.js +108 -117
- package/dist/shared/mock-tools.d.ts +217 -220
- package/dist/shared/mock-tools.d.ts.map +1 -1
- package/dist/shared/mock-tools.js +146 -180
- package/dist/shared/overlay-types.d.ts +25 -28
- package/dist/shared/overlay-types.d.ts.map +1 -1
- package/dist/shared/overlay-types.js +1 -0
- package/dist/tool/index.d.ts +11 -8
- package/dist/tool/index.d.ts.map +1 -0
- package/dist/tool/index.js +947 -9
- package/dist/tool/tool.entity.d.ts +23 -28
- package/dist/tool/tool.entity.d.ts.map +1 -1
- package/dist/tool/tool.entity.js +87 -101
- package/dist/tool/tool.enum.d.ts +3 -8
- package/dist/tool/tool.enum.d.ts.map +1 -1
- package/dist/tool/tool.enum.js +23 -31
- package/dist/tool/tool.event.d.ts +84 -90
- package/dist/tool/tool.event.d.ts.map +1 -1
- package/dist/tool/tool.event.js +92 -151
- package/dist/tool/tool.handler.d.ts +266 -269
- package/dist/tool/tool.handler.d.ts.map +1 -1
- package/dist/tool/tool.handler.js +213 -76
- package/dist/tool/tool.operation.d.ts +359 -365
- package/dist/tool/tool.operation.d.ts.map +1 -1
- package/dist/tool/tool.operation.js +477 -400
- package/dist/tool/tool.presentation.d.ts +2 -7
- package/dist/tool/tool.presentation.d.ts.map +1 -1
- package/dist/tool/tool.presentation.js +182 -61
- package/dist/tool/tool.schema.d.ts +196 -201
- package/dist/tool/tool.schema.d.ts.map +1 -1
- package/dist/tool/tool.schema.js +137 -231
- package/dist/tool/tool.test-spec.d.ts +2 -7
- package/dist/tool/tool.test-spec.d.ts.map +1 -1
- package/dist/tool/tool.test-spec.js +56 -62
- package/dist/ui/AgentDashboard.d.ts +1 -6
- package/dist/ui/AgentDashboard.d.ts.map +1 -1
- package/dist/ui/AgentDashboard.js +1598 -410
- package/dist/ui/AgentRunList.d.ts +7 -2
- package/dist/ui/AgentRunList.d.ts.map +1 -0
- package/dist/ui/AgentRunList.js +249 -3
- package/dist/ui/AgentToolRegistry.d.ts +7 -2
- package/dist/ui/AgentToolRegistry.d.ts.map +1 -0
- package/dist/ui/AgentToolRegistry.js +211 -3
- package/dist/ui/hooks/index.d.ts +8 -6
- package/dist/ui/hooks/index.d.ts.map +1 -0
- package/dist/ui/hooks/index.js +270 -6
- package/dist/ui/hooks/useAgentList.d.ts +21 -25
- package/dist/ui/hooks/useAgentList.d.ts.map +1 -1
- package/dist/ui/hooks/useAgentList.js +52 -62
- package/dist/ui/hooks/useAgentMutations.d.ts +22 -25
- package/dist/ui/hooks/useAgentMutations.d.ts.map +1 -1
- package/dist/ui/hooks/useAgentMutations.js +73 -120
- package/dist/ui/hooks/useRunList.d.ts +17 -21
- package/dist/ui/hooks/useRunList.d.ts.map +1 -1
- package/dist/ui/hooks/useRunList.js +52 -62
- package/dist/ui/hooks/useToolList.d.ts +32 -36
- package/dist/ui/hooks/useToolList.d.ts.map +1 -1
- package/dist/ui/hooks/useToolList.js +82 -92
- package/dist/ui/index.d.ts +9 -24
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +2081 -24
- package/dist/ui/modals/AgentActionsModal.d.ts +11 -24
- package/dist/ui/modals/AgentActionsModal.d.ts.map +1 -1
- package/dist/ui/modals/AgentActionsModal.js +300 -257
- package/dist/ui/modals/CreateAgentModal.d.ts +12 -21
- package/dist/ui/modals/CreateAgentModal.d.ts.map +1 -1
- package/dist/ui/modals/CreateAgentModal.js +226 -210
- package/dist/ui/modals/index.d.ts +3 -3
- package/dist/ui/modals/index.d.ts.map +1 -0
- package/dist/ui/modals/index.js +532 -3
- package/dist/ui/overlays/demo-overlays.d.ts +10 -9
- package/dist/ui/overlays/demo-overlays.d.ts.map +1 -1
- package/dist/ui/overlays/demo-overlays.js +63 -71
- package/dist/ui/overlays/index.d.ts +2 -2
- package/dist/ui/overlays/index.d.ts.map +1 -0
- package/dist/ui/overlays/index.js +65 -3
- package/dist/ui/renderers/agent-list.markdown.d.ts +9 -9
- package/dist/ui/renderers/agent-list.markdown.d.ts.map +1 -1
- package/dist/ui/renderers/agent-list.markdown.js +55 -50
- package/dist/ui/renderers/agent-list.renderer.d.ts +5 -7
- package/dist/ui/renderers/agent-list.renderer.d.ts.map +1 -1
- package/dist/ui/renderers/agent-list.renderer.js +179 -17
- package/dist/ui/renderers/dashboard.markdown.d.ts +9 -9
- package/dist/ui/renderers/dashboard.markdown.d.ts.map +1 -1
- package/dist/ui/renderers/dashboard.markdown.js +115 -97
- package/dist/ui/renderers/index.d.ts +9 -6
- package/dist/ui/renderers/index.d.ts.map +1 -0
- package/dist/ui/renderers/index.js +446 -6
- package/dist/ui/renderers/run-list.markdown.d.ts +9 -9
- package/dist/ui/renderers/run-list.markdown.d.ts.map +1 -1
- package/dist/ui/renderers/run-list.markdown.js +42 -40
- package/dist/ui/renderers/tool-registry.markdown.d.ts +9 -9
- package/dist/ui/renderers/tool-registry.markdown.d.ts.map +1 -1
- package/dist/ui/renderers/tool-registry.markdown.js +52 -53
- package/dist/ui/views/AgentListView.d.ts +1 -6
- package/dist/ui/views/AgentListView.d.ts.map +1 -1
- package/dist/ui/views/AgentListView.js +161 -88
- package/dist/ui/views/RunListView.d.ts +4 -11
- package/dist/ui/views/RunListView.d.ts.map +1 -1
- package/dist/ui/views/RunListView.js +237 -154
- package/dist/ui/views/ToolRegistryView.d.ts +4 -11
- package/dist/ui/views/ToolRegistryView.d.ts.map +1 -1
- package/dist/ui/views/ToolRegistryView.js +205 -92
- package/dist/ui/views/index.d.ts +7 -4
- package/dist/ui/views/index.d.ts.map +1 -0
- package/dist/ui/views/index.js +619 -4
- package/package.json +657 -119
- package/tsdown.config.js +1 -2
- package/.turbo/turbo-build$colon$bundle.log +0 -280
- package/dist/agent/agent.entity.js.map +0 -1
- package/dist/agent/agent.enum.js.map +0 -1
- package/dist/agent/agent.event.js.map +0 -1
- package/dist/agent/agent.handler.js.map +0 -1
- package/dist/agent/agent.operation.js.map +0 -1
- package/dist/agent/agent.presentation.js.map +0 -1
- package/dist/agent/agent.schema.js.map +0 -1
- package/dist/agent/agent.test-spec.js.map +0 -1
- package/dist/agent.capability.js.map +0 -1
- package/dist/agent.feature.js.map +0 -1
- package/dist/docs/agent-console.docblock.js.map +0 -1
- package/dist/example.js.map +0 -1
- package/dist/handlers/agent.handlers.js.map +0 -1
- package/dist/run/run.entity.js.map +0 -1
- package/dist/run/run.enum.js.map +0 -1
- package/dist/run/run.event.js.map +0 -1
- package/dist/run/run.handler.js.map +0 -1
- package/dist/run/run.operation.js.map +0 -1
- package/dist/run/run.presentation.js.map +0 -1
- package/dist/run/run.schema.js.map +0 -1
- package/dist/run/run.test-spec.js.map +0 -1
- package/dist/seeders/index.js.map +0 -1
- package/dist/shared/mock-agents.js.map +0 -1
- package/dist/shared/mock-runs.js.map +0 -1
- package/dist/shared/mock-tools.js.map +0 -1
- package/dist/tool/tool.entity.js.map +0 -1
- package/dist/tool/tool.enum.js.map +0 -1
- package/dist/tool/tool.event.js.map +0 -1
- package/dist/tool/tool.handler.js.map +0 -1
- package/dist/tool/tool.operation.js.map +0 -1
- package/dist/tool/tool.presentation.js.map +0 -1
- package/dist/tool/tool.schema.js.map +0 -1
- package/dist/tool/tool.test-spec.js.map +0 -1
- package/dist/ui/AgentDashboard.js.map +0 -1
- package/dist/ui/hooks/useAgentList.js.map +0 -1
- package/dist/ui/hooks/useAgentMutations.js.map +0 -1
- package/dist/ui/hooks/useRunList.js.map +0 -1
- package/dist/ui/hooks/useToolList.js.map +0 -1
- package/dist/ui/modals/AgentActionsModal.js.map +0 -1
- package/dist/ui/modals/CreateAgentModal.js.map +0 -1
- package/dist/ui/overlays/demo-overlays.js.map +0 -1
- package/dist/ui/renderers/agent-list.markdown.js.map +0 -1
- package/dist/ui/renderers/agent-list.renderer.js.map +0 -1
- package/dist/ui/renderers/dashboard.markdown.js.map +0 -1
- package/dist/ui/renderers/run-list.markdown.js.map +0 -1
- package/dist/ui/renderers/tool-registry.markdown.js.map +0 -1
- package/dist/ui/views/AgentListView.js.map +0 -1
- package/dist/ui/views/RunListView.js.map +0 -1
- package/dist/ui/views/ToolRegistryView.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
package/dist/run/run.event.js
CHANGED
|
@@ -1,434 +1,214 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/run/run.event.ts
|
|
1
3
|
import { defineEvent, defineSchemaModel } from "@contractspec/lib.contracts";
|
|
2
4
|
import { ScalarTypeEnum, defineEnum } from "@contractspec/lib.schema";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
agentId: {
|
|
22
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
23
|
-
isOptional: false
|
|
24
|
-
},
|
|
25
|
-
agentName: {
|
|
26
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
27
|
-
isOptional: false
|
|
28
|
-
},
|
|
29
|
-
userId: {
|
|
30
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
31
|
-
isOptional: true
|
|
32
|
-
},
|
|
33
|
-
sessionId: {
|
|
34
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
35
|
-
isOptional: true
|
|
36
|
-
},
|
|
37
|
-
input: {
|
|
38
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
39
|
-
isOptional: false
|
|
40
|
-
},
|
|
41
|
-
startedAt: {
|
|
42
|
-
type: ScalarTypeEnum.DateTime(),
|
|
43
|
-
isOptional: false
|
|
44
|
-
}
|
|
45
|
-
}
|
|
5
|
+
var OWNERS = ["@agent-console-team"];
|
|
6
|
+
var RunStartedPayload = defineSchemaModel({
|
|
7
|
+
name: "RunStartedPayload",
|
|
8
|
+
description: "Payload for run started event",
|
|
9
|
+
fields: {
|
|
10
|
+
runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
11
|
+
organizationId: {
|
|
12
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
13
|
+
isOptional: false
|
|
14
|
+
},
|
|
15
|
+
agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
16
|
+
agentName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
17
|
+
userId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
18
|
+
sessionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
19
|
+
input: { type: ScalarTypeEnum.JSONObject(), isOptional: false },
|
|
20
|
+
startedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
|
|
21
|
+
}
|
|
46
22
|
});
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
tags: ["run", "started"]
|
|
58
|
-
},
|
|
59
|
-
payload: RunStartedPayload
|
|
23
|
+
var RunStartedEvent = defineEvent({
|
|
24
|
+
meta: {
|
|
25
|
+
key: "agent.run.started",
|
|
26
|
+
version: "1.0.0",
|
|
27
|
+
description: "An agent run was started.",
|
|
28
|
+
stability: "stable",
|
|
29
|
+
owners: [...OWNERS],
|
|
30
|
+
tags: ["run", "started"]
|
|
31
|
+
},
|
|
32
|
+
payload: RunStartedPayload
|
|
60
33
|
});
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
output: {
|
|
89
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
90
|
-
isOptional: false
|
|
91
|
-
},
|
|
92
|
-
totalTokens: {
|
|
93
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
94
|
-
isOptional: false
|
|
95
|
-
},
|
|
96
|
-
promptTokens: {
|
|
97
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
98
|
-
isOptional: false
|
|
99
|
-
},
|
|
100
|
-
completionTokens: {
|
|
101
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
102
|
-
isOptional: false
|
|
103
|
-
},
|
|
104
|
-
totalIterations: {
|
|
105
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
106
|
-
isOptional: false
|
|
107
|
-
},
|
|
108
|
-
durationMs: {
|
|
109
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
110
|
-
isOptional: false
|
|
111
|
-
},
|
|
112
|
-
estimatedCostUsd: {
|
|
113
|
-
type: ScalarTypeEnum.Float_unsecure(),
|
|
114
|
-
isOptional: true
|
|
115
|
-
},
|
|
116
|
-
completedAt: {
|
|
117
|
-
type: ScalarTypeEnum.DateTime(),
|
|
118
|
-
isOptional: false
|
|
119
|
-
}
|
|
120
|
-
}
|
|
34
|
+
var RunCompletedPayload = defineSchemaModel({
|
|
35
|
+
name: "RunCompletedPayload",
|
|
36
|
+
description: "Payload for run completed event",
|
|
37
|
+
fields: {
|
|
38
|
+
runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
39
|
+
organizationId: {
|
|
40
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
41
|
+
isOptional: false
|
|
42
|
+
},
|
|
43
|
+
agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
44
|
+
agentName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
45
|
+
userId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
46
|
+
output: { type: ScalarTypeEnum.JSONObject(), isOptional: false },
|
|
47
|
+
totalTokens: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
48
|
+
promptTokens: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
49
|
+
completionTokens: {
|
|
50
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
51
|
+
isOptional: false
|
|
52
|
+
},
|
|
53
|
+
totalIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
54
|
+
durationMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
55
|
+
estimatedCostUsd: {
|
|
56
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
57
|
+
isOptional: true
|
|
58
|
+
},
|
|
59
|
+
completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
|
|
60
|
+
}
|
|
121
61
|
});
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
tags: ["run", "completed"]
|
|
133
|
-
},
|
|
134
|
-
payload: RunCompletedPayload
|
|
62
|
+
var RunCompletedEvent = defineEvent({
|
|
63
|
+
meta: {
|
|
64
|
+
key: "agent.run.completed",
|
|
65
|
+
version: "1.0.0",
|
|
66
|
+
description: "An agent run completed successfully.",
|
|
67
|
+
stability: "stable",
|
|
68
|
+
owners: [...OWNERS],
|
|
69
|
+
tags: ["run", "completed"]
|
|
70
|
+
},
|
|
71
|
+
payload: RunCompletedPayload
|
|
135
72
|
});
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
agentName: {
|
|
156
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
157
|
-
isOptional: false
|
|
158
|
-
},
|
|
159
|
-
userId: {
|
|
160
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
161
|
-
isOptional: true
|
|
162
|
-
},
|
|
163
|
-
errorMessage: {
|
|
164
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
165
|
-
isOptional: false
|
|
166
|
-
},
|
|
167
|
-
errorCode: {
|
|
168
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
169
|
-
isOptional: true
|
|
170
|
-
},
|
|
171
|
-
totalTokens: {
|
|
172
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
173
|
-
isOptional: false
|
|
174
|
-
},
|
|
175
|
-
totalIterations: {
|
|
176
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
177
|
-
isOptional: false
|
|
178
|
-
},
|
|
179
|
-
durationMs: {
|
|
180
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
181
|
-
isOptional: true
|
|
182
|
-
},
|
|
183
|
-
failedAt: {
|
|
184
|
-
type: ScalarTypeEnum.DateTime(),
|
|
185
|
-
isOptional: false
|
|
186
|
-
}
|
|
187
|
-
}
|
|
73
|
+
var RunFailedPayload = defineSchemaModel({
|
|
74
|
+
name: "RunFailedPayload",
|
|
75
|
+
description: "Payload for run failed event",
|
|
76
|
+
fields: {
|
|
77
|
+
runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
78
|
+
organizationId: {
|
|
79
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
80
|
+
isOptional: false
|
|
81
|
+
},
|
|
82
|
+
agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
83
|
+
agentName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
84
|
+
userId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
85
|
+
errorMessage: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
86
|
+
errorCode: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
87
|
+
totalTokens: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
88
|
+
totalIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
89
|
+
durationMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
90
|
+
failedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
|
|
91
|
+
}
|
|
188
92
|
});
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
tags: ["run", "failed"]
|
|
200
|
-
},
|
|
201
|
-
payload: RunFailedPayload
|
|
93
|
+
var RunFailedEvent = defineEvent({
|
|
94
|
+
meta: {
|
|
95
|
+
key: "agent.run.failed",
|
|
96
|
+
version: "1.0.0",
|
|
97
|
+
description: "An agent run encountered an error.",
|
|
98
|
+
stability: "stable",
|
|
99
|
+
owners: [...OWNERS],
|
|
100
|
+
tags: ["run", "failed"]
|
|
101
|
+
},
|
|
102
|
+
payload: RunFailedPayload
|
|
202
103
|
});
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
isOptional: false
|
|
221
|
-
},
|
|
222
|
-
userId: {
|
|
223
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
224
|
-
isOptional: true
|
|
225
|
-
},
|
|
226
|
-
cancelledBy: {
|
|
227
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
228
|
-
isOptional: true
|
|
229
|
-
},
|
|
230
|
-
reason: {
|
|
231
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
232
|
-
isOptional: true
|
|
233
|
-
},
|
|
234
|
-
totalTokens: {
|
|
235
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
236
|
-
isOptional: false
|
|
237
|
-
},
|
|
238
|
-
totalIterations: {
|
|
239
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
240
|
-
isOptional: false
|
|
241
|
-
},
|
|
242
|
-
cancelledAt: {
|
|
243
|
-
type: ScalarTypeEnum.DateTime(),
|
|
244
|
-
isOptional: false
|
|
245
|
-
}
|
|
246
|
-
}
|
|
104
|
+
var RunCancelledPayload = defineSchemaModel({
|
|
105
|
+
name: "RunCancelledPayload",
|
|
106
|
+
description: "Payload for run cancelled event",
|
|
107
|
+
fields: {
|
|
108
|
+
runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
109
|
+
organizationId: {
|
|
110
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
111
|
+
isOptional: false
|
|
112
|
+
},
|
|
113
|
+
agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
114
|
+
userId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
115
|
+
cancelledBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
116
|
+
reason: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
117
|
+
totalTokens: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
118
|
+
totalIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
119
|
+
cancelledAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
|
|
120
|
+
}
|
|
247
121
|
});
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
tags: ["run", "cancelled"]
|
|
259
|
-
},
|
|
260
|
-
payload: RunCancelledPayload
|
|
122
|
+
var RunCancelledEvent = defineEvent({
|
|
123
|
+
meta: {
|
|
124
|
+
key: "agent.run.cancelled",
|
|
125
|
+
version: "1.0.0",
|
|
126
|
+
description: "An agent run was cancelled by the user.",
|
|
127
|
+
stability: "stable",
|
|
128
|
+
owners: [...OWNERS],
|
|
129
|
+
tags: ["run", "cancelled"]
|
|
130
|
+
},
|
|
131
|
+
payload: RunCancelledPayload
|
|
261
132
|
});
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
stepId: {
|
|
274
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
275
|
-
isOptional: false
|
|
276
|
-
},
|
|
277
|
-
toolId: {
|
|
278
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
279
|
-
isOptional: false
|
|
280
|
-
},
|
|
281
|
-
toolName: {
|
|
282
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
283
|
-
isOptional: false
|
|
284
|
-
},
|
|
285
|
-
input: {
|
|
286
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
287
|
-
isOptional: false
|
|
288
|
-
},
|
|
289
|
-
invokedAt: {
|
|
290
|
-
type: ScalarTypeEnum.DateTime(),
|
|
291
|
-
isOptional: false
|
|
292
|
-
}
|
|
293
|
-
}
|
|
133
|
+
var ToolInvokedPayload = defineSchemaModel({
|
|
134
|
+
name: "ToolInvokedPayload",
|
|
135
|
+
description: "Payload for tool invoked event",
|
|
136
|
+
fields: {
|
|
137
|
+
runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
138
|
+
stepId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
139
|
+
toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
140
|
+
toolName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
141
|
+
input: { type: ScalarTypeEnum.JSONObject(), isOptional: false },
|
|
142
|
+
invokedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
|
|
143
|
+
}
|
|
294
144
|
});
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
tags: [
|
|
306
|
-
"run",
|
|
307
|
-
"tool",
|
|
308
|
-
"invoked"
|
|
309
|
-
]
|
|
310
|
-
},
|
|
311
|
-
payload: ToolInvokedPayload
|
|
145
|
+
var ToolInvokedEvent = defineEvent({
|
|
146
|
+
meta: {
|
|
147
|
+
key: "agent.run.toolInvoked",
|
|
148
|
+
version: "1.0.0",
|
|
149
|
+
description: "A tool was invoked during an agent run.",
|
|
150
|
+
stability: "stable",
|
|
151
|
+
owners: [...OWNERS],
|
|
152
|
+
tags: ["run", "tool", "invoked"]
|
|
153
|
+
},
|
|
154
|
+
payload: ToolInvokedPayload
|
|
312
155
|
});
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
},
|
|
328
|
-
toolId: {
|
|
329
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
330
|
-
isOptional: false
|
|
331
|
-
},
|
|
332
|
-
toolName: {
|
|
333
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
334
|
-
isOptional: false
|
|
335
|
-
},
|
|
336
|
-
success: {
|
|
337
|
-
type: ScalarTypeEnum.Boolean(),
|
|
338
|
-
isOptional: false
|
|
339
|
-
},
|
|
340
|
-
output: {
|
|
341
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
342
|
-
isOptional: true
|
|
343
|
-
},
|
|
344
|
-
errorMessage: {
|
|
345
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
346
|
-
isOptional: true
|
|
347
|
-
},
|
|
348
|
-
durationMs: {
|
|
349
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
350
|
-
isOptional: false
|
|
351
|
-
},
|
|
352
|
-
completedAt: {
|
|
353
|
-
type: ScalarTypeEnum.DateTime(),
|
|
354
|
-
isOptional: false
|
|
355
|
-
}
|
|
356
|
-
}
|
|
156
|
+
var ToolCompletedPayload = defineSchemaModel({
|
|
157
|
+
name: "ToolCompletedPayload",
|
|
158
|
+
description: "Payload for tool completed event",
|
|
159
|
+
fields: {
|
|
160
|
+
runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
161
|
+
stepId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
162
|
+
toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
163
|
+
toolName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
164
|
+
success: { type: ScalarTypeEnum.Boolean(), isOptional: false },
|
|
165
|
+
output: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
|
|
166
|
+
errorMessage: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
167
|
+
durationMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
168
|
+
completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
|
|
169
|
+
}
|
|
357
170
|
});
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
tags: [
|
|
369
|
-
"run",
|
|
370
|
-
"tool",
|
|
371
|
-
"completed"
|
|
372
|
-
]
|
|
373
|
-
},
|
|
374
|
-
payload: ToolCompletedPayload
|
|
171
|
+
var ToolCompletedEvent = defineEvent({
|
|
172
|
+
meta: {
|
|
173
|
+
key: "agent.run.toolCompleted",
|
|
174
|
+
version: "1.0.0",
|
|
175
|
+
description: "A tool invocation completed during an agent run.",
|
|
176
|
+
stability: "stable",
|
|
177
|
+
owners: [...OWNERS],
|
|
178
|
+
tags: ["run", "tool", "completed"]
|
|
179
|
+
},
|
|
180
|
+
payload: ToolCompletedPayload
|
|
375
181
|
});
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
389
|
-
isOptional: false
|
|
390
|
-
},
|
|
391
|
-
stepId: {
|
|
392
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
393
|
-
isOptional: false
|
|
394
|
-
},
|
|
395
|
-
messageType: {
|
|
396
|
-
type: MessageTypeEnum,
|
|
397
|
-
isOptional: false
|
|
398
|
-
},
|
|
399
|
-
content: {
|
|
400
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
401
|
-
isOptional: false
|
|
402
|
-
},
|
|
403
|
-
tokensUsed: {
|
|
404
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
405
|
-
isOptional: false
|
|
406
|
-
},
|
|
407
|
-
generatedAt: {
|
|
408
|
-
type: ScalarTypeEnum.DateTime(),
|
|
409
|
-
isOptional: false
|
|
410
|
-
}
|
|
411
|
-
}
|
|
182
|
+
var MessageTypeEnum = defineEnum("MessageType", ["assistant", "system"]);
|
|
183
|
+
var MessageGeneratedPayload = defineSchemaModel({
|
|
184
|
+
name: "MessageGeneratedPayload",
|
|
185
|
+
description: "Payload for message generated event",
|
|
186
|
+
fields: {
|
|
187
|
+
runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
188
|
+
stepId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
189
|
+
messageType: { type: MessageTypeEnum, isOptional: false },
|
|
190
|
+
content: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
191
|
+
tokensUsed: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
192
|
+
generatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
|
|
193
|
+
}
|
|
412
194
|
});
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
tags: [
|
|
424
|
-
"run",
|
|
425
|
-
"message",
|
|
426
|
-
"generated"
|
|
427
|
-
]
|
|
428
|
-
},
|
|
429
|
-
payload: MessageGeneratedPayload
|
|
195
|
+
var MessageGeneratedEvent = defineEvent({
|
|
196
|
+
meta: {
|
|
197
|
+
key: "agent.run.messageGenerated",
|
|
198
|
+
version: "1.0.0",
|
|
199
|
+
description: "An agent generated a message during a run.",
|
|
200
|
+
stability: "stable",
|
|
201
|
+
owners: [...OWNERS],
|
|
202
|
+
tags: ["run", "message", "generated"]
|
|
203
|
+
},
|
|
204
|
+
payload: MessageGeneratedPayload
|
|
430
205
|
});
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
206
|
+
export {
|
|
207
|
+
ToolInvokedEvent,
|
|
208
|
+
ToolCompletedEvent,
|
|
209
|
+
RunStartedEvent,
|
|
210
|
+
RunFailedEvent,
|
|
211
|
+
RunCompletedEvent,
|
|
212
|
+
RunCancelledEvent,
|
|
213
|
+
MessageGeneratedEvent
|
|
214
|
+
};
|