@tdesign-react/chat 1.0.2-alpha.9 → 1.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_chunks/dep-f2051ebd.js +839 -0
- package/es/_chunks/dep-f2051ebd.js.map +1 -0
- package/es/_util/reactify.js +1 -1
- package/es/_util/useDynamicStyle.js +1 -1
- package/es/attachments/index.js +1 -1
- package/es/chat-actionbar/index.js +1 -1
- package/es/chat-engine/components/a2ui/A2UIActivityRenderer.d.ts +196 -0
- package/es/chat-engine/components/a2ui/A2UIActivityRenderer.js +301 -0
- package/es/chat-engine/components/a2ui/A2UIActivityRenderer.js.map +1 -0
- package/es/chat-engine/components/a2ui/A2UIComponentRenderer.d.ts +37 -0
- package/es/chat-engine/components/a2ui/A2UIComponentRenderer.js +116 -0
- package/es/chat-engine/components/a2ui/A2UIComponentRenderer.js.map +1 -0
- package/es/chat-engine/components/a2ui/A2UIErrorBoundary.d.ts +42 -0
- package/es/chat-engine/components/a2ui/A2UIErrorBoundary.js +113 -0
- package/es/chat-engine/components/a2ui/A2UIErrorBoundary.js.map +1 -0
- package/es/chat-engine/components/a2ui/A2UISkeleton.d.ts +60 -0
- package/es/chat-engine/components/a2ui/A2UISkeleton.js +197 -0
- package/es/chat-engine/components/a2ui/A2UISkeleton.js.map +1 -0
- package/es/chat-engine/components/a2ui/A2UISurfaceRenderer.d.ts +44 -0
- package/es/chat-engine/components/a2ui/A2UISurfaceRenderer.js +139 -0
- package/es/chat-engine/components/a2ui/A2UISurfaceRenderer.js.map +1 -0
- package/es/chat-engine/components/a2ui/containers/A2UICard.d.ts +22 -0
- package/es/chat-engine/components/a2ui/containers/A2UICard.js +82 -0
- package/es/chat-engine/components/a2ui/containers/A2UICard.js.map +1 -0
- package/es/chat-engine/components/a2ui/containers/A2UIColumn.d.ts +18 -0
- package/es/chat-engine/components/a2ui/containers/A2UIColumn.js +81 -0
- package/es/chat-engine/components/a2ui/containers/A2UIColumn.js.map +1 -0
- package/es/chat-engine/components/a2ui/containers/A2UIList.d.ts +14 -0
- package/es/chat-engine/components/a2ui/containers/A2UIList.js +62 -0
- package/es/chat-engine/components/a2ui/containers/A2UIList.js.map +1 -0
- package/es/chat-engine/components/a2ui/containers/A2UIRow.d.ts +20 -0
- package/es/chat-engine/components/a2ui/containers/A2UIRow.js +84 -0
- package/es/chat-engine/components/a2ui/containers/A2UIRow.js.map +1 -0
- package/es/chat-engine/components/a2ui/containers/A2UITabs.d.ts +14 -0
- package/es/chat-engine/components/a2ui/containers/A2UITabs.js +69 -0
- package/es/chat-engine/components/a2ui/containers/A2UITabs.js.map +1 -0
- package/es/chat-engine/components/a2ui/containers/index.d.ts +8 -0
- package/es/chat-engine/components/a2ui/containers/index.js +30 -0
- package/es/chat-engine/components/a2ui/containers/index.js.map +1 -0
- package/es/chat-engine/components/a2ui/index.d.ts +11 -0
- package/es/chat-engine/components/a2ui/index.js +62 -0
- package/es/chat-engine/components/a2ui/index.js.map +1 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIButton.d.ts +33 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIButton.js +80 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIButton.js.map +1 -0
- package/es/chat-engine/components/a2ui/primitives/A2UICheckBox.d.ts +12 -0
- package/es/chat-engine/components/a2ui/primitives/A2UICheckBox.js +43 -0
- package/es/chat-engine/components/a2ui/primitives/A2UICheckBox.js.map +1 -0
- package/es/chat-engine/components/a2ui/primitives/A2UICheckboxGroup.d.ts +50 -0
- package/es/chat-engine/components/a2ui/primitives/A2UICheckboxGroup.js +54 -0
- package/es/chat-engine/components/a2ui/primitives/A2UICheckboxGroup.js.map +1 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIChoicePicker.d.ts +13 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIChoicePicker.js +89 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIChoicePicker.js.map +1 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIDivider.d.ts +12 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIDivider.js +25 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIDivider.js.map +1 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIIcon.d.ts +13 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIIcon.js +138942 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIIcon.js.map +1 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIImage.d.ts +12 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIImage.js +75 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIImage.js.map +1 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIInput.d.ts +20 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIInput.js +63 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIInput.js.map +1 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIRadioGroup.d.ts +56 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIRadioGroup.js +64 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIRadioGroup.js.map +1 -0
- package/es/chat-engine/components/a2ui/primitives/A2UISlider.d.ts +12 -0
- package/es/chat-engine/components/a2ui/primitives/A2UISlider.js +55 -0
- package/es/chat-engine/components/a2ui/primitives/A2UISlider.js.map +1 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIText.d.ts +12 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIText.js +104 -0
- package/es/chat-engine/components/a2ui/primitives/A2UIText.js.map +1 -0
- package/es/chat-engine/components/a2ui/primitives/A2UITextField.d.ts +12 -0
- package/es/chat-engine/components/a2ui/primitives/A2UITextField.js +80 -0
- package/es/chat-engine/components/a2ui/primitives/A2UITextField.js.map +1 -0
- package/es/chat-engine/components/a2ui/primitives/index.d.ts +15 -0
- package/es/chat-engine/components/a2ui/primitives/index.js +39 -0
- package/es/chat-engine/components/a2ui/primitives/index.js.map +1 -0
- package/es/chat-engine/components/a2ui/registry.d.ts +35 -0
- package/es/chat-engine/components/a2ui/registry.js +74 -0
- package/es/chat-engine/components/a2ui/registry.js.map +1 -0
- package/es/chat-engine/components/activity/index.js +1 -1
- package/es/chat-engine/components/activity/registry.d.ts +1 -1
- package/es/chat-engine/components/activity/registry.js +1 -1
- package/es/chat-engine/components/activity/registry.js.map +1 -1
- package/es/chat-engine/components/activity/render.d.ts +2 -2
- package/es/chat-engine/components/activity/render.js +1 -1
- package/es/chat-engine/components/activity/render.js.map +1 -1
- package/es/chat-engine/components/activity/types.js +1 -1
- package/es/chat-engine/components/index.d.ts +1 -0
- package/es/chat-engine/components/index.js +57 -9
- package/es/chat-engine/components/index.js.map +1 -1
- package/es/chat-engine/components/json-render/A2UIJsonRenderActivityRenderer.d.ts +36 -0
- package/es/chat-engine/components/json-render/A2UIJsonRenderActivityRenderer.js +36 -0
- package/es/chat-engine/components/json-render/A2UIJsonRenderActivityRenderer.js.map +1 -0
- package/es/chat-engine/components/json-render/JsonRenderActivityRenderer.d.ts +46 -0
- package/es/chat-engine/components/json-render/JsonRenderActivityRenderer.js +36 -0
- package/es/chat-engine/components/json-render/JsonRenderActivityRenderer.js.map +1 -0
- package/es/chat-engine/components/json-render/SurfaceStateManager.d.ts +113 -0
- package/es/chat-engine/components/json-render/SurfaceStateManager.js +195 -0
- package/es/chat-engine/components/json-render/SurfaceStateManager.js.map +1 -0
- package/es/chat-engine/components/json-render/adapters/a2ui-to-jsonrender.d.ts +49 -0
- package/es/chat-engine/components/json-render/adapters/a2ui-to-jsonrender.js +307 -0
- package/es/chat-engine/components/json-render/adapters/a2ui-to-jsonrender.js.map +1 -0
- package/es/chat-engine/components/json-render/adapters/a2ui-types.d.ts +96 -0
- package/es/chat-engine/components/json-render/adapters/a2ui-types.js +7 -0
- package/es/chat-engine/components/json-render/adapters/a2ui-types.js.map +1 -0
- package/es/chat-engine/components/json-render/adapters/index.d.ts +7 -0
- package/es/chat-engine/components/json-render/adapters/index.js +11 -0
- package/es/chat-engine/components/json-render/adapters/index.js.map +1 -0
- package/es/chat-engine/components/json-render/catalog/a2ui-binding.d.ts +64 -0
- package/es/chat-engine/components/json-render/catalog/a2ui-binding.js +36 -0
- package/es/chat-engine/components/json-render/catalog/a2ui-binding.js.map +1 -0
- package/es/chat-engine/components/json-render/catalog/a2ui-registry.d.ts +78 -0
- package/es/chat-engine/components/json-render/catalog/a2ui-registry.js +36 -0
- package/es/chat-engine/components/json-render/catalog/a2ui-registry.js.map +1 -0
- package/es/chat-engine/components/json-render/catalog/button.d.ts +14 -0
- package/es/chat-engine/components/json-render/catalog/button.js +71 -0
- package/es/chat-engine/components/json-render/catalog/button.js.map +1 -0
- package/es/chat-engine/components/json-render/catalog/card.d.ts +11 -0
- package/es/chat-engine/components/json-render/catalog/card.js +57 -0
- package/es/chat-engine/components/json-render/catalog/card.js.map +1 -0
- package/es/chat-engine/components/json-render/catalog/index.d.ts +127 -0
- package/es/chat-engine/components/json-render/catalog/index.js +36 -0
- package/es/chat-engine/components/json-render/catalog/index.js.map +1 -0
- package/es/chat-engine/components/json-render/catalog/input.d.ts +20 -0
- package/es/chat-engine/components/json-render/catalog/input.js +36 -0
- package/es/chat-engine/components/json-render/catalog/input.js.map +1 -0
- package/es/chat-engine/components/json-render/catalog/layout.d.ts +44 -0
- package/es/chat-engine/components/json-render/catalog/layout.js +129 -0
- package/es/chat-engine/components/json-render/catalog/layout.js.map +1 -0
- package/es/chat-engine/components/json-render/catalog/text.d.ts +11 -0
- package/es/chat-engine/components/json-render/catalog/text.js +31 -0
- package/es/chat-engine/components/json-render/catalog/text.js.map +1 -0
- package/es/chat-engine/components/json-render/catalog.d.ts +549 -0
- package/es/chat-engine/components/json-render/catalog.js +147 -0
- package/es/chat-engine/components/json-render/catalog.js.map +1 -0
- package/es/chat-engine/components/json-render/config.d.ts +154 -0
- package/es/chat-engine/components/json-render/config.js +36 -0
- package/es/chat-engine/components/json-render/config.js.map +1 -0
- package/es/chat-engine/components/json-render/contexts/actions.d.ts +74 -0
- package/es/chat-engine/components/json-render/contexts/actions.js +290 -0
- package/es/chat-engine/components/json-render/contexts/actions.js.map +1 -0
- package/es/chat-engine/components/json-render/contexts/data.d.ts +45 -0
- package/es/chat-engine/components/json-render/contexts/data.js +104 -0
- package/es/chat-engine/components/json-render/contexts/data.js.map +1 -0
- package/es/chat-engine/components/json-render/contexts/validation.d.ts +59 -0
- package/es/chat-engine/components/json-render/contexts/validation.js +151 -0
- package/es/chat-engine/components/json-render/contexts/validation.js.map +1 -0
- package/es/chat-engine/components/json-render/contexts/visibility.d.ts +29 -0
- package/es/chat-engine/components/json-render/contexts/visibility.js +56 -0
- package/es/chat-engine/components/json-render/contexts/visibility.js.map +1 -0
- package/es/chat-engine/components/json-render/engine.d.ts +58 -0
- package/es/chat-engine/components/json-render/engine.js +88 -0
- package/es/chat-engine/components/json-render/engine.js.map +1 -0
- package/es/chat-engine/components/json-render/index.d.ts +34 -0
- package/es/chat-engine/components/json-render/index.js +36 -0
- package/es/chat-engine/components/json-render/index.js.map +1 -0
- package/es/chat-engine/components/json-render/performance.d.ts +91 -0
- package/es/chat-engine/components/json-render/performance.js +135 -0
- package/es/chat-engine/components/json-render/performance.js.map +1 -0
- package/es/chat-engine/components/json-render/renderer.d.ts +71 -0
- package/es/chat-engine/components/json-render/renderer.js +124 -0
- package/es/chat-engine/components/json-render/renderer.js.map +1 -0
- package/es/chat-engine/components/json-render/types.d.ts +69 -0
- package/es/chat-engine/components/json-render/types.js +7 -0
- package/es/chat-engine/components/json-render/types.js.map +1 -0
- package/es/chat-engine/components/provider/agent-state.js +39 -2
- package/es/chat-engine/components/provider/agent-state.js.map +1 -1
- package/es/chat-engine/components/toolcall/index.js +32 -2
- package/es/chat-engine/components/toolcall/index.js.map +1 -1
- package/es/chat-engine/components/toolcall/registry.js +1 -1
- package/es/chat-engine/components/toolcall/render.d.ts +1 -1
- package/es/chat-engine/components/toolcall/render.js +33 -4
- package/es/chat-engine/components/toolcall/render.js.map +1 -1
- package/es/chat-engine/components/toolcall/types.js +1 -1
- package/es/chat-engine/core/a2ui/index.d.ts +10 -0
- package/es/chat-engine/core/a2ui/index.js +24 -0
- package/es/chat-engine/core/a2ui/index.js.map +1 -0
- package/es/chat-engine/core/a2ui/processor/A2uiMessageProcessor.d.ts +197 -0
- package/es/chat-engine/core/a2ui/processor/A2uiMessageProcessor.js +438 -0
- package/es/chat-engine/core/a2ui/processor/A2uiMessageProcessor.js.map +1 -0
- package/es/chat-engine/core/a2ui/processor/ComponentTree.d.ts +53 -0
- package/es/chat-engine/core/a2ui/processor/ComponentTree.js +158 -0
- package/es/chat-engine/core/a2ui/processor/ComponentTree.js.map +1 -0
- package/es/chat-engine/core/a2ui/processor/DataStore.d.ts +63 -0
- package/es/chat-engine/core/a2ui/processor/DataStore.js +172 -0
- package/es/chat-engine/core/a2ui/processor/DataStore.js.map +1 -0
- package/es/chat-engine/core/a2ui/processor/PathResolver.d.ts +47 -0
- package/es/chat-engine/core/a2ui/processor/PathResolver.js +99 -0
- package/es/chat-engine/core/a2ui/processor/PathResolver.js.map +1 -0
- package/es/chat-engine/core/a2ui/types/index.d.ts +4 -0
- package/es/chat-engine/core/a2ui/types/index.js +9 -0
- package/es/chat-engine/core/a2ui/types/index.js.map +1 -0
- package/es/chat-engine/core/a2ui/types/types.d.ts +770 -0
- package/es/chat-engine/core/a2ui/types/types.js +104 -0
- package/es/chat-engine/core/a2ui/types/types.js.map +1 -0
- package/es/chat-engine/core/a2ui/utils/binding.d.ts +34 -0
- package/es/chat-engine/core/a2ui/utils/binding.js +1784 -0
- package/es/chat-engine/core/a2ui/utils/binding.js.map +1 -0
- package/es/chat-engine/core/a2ui/utils/index.d.ts +5 -0
- package/es/chat-engine/core/a2ui/utils/index.js +13 -0
- package/es/chat-engine/core/a2ui/utils/index.js.map +1 -0
- package/es/chat-engine/core/a2ui/utils/validation.d.ts +70 -0
- package/es/chat-engine/core/a2ui/utils/validation.js +333 -0
- package/es/chat-engine/core/a2ui/utils/validation.js.map +1 -0
- package/es/chat-engine/core/adapters/agui/activity-manager.d.ts +102 -0
- package/es/chat-engine/core/adapters/agui/activity-manager.js +144 -0
- package/es/chat-engine/core/adapters/agui/activity-manager.js.map +1 -0
- package/es/chat-engine/core/adapters/agui/event-mapper.d.ts +42 -2
- package/es/chat-engine/core/adapters/agui/event-mapper.js +90 -50
- package/es/chat-engine/core/adapters/agui/event-mapper.js.map +1 -1
- package/es/chat-engine/core/adapters/agui/events.d.ts +222 -222
- package/es/chat-engine/core/adapters/agui/events.js +34 -34
- package/es/chat-engine/core/adapters/agui/events.js.map +1 -1
- package/es/chat-engine/core/adapters/agui/index.d.ts +22 -2
- package/es/chat-engine/core/adapters/agui/index.js +34 -14
- package/es/chat-engine/core/adapters/agui/index.js.map +1 -1
- package/es/chat-engine/core/adapters/agui/state-manager.js +1 -1
- package/es/chat-engine/core/adapters/agui/types.d.ts +57 -56
- package/es/chat-engine/core/adapters/agui/types.js +5 -5
- package/es/chat-engine/core/adapters/agui/types.js.map +1 -1
- package/es/chat-engine/core/adapters/agui/utils.d.ts +9 -3
- package/es/chat-engine/core/adapters/agui/utils.js +23 -4
- package/es/chat-engine/core/adapters/agui/utils.js.map +1 -1
- package/es/chat-engine/core/event-bus/ChatEventBus.d.ts +88 -0
- package/es/chat-engine/core/event-bus/ChatEventBus.js +295 -0
- package/es/chat-engine/core/event-bus/ChatEventBus.js.map +1 -0
- package/es/chat-engine/core/event-bus/index.d.ts +5 -0
- package/es/chat-engine/core/event-bus/index.js +13 -0
- package/es/chat-engine/core/event-bus/index.js.map +1 -0
- package/es/chat-engine/core/event-bus/types.d.ts +230 -0
- package/es/chat-engine/core/event-bus/types.js +32 -0
- package/es/chat-engine/core/event-bus/types.js.map +1 -0
- package/es/chat-engine/core/index.d.ts +16 -1
- package/es/chat-engine/core/index.js +174 -17
- package/es/chat-engine/core/index.js.map +1 -1
- package/es/chat-engine/core/processor/index.js +1 -1
- package/es/chat-engine/core/server/batch-client.js +1 -1
- package/es/chat-engine/core/server/connection-manager.js +1 -1
- package/es/chat-engine/core/server/errors.js +1 -1
- package/es/chat-engine/core/server/index.js +1 -1
- package/es/chat-engine/core/server/llm-service.js +17 -15
- package/es/chat-engine/core/server/llm-service.js.map +1 -1
- package/es/chat-engine/core/server/sse-client.js +1 -1
- package/es/chat-engine/core/server/sse-parser.js +1 -1
- package/es/chat-engine/core/server/types.js +1 -1
- package/es/chat-engine/core/store/message.js +2 -2
- package/es/chat-engine/core/store/message.js.map +1 -1
- package/es/chat-engine/core/store/model.js +1 -1
- package/es/chat-engine/core/store/reactiveState.js +1 -1
- package/es/chat-engine/core/type.d.ts +18 -2
- package/es/chat-engine/core/type.js +1 -1
- package/es/chat-engine/core/utils/eventEmitter.js +1 -1
- package/es/chat-engine/core/utils/index.js +1 -1
- package/es/chat-engine/core/utils/logger.js +1 -1
- package/es/chat-engine/hooks/a2ui/A2UIContext.d.ts +90 -0
- package/es/chat-engine/hooks/a2ui/A2UIContext.js +97 -0
- package/es/chat-engine/hooks/a2ui/A2UIContext.js.map +1 -0
- package/es/chat-engine/hooks/a2ui/index.d.ts +12 -0
- package/es/chat-engine/hooks/a2ui/index.js +19 -0
- package/es/chat-engine/hooks/a2ui/index.js.map +1 -0
- package/es/chat-engine/hooks/a2ui/useA2UIAction.d.ts +40 -0
- package/es/chat-engine/hooks/a2ui/useA2UIAction.js +74 -0
- package/es/chat-engine/hooks/a2ui/useA2UIAction.js.map +1 -0
- package/es/chat-engine/hooks/a2ui/useA2UISurface.d.ts +36 -0
- package/es/chat-engine/hooks/a2ui/useA2UISurface.js +39 -0
- package/es/chat-engine/hooks/a2ui/useA2UISurface.js.map +1 -0
- package/es/chat-engine/hooks/a2ui/useDataBinding.d.ts +53 -0
- package/es/chat-engine/hooks/a2ui/useDataBinding.js +111 -0
- package/es/chat-engine/hooks/a2ui/useDataBinding.js.map +1 -0
- package/es/chat-engine/hooks/index.js +38 -4
- package/es/chat-engine/hooks/index.js.map +1 -1
- package/es/chat-engine/hooks/useAgentActivity.d.ts +1 -2
- package/es/chat-engine/hooks/useAgentActivity.js +1 -1
- package/es/chat-engine/hooks/useAgentActivity.js.map +1 -1
- package/es/chat-engine/hooks/useAgentState.js +39 -2
- package/es/chat-engine/hooks/useAgentState.js.map +1 -1
- package/es/chat-engine/hooks/useAgentToolcall.js +1 -1
- package/es/chat-engine/hooks/useChat.d.ts +3 -3
- package/es/chat-engine/hooks/useChat.js +40 -2
- package/es/chat-engine/hooks/useChat.js.map +1 -1
- package/es/chat-engine/hooks/useJsonRenderActivity.d.ts +56 -0
- package/es/chat-engine/hooks/useJsonRenderActivity.js +63 -0
- package/es/chat-engine/hooks/useJsonRenderActivity.js.map +1 -0
- package/es/chat-engine/index.d.ts +1 -3
- package/es/chat-engine/index.js +30 -8
- package/es/chat-engine/index.js.map +1 -1
- package/es/chat-filecard/index.js +1 -1
- package/es/chat-loading/index.js +1 -1
- package/es/chat-markdown/index.js +1 -1
- package/es/chat-message/index.js +1 -1
- package/es/chat-sender/index.js +1 -1
- package/es/chat-thinking/index.js +1 -1
- package/es/chatbot/docs/react-best-practice.d.ts +13 -0
- package/es/chatbot/index.js +1 -1
- package/es/index.js +27 -5
- package/es/index.js.map +1 -1
- package/es/style/index.js +1 -1
- package/package.json +6 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export type ToolCallEventType = 'TOOL_CALL_START' | 'TOOL_CALL_ARGS' | 'TOOL_CALL_END' | 'TOOL_CALL_CHUNK' | 'TOOL_CALL_RESULT';
|
|
3
|
-
export declare enum
|
|
3
|
+
export declare enum AGUIEventType {
|
|
4
4
|
TEXT_MESSAGE_START = "TEXT_MESSAGE_START",
|
|
5
5
|
TEXT_MESSAGE_CONTENT = "TEXT_MESSAGE_CONTENT",
|
|
6
6
|
TEXT_MESSAGE_END = "TEXT_MESSAGE_END",
|
|
@@ -59,15 +59,15 @@ export declare function isActivityEvent(eventType: string): boolean;
|
|
|
59
59
|
*/
|
|
60
60
|
export declare function isStateEvent(eventType: string): boolean;
|
|
61
61
|
declare const BaseEventSchema: z.ZodObject<{
|
|
62
|
-
type: z.ZodNativeEnum<typeof
|
|
62
|
+
type: z.ZodNativeEnum<typeof AGUIEventType>;
|
|
63
63
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
64
64
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
65
65
|
}, "strip", z.ZodTypeAny, {
|
|
66
|
-
type?:
|
|
66
|
+
type?: AGUIEventType;
|
|
67
67
|
timestamp?: number;
|
|
68
68
|
rawEvent?: any;
|
|
69
69
|
}, {
|
|
70
|
-
type?:
|
|
70
|
+
type?: AGUIEventType;
|
|
71
71
|
timestamp?: number;
|
|
72
72
|
rawEvent?: any;
|
|
73
73
|
}>;
|
|
@@ -75,93 +75,93 @@ export declare const TextMessageStartEventSchema: z.ZodObject<{
|
|
|
75
75
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
76
76
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
77
77
|
} & {
|
|
78
|
-
type: z.ZodLiteral<
|
|
78
|
+
type: z.ZodLiteral<AGUIEventType.TEXT_MESSAGE_START>;
|
|
79
79
|
messageId: z.ZodString;
|
|
80
80
|
role: z.ZodLiteral<"assistant">;
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
|
|
83
|
-
type?: EventType.TEXT_MESSAGE_START;
|
|
82
|
+
type?: AGUIEventType.TEXT_MESSAGE_START;
|
|
84
83
|
role?: "assistant";
|
|
85
84
|
timestamp?: number;
|
|
86
85
|
rawEvent?: any;
|
|
87
|
-
}, {
|
|
88
86
|
messageId?: string;
|
|
89
|
-
|
|
87
|
+
}, {
|
|
88
|
+
type?: AGUIEventType.TEXT_MESSAGE_START;
|
|
90
89
|
role?: "assistant";
|
|
91
90
|
timestamp?: number;
|
|
92
91
|
rawEvent?: any;
|
|
92
|
+
messageId?: string;
|
|
93
93
|
}>;
|
|
94
94
|
export declare const TextMessageContentEventSchema: z.ZodObject<{
|
|
95
95
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
96
96
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
97
97
|
} & {
|
|
98
|
-
type: z.ZodLiteral<
|
|
98
|
+
type: z.ZodLiteral<AGUIEventType.TEXT_MESSAGE_CONTENT>;
|
|
99
99
|
messageId: z.ZodString;
|
|
100
100
|
delta: z.ZodEffects<z.ZodString, string, string>;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
|
|
103
|
-
type?: EventType.TEXT_MESSAGE_CONTENT;
|
|
102
|
+
type?: AGUIEventType.TEXT_MESSAGE_CONTENT;
|
|
104
103
|
timestamp?: number;
|
|
105
104
|
rawEvent?: any;
|
|
105
|
+
messageId?: string;
|
|
106
106
|
delta?: string;
|
|
107
107
|
}, {
|
|
108
|
-
|
|
109
|
-
type?: EventType.TEXT_MESSAGE_CONTENT;
|
|
108
|
+
type?: AGUIEventType.TEXT_MESSAGE_CONTENT;
|
|
110
109
|
timestamp?: number;
|
|
111
110
|
rawEvent?: any;
|
|
111
|
+
messageId?: string;
|
|
112
112
|
delta?: string;
|
|
113
113
|
}>;
|
|
114
114
|
export declare const TextMessageEndEventSchema: z.ZodObject<{
|
|
115
115
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
116
116
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
117
117
|
} & {
|
|
118
|
-
type: z.ZodLiteral<
|
|
118
|
+
type: z.ZodLiteral<AGUIEventType.TEXT_MESSAGE_END>;
|
|
119
119
|
messageId: z.ZodString;
|
|
120
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
|
-
|
|
122
|
-
type?: EventType.TEXT_MESSAGE_END;
|
|
121
|
+
type?: AGUIEventType.TEXT_MESSAGE_END;
|
|
123
122
|
timestamp?: number;
|
|
124
123
|
rawEvent?: any;
|
|
125
|
-
}, {
|
|
126
124
|
messageId?: string;
|
|
127
|
-
|
|
125
|
+
}, {
|
|
126
|
+
type?: AGUIEventType.TEXT_MESSAGE_END;
|
|
128
127
|
timestamp?: number;
|
|
129
128
|
rawEvent?: any;
|
|
129
|
+
messageId?: string;
|
|
130
130
|
}>;
|
|
131
131
|
export declare const TextMessageChunkEventSchema: z.ZodObject<{
|
|
132
132
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
133
133
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
134
134
|
} & {
|
|
135
|
-
type: z.ZodLiteral<
|
|
135
|
+
type: z.ZodLiteral<AGUIEventType.TEXT_MESSAGE_CHUNK>;
|
|
136
136
|
messageId: z.ZodOptional<z.ZodString>;
|
|
137
137
|
role: z.ZodOptional<z.ZodLiteral<"assistant">>;
|
|
138
138
|
delta: z.ZodOptional<z.ZodString>;
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
|
-
|
|
141
|
-
type?: EventType.TEXT_MESSAGE_CHUNK;
|
|
140
|
+
type?: AGUIEventType.TEXT_MESSAGE_CHUNK;
|
|
142
141
|
role?: "assistant";
|
|
143
142
|
timestamp?: number;
|
|
144
143
|
rawEvent?: any;
|
|
144
|
+
messageId?: string;
|
|
145
145
|
delta?: string;
|
|
146
146
|
}, {
|
|
147
|
-
|
|
148
|
-
type?: EventType.TEXT_MESSAGE_CHUNK;
|
|
147
|
+
type?: AGUIEventType.TEXT_MESSAGE_CHUNK;
|
|
149
148
|
role?: "assistant";
|
|
150
149
|
timestamp?: number;
|
|
151
150
|
rawEvent?: any;
|
|
151
|
+
messageId?: string;
|
|
152
152
|
delta?: string;
|
|
153
153
|
}>;
|
|
154
154
|
export declare const ThinkingTextMessageStartEventSchema: z.ZodObject<{
|
|
155
155
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
156
156
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
157
157
|
} & {
|
|
158
|
-
type: z.ZodLiteral<
|
|
158
|
+
type: z.ZodLiteral<AGUIEventType.THINKING_TEXT_MESSAGE_START>;
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
|
-
type?:
|
|
160
|
+
type?: AGUIEventType.THINKING_TEXT_MESSAGE_START;
|
|
161
161
|
timestamp?: number;
|
|
162
162
|
rawEvent?: any;
|
|
163
163
|
}, {
|
|
164
|
-
type?:
|
|
164
|
+
type?: AGUIEventType.THINKING_TEXT_MESSAGE_START;
|
|
165
165
|
timestamp?: number;
|
|
166
166
|
rawEvent?: any;
|
|
167
167
|
}>;
|
|
@@ -169,18 +169,18 @@ export declare const ThinkingTextMessageContentEventSchema: z.ZodObject<Omit<{
|
|
|
169
169
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
170
170
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
171
171
|
} & {
|
|
172
|
-
type: z.ZodLiteral<
|
|
172
|
+
type: z.ZodLiteral<AGUIEventType.TEXT_MESSAGE_CONTENT>;
|
|
173
173
|
messageId: z.ZodString;
|
|
174
174
|
delta: z.ZodEffects<z.ZodString, string, string>;
|
|
175
|
-
}, "
|
|
176
|
-
type: z.ZodLiteral<
|
|
175
|
+
}, "type" | "messageId"> & {
|
|
176
|
+
type: z.ZodLiteral<AGUIEventType.THINKING_TEXT_MESSAGE_CONTENT>;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
type?:
|
|
178
|
+
type?: AGUIEventType.THINKING_TEXT_MESSAGE_CONTENT;
|
|
179
179
|
timestamp?: number;
|
|
180
180
|
rawEvent?: any;
|
|
181
181
|
delta?: string;
|
|
182
182
|
}, {
|
|
183
|
-
type?:
|
|
183
|
+
type?: AGUIEventType.THINKING_TEXT_MESSAGE_CONTENT;
|
|
184
184
|
timestamp?: number;
|
|
185
185
|
rawEvent?: any;
|
|
186
186
|
delta?: string;
|
|
@@ -189,13 +189,13 @@ export declare const ThinkingTextMessageEndEventSchema: z.ZodObject<{
|
|
|
189
189
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
190
190
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
191
191
|
} & {
|
|
192
|
-
type: z.ZodLiteral<
|
|
192
|
+
type: z.ZodLiteral<AGUIEventType.THINKING_TEXT_MESSAGE_END>;
|
|
193
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
type?:
|
|
194
|
+
type?: AGUIEventType.THINKING_TEXT_MESSAGE_END;
|
|
195
195
|
timestamp?: number;
|
|
196
196
|
rawEvent?: any;
|
|
197
197
|
}, {
|
|
198
|
-
type?:
|
|
198
|
+
type?: AGUIEventType.THINKING_TEXT_MESSAGE_END;
|
|
199
199
|
timestamp?: number;
|
|
200
200
|
rawEvent?: any;
|
|
201
201
|
}>;
|
|
@@ -203,40 +203,40 @@ export declare const ToolCallStartEventSchema: z.ZodObject<{
|
|
|
203
203
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
204
204
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
205
205
|
} & {
|
|
206
|
-
type: z.ZodLiteral<
|
|
206
|
+
type: z.ZodLiteral<AGUIEventType.TOOL_CALL_START>;
|
|
207
207
|
toolCallId: z.ZodString;
|
|
208
208
|
toolCallName: z.ZodString;
|
|
209
209
|
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
210
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
|
-
|
|
212
|
-
type?: EventType.TOOL_CALL_START;
|
|
211
|
+
type?: AGUIEventType.TOOL_CALL_START;
|
|
213
212
|
timestamp?: number;
|
|
214
213
|
toolCallId?: string;
|
|
215
214
|
rawEvent?: any;
|
|
215
|
+
toolCallName?: string;
|
|
216
216
|
parentMessageId?: string;
|
|
217
217
|
}, {
|
|
218
|
-
|
|
219
|
-
type?: EventType.TOOL_CALL_START;
|
|
218
|
+
type?: AGUIEventType.TOOL_CALL_START;
|
|
220
219
|
timestamp?: number;
|
|
221
220
|
toolCallId?: string;
|
|
222
221
|
rawEvent?: any;
|
|
222
|
+
toolCallName?: string;
|
|
223
223
|
parentMessageId?: string;
|
|
224
224
|
}>;
|
|
225
225
|
export declare const ToolCallArgsEventSchema: z.ZodObject<{
|
|
226
226
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
227
227
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
228
228
|
} & {
|
|
229
|
-
type: z.ZodLiteral<
|
|
229
|
+
type: z.ZodLiteral<AGUIEventType.TOOL_CALL_ARGS>;
|
|
230
230
|
toolCallId: z.ZodString;
|
|
231
231
|
delta: z.ZodString;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
|
-
type?:
|
|
233
|
+
type?: AGUIEventType.TOOL_CALL_ARGS;
|
|
234
234
|
timestamp?: number;
|
|
235
235
|
toolCallId?: string;
|
|
236
236
|
rawEvent?: any;
|
|
237
237
|
delta?: string;
|
|
238
238
|
}, {
|
|
239
|
-
type?:
|
|
239
|
+
type?: AGUIEventType.TOOL_CALL_ARGS;
|
|
240
240
|
timestamp?: number;
|
|
241
241
|
toolCallId?: string;
|
|
242
242
|
rawEvent?: any;
|
|
@@ -246,15 +246,15 @@ export declare const ToolCallEndEventSchema: z.ZodObject<{
|
|
|
246
246
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
247
247
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
248
248
|
} & {
|
|
249
|
-
type: z.ZodLiteral<
|
|
249
|
+
type: z.ZodLiteral<AGUIEventType.TOOL_CALL_END>;
|
|
250
250
|
toolCallId: z.ZodString;
|
|
251
251
|
}, "strip", z.ZodTypeAny, {
|
|
252
|
-
type?:
|
|
252
|
+
type?: AGUIEventType.TOOL_CALL_END;
|
|
253
253
|
timestamp?: number;
|
|
254
254
|
toolCallId?: string;
|
|
255
255
|
rawEvent?: any;
|
|
256
256
|
}, {
|
|
257
|
-
type?:
|
|
257
|
+
type?: AGUIEventType.TOOL_CALL_END;
|
|
258
258
|
timestamp?: number;
|
|
259
259
|
toolCallId?: string;
|
|
260
260
|
rawEvent?: any;
|
|
@@ -264,61 +264,61 @@ export declare const ToolCallResultEventSchema: z.ZodObject<{
|
|
|
264
264
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
265
265
|
} & {
|
|
266
266
|
messageId: z.ZodString;
|
|
267
|
-
type: z.ZodLiteral<
|
|
267
|
+
type: z.ZodLiteral<AGUIEventType.TOOL_CALL_RESULT>;
|
|
268
268
|
toolCallId: z.ZodString;
|
|
269
269
|
toolCallName: z.ZodString;
|
|
270
270
|
content: z.ZodString;
|
|
271
271
|
role: z.ZodOptional<z.ZodLiteral<"tool">>;
|
|
272
272
|
}, "strip", z.ZodTypeAny, {
|
|
273
273
|
content?: string;
|
|
274
|
-
|
|
275
|
-
toolCallName?: string;
|
|
276
|
-
type?: EventType.TOOL_CALL_RESULT;
|
|
274
|
+
type?: AGUIEventType.TOOL_CALL_RESULT;
|
|
277
275
|
role?: "tool";
|
|
278
276
|
timestamp?: number;
|
|
279
277
|
toolCallId?: string;
|
|
280
278
|
rawEvent?: any;
|
|
281
|
-
}, {
|
|
282
|
-
content?: string;
|
|
283
279
|
messageId?: string;
|
|
284
280
|
toolCallName?: string;
|
|
285
|
-
|
|
281
|
+
}, {
|
|
282
|
+
content?: string;
|
|
283
|
+
type?: AGUIEventType.TOOL_CALL_RESULT;
|
|
286
284
|
role?: "tool";
|
|
287
285
|
timestamp?: number;
|
|
288
286
|
toolCallId?: string;
|
|
289
287
|
rawEvent?: any;
|
|
288
|
+
messageId?: string;
|
|
289
|
+
toolCallName?: string;
|
|
290
290
|
}>;
|
|
291
291
|
export declare const ToolCallChunkEventSchema: z.ZodObject<{
|
|
292
292
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
293
293
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
294
294
|
} & {
|
|
295
|
-
type: z.ZodLiteral<
|
|
295
|
+
type: z.ZodLiteral<AGUIEventType.TOOL_CALL_CHUNK>;
|
|
296
296
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
297
297
|
toolCallName: z.ZodOptional<z.ZodString>;
|
|
298
298
|
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
299
299
|
delta: z.ZodOptional<z.ZodString>;
|
|
300
300
|
}, "strip", z.ZodTypeAny, {
|
|
301
|
-
|
|
302
|
-
type?: EventType.TOOL_CALL_CHUNK;
|
|
301
|
+
type?: AGUIEventType.TOOL_CALL_CHUNK;
|
|
303
302
|
timestamp?: number;
|
|
304
303
|
toolCallId?: string;
|
|
305
304
|
rawEvent?: any;
|
|
306
305
|
delta?: string;
|
|
306
|
+
toolCallName?: string;
|
|
307
307
|
parentMessageId?: string;
|
|
308
308
|
}, {
|
|
309
|
-
|
|
310
|
-
type?: EventType.TOOL_CALL_CHUNK;
|
|
309
|
+
type?: AGUIEventType.TOOL_CALL_CHUNK;
|
|
311
310
|
timestamp?: number;
|
|
312
311
|
toolCallId?: string;
|
|
313
312
|
rawEvent?: any;
|
|
314
313
|
delta?: string;
|
|
314
|
+
toolCallName?: string;
|
|
315
315
|
parentMessageId?: string;
|
|
316
316
|
}>;
|
|
317
317
|
export declare const ActivitySnapshotEventSchema: z.ZodObject<{
|
|
318
318
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
319
319
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
320
320
|
} & {
|
|
321
|
-
type: z.ZodLiteral<
|
|
321
|
+
type: z.ZodLiteral<AGUIEventType.ACTIVITY_SNAPSHOT>;
|
|
322
322
|
messageId: z.ZodOptional<z.ZodString>;
|
|
323
323
|
activityType: z.ZodString;
|
|
324
324
|
content: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -326,57 +326,57 @@ export declare const ActivitySnapshotEventSchema: z.ZodObject<{
|
|
|
326
326
|
}, "strip", z.ZodTypeAny, {
|
|
327
327
|
replace?: boolean;
|
|
328
328
|
content?: Record<string, any>;
|
|
329
|
-
|
|
330
|
-
messageId?: string;
|
|
331
|
-
type?: EventType.ACTIVITY_SNAPSHOT;
|
|
329
|
+
type?: AGUIEventType.ACTIVITY_SNAPSHOT;
|
|
332
330
|
timestamp?: number;
|
|
331
|
+
activityType?: string;
|
|
333
332
|
rawEvent?: any;
|
|
333
|
+
messageId?: string;
|
|
334
334
|
}, {
|
|
335
335
|
replace?: boolean;
|
|
336
336
|
content?: Record<string, any>;
|
|
337
|
-
|
|
338
|
-
messageId?: string;
|
|
339
|
-
type?: EventType.ACTIVITY_SNAPSHOT;
|
|
337
|
+
type?: AGUIEventType.ACTIVITY_SNAPSHOT;
|
|
340
338
|
timestamp?: number;
|
|
339
|
+
activityType?: string;
|
|
341
340
|
rawEvent?: any;
|
|
341
|
+
messageId?: string;
|
|
342
342
|
}>;
|
|
343
343
|
export declare const ActivityDeltaEventSchema: z.ZodObject<{
|
|
344
344
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
345
345
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
346
346
|
} & {
|
|
347
|
-
type: z.ZodLiteral<
|
|
347
|
+
type: z.ZodLiteral<AGUIEventType.ACTIVITY_DELTA>;
|
|
348
348
|
messageId: z.ZodOptional<z.ZodString>;
|
|
349
349
|
activityType: z.ZodOptional<z.ZodString>;
|
|
350
350
|
patch: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
351
351
|
}, "strip", z.ZodTypeAny, {
|
|
352
|
-
|
|
353
|
-
messageId?: string;
|
|
354
|
-
type?: EventType.ACTIVITY_DELTA;
|
|
352
|
+
type?: AGUIEventType.ACTIVITY_DELTA;
|
|
355
353
|
timestamp?: number;
|
|
354
|
+
activityType?: string;
|
|
356
355
|
rawEvent?: any;
|
|
356
|
+
messageId?: string;
|
|
357
357
|
patch?: any[];
|
|
358
358
|
}, {
|
|
359
|
-
|
|
360
|
-
messageId?: string;
|
|
361
|
-
type?: EventType.ACTIVITY_DELTA;
|
|
359
|
+
type?: AGUIEventType.ACTIVITY_DELTA;
|
|
362
360
|
timestamp?: number;
|
|
361
|
+
activityType?: string;
|
|
363
362
|
rawEvent?: any;
|
|
363
|
+
messageId?: string;
|
|
364
364
|
patch?: any[];
|
|
365
365
|
}>;
|
|
366
366
|
export declare const ThinkingStartEventSchema: z.ZodObject<{
|
|
367
367
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
368
368
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
369
369
|
} & {
|
|
370
|
-
type: z.ZodLiteral<
|
|
370
|
+
type: z.ZodLiteral<AGUIEventType.THINKING_START>;
|
|
371
371
|
title: z.ZodOptional<z.ZodString>;
|
|
372
372
|
}, "strip", z.ZodTypeAny, {
|
|
373
373
|
title?: string;
|
|
374
|
-
type?:
|
|
374
|
+
type?: AGUIEventType.THINKING_START;
|
|
375
375
|
timestamp?: number;
|
|
376
376
|
rawEvent?: any;
|
|
377
377
|
}, {
|
|
378
378
|
title?: string;
|
|
379
|
-
type?:
|
|
379
|
+
type?: AGUIEventType.THINKING_START;
|
|
380
380
|
timestamp?: number;
|
|
381
381
|
rawEvent?: any;
|
|
382
382
|
}>;
|
|
@@ -384,16 +384,16 @@ export declare const ThinkingEndEventSchema: z.ZodObject<{
|
|
|
384
384
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
385
385
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
386
386
|
} & {
|
|
387
|
-
type: z.ZodLiteral<
|
|
387
|
+
type: z.ZodLiteral<AGUIEventType.THINKING_END>;
|
|
388
388
|
title: z.ZodOptional<z.ZodString>;
|
|
389
389
|
}, "strip", z.ZodTypeAny, {
|
|
390
390
|
title?: string;
|
|
391
|
-
type?:
|
|
391
|
+
type?: AGUIEventType.THINKING_END;
|
|
392
392
|
timestamp?: number;
|
|
393
393
|
rawEvent?: any;
|
|
394
394
|
}, {
|
|
395
395
|
title?: string;
|
|
396
|
-
type?:
|
|
396
|
+
type?: AGUIEventType.THINKING_END;
|
|
397
397
|
timestamp?: number;
|
|
398
398
|
rawEvent?: any;
|
|
399
399
|
}>;
|
|
@@ -401,15 +401,15 @@ export declare const StateSnapshotEventSchema: z.ZodObject<{
|
|
|
401
401
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
402
402
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
403
403
|
} & {
|
|
404
|
-
type: z.ZodLiteral<
|
|
404
|
+
type: z.ZodLiteral<AGUIEventType.STATE_SNAPSHOT>;
|
|
405
405
|
snapshot: z.ZodAny;
|
|
406
406
|
}, "strip", z.ZodTypeAny, {
|
|
407
|
-
type?:
|
|
407
|
+
type?: AGUIEventType.STATE_SNAPSHOT;
|
|
408
408
|
timestamp?: number;
|
|
409
409
|
rawEvent?: any;
|
|
410
410
|
snapshot?: any;
|
|
411
411
|
}, {
|
|
412
|
-
type?:
|
|
412
|
+
type?: AGUIEventType.STATE_SNAPSHOT;
|
|
413
413
|
timestamp?: number;
|
|
414
414
|
rawEvent?: any;
|
|
415
415
|
snapshot?: any;
|
|
@@ -418,15 +418,15 @@ export declare const StateDeltaEventSchema: z.ZodObject<{
|
|
|
418
418
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
419
419
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
420
420
|
} & {
|
|
421
|
-
type: z.ZodLiteral<
|
|
421
|
+
type: z.ZodLiteral<AGUIEventType.STATE_DELTA>;
|
|
422
422
|
delta: z.ZodArray<z.ZodAny, "many">;
|
|
423
423
|
}, "strip", z.ZodTypeAny, {
|
|
424
|
-
type?:
|
|
424
|
+
type?: AGUIEventType.STATE_DELTA;
|
|
425
425
|
timestamp?: number;
|
|
426
426
|
rawEvent?: any;
|
|
427
427
|
delta?: any[];
|
|
428
428
|
}, {
|
|
429
|
-
type?:
|
|
429
|
+
type?: AGUIEventType.STATE_DELTA;
|
|
430
430
|
timestamp?: number;
|
|
431
431
|
rawEvent?: any;
|
|
432
432
|
delta?: any[];
|
|
@@ -435,7 +435,7 @@ export declare const MessagesSnapshotEventSchema: z.ZodObject<{
|
|
|
435
435
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
436
436
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
437
437
|
} & {
|
|
438
|
-
type: z.ZodLiteral<
|
|
438
|
+
type: z.ZodLiteral<AGUIEventType.MESSAGES_SNAPSHOT>;
|
|
439
439
|
messages: z.ZodArray<z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
440
440
|
id: z.ZodString;
|
|
441
441
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -581,16 +581,18 @@ export declare const MessagesSnapshotEventSchema: z.ZodObject<{
|
|
|
581
581
|
content: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
582
582
|
}, "strip", z.ZodTypeAny, {
|
|
583
583
|
content?: Record<string, any>;
|
|
584
|
-
activityType?: string;
|
|
585
584
|
id?: string;
|
|
586
585
|
role?: "activity";
|
|
586
|
+
activityType?: string;
|
|
587
587
|
}, {
|
|
588
588
|
content?: Record<string, any>;
|
|
589
|
-
activityType?: string;
|
|
590
589
|
id?: string;
|
|
591
590
|
role?: "activity";
|
|
591
|
+
activityType?: string;
|
|
592
592
|
}>]>, "many">;
|
|
593
593
|
}, "strip", z.ZodTypeAny, {
|
|
594
|
+
type?: AGUIEventType.MESSAGES_SNAPSHOT;
|
|
595
|
+
timestamp?: number;
|
|
594
596
|
messages?: ({
|
|
595
597
|
content?: string;
|
|
596
598
|
name?: string;
|
|
@@ -631,14 +633,14 @@ export declare const MessagesSnapshotEventSchema: z.ZodObject<{
|
|
|
631
633
|
toolCallId?: string;
|
|
632
634
|
} | {
|
|
633
635
|
content?: Record<string, any>;
|
|
634
|
-
activityType?: string;
|
|
635
636
|
id?: string;
|
|
636
637
|
role?: "activity";
|
|
638
|
+
activityType?: string;
|
|
637
639
|
})[];
|
|
638
|
-
type?: EventType.MESSAGES_SNAPSHOT;
|
|
639
|
-
timestamp?: number;
|
|
640
640
|
rawEvent?: any;
|
|
641
641
|
}, {
|
|
642
|
+
type?: AGUIEventType.MESSAGES_SNAPSHOT;
|
|
643
|
+
timestamp?: number;
|
|
642
644
|
messages?: ({
|
|
643
645
|
content?: string;
|
|
644
646
|
name?: string;
|
|
@@ -679,31 +681,29 @@ export declare const MessagesSnapshotEventSchema: z.ZodObject<{
|
|
|
679
681
|
toolCallId?: string;
|
|
680
682
|
} | {
|
|
681
683
|
content?: Record<string, any>;
|
|
682
|
-
activityType?: string;
|
|
683
684
|
id?: string;
|
|
684
685
|
role?: "activity";
|
|
686
|
+
activityType?: string;
|
|
685
687
|
})[];
|
|
686
|
-
type?: EventType.MESSAGES_SNAPSHOT;
|
|
687
|
-
timestamp?: number;
|
|
688
688
|
rawEvent?: any;
|
|
689
689
|
}>;
|
|
690
690
|
export declare const RawEventSchema: z.ZodObject<{
|
|
691
691
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
692
692
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
693
693
|
} & {
|
|
694
|
-
type: z.ZodLiteral<
|
|
694
|
+
type: z.ZodLiteral<AGUIEventType.RAW>;
|
|
695
695
|
event: z.ZodAny;
|
|
696
696
|
source: z.ZodOptional<z.ZodString>;
|
|
697
697
|
}, "strip", z.ZodTypeAny, {
|
|
698
698
|
source?: string;
|
|
699
699
|
event?: any;
|
|
700
|
-
type?:
|
|
700
|
+
type?: AGUIEventType.RAW;
|
|
701
701
|
timestamp?: number;
|
|
702
702
|
rawEvent?: any;
|
|
703
703
|
}, {
|
|
704
704
|
source?: string;
|
|
705
705
|
event?: any;
|
|
706
|
-
type?:
|
|
706
|
+
type?: AGUIEventType.RAW;
|
|
707
707
|
timestamp?: number;
|
|
708
708
|
rawEvent?: any;
|
|
709
709
|
}>;
|
|
@@ -711,19 +711,19 @@ export declare const CustomEventSchema: z.ZodObject<{
|
|
|
711
711
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
712
712
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
713
713
|
} & {
|
|
714
|
-
type: z.ZodLiteral<
|
|
714
|
+
type: z.ZodLiteral<AGUIEventType.CUSTOM>;
|
|
715
715
|
name: z.ZodString;
|
|
716
716
|
value: z.ZodAny;
|
|
717
717
|
}, "strip", z.ZodTypeAny, {
|
|
718
718
|
name?: string;
|
|
719
719
|
value?: any;
|
|
720
|
-
type?:
|
|
720
|
+
type?: AGUIEventType.CUSTOM;
|
|
721
721
|
timestamp?: number;
|
|
722
722
|
rawEvent?: any;
|
|
723
723
|
}, {
|
|
724
724
|
name?: string;
|
|
725
725
|
value?: any;
|
|
726
|
-
type?:
|
|
726
|
+
type?: AGUIEventType.CUSTOM;
|
|
727
727
|
timestamp?: number;
|
|
728
728
|
rawEvent?: any;
|
|
729
729
|
}>;
|
|
@@ -731,17 +731,17 @@ export declare const RunStartedEventSchema: z.ZodObject<{
|
|
|
731
731
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
732
732
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
733
733
|
} & {
|
|
734
|
-
type: z.ZodLiteral<
|
|
734
|
+
type: z.ZodLiteral<AGUIEventType.RUN_STARTED>;
|
|
735
735
|
threadId: z.ZodString;
|
|
736
736
|
runId: z.ZodString;
|
|
737
737
|
}, "strip", z.ZodTypeAny, {
|
|
738
|
-
type?:
|
|
738
|
+
type?: AGUIEventType.RUN_STARTED;
|
|
739
739
|
timestamp?: number;
|
|
740
740
|
threadId?: string;
|
|
741
741
|
runId?: string;
|
|
742
742
|
rawEvent?: any;
|
|
743
743
|
}, {
|
|
744
|
-
type?:
|
|
744
|
+
type?: AGUIEventType.RUN_STARTED;
|
|
745
745
|
timestamp?: number;
|
|
746
746
|
threadId?: string;
|
|
747
747
|
runId?: string;
|
|
@@ -751,42 +751,42 @@ export declare const RunFinishedEventSchema: z.ZodObject<{
|
|
|
751
751
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
752
752
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
753
753
|
} & {
|
|
754
|
-
type: z.ZodLiteral<
|
|
754
|
+
type: z.ZodLiteral<AGUIEventType.RUN_FINISHED>;
|
|
755
755
|
threadId: z.ZodString;
|
|
756
756
|
runId: z.ZodString;
|
|
757
757
|
result: z.ZodOptional<z.ZodAny>;
|
|
758
758
|
}, "strip", z.ZodTypeAny, {
|
|
759
|
-
|
|
760
|
-
type?: EventType.RUN_FINISHED;
|
|
759
|
+
type?: AGUIEventType.RUN_FINISHED;
|
|
761
760
|
timestamp?: number;
|
|
762
761
|
threadId?: string;
|
|
763
762
|
runId?: string;
|
|
764
763
|
rawEvent?: any;
|
|
765
|
-
}, {
|
|
766
764
|
result?: any;
|
|
767
|
-
|
|
765
|
+
}, {
|
|
766
|
+
type?: AGUIEventType.RUN_FINISHED;
|
|
768
767
|
timestamp?: number;
|
|
769
768
|
threadId?: string;
|
|
770
769
|
runId?: string;
|
|
771
770
|
rawEvent?: any;
|
|
771
|
+
result?: any;
|
|
772
772
|
}>;
|
|
773
773
|
export declare const RunErrorEventSchema: z.ZodObject<{
|
|
774
774
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
775
775
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
776
776
|
} & {
|
|
777
|
-
type: z.ZodLiteral<
|
|
777
|
+
type: z.ZodLiteral<AGUIEventType.RUN_ERROR>;
|
|
778
778
|
message: z.ZodString;
|
|
779
779
|
code: z.ZodOptional<z.ZodString>;
|
|
780
780
|
}, "strip", z.ZodTypeAny, {
|
|
781
781
|
code?: string;
|
|
782
782
|
message?: string;
|
|
783
|
-
type?:
|
|
783
|
+
type?: AGUIEventType.RUN_ERROR;
|
|
784
784
|
timestamp?: number;
|
|
785
785
|
rawEvent?: any;
|
|
786
786
|
}, {
|
|
787
787
|
code?: string;
|
|
788
788
|
message?: string;
|
|
789
|
-
type?:
|
|
789
|
+
type?: AGUIEventType.RUN_ERROR;
|
|
790
790
|
timestamp?: number;
|
|
791
791
|
rawEvent?: any;
|
|
792
792
|
}>;
|
|
@@ -794,15 +794,15 @@ export declare const StepStartedEventSchema: z.ZodObject<{
|
|
|
794
794
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
795
795
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
796
796
|
} & {
|
|
797
|
-
type: z.ZodLiteral<
|
|
797
|
+
type: z.ZodLiteral<AGUIEventType.STEP_STARTED>;
|
|
798
798
|
stepName: z.ZodString;
|
|
799
799
|
}, "strip", z.ZodTypeAny, {
|
|
800
|
-
type?:
|
|
800
|
+
type?: AGUIEventType.STEP_STARTED;
|
|
801
801
|
timestamp?: number;
|
|
802
802
|
rawEvent?: any;
|
|
803
803
|
stepName?: string;
|
|
804
804
|
}, {
|
|
805
|
-
type?:
|
|
805
|
+
type?: AGUIEventType.STEP_STARTED;
|
|
806
806
|
timestamp?: number;
|
|
807
807
|
rawEvent?: any;
|
|
808
808
|
stepName?: string;
|
|
@@ -811,15 +811,15 @@ export declare const StepFinishedEventSchema: z.ZodObject<{
|
|
|
811
811
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
812
812
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
813
813
|
} & {
|
|
814
|
-
type: z.ZodLiteral<
|
|
814
|
+
type: z.ZodLiteral<AGUIEventType.STEP_FINISHED>;
|
|
815
815
|
stepName: z.ZodString;
|
|
816
816
|
}, "strip", z.ZodTypeAny, {
|
|
817
|
-
type?:
|
|
817
|
+
type?: AGUIEventType.STEP_FINISHED;
|
|
818
818
|
timestamp?: number;
|
|
819
819
|
rawEvent?: any;
|
|
820
820
|
stepName?: string;
|
|
821
821
|
}, {
|
|
822
|
-
type?:
|
|
822
|
+
type?: AGUIEventType.STEP_FINISHED;
|
|
823
823
|
timestamp?: number;
|
|
824
824
|
rawEvent?: any;
|
|
825
825
|
stepName?: string;
|
|
@@ -828,107 +828,107 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
828
828
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
829
829
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
830
830
|
} & {
|
|
831
|
-
type: z.ZodLiteral<
|
|
831
|
+
type: z.ZodLiteral<AGUIEventType.TEXT_MESSAGE_START>;
|
|
832
832
|
messageId: z.ZodString;
|
|
833
833
|
role: z.ZodLiteral<"assistant">;
|
|
834
834
|
}, "strip", z.ZodTypeAny, {
|
|
835
|
-
|
|
836
|
-
type?: EventType.TEXT_MESSAGE_START;
|
|
835
|
+
type?: AGUIEventType.TEXT_MESSAGE_START;
|
|
837
836
|
role?: "assistant";
|
|
838
837
|
timestamp?: number;
|
|
839
838
|
rawEvent?: any;
|
|
840
|
-
}, {
|
|
841
839
|
messageId?: string;
|
|
842
|
-
|
|
840
|
+
}, {
|
|
841
|
+
type?: AGUIEventType.TEXT_MESSAGE_START;
|
|
843
842
|
role?: "assistant";
|
|
844
843
|
timestamp?: number;
|
|
845
844
|
rawEvent?: any;
|
|
845
|
+
messageId?: string;
|
|
846
846
|
}>, z.ZodObject<{
|
|
847
847
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
848
848
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
849
849
|
} & {
|
|
850
|
-
type: z.ZodLiteral<
|
|
850
|
+
type: z.ZodLiteral<AGUIEventType.TEXT_MESSAGE_CONTENT>;
|
|
851
851
|
messageId: z.ZodString;
|
|
852
852
|
delta: z.ZodEffects<z.ZodString, string, string>;
|
|
853
853
|
}, "strip", z.ZodTypeAny, {
|
|
854
|
-
|
|
855
|
-
type?: EventType.TEXT_MESSAGE_CONTENT;
|
|
854
|
+
type?: AGUIEventType.TEXT_MESSAGE_CONTENT;
|
|
856
855
|
timestamp?: number;
|
|
857
856
|
rawEvent?: any;
|
|
857
|
+
messageId?: string;
|
|
858
858
|
delta?: string;
|
|
859
859
|
}, {
|
|
860
|
-
|
|
861
|
-
type?: EventType.TEXT_MESSAGE_CONTENT;
|
|
860
|
+
type?: AGUIEventType.TEXT_MESSAGE_CONTENT;
|
|
862
861
|
timestamp?: number;
|
|
863
862
|
rawEvent?: any;
|
|
863
|
+
messageId?: string;
|
|
864
864
|
delta?: string;
|
|
865
865
|
}>, z.ZodObject<{
|
|
866
866
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
867
867
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
868
868
|
} & {
|
|
869
|
-
type: z.ZodLiteral<
|
|
869
|
+
type: z.ZodLiteral<AGUIEventType.TEXT_MESSAGE_END>;
|
|
870
870
|
messageId: z.ZodString;
|
|
871
871
|
}, "strip", z.ZodTypeAny, {
|
|
872
|
-
|
|
873
|
-
type?: EventType.TEXT_MESSAGE_END;
|
|
872
|
+
type?: AGUIEventType.TEXT_MESSAGE_END;
|
|
874
873
|
timestamp?: number;
|
|
875
874
|
rawEvent?: any;
|
|
876
|
-
}, {
|
|
877
875
|
messageId?: string;
|
|
878
|
-
|
|
876
|
+
}, {
|
|
877
|
+
type?: AGUIEventType.TEXT_MESSAGE_END;
|
|
879
878
|
timestamp?: number;
|
|
880
879
|
rawEvent?: any;
|
|
880
|
+
messageId?: string;
|
|
881
881
|
}>, z.ZodObject<{
|
|
882
882
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
883
883
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
884
884
|
} & {
|
|
885
|
-
type: z.ZodLiteral<
|
|
885
|
+
type: z.ZodLiteral<AGUIEventType.TEXT_MESSAGE_CHUNK>;
|
|
886
886
|
messageId: z.ZodOptional<z.ZodString>;
|
|
887
887
|
role: z.ZodOptional<z.ZodLiteral<"assistant">>;
|
|
888
888
|
delta: z.ZodOptional<z.ZodString>;
|
|
889
889
|
}, "strip", z.ZodTypeAny, {
|
|
890
|
-
|
|
891
|
-
type?: EventType.TEXT_MESSAGE_CHUNK;
|
|
890
|
+
type?: AGUIEventType.TEXT_MESSAGE_CHUNK;
|
|
892
891
|
role?: "assistant";
|
|
893
892
|
timestamp?: number;
|
|
894
893
|
rawEvent?: any;
|
|
894
|
+
messageId?: string;
|
|
895
895
|
delta?: string;
|
|
896
896
|
}, {
|
|
897
|
-
|
|
898
|
-
type?: EventType.TEXT_MESSAGE_CHUNK;
|
|
897
|
+
type?: AGUIEventType.TEXT_MESSAGE_CHUNK;
|
|
899
898
|
role?: "assistant";
|
|
900
899
|
timestamp?: number;
|
|
901
900
|
rawEvent?: any;
|
|
901
|
+
messageId?: string;
|
|
902
902
|
delta?: string;
|
|
903
903
|
}>, z.ZodObject<{
|
|
904
904
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
905
905
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
906
906
|
} & {
|
|
907
|
-
type: z.ZodLiteral<
|
|
907
|
+
type: z.ZodLiteral<AGUIEventType.THINKING_TEXT_MESSAGE_START>;
|
|
908
908
|
}, "strip", z.ZodTypeAny, {
|
|
909
|
-
type?:
|
|
909
|
+
type?: AGUIEventType.THINKING_TEXT_MESSAGE_START;
|
|
910
910
|
timestamp?: number;
|
|
911
911
|
rawEvent?: any;
|
|
912
912
|
}, {
|
|
913
|
-
type?:
|
|
913
|
+
type?: AGUIEventType.THINKING_TEXT_MESSAGE_START;
|
|
914
914
|
timestamp?: number;
|
|
915
915
|
rawEvent?: any;
|
|
916
916
|
}>, z.ZodObject<Omit<{
|
|
917
917
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
918
918
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
919
919
|
} & {
|
|
920
|
-
type: z.ZodLiteral<
|
|
920
|
+
type: z.ZodLiteral<AGUIEventType.TEXT_MESSAGE_CONTENT>;
|
|
921
921
|
messageId: z.ZodString;
|
|
922
922
|
delta: z.ZodEffects<z.ZodString, string, string>;
|
|
923
|
-
}, "
|
|
924
|
-
type: z.ZodLiteral<
|
|
923
|
+
}, "type" | "messageId"> & {
|
|
924
|
+
type: z.ZodLiteral<AGUIEventType.THINKING_TEXT_MESSAGE_CONTENT>;
|
|
925
925
|
}, "strip", z.ZodTypeAny, {
|
|
926
|
-
type?:
|
|
926
|
+
type?: AGUIEventType.THINKING_TEXT_MESSAGE_CONTENT;
|
|
927
927
|
timestamp?: number;
|
|
928
928
|
rawEvent?: any;
|
|
929
929
|
delta?: string;
|
|
930
930
|
}, {
|
|
931
|
-
type?:
|
|
931
|
+
type?: AGUIEventType.THINKING_TEXT_MESSAGE_CONTENT;
|
|
932
932
|
timestamp?: number;
|
|
933
933
|
rawEvent?: any;
|
|
934
934
|
delta?: string;
|
|
@@ -936,52 +936,52 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
936
936
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
937
937
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
938
938
|
} & {
|
|
939
|
-
type: z.ZodLiteral<
|
|
939
|
+
type: z.ZodLiteral<AGUIEventType.THINKING_TEXT_MESSAGE_END>;
|
|
940
940
|
}, "strip", z.ZodTypeAny, {
|
|
941
|
-
type?:
|
|
941
|
+
type?: AGUIEventType.THINKING_TEXT_MESSAGE_END;
|
|
942
942
|
timestamp?: number;
|
|
943
943
|
rawEvent?: any;
|
|
944
944
|
}, {
|
|
945
|
-
type?:
|
|
945
|
+
type?: AGUIEventType.THINKING_TEXT_MESSAGE_END;
|
|
946
946
|
timestamp?: number;
|
|
947
947
|
rawEvent?: any;
|
|
948
948
|
}>, z.ZodObject<{
|
|
949
949
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
950
950
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
951
951
|
} & {
|
|
952
|
-
type: z.ZodLiteral<
|
|
952
|
+
type: z.ZodLiteral<AGUIEventType.TOOL_CALL_START>;
|
|
953
953
|
toolCallId: z.ZodString;
|
|
954
954
|
toolCallName: z.ZodString;
|
|
955
955
|
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
956
956
|
}, "strip", z.ZodTypeAny, {
|
|
957
|
-
|
|
958
|
-
type?: EventType.TOOL_CALL_START;
|
|
957
|
+
type?: AGUIEventType.TOOL_CALL_START;
|
|
959
958
|
timestamp?: number;
|
|
960
959
|
toolCallId?: string;
|
|
961
960
|
rawEvent?: any;
|
|
961
|
+
toolCallName?: string;
|
|
962
962
|
parentMessageId?: string;
|
|
963
963
|
}, {
|
|
964
|
-
|
|
965
|
-
type?: EventType.TOOL_CALL_START;
|
|
964
|
+
type?: AGUIEventType.TOOL_CALL_START;
|
|
966
965
|
timestamp?: number;
|
|
967
966
|
toolCallId?: string;
|
|
968
967
|
rawEvent?: any;
|
|
968
|
+
toolCallName?: string;
|
|
969
969
|
parentMessageId?: string;
|
|
970
970
|
}>, z.ZodObject<{
|
|
971
971
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
972
972
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
973
973
|
} & {
|
|
974
|
-
type: z.ZodLiteral<
|
|
974
|
+
type: z.ZodLiteral<AGUIEventType.TOOL_CALL_ARGS>;
|
|
975
975
|
toolCallId: z.ZodString;
|
|
976
976
|
delta: z.ZodString;
|
|
977
977
|
}, "strip", z.ZodTypeAny, {
|
|
978
|
-
type?:
|
|
978
|
+
type?: AGUIEventType.TOOL_CALL_ARGS;
|
|
979
979
|
timestamp?: number;
|
|
980
980
|
toolCallId?: string;
|
|
981
981
|
rawEvent?: any;
|
|
982
982
|
delta?: string;
|
|
983
983
|
}, {
|
|
984
|
-
type?:
|
|
984
|
+
type?: AGUIEventType.TOOL_CALL_ARGS;
|
|
985
985
|
timestamp?: number;
|
|
986
986
|
toolCallId?: string;
|
|
987
987
|
rawEvent?: any;
|
|
@@ -990,15 +990,15 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
990
990
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
991
991
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
992
992
|
} & {
|
|
993
|
-
type: z.ZodLiteral<
|
|
993
|
+
type: z.ZodLiteral<AGUIEventType.TOOL_CALL_END>;
|
|
994
994
|
toolCallId: z.ZodString;
|
|
995
995
|
}, "strip", z.ZodTypeAny, {
|
|
996
|
-
type?:
|
|
996
|
+
type?: AGUIEventType.TOOL_CALL_END;
|
|
997
997
|
timestamp?: number;
|
|
998
998
|
toolCallId?: string;
|
|
999
999
|
rawEvent?: any;
|
|
1000
1000
|
}, {
|
|
1001
|
-
type?:
|
|
1001
|
+
type?: AGUIEventType.TOOL_CALL_END;
|
|
1002
1002
|
timestamp?: number;
|
|
1003
1003
|
toolCallId?: string;
|
|
1004
1004
|
rawEvent?: any;
|
|
@@ -1006,60 +1006,60 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
1006
1006
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1007
1007
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1008
1008
|
} & {
|
|
1009
|
-
type: z.ZodLiteral<
|
|
1009
|
+
type: z.ZodLiteral<AGUIEventType.TOOL_CALL_CHUNK>;
|
|
1010
1010
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1011
1011
|
toolCallName: z.ZodOptional<z.ZodString>;
|
|
1012
1012
|
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
1013
1013
|
delta: z.ZodOptional<z.ZodString>;
|
|
1014
1014
|
}, "strip", z.ZodTypeAny, {
|
|
1015
|
-
|
|
1016
|
-
type?: EventType.TOOL_CALL_CHUNK;
|
|
1015
|
+
type?: AGUIEventType.TOOL_CALL_CHUNK;
|
|
1017
1016
|
timestamp?: number;
|
|
1018
1017
|
toolCallId?: string;
|
|
1019
1018
|
rawEvent?: any;
|
|
1020
1019
|
delta?: string;
|
|
1020
|
+
toolCallName?: string;
|
|
1021
1021
|
parentMessageId?: string;
|
|
1022
1022
|
}, {
|
|
1023
|
-
|
|
1024
|
-
type?: EventType.TOOL_CALL_CHUNK;
|
|
1023
|
+
type?: AGUIEventType.TOOL_CALL_CHUNK;
|
|
1025
1024
|
timestamp?: number;
|
|
1026
1025
|
toolCallId?: string;
|
|
1027
1026
|
rawEvent?: any;
|
|
1028
1027
|
delta?: string;
|
|
1028
|
+
toolCallName?: string;
|
|
1029
1029
|
parentMessageId?: string;
|
|
1030
1030
|
}>, z.ZodObject<{
|
|
1031
1031
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1032
1032
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1033
1033
|
} & {
|
|
1034
1034
|
messageId: z.ZodString;
|
|
1035
|
-
type: z.ZodLiteral<
|
|
1035
|
+
type: z.ZodLiteral<AGUIEventType.TOOL_CALL_RESULT>;
|
|
1036
1036
|
toolCallId: z.ZodString;
|
|
1037
1037
|
toolCallName: z.ZodString;
|
|
1038
1038
|
content: z.ZodString;
|
|
1039
1039
|
role: z.ZodOptional<z.ZodLiteral<"tool">>;
|
|
1040
1040
|
}, "strip", z.ZodTypeAny, {
|
|
1041
1041
|
content?: string;
|
|
1042
|
-
|
|
1043
|
-
toolCallName?: string;
|
|
1044
|
-
type?: EventType.TOOL_CALL_RESULT;
|
|
1042
|
+
type?: AGUIEventType.TOOL_CALL_RESULT;
|
|
1045
1043
|
role?: "tool";
|
|
1046
1044
|
timestamp?: number;
|
|
1047
1045
|
toolCallId?: string;
|
|
1048
1046
|
rawEvent?: any;
|
|
1049
|
-
}, {
|
|
1050
|
-
content?: string;
|
|
1051
1047
|
messageId?: string;
|
|
1052
1048
|
toolCallName?: string;
|
|
1053
|
-
|
|
1049
|
+
}, {
|
|
1050
|
+
content?: string;
|
|
1051
|
+
type?: AGUIEventType.TOOL_CALL_RESULT;
|
|
1054
1052
|
role?: "tool";
|
|
1055
1053
|
timestamp?: number;
|
|
1056
1054
|
toolCallId?: string;
|
|
1057
1055
|
rawEvent?: any;
|
|
1056
|
+
messageId?: string;
|
|
1057
|
+
toolCallName?: string;
|
|
1058
1058
|
}>, z.ZodObject<{
|
|
1059
1059
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1060
1060
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1061
1061
|
} & {
|
|
1062
|
-
type: z.ZodLiteral<
|
|
1062
|
+
type: z.ZodLiteral<AGUIEventType.ACTIVITY_SNAPSHOT>;
|
|
1063
1063
|
messageId: z.ZodOptional<z.ZodString>;
|
|
1064
1064
|
activityType: z.ZodString;
|
|
1065
1065
|
content: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -1067,54 +1067,54 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
1067
1067
|
}, "strip", z.ZodTypeAny, {
|
|
1068
1068
|
replace?: boolean;
|
|
1069
1069
|
content?: Record<string, any>;
|
|
1070
|
-
|
|
1071
|
-
messageId?: string;
|
|
1072
|
-
type?: EventType.ACTIVITY_SNAPSHOT;
|
|
1070
|
+
type?: AGUIEventType.ACTIVITY_SNAPSHOT;
|
|
1073
1071
|
timestamp?: number;
|
|
1072
|
+
activityType?: string;
|
|
1074
1073
|
rawEvent?: any;
|
|
1074
|
+
messageId?: string;
|
|
1075
1075
|
}, {
|
|
1076
1076
|
replace?: boolean;
|
|
1077
1077
|
content?: Record<string, any>;
|
|
1078
|
-
|
|
1079
|
-
messageId?: string;
|
|
1080
|
-
type?: EventType.ACTIVITY_SNAPSHOT;
|
|
1078
|
+
type?: AGUIEventType.ACTIVITY_SNAPSHOT;
|
|
1081
1079
|
timestamp?: number;
|
|
1080
|
+
activityType?: string;
|
|
1082
1081
|
rawEvent?: any;
|
|
1082
|
+
messageId?: string;
|
|
1083
1083
|
}>, z.ZodObject<{
|
|
1084
1084
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1085
1085
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1086
1086
|
} & {
|
|
1087
|
-
type: z.ZodLiteral<
|
|
1087
|
+
type: z.ZodLiteral<AGUIEventType.ACTIVITY_DELTA>;
|
|
1088
1088
|
messageId: z.ZodOptional<z.ZodString>;
|
|
1089
1089
|
activityType: z.ZodOptional<z.ZodString>;
|
|
1090
1090
|
patch: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
1091
1091
|
}, "strip", z.ZodTypeAny, {
|
|
1092
|
-
|
|
1093
|
-
messageId?: string;
|
|
1094
|
-
type?: EventType.ACTIVITY_DELTA;
|
|
1092
|
+
type?: AGUIEventType.ACTIVITY_DELTA;
|
|
1095
1093
|
timestamp?: number;
|
|
1094
|
+
activityType?: string;
|
|
1096
1095
|
rawEvent?: any;
|
|
1096
|
+
messageId?: string;
|
|
1097
1097
|
patch?: any[];
|
|
1098
1098
|
}, {
|
|
1099
|
-
|
|
1100
|
-
messageId?: string;
|
|
1101
|
-
type?: EventType.ACTIVITY_DELTA;
|
|
1099
|
+
type?: AGUIEventType.ACTIVITY_DELTA;
|
|
1102
1100
|
timestamp?: number;
|
|
1101
|
+
activityType?: string;
|
|
1103
1102
|
rawEvent?: any;
|
|
1103
|
+
messageId?: string;
|
|
1104
1104
|
patch?: any[];
|
|
1105
1105
|
}>, z.ZodObject<{
|
|
1106
1106
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1107
1107
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1108
1108
|
} & {
|
|
1109
|
-
type: z.ZodLiteral<
|
|
1109
|
+
type: z.ZodLiteral<AGUIEventType.STATE_SNAPSHOT>;
|
|
1110
1110
|
snapshot: z.ZodAny;
|
|
1111
1111
|
}, "strip", z.ZodTypeAny, {
|
|
1112
|
-
type?:
|
|
1112
|
+
type?: AGUIEventType.STATE_SNAPSHOT;
|
|
1113
1113
|
timestamp?: number;
|
|
1114
1114
|
rawEvent?: any;
|
|
1115
1115
|
snapshot?: any;
|
|
1116
1116
|
}, {
|
|
1117
|
-
type?:
|
|
1117
|
+
type?: AGUIEventType.STATE_SNAPSHOT;
|
|
1118
1118
|
timestamp?: number;
|
|
1119
1119
|
rawEvent?: any;
|
|
1120
1120
|
snapshot?: any;
|
|
@@ -1122,15 +1122,15 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
1122
1122
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1123
1123
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1124
1124
|
} & {
|
|
1125
|
-
type: z.ZodLiteral<
|
|
1125
|
+
type: z.ZodLiteral<AGUIEventType.STATE_DELTA>;
|
|
1126
1126
|
delta: z.ZodArray<z.ZodAny, "many">;
|
|
1127
1127
|
}, "strip", z.ZodTypeAny, {
|
|
1128
|
-
type?:
|
|
1128
|
+
type?: AGUIEventType.STATE_DELTA;
|
|
1129
1129
|
timestamp?: number;
|
|
1130
1130
|
rawEvent?: any;
|
|
1131
1131
|
delta?: any[];
|
|
1132
1132
|
}, {
|
|
1133
|
-
type?:
|
|
1133
|
+
type?: AGUIEventType.STATE_DELTA;
|
|
1134
1134
|
timestamp?: number;
|
|
1135
1135
|
rawEvent?: any;
|
|
1136
1136
|
delta?: any[];
|
|
@@ -1138,7 +1138,7 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
1138
1138
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1139
1139
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1140
1140
|
} & {
|
|
1141
|
-
type: z.ZodLiteral<
|
|
1141
|
+
type: z.ZodLiteral<AGUIEventType.MESSAGES_SNAPSHOT>;
|
|
1142
1142
|
messages: z.ZodArray<z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
1143
1143
|
id: z.ZodString;
|
|
1144
1144
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1284,16 +1284,18 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
1284
1284
|
content: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1285
1285
|
}, "strip", z.ZodTypeAny, {
|
|
1286
1286
|
content?: Record<string, any>;
|
|
1287
|
-
activityType?: string;
|
|
1288
1287
|
id?: string;
|
|
1289
1288
|
role?: "activity";
|
|
1289
|
+
activityType?: string;
|
|
1290
1290
|
}, {
|
|
1291
1291
|
content?: Record<string, any>;
|
|
1292
|
-
activityType?: string;
|
|
1293
1292
|
id?: string;
|
|
1294
1293
|
role?: "activity";
|
|
1294
|
+
activityType?: string;
|
|
1295
1295
|
}>]>, "many">;
|
|
1296
1296
|
}, "strip", z.ZodTypeAny, {
|
|
1297
|
+
type?: AGUIEventType.MESSAGES_SNAPSHOT;
|
|
1298
|
+
timestamp?: number;
|
|
1297
1299
|
messages?: ({
|
|
1298
1300
|
content?: string;
|
|
1299
1301
|
name?: string;
|
|
@@ -1334,14 +1336,14 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
1334
1336
|
toolCallId?: string;
|
|
1335
1337
|
} | {
|
|
1336
1338
|
content?: Record<string, any>;
|
|
1337
|
-
activityType?: string;
|
|
1338
1339
|
id?: string;
|
|
1339
1340
|
role?: "activity";
|
|
1341
|
+
activityType?: string;
|
|
1340
1342
|
})[];
|
|
1341
|
-
type?: EventType.MESSAGES_SNAPSHOT;
|
|
1342
|
-
timestamp?: number;
|
|
1343
1343
|
rawEvent?: any;
|
|
1344
1344
|
}, {
|
|
1345
|
+
type?: AGUIEventType.MESSAGES_SNAPSHOT;
|
|
1346
|
+
timestamp?: number;
|
|
1345
1347
|
messages?: ({
|
|
1346
1348
|
content?: string;
|
|
1347
1349
|
name?: string;
|
|
@@ -1382,66 +1384,64 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
1382
1384
|
toolCallId?: string;
|
|
1383
1385
|
} | {
|
|
1384
1386
|
content?: Record<string, any>;
|
|
1385
|
-
activityType?: string;
|
|
1386
1387
|
id?: string;
|
|
1387
1388
|
role?: "activity";
|
|
1389
|
+
activityType?: string;
|
|
1388
1390
|
})[];
|
|
1389
|
-
type?: EventType.MESSAGES_SNAPSHOT;
|
|
1390
|
-
timestamp?: number;
|
|
1391
1391
|
rawEvent?: any;
|
|
1392
1392
|
}>, z.ZodObject<{
|
|
1393
1393
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1394
1394
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1395
1395
|
} & {
|
|
1396
|
-
type: z.ZodLiteral<
|
|
1396
|
+
type: z.ZodLiteral<AGUIEventType.RAW>;
|
|
1397
1397
|
event: z.ZodAny;
|
|
1398
1398
|
source: z.ZodOptional<z.ZodString>;
|
|
1399
1399
|
}, "strip", z.ZodTypeAny, {
|
|
1400
1400
|
source?: string;
|
|
1401
1401
|
event?: any;
|
|
1402
|
-
type?:
|
|
1402
|
+
type?: AGUIEventType.RAW;
|
|
1403
1403
|
timestamp?: number;
|
|
1404
1404
|
rawEvent?: any;
|
|
1405
1405
|
}, {
|
|
1406
1406
|
source?: string;
|
|
1407
1407
|
event?: any;
|
|
1408
|
-
type?:
|
|
1408
|
+
type?: AGUIEventType.RAW;
|
|
1409
1409
|
timestamp?: number;
|
|
1410
1410
|
rawEvent?: any;
|
|
1411
1411
|
}>, z.ZodObject<{
|
|
1412
1412
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1413
1413
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1414
1414
|
} & {
|
|
1415
|
-
type: z.ZodLiteral<
|
|
1415
|
+
type: z.ZodLiteral<AGUIEventType.CUSTOM>;
|
|
1416
1416
|
name: z.ZodString;
|
|
1417
1417
|
value: z.ZodAny;
|
|
1418
1418
|
}, "strip", z.ZodTypeAny, {
|
|
1419
1419
|
name?: string;
|
|
1420
1420
|
value?: any;
|
|
1421
|
-
type?:
|
|
1421
|
+
type?: AGUIEventType.CUSTOM;
|
|
1422
1422
|
timestamp?: number;
|
|
1423
1423
|
rawEvent?: any;
|
|
1424
1424
|
}, {
|
|
1425
1425
|
name?: string;
|
|
1426
1426
|
value?: any;
|
|
1427
|
-
type?:
|
|
1427
|
+
type?: AGUIEventType.CUSTOM;
|
|
1428
1428
|
timestamp?: number;
|
|
1429
1429
|
rawEvent?: any;
|
|
1430
1430
|
}>, z.ZodObject<{
|
|
1431
1431
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1432
1432
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1433
1433
|
} & {
|
|
1434
|
-
type: z.ZodLiteral<
|
|
1434
|
+
type: z.ZodLiteral<AGUIEventType.RUN_STARTED>;
|
|
1435
1435
|
threadId: z.ZodString;
|
|
1436
1436
|
runId: z.ZodString;
|
|
1437
1437
|
}, "strip", z.ZodTypeAny, {
|
|
1438
|
-
type?:
|
|
1438
|
+
type?: AGUIEventType.RUN_STARTED;
|
|
1439
1439
|
timestamp?: number;
|
|
1440
1440
|
threadId?: string;
|
|
1441
1441
|
runId?: string;
|
|
1442
1442
|
rawEvent?: any;
|
|
1443
1443
|
}, {
|
|
1444
|
-
type?:
|
|
1444
|
+
type?: AGUIEventType.RUN_STARTED;
|
|
1445
1445
|
timestamp?: number;
|
|
1446
1446
|
threadId?: string;
|
|
1447
1447
|
runId?: string;
|
|
@@ -1450,56 +1450,56 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
1450
1450
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1451
1451
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1452
1452
|
} & {
|
|
1453
|
-
type: z.ZodLiteral<
|
|
1453
|
+
type: z.ZodLiteral<AGUIEventType.RUN_FINISHED>;
|
|
1454
1454
|
threadId: z.ZodString;
|
|
1455
1455
|
runId: z.ZodString;
|
|
1456
1456
|
result: z.ZodOptional<z.ZodAny>;
|
|
1457
1457
|
}, "strip", z.ZodTypeAny, {
|
|
1458
|
-
|
|
1459
|
-
type?: EventType.RUN_FINISHED;
|
|
1458
|
+
type?: AGUIEventType.RUN_FINISHED;
|
|
1460
1459
|
timestamp?: number;
|
|
1461
1460
|
threadId?: string;
|
|
1462
1461
|
runId?: string;
|
|
1463
1462
|
rawEvent?: any;
|
|
1464
|
-
}, {
|
|
1465
1463
|
result?: any;
|
|
1466
|
-
|
|
1464
|
+
}, {
|
|
1465
|
+
type?: AGUIEventType.RUN_FINISHED;
|
|
1467
1466
|
timestamp?: number;
|
|
1468
1467
|
threadId?: string;
|
|
1469
1468
|
runId?: string;
|
|
1470
1469
|
rawEvent?: any;
|
|
1470
|
+
result?: any;
|
|
1471
1471
|
}>, z.ZodObject<{
|
|
1472
1472
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1473
1473
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1474
1474
|
} & {
|
|
1475
|
-
type: z.ZodLiteral<
|
|
1475
|
+
type: z.ZodLiteral<AGUIEventType.RUN_ERROR>;
|
|
1476
1476
|
message: z.ZodString;
|
|
1477
1477
|
code: z.ZodOptional<z.ZodString>;
|
|
1478
1478
|
}, "strip", z.ZodTypeAny, {
|
|
1479
1479
|
code?: string;
|
|
1480
1480
|
message?: string;
|
|
1481
|
-
type?:
|
|
1481
|
+
type?: AGUIEventType.RUN_ERROR;
|
|
1482
1482
|
timestamp?: number;
|
|
1483
1483
|
rawEvent?: any;
|
|
1484
1484
|
}, {
|
|
1485
1485
|
code?: string;
|
|
1486
1486
|
message?: string;
|
|
1487
|
-
type?:
|
|
1487
|
+
type?: AGUIEventType.RUN_ERROR;
|
|
1488
1488
|
timestamp?: number;
|
|
1489
1489
|
rawEvent?: any;
|
|
1490
1490
|
}>, z.ZodObject<{
|
|
1491
1491
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1492
1492
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1493
1493
|
} & {
|
|
1494
|
-
type: z.ZodLiteral<
|
|
1494
|
+
type: z.ZodLiteral<AGUIEventType.STEP_STARTED>;
|
|
1495
1495
|
stepName: z.ZodString;
|
|
1496
1496
|
}, "strip", z.ZodTypeAny, {
|
|
1497
|
-
type?:
|
|
1497
|
+
type?: AGUIEventType.STEP_STARTED;
|
|
1498
1498
|
timestamp?: number;
|
|
1499
1499
|
rawEvent?: any;
|
|
1500
1500
|
stepName?: string;
|
|
1501
1501
|
}, {
|
|
1502
|
-
type?:
|
|
1502
|
+
type?: AGUIEventType.STEP_STARTED;
|
|
1503
1503
|
timestamp?: number;
|
|
1504
1504
|
rawEvent?: any;
|
|
1505
1505
|
stepName?: string;
|
|
@@ -1507,15 +1507,15 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
1507
1507
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1508
1508
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1509
1509
|
} & {
|
|
1510
|
-
type: z.ZodLiteral<
|
|
1510
|
+
type: z.ZodLiteral<AGUIEventType.STEP_FINISHED>;
|
|
1511
1511
|
stepName: z.ZodString;
|
|
1512
1512
|
}, "strip", z.ZodTypeAny, {
|
|
1513
|
-
type?:
|
|
1513
|
+
type?: AGUIEventType.STEP_FINISHED;
|
|
1514
1514
|
timestamp?: number;
|
|
1515
1515
|
rawEvent?: any;
|
|
1516
1516
|
stepName?: string;
|
|
1517
1517
|
}, {
|
|
1518
|
-
type?:
|
|
1518
|
+
type?: AGUIEventType.STEP_FINISHED;
|
|
1519
1519
|
timestamp?: number;
|
|
1520
1520
|
rawEvent?: any;
|
|
1521
1521
|
stepName?: string;
|