stitchkit 0.133.1 → 0.134.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/CHANGELOG.md +121 -0
- package/README.md +14 -11
- package/dist/agent-executor/acp/v1-connect.d.ts +5 -0
- package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-map.d.ts +13 -3
- package/dist/agent-executor/acp/v1-map.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-probe.d.ts +3 -0
- package/dist/agent-executor/acp/v1-probe.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-protocol.d.ts +61 -0
- package/dist/agent-executor/acp/v1-protocol.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-session.d.ts +3 -0
- package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
- package/dist/agent-executor/codex/connect.d.ts +2 -0
- package/dist/agent-executor/codex/connect.d.ts.map +1 -1
- package/dist/agent-executor/codex/driver.d.ts +3 -0
- package/dist/agent-executor/codex/driver.d.ts.map +1 -1
- package/dist/agent-executor/contract.d.ts +42 -0
- package/dist/agent-executor/contract.d.ts.map +1 -1
- package/dist/agent-executor/engine-process.d.ts +20 -0
- package/dist/agent-executor/engine-process.d.ts.map +1 -1
- package/dist/agent-executor/executor-contract.d.ts +42 -0
- package/dist/agent-executor/executor-contract.d.ts.map +1 -1
- package/dist/agent-executor/handoff-schemas.d.ts +30 -0
- package/dist/agent-executor/handoff-schemas.d.ts.map +1 -1
- package/dist/agent-executor/projection.d.ts.map +1 -1
- package/dist/agent-executor/session-primitives.d.ts +4 -1
- package/dist/agent-executor/session-primitives.d.ts.map +1 -1
- package/dist/agent-executor/testing/consumer-stubs.d.ts.map +1 -1
- package/dist/agent-executor/vocabulary.d.ts +100 -0
- package/dist/agent-executor/vocabulary.d.ts.map +1 -1
- package/dist/agent-parts/model.d.ts +1559 -0
- package/dist/agent-parts/model.d.ts.map +1 -0
- package/dist/agent-parts/parts.d.ts +21 -0
- package/dist/agent-parts/parts.d.ts.map +1 -1
- package/dist/agent-runtime/ai-sdk-convert.d.ts +15 -0
- package/dist/agent-runtime/ai-sdk-convert.d.ts.map +1 -0
- package/dist/agent-runtime/ai-sdk.d.ts +31 -0
- package/dist/agent-runtime/ai-sdk.d.ts.map +1 -0
- package/dist/agent-runtime/anthropic-media.d.ts +11 -0
- package/dist/agent-runtime/anthropic-media.d.ts.map +1 -0
- package/dist/agent-runtime/anthropic-messages.d.ts +24 -0
- package/dist/agent-runtime/anthropic-messages.d.ts.map +1 -0
- package/dist/agent-runtime/anthropic-options.d.ts +79 -0
- package/dist/agent-runtime/anthropic-options.d.ts.map +1 -0
- package/dist/agent-runtime/anthropic-response.d.ts +19 -0
- package/dist/agent-runtime/anthropic-response.d.ts.map +1 -0
- package/dist/agent-runtime/anthropic-sse.d.ts +4 -0
- package/dist/agent-runtime/anthropic-sse.d.ts.map +1 -0
- package/dist/agent-runtime/anthropic.d.ts +27 -0
- package/dist/agent-runtime/anthropic.d.ts.map +1 -0
- package/dist/agent-runtime/branch-observations.d.ts +25 -25
- package/dist/agent-runtime/branch-provider.d.ts +86 -0
- package/dist/agent-runtime/branch-provider.d.ts.map +1 -1
- package/dist/agent-runtime/branch-replay.d.ts +30 -0
- package/dist/agent-runtime/branch-replay.d.ts.map +1 -1
- package/dist/agent-runtime/browser-control-contract.d.ts +204 -0
- package/dist/agent-runtime/browser-control-contract.d.ts.map +1 -1
- package/dist/agent-runtime/browser-controller-view.d.ts +44 -0
- package/dist/agent-runtime/browser-controller-view.d.ts.map +1 -0
- package/dist/agent-runtime/browser-controller.d.ts +12 -8
- package/dist/agent-runtime/browser-controller.d.ts.map +1 -1
- package/dist/agent-runtime/child-budget-policy.d.ts +2 -3
- package/dist/agent-runtime/child-budget-policy.d.ts.map +1 -1
- package/dist/agent-runtime/compaction.d.ts +27 -10
- package/dist/agent-runtime/compaction.d.ts.map +1 -1
- package/dist/agent-runtime/control-interaction-schema.d.ts +157 -0
- package/dist/agent-runtime/control-interaction-schema.d.ts.map +1 -0
- package/dist/agent-runtime/control-schema.d.ts +183 -27
- package/dist/agent-runtime/control-schema.d.ts.map +1 -1
- package/dist/agent-runtime/control-view.d.ts +64 -0
- package/dist/agent-runtime/control-view.d.ts.map +1 -0
- package/dist/agent-runtime/conversations.d.ts +10 -0
- package/dist/agent-runtime/conversations.d.ts.map +1 -1
- package/dist/agent-runtime/deferred-tool-selection.d.ts +2 -2
- package/dist/agent-runtime/deferred-tool-selection.d.ts.map +1 -1
- package/dist/agent-runtime/deferred-tool-types.d.ts +2 -2
- package/dist/agent-runtime/deferred-tool-types.d.ts.map +1 -1
- package/dist/agent-runtime/deferred-tools-internal.d.ts +8 -11
- package/dist/agent-runtime/deferred-tools-internal.d.ts.map +1 -1
- package/dist/agent-runtime/deferred-tools.d.ts.map +1 -1
- package/dist/agent-runtime/event-schema.d.ts +80 -0
- package/dist/agent-runtime/event-schema.d.ts.map +1 -1
- package/dist/agent-runtime/harness-contract.d.ts +2 -2
- package/dist/agent-runtime/harness-contract.d.ts.map +1 -1
- package/dist/agent-runtime/harness-control.d.ts.map +1 -1
- package/dist/agent-runtime/harness-realtime.d.ts.map +1 -1
- package/dist/agent-runtime/harness.d.ts +2 -2
- package/dist/agent-runtime/harness.d.ts.map +1 -1
- package/dist/agent-runtime/history.d.ts +25 -16
- package/dist/agent-runtime/history.d.ts.map +1 -1
- package/dist/agent-runtime/invocation-attempt.d.ts +7 -3
- package/dist/agent-runtime/invocation-attempt.d.ts.map +1 -1
- package/dist/agent-runtime/invocation-payload.d.ts +13 -7
- package/dist/agent-runtime/invocation-payload.d.ts.map +1 -1
- package/dist/agent-runtime/invocation-stream.d.ts +20 -0
- package/dist/agent-runtime/invocation-stream.d.ts.map +1 -0
- package/dist/agent-runtime/invocations.d.ts +2 -2
- package/dist/agent-runtime/invocations.d.ts.map +1 -1
- package/dist/agent-runtime/models-driver-step.d.ts +212 -0
- package/dist/agent-runtime/models-driver-step.d.ts.map +1 -0
- package/dist/agent-runtime/models-driver-telemetry.d.ts +42 -0
- package/dist/agent-runtime/models-driver-telemetry.d.ts.map +1 -0
- package/dist/agent-runtime/models-driver.d.ts +235 -0
- package/dist/agent-runtime/models-driver.d.ts.map +1 -0
- package/dist/agent-runtime/models.d.ts +3 -26
- package/dist/agent-runtime/models.d.ts.map +1 -1
- package/dist/agent-runtime/observability.d.ts +64 -0
- package/dist/agent-runtime/observability.d.ts.map +1 -1
- package/dist/agent-runtime/openai-messages.d.ts +11 -0
- package/dist/agent-runtime/openai-messages.d.ts.map +1 -0
- package/dist/agent-runtime/openai-options.d.ts +91 -0
- package/dist/agent-runtime/openai-options.d.ts.map +1 -0
- package/dist/agent-runtime/openai-response.d.ts +77 -0
- package/dist/agent-runtime/openai-response.d.ts.map +1 -0
- package/dist/agent-runtime/openai-sse-state.d.ts +54 -0
- package/dist/agent-runtime/openai-sse-state.d.ts.map +1 -0
- package/dist/agent-runtime/openai-sse.d.ts +4 -0
- package/dist/agent-runtime/openai-sse.d.ts.map +1 -0
- package/dist/agent-runtime/openai.d.ts +31 -0
- package/dist/agent-runtime/openai.d.ts.map +1 -0
- package/dist/agent-runtime/openrouter-admission.d.ts +3 -0
- package/dist/agent-runtime/openrouter-admission.d.ts.map +1 -1
- package/dist/agent-runtime/openrouter-benchmarks.d.ts +17 -0
- package/dist/agent-runtime/openrouter-benchmarks.d.ts.map +1 -0
- package/dist/agent-runtime/openrouter-catalog-cache.d.ts +70 -0
- package/dist/agent-runtime/openrouter-catalog-cache.d.ts.map +1 -0
- package/dist/agent-runtime/openrouter-catalog-query.d.ts +57 -0
- package/dist/agent-runtime/openrouter-catalog-query.d.ts.map +1 -0
- package/dist/agent-runtime/openrouter-catalog.d.ts +189 -14
- package/dist/agent-runtime/openrouter-catalog.d.ts.map +1 -1
- package/dist/agent-runtime/openrouter-models.d.ts +168 -31
- package/dist/agent-runtime/openrouter-models.d.ts.map +1 -1
- package/dist/agent-runtime/openrouter-options.d.ts +45 -15
- package/dist/agent-runtime/openrouter-options.d.ts.map +1 -1
- package/dist/agent-runtime/openrouter-response.d.ts +22 -0
- package/dist/agent-runtime/openrouter-response.d.ts.map +1 -0
- package/dist/agent-runtime/openrouter.d.ts +21 -24
- package/dist/agent-runtime/openrouter.d.ts.map +1 -1
- package/dist/agent-runtime/owned-provider-stream.d.ts +4 -4
- package/dist/agent-runtime/owned-provider-stream.d.ts.map +1 -1
- package/dist/agent-runtime/prompt.d.ts +3 -3
- package/dist/agent-runtime/prompt.d.ts.map +1 -1
- package/dist/agent-runtime/protocol.d.ts +28 -3
- package/dist/agent-runtime/protocol.d.ts.map +1 -1
- package/dist/agent-runtime/provider-cache.d.ts +30 -0
- package/dist/agent-runtime/provider-cache.d.ts.map +1 -0
- package/dist/agent-runtime/provider-content.d.ts +147 -0
- package/dist/agent-runtime/provider-content.d.ts.map +1 -1
- package/dist/agent-runtime/provider-failure.d.ts +51 -26
- package/dist/agent-runtime/provider-failure.d.ts.map +1 -1
- package/dist/agent-runtime/provider-history.d.ts +13 -0
- package/dist/agent-runtime/provider-history.d.ts.map +1 -0
- package/dist/agent-runtime/provider-http.d.ts +68 -0
- package/dist/agent-runtime/provider-http.d.ts.map +1 -0
- package/dist/agent-runtime/provider-journal.d.ts +149 -0
- package/dist/agent-runtime/provider-journal.d.ts.map +1 -1
- package/dist/agent-runtime/provider-json-schema-strip.d.ts +8 -0
- package/dist/agent-runtime/provider-json-schema-strip.d.ts.map +1 -0
- package/dist/agent-runtime/provider-json-schema.d.ts +28 -0
- package/dist/agent-runtime/provider-json-schema.d.ts.map +1 -0
- package/dist/agent-runtime/provider-media.d.ts +49 -0
- package/dist/agent-runtime/provider-media.d.ts.map +1 -0
- package/dist/agent-runtime/provider-openai-chat-helpers.d.ts +27 -0
- package/dist/agent-runtime/provider-openai-chat-helpers.d.ts.map +1 -0
- package/dist/agent-runtime/provider-openai-chat-sse.d.ts +25 -0
- package/dist/agent-runtime/provider-openai-chat-sse.d.ts.map +1 -0
- package/dist/agent-runtime/provider-openai-chat.d.ts +27 -0
- package/dist/agent-runtime/provider-openai-chat.d.ts.map +1 -0
- package/dist/agent-runtime/provider-origin.d.ts +3 -12
- package/dist/agent-runtime/provider-origin.d.ts.map +1 -1
- package/dist/agent-runtime/provider-sse.d.ts +30 -0
- package/dist/agent-runtime/provider-sse.d.ts.map +1 -0
- package/dist/agent-runtime/provider-stream-parts.d.ts +5 -0
- package/dist/agent-runtime/provider-stream-parts.d.ts.map +1 -0
- package/dist/agent-runtime/provider-stream-segments.d.ts +63 -0
- package/dist/agent-runtime/provider-stream-segments.d.ts.map +1 -0
- package/dist/agent-runtime/provider-usage.d.ts +24 -0
- package/dist/agent-runtime/provider-usage.d.ts.map +1 -0
- package/dist/agent-runtime/retry-policy.d.ts +19 -3
- package/dist/agent-runtime/retry-policy.d.ts.map +1 -1
- package/dist/agent-runtime/run-acquisition.d.ts +4 -4
- package/dist/agent-runtime/run-acquisition.d.ts.map +1 -1
- package/dist/agent-runtime/run-approval.d.ts +82 -0
- package/dist/agent-runtime/run-approval.d.ts.map +1 -0
- package/dist/agent-runtime/run-complete-retry.d.ts +24 -0
- package/dist/agent-runtime/run-complete-retry.d.ts.map +1 -0
- package/dist/agent-runtime/run-complete-stream.d.ts +9 -0
- package/dist/agent-runtime/run-complete-stream.d.ts.map +1 -0
- package/dist/agent-runtime/run-complete-tools.d.ts +21 -0
- package/dist/agent-runtime/run-complete-tools.d.ts.map +1 -0
- package/dist/agent-runtime/run-complete-types.d.ts +168 -0
- package/dist/agent-runtime/run-complete-types.d.ts.map +1 -0
- package/dist/agent-runtime/run-complete.d.ts +25 -0
- package/dist/agent-runtime/run-complete.d.ts.map +1 -0
- package/dist/agent-runtime/run-driver-compose.d.ts +21 -0
- package/dist/agent-runtime/run-driver-compose.d.ts.map +1 -0
- package/dist/agent-runtime/run-execution-state.d.ts +23 -10
- package/dist/agent-runtime/run-execution-state.d.ts.map +1 -1
- package/dist/agent-runtime/run-execution.d.ts +2 -2
- package/dist/agent-runtime/run-execution.d.ts.map +1 -1
- package/dist/agent-runtime/run-failure.d.ts +2 -2
- package/dist/agent-runtime/run-failure.d.ts.map +1 -1
- package/dist/agent-runtime/run-history-parts.d.ts +14 -0
- package/dist/agent-runtime/run-history-parts.d.ts.map +1 -0
- package/dist/agent-runtime/run-loop-events.d.ts +126 -0
- package/dist/agent-runtime/run-loop-events.d.ts.map +1 -0
- package/dist/agent-runtime/run-model-attempts.d.ts +2 -2
- package/dist/agent-runtime/run-model-attempts.d.ts.map +1 -1
- package/dist/agent-runtime/run-model-messages.d.ts +9 -0
- package/dist/agent-runtime/run-model-messages.d.ts.map +1 -0
- package/dist/agent-runtime/run-model-step.d.ts +43 -0
- package/dist/agent-runtime/run-model-step.d.ts.map +1 -0
- package/dist/agent-runtime/run-model-stream.d.ts +27 -0
- package/dist/agent-runtime/run-model-stream.d.ts.map +1 -0
- package/dist/agent-runtime/run-operation-lifecycle.d.ts +8 -4
- package/dist/agent-runtime/run-operation-lifecycle.d.ts.map +1 -1
- package/dist/agent-runtime/run-prompt-history.d.ts +8 -13
- package/dist/agent-runtime/run-prompt-history.d.ts.map +1 -1
- package/dist/agent-runtime/run-provider-ledger.d.ts +7 -4
- package/dist/agent-runtime/run-provider-ledger.d.ts.map +1 -1
- package/dist/agent-runtime/run-step-barriers.d.ts +58 -16
- package/dist/agent-runtime/run-step-barriers.d.ts.map +1 -1
- package/dist/agent-runtime/run-step-helpers.d.ts +49 -0
- package/dist/agent-runtime/run-step-helpers.d.ts.map +1 -0
- package/dist/agent-runtime/run-step-prepare.d.ts +34 -0
- package/dist/agent-runtime/run-step-prepare.d.ts.map +1 -0
- package/dist/agent-runtime/run-step-spend.d.ts +85 -10
- package/dist/agent-runtime/run-step-spend.d.ts.map +1 -1
- package/dist/agent-runtime/run-stream-parts.d.ts +13 -9
- package/dist/agent-runtime/run-stream-parts.d.ts.map +1 -1
- package/dist/agent-runtime/run-stream-recorded.d.ts +8 -0
- package/dist/agent-runtime/run-stream-recorded.d.ts.map +1 -0
- package/dist/agent-runtime/run-stream-step-text.d.ts +29 -0
- package/dist/agent-runtime/run-stream-step-text.d.ts.map +1 -0
- package/dist/agent-runtime/run-terminal.d.ts +3 -3
- package/dist/agent-runtime/run-terminal.d.ts.map +1 -1
- package/dist/agent-runtime/run-tool-approval-flow.d.ts +36 -0
- package/dist/agent-runtime/run-tool-approval-flow.d.ts.map +1 -0
- package/dist/agent-runtime/run-tool-approval-records.d.ts +24 -0
- package/dist/agent-runtime/run-tool-approval-records.d.ts.map +1 -0
- package/dist/agent-runtime/run-tool-call.d.ts +73 -0
- package/dist/agent-runtime/run-tool-call.d.ts.map +1 -0
- package/dist/agent-runtime/run-tool-errors.d.ts +29 -0
- package/dist/agent-runtime/run-tool-errors.d.ts.map +1 -0
- package/dist/agent-runtime/run-tool-executor.d.ts +34 -0
- package/dist/agent-runtime/run-tool-executor.d.ts.map +1 -0
- package/dist/agent-runtime/run-tool-progress.d.ts +2 -2
- package/dist/agent-runtime/run-tool-progress.d.ts.map +1 -1
- package/dist/agent-runtime/run-turn-preparation.d.ts +7 -6
- package/dist/agent-runtime/run-turn-preparation.d.ts.map +1 -1
- package/dist/agent-runtime/run-unacquired.d.ts +2 -2
- package/dist/agent-runtime/run-unacquired.d.ts.map +1 -1
- package/dist/agent-runtime/runtime-control.d.ts +4 -4
- package/dist/agent-runtime/runtime-control.d.ts.map +1 -1
- package/dist/agent-runtime/runtime-internals.d.ts +35 -44
- package/dist/agent-runtime/runtime-internals.d.ts.map +1 -1
- package/dist/agent-runtime/runtime-recovery.d.ts +3 -3
- package/dist/agent-runtime/runtime-recovery.d.ts.map +1 -1
- package/dist/agent-runtime/runtime-state.d.ts +3 -3
- package/dist/agent-runtime/runtime-state.d.ts.map +1 -1
- package/dist/agent-runtime/runtime-submit.d.ts +2 -2
- package/dist/agent-runtime/runtime-submit.d.ts.map +1 -1
- package/dist/agent-runtime/runtime.d.ts +51 -16
- package/dist/agent-runtime/runtime.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox-process-linux.d.ts +8 -0
- package/dist/agent-runtime/sandbox-process-linux.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox-process-macos.d.ts +21 -0
- package/dist/agent-runtime/sandbox-process-macos.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox-process-spec.d.ts +114 -0
- package/dist/agent-runtime/sandbox-process-spec.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox-process-wrapper.d.ts +19 -0
- package/dist/agent-runtime/sandbox-process-wrapper.d.ts.map +1 -0
- package/dist/agent-runtime/schemas-message.d.ts +10 -0
- package/dist/agent-runtime/schemas-message.d.ts.map +1 -1
- package/dist/agent-runtime/schemas-provider.d.ts +2 -0
- package/dist/agent-runtime/schemas-provider.d.ts.map +1 -1
- package/dist/agent-runtime/schemas-run.d.ts +10 -0
- package/dist/agent-runtime/schemas-run.d.ts.map +1 -1
- package/dist/agent-runtime/schemas-usage-state.d.ts +6 -0
- package/dist/agent-runtime/schemas-usage-state.d.ts.map +1 -0
- package/dist/agent-runtime/schemas-usage.d.ts +8 -0
- package/dist/agent-runtime/schemas-usage.d.ts.map +1 -1
- package/dist/agent-runtime/sql-rows.d.ts +20 -10
- package/dist/agent-runtime/sql-rows.d.ts.map +1 -1
- package/dist/agent-runtime/store-conformance-lifecycle.d.ts +40 -20
- package/dist/agent-runtime/store-conformance-lifecycle.d.ts.map +1 -1
- package/dist/agent-runtime/store-conformance-support.d.ts +20 -10
- package/dist/agent-runtime/store-conformance-support.d.ts.map +1 -1
- package/dist/agent-runtime/store-driver-contract.d.ts +70 -0
- package/dist/agent-runtime/store-driver-contract.d.ts.map +1 -1
- package/dist/agent-runtime/store-events.d.ts +120 -0
- package/dist/agent-runtime/store-events.d.ts.map +1 -1
- package/dist/agent-runtime/store.d.ts +140 -0
- package/dist/agent-runtime/store.d.ts.map +1 -1
- package/dist/agent-runtime/terminal-commit.d.ts +10 -0
- package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
- package/dist/agent-runtime/testing.d.ts +20 -0
- package/dist/agent-runtime/testing.d.ts.map +1 -1
- package/dist/browser/client-call-arguments.d.ts.map +1 -1
- package/dist/browser/client-executors.d.ts.map +1 -1
- package/dist/browser/client-url.d.ts.map +1 -1
- package/dist/browser/client.d.ts +6 -0
- package/dist/browser/client.d.ts.map +1 -1
- package/dist/browser/device-presence-client.d.ts +42 -0
- package/dist/browser/device-presence-client.d.ts.map +1 -0
- package/dist/browser/device-presence-ops.d.ts +47 -0
- package/dist/browser/device-presence-ops.d.ts.map +1 -0
- package/dist/browser/device-presence-relay-adapter.d.ts +37 -0
- package/dist/browser/device-presence-relay-adapter.d.ts.map +1 -0
- package/dist/browser/http-fetch.d.ts +7 -2
- package/dist/browser/http-fetch.d.ts.map +1 -1
- package/dist/browser/http-helpers.d.ts +15 -0
- package/dist/browser/http-helpers.d.ts.map +1 -0
- package/dist/browser/http.d.ts +8 -0
- package/dist/browser/http.d.ts.map +1 -1
- package/dist/contract/client-types.d.ts +8 -0
- package/dist/contract/client-types.d.ts.map +1 -1
- package/dist/contract/runtime-context.d.ts +13 -1
- package/dist/contract/runtime-context.d.ts.map +1 -1
- package/dist/device-relay/agent-handlers.d.ts +45 -0
- package/dist/device-relay/agent-handlers.d.ts.map +1 -0
- package/dist/device-relay/agent.d.ts +80 -0
- package/dist/device-relay/agent.d.ts.map +1 -0
- package/dist/device-relay/broker.d.ts +49 -0
- package/dist/device-relay/broker.d.ts.map +1 -0
- package/dist/device-relay/contract.d.ts +614 -0
- package/dist/device-relay/contract.d.ts.map +1 -0
- package/dist/device-relay/encoding.d.ts +30 -0
- package/dist/device-relay/encoding.d.ts.map +1 -0
- package/dist/device-relay/hub-connection.d.ts +43 -0
- package/dist/device-relay/hub-connection.d.ts.map +1 -0
- package/dist/device-relay/hub-dispatch.d.ts +19 -0
- package/dist/device-relay/hub-dispatch.d.ts.map +1 -0
- package/dist/device-relay/hub-handshake.d.ts +20 -0
- package/dist/device-relay/hub-handshake.d.ts.map +1 -0
- package/dist/device-relay/hub-shared-streams.d.ts +24 -0
- package/dist/device-relay/hub-shared-streams.d.ts.map +1 -0
- package/dist/device-relay/hub-streams.d.ts +57 -0
- package/dist/device-relay/hub-streams.d.ts.map +1 -0
- package/dist/device-relay/hub.d.ts +117 -0
- package/dist/device-relay/hub.d.ts.map +1 -0
- package/dist/entrypoints/agent-executor/acp.d.ts +1 -1
- package/dist/entrypoints/agent-executor/acp.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.js +224 -47
- package/dist/entrypoints/agent-executor/claude-sdk.js +15 -15
- package/dist/entrypoints/agent-executor/claude.js +13 -15
- package/dist/entrypoints/agent-executor/codex.js +88 -48
- package/dist/entrypoints/agent-executor/testing/claude-sdk.js +5 -5
- package/dist/entrypoints/agent-executor/testing.js +31 -30
- package/dist/entrypoints/agent-executor.d.ts +2 -2
- package/dist/entrypoints/agent-executor.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor.js +23 -17
- package/dist/entrypoints/agent-runtime/ai-sdk.d.ts +9 -0
- package/dist/entrypoints/agent-runtime/ai-sdk.d.ts.map +1 -0
- package/dist/entrypoints/agent-runtime/ai-sdk.js +821 -0
- package/dist/entrypoints/agent-runtime/anthropic.d.ts +4 -0
- package/dist/entrypoints/agent-runtime/anthropic.d.ts.map +1 -0
- package/dist/entrypoints/agent-runtime/anthropic.js +1260 -0
- package/dist/entrypoints/agent-runtime/browser.d.ts +4 -1
- package/dist/entrypoints/agent-runtime/browser.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/browser.js +449 -50
- package/dist/entrypoints/agent-runtime/coding-tools.js +3 -3
- package/dist/entrypoints/agent-runtime/harness.js +24 -19
- package/dist/entrypoints/agent-runtime/openai.d.ts +4 -0
- package/dist/entrypoints/agent-runtime/openai.d.ts.map +1 -0
- package/dist/entrypoints/agent-runtime/openai.js +1246 -0
- package/dist/entrypoints/agent-runtime/openrouter.d.ts +5 -2
- package/dist/entrypoints/agent-runtime/openrouter.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/openrouter.js +2355 -371
- package/dist/entrypoints/agent-runtime/postgres.js +12 -10
- package/dist/entrypoints/agent-runtime/realtime.js +11 -10
- package/dist/entrypoints/agent-runtime/sandbox.d.ts +3 -0
- package/dist/entrypoints/agent-runtime/sandbox.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/sandbox.js +530 -7
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +13 -11
- package/dist/entrypoints/agent-runtime/sqlite/node.js +13 -11
- package/dist/entrypoints/agent-runtime/testing.d.ts +1 -1
- package/dist/entrypoints/agent-runtime/testing.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/testing.js +56 -15
- package/dist/entrypoints/agent-runtime.d.ts +14 -6
- package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime.js +1412 -115
- package/dist/entrypoints/application/diagnostic-journal.js +6 -6
- package/dist/entrypoints/application/directory-inbox.js +6 -6
- package/dist/entrypoints/application/opentelemetry.js +3 -3
- package/dist/entrypoints/application.js +17 -17
- package/dist/entrypoints/cli/publish.js +8 -8
- package/dist/entrypoints/cli.js +14 -15
- package/dist/entrypoints/contract.d.ts +1 -0
- package/dist/entrypoints/contract.d.ts.map +1 -1
- package/dist/entrypoints/contract.js +13 -9
- package/dist/entrypoints/device-relay.d.ts +10 -0
- package/dist/entrypoints/device-relay.d.ts.map +1 -0
- package/dist/entrypoints/device-relay.js +2517 -0
- package/dist/entrypoints/files/packaging.js +3 -3
- package/dist/entrypoints/files.js +11 -11
- package/dist/entrypoints/geo.js +5 -5
- package/dist/entrypoints/google.js +1 -1
- package/dist/entrypoints/handler.js +6 -6
- package/dist/entrypoints/http.js +9 -9
- package/dist/entrypoints/index.js +21 -17
- package/dist/entrypoints/live.js +4 -4
- package/dist/entrypoints/node.js +13 -13
- package/dist/entrypoints/observability.js +9 -9
- package/dist/entrypoints/process/bootstrap.js +1 -1
- package/dist/entrypoints/process.js +5 -5
- package/dist/entrypoints/react.js +4 -4
- package/dist/entrypoints/realtime.d.ts +3 -0
- package/dist/entrypoints/realtime.d.ts.map +1 -1
- package/dist/entrypoints/realtime.js +413 -4
- package/dist/entrypoints/release.js +1 -1
- package/dist/entrypoints/remote.js +10 -10
- package/dist/entrypoints/server.d.ts +1 -0
- package/dist/entrypoints/server.d.ts.map +1 -1
- package/dist/entrypoints/server.js +546 -40
- package/dist/entrypoints/service-host/macos.js +10 -10
- package/dist/entrypoints/service-host/work.js +7 -7
- package/dist/entrypoints/service-host.js +15 -15
- package/dist/entrypoints/spend.js +3 -3
- package/dist/entrypoints/sync.js +4 -4
- package/dist/entrypoints/telegram/screens.js +6 -6
- package/dist/entrypoints/telegram.js +20 -20
- package/dist/entrypoints/testing.js +14 -14
- package/dist/entrypoints/tools/agent.d.ts +2 -1
- package/dist/entrypoints/tools/agent.d.ts.map +1 -1
- package/dist/entrypoints/tools/agent.js +8 -7
- package/dist/entrypoints/tools/connections.js +5 -5
- package/dist/entrypoints/tools/invoker.js +3 -4
- package/dist/entrypoints/tools/mcp.js +8 -9
- package/dist/entrypoints/tools/toolkit.js +32 -13
- package/dist/entrypoints/tools.d.ts +3 -1
- package/dist/entrypoints/tools.d.ts.map +1 -1
- package/dist/entrypoints/tools.js +37 -35
- package/dist/entrypoints/tracking/contract.js +1 -1
- package/dist/entrypoints/tracking/performance.js +4 -4
- package/dist/entrypoints/tracking.js +3 -3
- package/dist/{index-09f7w2qq.js → index-02kdtrcd.js} +1 -1
- package/dist/{index-y53cqwke.js → index-033tyx59.js} +1 -1
- package/dist/{index-9ft4n9j1.js → index-05b65gj4.js} +2 -2
- package/dist/{index-d04w81fz.js → index-0sxj3y45.js} +1 -1
- package/dist/{index-dm6nxkn1.js → index-18pf56dq.js} +4 -6
- package/dist/index-1gmgwfn3.js +439 -0
- package/dist/index-23wn8sgf.js +47 -0
- package/dist/{index-tqjamnax.js → index-27srek2g.js} +15 -13
- package/dist/{index-2nwvn7m2.js → index-29v1p1f4.js} +2 -2
- package/dist/index-36dmtzjr.js +194 -0
- package/dist/{index-ycr4pk0z.js → index-42n9jycn.js} +3 -3
- package/dist/{index-ke02kxsr.js → index-43k180c2.js} +1 -1
- package/dist/{index-pbekeqzm.js → index-5c4m8zdf.js} +2 -2
- package/dist/{index-qggqqja2.js → index-5dxgx3yj.js} +1 -1
- package/dist/{index-x5ayy5bn.js → index-5gdexvke.js} +3 -1
- package/dist/{index-t1a2jrg7.js → index-5xsxvk2x.js} +1 -1
- package/dist/{index-mbd92r1w.js → index-654rhe5d.js} +1 -1
- package/dist/{index-2dzc7mv9.js → index-67pnt4bh.js} +1 -1
- package/dist/index-6kpwkpgx.js +415 -0
- package/dist/{index-s43tr4my.js → index-6kwdfb9m.js} +18 -3
- package/dist/{index-1qwd54n3.js → index-6nzzj7qr.js} +1 -1
- package/dist/{index-rkjfzs0a.js → index-6p5pshcd.js} +2 -2
- package/dist/{index-118aebbg.js → index-6t4c98gr.js} +1 -1
- package/dist/{index-pws5c3x6.js → index-6xw1wf4m.js} +51 -32
- package/dist/{index-kwsr7j5k.js → index-6yb4stq3.js} +1 -1
- package/dist/{index-8jf4bt7v.js → index-76yhxa41.js} +8 -8
- package/dist/{index-7416mhyh.js → index-79vqbjcz.js} +1 -1
- package/dist/{index-13wmzpa6.js → index-7an2fs5h.js} +1 -1
- package/dist/index-7qza24g1.js +14 -0
- package/dist/{index-gtaaxe9d.js → index-8cek82ar.js} +1 -1
- package/dist/index-9f60gnfn.js +393 -0
- package/dist/{index-stpy56r3.js → index-aacwkve4.js} +209 -10
- package/dist/{index-rpyn7geq.js → index-ac3rfec5.js} +2 -2
- package/dist/{index-d2drhb9c.js → index-b0mh2t9x.js} +2 -2
- package/dist/index-b23s6e2c.js +158 -0
- package/dist/{index-an7vcmwf.js → index-bvpevwt6.js} +5 -5
- package/dist/{index-msxf2r8x.js → index-by8w2461.js} +1 -1
- package/dist/{index-8t9dr41h.js → index-c0yym4a0.js} +4 -4
- package/dist/{index-wddcfbng.js → index-c7fj4yw9.js} +1 -1
- package/dist/{index-tf70nm22.js → index-cb4nnvfr.js} +8 -6
- package/dist/{index-205456mf.js → index-d3s070eh.js} +2 -2
- package/dist/{index-apf5g7y9.js → index-dz6tstcp.js} +2 -2
- package/dist/{index-agy5fqgf.js → index-e1y74yra.js} +15 -8
- package/dist/index-edtg4tak.js +55 -0
- package/dist/{index-pq6g1k9t.js → index-ek9w11r0.js} +2 -2
- package/dist/{index-x46y9z26.js → index-epyj7ptp.js} +7 -5
- package/dist/{index-6kmjcm81.js → index-er483f3w.js} +93 -4
- package/dist/{index-827bgv33.js → index-f16b7rze.js} +1 -1
- package/dist/{index-gbhj370g.js → index-fec05c9k.js} +21 -21
- package/dist/{index-9wdrwx3b.js → index-fjac2w5e.js} +20 -22
- package/dist/{index-6918kxbf.js → index-fthw8dwa.js} +1 -0
- package/dist/{index-2mz8hj58.js → index-g04hszcm.js} +1 -1
- package/dist/{index-rw8ze745.js → index-ga6avd48.js} +1 -1
- package/dist/{index-paff5y0r.js → index-grhhsrd5.js} +9 -7
- package/dist/{index-mxt0wfjy.js → index-h20qcyh5.js} +5 -2
- package/dist/index-j3r7r1mh.js +150 -0
- package/dist/{index-vgytj9wp.js → index-jmaw365j.js} +1 -1
- package/dist/{index-t5g5rm9n.js → index-jzdbkanz.js} +5 -3
- package/dist/index-k137ezb6.js +79 -0
- package/dist/{index-tazm4dxf.js → index-kdw0n92g.js} +1 -1
- package/dist/{index-wh70tmpd.js → index-ke6jtxkd.js} +1 -1
- package/dist/index-kgj8j7bv.js +83 -0
- package/dist/{index-9kpxz49v.js → index-kgkevngs.js} +1 -1
- package/dist/{index-hab790s6.js → index-kp1j7cc8.js} +4 -4
- package/dist/{index-jcge9tx3.js → index-krekhmp7.js} +142 -123
- package/dist/{index-3y2tzhr8.js → index-ky79wwgs.js} +4 -4
- package/dist/{index-39rmc00v.js → index-mfe9a266.js} +1 -1
- package/dist/{index-qpzyahe3.js → index-mgr0mdqp.js} +5 -2
- package/dist/{index-n20tybgk.js → index-mh3jdb25.js} +2 -2
- package/dist/{index-g5fgeb6v.js → index-mkmep637.js} +1 -1
- package/dist/{index-02r5sq9p.js → index-mrng24wq.js} +19 -21
- package/dist/index-mx2gya05.js +465 -0
- package/dist/{index-8yt3rwe7.js → index-n2t87ggz.js} +5 -5
- package/dist/index-nfeafbzh.js +7379 -0
- package/dist/{index-j0ef04jw.js → index-nfm15ej7.js} +4 -4
- package/dist/index-pd9e8rz4.js +193 -0
- package/dist/{index-zwgwyvdt.js → index-pdcbjd6a.js} +1 -1
- package/dist/{index-q427q23r.js → index-pjjh91vw.js} +2 -2
- package/dist/{index-gnjgkecx.js → index-q46b16xz.js} +1 -1
- package/dist/{index-9xr44d2g.js → index-qv5v6w9c.js} +330 -106
- package/dist/{index-tmv3ez1h.js → index-qymek778.js} +69 -12
- package/dist/{index-yrr3n391.js → index-ry8m2mhg.js} +2 -2
- package/dist/{index-93n6jwy0.js → index-s0n0nnz5.js} +3 -3
- package/dist/{index-1p8q0yrt.js → index-t5zp1jjj.js} +5 -7
- package/dist/{index-2rf33y2h.js → index-tav72wz5.js} +4 -2
- package/dist/{index-jpecjm30.js → index-tgehj4bp.js} +1 -1
- package/dist/{index-ma26mfnt.js → index-v5hmyef8.js} +1 -1
- package/dist/index-vebzvse6.js +230 -0
- package/dist/index-vv0hxrmy.js +295 -0
- package/dist/index-vxm0ya3f.js +707 -0
- package/dist/{index-t3qcac2a.js → index-w3s79kcb.js} +1 -1
- package/dist/{index-r97ppg0g.js → index-x1r7kxzd.js} +1 -1
- package/dist/{index-kynwa08q.js → index-xrsryvd2.js} +2 -2
- package/dist/{index-3mcbr8sx.js → index-xtxxt87z.js} +1 -1
- package/dist/index-zk839vzf.js +231 -0
- package/dist/{index-9c76vfxf.js → index-zyyerdny.js} +4 -4
- package/dist/internal/base64.d.ts +9 -0
- package/dist/internal/base64.d.ts.map +1 -0
- package/dist/internal/deadline-budget.d.ts +57 -0
- package/dist/internal/deadline-budget.d.ts.map +1 -0
- package/dist/internal/deadline.d.ts.map +1 -1
- package/dist/internal/timers.d.ts +2 -0
- package/dist/internal/timers.d.ts.map +1 -1
- package/dist/realtime/device-presence-contract.d.ts +194 -0
- package/dist/realtime/device-presence-contract.d.ts.map +1 -0
- package/dist/server/context-contribution.d.ts.map +1 -1
- package/dist/server/contract-method.d.ts.map +1 -1
- package/dist/server/device-presence-handlers.d.ts +54 -0
- package/dist/server/device-presence-handlers.d.ts.map +1 -0
- package/dist/server/device-presence-registry.d.ts +35 -0
- package/dist/server/device-presence-registry.d.ts.map +1 -0
- package/dist/server/device-presence.d.ts +45 -0
- package/dist/server/device-presence.d.ts.map +1 -0
- package/dist/server/endpoint-dispatch.d.ts.map +1 -1
- package/dist/server/middleware/cors.d.ts +3 -1
- package/dist/server/middleware/cors.d.ts.map +1 -1
- package/dist/server/types.d.ts +4 -11
- package/dist/server/types.d.ts.map +1 -1
- package/dist/service-host/systemd-render-shared.d.ts.map +1 -1
- package/dist/tools/agent-messages.d.ts +6 -0
- package/dist/tools/agent-messages.d.ts.map +1 -0
- package/dist/tools/agent-tool-error.d.ts +2 -2
- package/dist/tools/agent-tools.d.ts +153 -0
- package/dist/tools/agent-tools.d.ts.map +1 -0
- package/dist/tools/agent.d.ts +6 -56
- package/dist/tools/agent.d.ts.map +1 -1
- package/dist/tools/runtime-tool.d.ts +3 -4
- package/dist/tools/runtime-tool.d.ts.map +1 -1
- package/dist/tools/toolkit.d.ts +3 -1
- package/dist/tools/toolkit.d.ts.map +1 -1
- package/dist/tools/transfer/define-view-file-tool.d.ts.map +1 -1
- package/llms/agent-executor-acp.txt +4 -4
- package/llms/agent-executor-codex.txt +1 -1
- package/llms/agent-executor.txt +7 -3
- package/llms/agent-runtime-ai-sdk.txt +26 -0
- package/llms/agent-runtime-anthropic.txt +33 -0
- package/llms/agent-runtime-browser.txt +22 -8
- package/llms/agent-runtime-harness.txt +2 -2
- package/llms/agent-runtime-openai.txt +31 -0
- package/llms/agent-runtime-openrouter.txt +17 -7
- package/llms/agent-runtime-sandbox.txt +53 -1
- package/llms/agent-runtime-testing.txt +4 -2
- package/llms/agent-runtime.2.txt +158 -271
- package/llms/agent-runtime.3.txt +289 -243
- package/llms/agent-runtime.4.txt +273 -216
- package/llms/agent-runtime.5.txt +209 -2
- package/llms/agent-runtime.txt +238 -181
- package/llms/contract.txt +2 -1
- package/llms/device-relay.txt +34 -0
- package/llms/realtime.txt +20 -0
- package/llms/server.2.txt +125 -1
- package/llms/server.3.txt +111 -122
- package/llms/server.4.txt +1 -1
- package/llms/server.5.txt +3 -1
- package/llms/server.txt +31 -1
- package/llms/spend.txt +11 -6
- package/llms/stitchkit.2.txt +21 -43
- package/llms/stitchkit.3.txt +43 -0
- package/llms/stitchkit.txt +93 -84
- package/llms/tools-agent.txt +7 -5
- package/llms/tools-toolkit.txt +1 -1
- package/llms/tools.4.txt +7 -2
- package/llms/{upgrading-0.128.0-0.133.0.txt → upgrading-0.128.0-0.134.0.txt} +173 -3
- package/llms/upgrading.txt +1 -1
- package/llms-full.txt +983 -212
- package/llms.txt +21 -17
- package/package.json +18 -7
- package/dist/index-0p0s5hrj.js +0 -249
- package/dist/index-1dn2wjq6.js +0 -135
- package/dist/index-1psbyyhj.js +0 -21
- package/dist/index-34k82crg.js +0 -3961
- package/dist/index-5n3a8hd8.js +0 -102
- package/dist/index-97rp94ff.js +0 -8
- package/dist/index-bn2baakz.js +0 -336
- package/dist/index-eh71zr32.js +0 -14
- package/dist/index-emgrmavr.js +0 -1193
- package/dist/index-fzd477xk.js +0 -135
- package/dist/index-vgzhw2zk.js +0 -304
- package/dist/internal/ai-sdk-typed.d.ts +0 -14
- package/dist/internal/ai-sdk-typed.d.ts.map +0 -1
- package/dist/tools/runtime-call-context.d.ts +0 -15
- package/dist/tools/runtime-call-context.d.ts.map +0 -1
- package/dist/{index-vmbxj75t.js → index-jwtmw39p.js} +0 -0
- package/dist/{index-877e9y8r.js → index-sk03xe0n.js} +3 -3
- package/dist/{index-21cfxc4z.js → index-vh4291qh.js} +3 -3
|
@@ -0,0 +1,1559 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Neutral model-exchange shapes shared by `tools/` and `agent-runtime/`.
|
|
4
|
+
*
|
|
5
|
+
* Kept in `agent-parts/` (peer-free, imports only `zod` and `internal/base64`)
|
|
6
|
+
* so `stitchkit/tools` and `stitchkit/agent-runtime` speak one clean,
|
|
7
|
+
* non-deprecated message and tool-output vocabulary without violating ADR 0197's
|
|
8
|
+
* one-way core → runtime boundary or leaking optional peer types. → ADR 0336.
|
|
9
|
+
*/
|
|
10
|
+
export type AgentModelJsonValue = z.infer<ReturnType<typeof z.json>>;
|
|
11
|
+
/** Recursive JSON value accepted inside provider option maps (supports optional keys under `exactOptionalPropertyTypes`). */
|
|
12
|
+
export type AgentModelProviderOptionValue = string | number | boolean | null | readonly AgentModelProviderOptionValue[] | {
|
|
13
|
+
readonly [key: string]: AgentModelProviderOptionValue | undefined;
|
|
14
|
+
};
|
|
15
|
+
/** Namespaced provider options (`{ openrouter: { ... }, anthropic: { ... } }`). */
|
|
16
|
+
export declare const AgentModelProviderOptionsSchema: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>;
|
|
17
|
+
export type AgentModelProviderOptions = z.infer<typeof AgentModelProviderOptionsSchema>;
|
|
18
|
+
/** Portable prompt-caching breakpoint directive supported across native drivers. */
|
|
19
|
+
export declare const AgentCacheControlSchema: z.ZodObject<{
|
|
20
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
21
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
"1h": "1h";
|
|
23
|
+
"5m": "5m";
|
|
24
|
+
}>>;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
export type AgentCacheControl = z.infer<typeof AgentCacheControlSchema>;
|
|
27
|
+
/** Portable structured-output format requested from a model driver. */
|
|
28
|
+
export declare const AgentModelResponseFormatSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<"text">;
|
|
30
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31
|
+
type: z.ZodLiteral<"json-object">;
|
|
32
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
33
|
+
type: z.ZodLiteral<"json-schema">;
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
36
|
+
description: z.ZodOptional<z.ZodString>;
|
|
37
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
}, z.core.$strict>], "type">;
|
|
39
|
+
export type AgentModelResponseFormat = z.infer<typeof AgentModelResponseFormatSchema>;
|
|
40
|
+
/**
|
|
41
|
+
* Tagged file payload carried into a model request — never an ambiguous bare string.
|
|
42
|
+
*
|
|
43
|
+
* - `{ type: 'data', data }`: raw bytes (`Uint8Array` / `ArrayBuffer`) or base64 string.
|
|
44
|
+
* - `{ type: 'url', url }`: `URL` pointing to the remote media/file.
|
|
45
|
+
* - `{ type: 'reference', reference }`: provider-keyed uploaded file reference (`{ openai: 'file_...' }`).
|
|
46
|
+
* - `{ type: 'text', text }`: inline plain-text document.
|
|
47
|
+
*/
|
|
48
|
+
export declare const AgentModelFileDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
49
|
+
type: z.ZodLiteral<"data">;
|
|
50
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
51
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52
|
+
type: z.ZodLiteral<"url">;
|
|
53
|
+
url: z.ZodInstanceOf<URL>;
|
|
54
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
56
|
+
type: z.ZodLiteral<"reference">;
|
|
57
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
58
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
59
|
+
type: z.ZodLiteral<"text">;
|
|
60
|
+
text: z.ZodString;
|
|
61
|
+
}, z.core.$strict>], "type">;
|
|
62
|
+
export type AgentModelFileData = z.infer<typeof AgentModelFileDataSchema>;
|
|
63
|
+
/** Tagged payload for a generated file emitted by a model driver. */
|
|
64
|
+
export type AgentGeneratedFileData = {
|
|
65
|
+
readonly type: 'data';
|
|
66
|
+
readonly data: Uint8Array | string;
|
|
67
|
+
} | {
|
|
68
|
+
readonly type: 'url';
|
|
69
|
+
readonly url: URL;
|
|
70
|
+
};
|
|
71
|
+
declare const AgentToolModelContentPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
72
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
73
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
74
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
75
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
76
|
+
"1h": "1h";
|
|
77
|
+
"5m": "5m";
|
|
78
|
+
}>>;
|
|
79
|
+
}, z.core.$strict>>;
|
|
80
|
+
type: z.ZodLiteral<"text">;
|
|
81
|
+
text: z.ZodString;
|
|
82
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
84
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
86
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
87
|
+
"1h": "1h";
|
|
88
|
+
"5m": "5m";
|
|
89
|
+
}>>;
|
|
90
|
+
}, z.core.$strict>>;
|
|
91
|
+
type: z.ZodLiteral<"file">;
|
|
92
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
93
|
+
type: z.ZodLiteral<"data">;
|
|
94
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
95
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
96
|
+
type: z.ZodLiteral<"url">;
|
|
97
|
+
url: z.ZodInstanceOf<URL>;
|
|
98
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
100
|
+
type: z.ZodLiteral<"reference">;
|
|
101
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
102
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
103
|
+
type: z.ZodLiteral<"text">;
|
|
104
|
+
text: z.ZodString;
|
|
105
|
+
}, z.core.$strict>], "type">;
|
|
106
|
+
mediaType: z.ZodString;
|
|
107
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
109
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
110
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
112
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
113
|
+
"1h": "1h";
|
|
114
|
+
"5m": "5m";
|
|
115
|
+
}>>;
|
|
116
|
+
}, z.core.$strict>>;
|
|
117
|
+
type: z.ZodLiteral<"custom">;
|
|
118
|
+
}, z.core.$strip>], "type">;
|
|
119
|
+
export type AgentToolModelContentPart = z.infer<typeof AgentToolModelContentPartSchema>;
|
|
120
|
+
/** Structured tool output delivered back to a model on the next step. */
|
|
121
|
+
export declare const AgentToolModelOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
122
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
123
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
125
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
"1h": "1h";
|
|
127
|
+
"5m": "5m";
|
|
128
|
+
}>>;
|
|
129
|
+
}, z.core.$strict>>;
|
|
130
|
+
type: z.ZodLiteral<"text">;
|
|
131
|
+
value: z.ZodString;
|
|
132
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
133
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
134
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
136
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
"1h": "1h";
|
|
138
|
+
"5m": "5m";
|
|
139
|
+
}>>;
|
|
140
|
+
}, z.core.$strict>>;
|
|
141
|
+
type: z.ZodLiteral<"error-text">;
|
|
142
|
+
value: z.ZodString;
|
|
143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
145
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
146
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
147
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
148
|
+
"1h": "1h";
|
|
149
|
+
"5m": "5m";
|
|
150
|
+
}>>;
|
|
151
|
+
}, z.core.$strict>>;
|
|
152
|
+
type: z.ZodLiteral<"json">;
|
|
153
|
+
value: z.ZodJSONSchema;
|
|
154
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
155
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
156
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
157
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
158
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
159
|
+
"1h": "1h";
|
|
160
|
+
"5m": "5m";
|
|
161
|
+
}>>;
|
|
162
|
+
}, z.core.$strict>>;
|
|
163
|
+
type: z.ZodLiteral<"error-json">;
|
|
164
|
+
value: z.ZodJSONSchema;
|
|
165
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
166
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
167
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
168
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
169
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
170
|
+
"1h": "1h";
|
|
171
|
+
"5m": "5m";
|
|
172
|
+
}>>;
|
|
173
|
+
}, z.core.$strict>>;
|
|
174
|
+
type: z.ZodLiteral<"execution-denied">;
|
|
175
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
176
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
177
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
178
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
179
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
180
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
181
|
+
"1h": "1h";
|
|
182
|
+
"5m": "5m";
|
|
183
|
+
}>>;
|
|
184
|
+
}, z.core.$strict>>;
|
|
185
|
+
type: z.ZodLiteral<"content">;
|
|
186
|
+
value: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
187
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
188
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
189
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
190
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
191
|
+
"1h": "1h";
|
|
192
|
+
"5m": "5m";
|
|
193
|
+
}>>;
|
|
194
|
+
}, z.core.$strict>>;
|
|
195
|
+
type: z.ZodLiteral<"text">;
|
|
196
|
+
text: z.ZodString;
|
|
197
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
198
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
199
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
200
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
201
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
202
|
+
"1h": "1h";
|
|
203
|
+
"5m": "5m";
|
|
204
|
+
}>>;
|
|
205
|
+
}, z.core.$strict>>;
|
|
206
|
+
type: z.ZodLiteral<"file">;
|
|
207
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
208
|
+
type: z.ZodLiteral<"data">;
|
|
209
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
210
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
211
|
+
type: z.ZodLiteral<"url">;
|
|
212
|
+
url: z.ZodInstanceOf<URL>;
|
|
213
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
214
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
215
|
+
type: z.ZodLiteral<"reference">;
|
|
216
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
217
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
218
|
+
type: z.ZodLiteral<"text">;
|
|
219
|
+
text: z.ZodString;
|
|
220
|
+
}, z.core.$strict>], "type">;
|
|
221
|
+
mediaType: z.ZodString;
|
|
222
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
223
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
224
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
225
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
226
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
227
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
228
|
+
"1h": "1h";
|
|
229
|
+
"5m": "5m";
|
|
230
|
+
}>>;
|
|
231
|
+
}, z.core.$strict>>;
|
|
232
|
+
type: z.ZodLiteral<"custom">;
|
|
233
|
+
}, z.core.$strip>], "type">>;
|
|
234
|
+
}, z.core.$strip>], "type">;
|
|
235
|
+
export type AgentToolModelOutput = z.infer<typeof AgentToolModelOutputSchema>;
|
|
236
|
+
/** One system instruction block, with optional provider-specific cache/routing options. */
|
|
237
|
+
export declare const AgentModelSystemMessageSchema: z.ZodObject<{
|
|
238
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
239
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
240
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
241
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
242
|
+
"1h": "1h";
|
|
243
|
+
"5m": "5m";
|
|
244
|
+
}>>;
|
|
245
|
+
}, z.core.$strict>>;
|
|
246
|
+
role: z.ZodLiteral<"system">;
|
|
247
|
+
content: z.ZodString;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
export type AgentModelSystemMessage = z.infer<typeof AgentModelSystemMessageSchema>;
|
|
250
|
+
/** Instructions accepted by prompt composition and `prepareStep`. */
|
|
251
|
+
export type AgentInstructions = string | AgentModelSystemMessage | readonly AgentModelSystemMessage[];
|
|
252
|
+
/** Normalize any `AgentInstructions` shape into ordered system messages. */
|
|
253
|
+
export declare function normalizeAgentInstructions(instructions: AgentInstructions | undefined): AgentModelSystemMessage[];
|
|
254
|
+
export declare const AgentModelUserContentPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
255
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
256
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
258
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
259
|
+
"1h": "1h";
|
|
260
|
+
"5m": "5m";
|
|
261
|
+
}>>;
|
|
262
|
+
}, z.core.$strict>>;
|
|
263
|
+
type: z.ZodLiteral<"text">;
|
|
264
|
+
text: z.ZodString;
|
|
265
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
266
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
267
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
268
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
269
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
270
|
+
"1h": "1h";
|
|
271
|
+
"5m": "5m";
|
|
272
|
+
}>>;
|
|
273
|
+
}, z.core.$strict>>;
|
|
274
|
+
type: z.ZodLiteral<"file">;
|
|
275
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
276
|
+
type: z.ZodLiteral<"data">;
|
|
277
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
278
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
279
|
+
type: z.ZodLiteral<"url">;
|
|
280
|
+
url: z.ZodInstanceOf<URL>;
|
|
281
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
282
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
283
|
+
type: z.ZodLiteral<"reference">;
|
|
284
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
285
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
286
|
+
type: z.ZodLiteral<"text">;
|
|
287
|
+
text: z.ZodString;
|
|
288
|
+
}, z.core.$strict>], "type">;
|
|
289
|
+
mediaType: z.ZodString;
|
|
290
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
291
|
+
}, z.core.$strip>], "type">;
|
|
292
|
+
export type AgentModelUserContentPart = z.infer<typeof AgentModelUserContentPartSchema>;
|
|
293
|
+
export declare const AgentModelAssistantContentPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
294
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
295
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
296
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
297
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
298
|
+
"1h": "1h";
|
|
299
|
+
"5m": "5m";
|
|
300
|
+
}>>;
|
|
301
|
+
}, z.core.$strict>>;
|
|
302
|
+
type: z.ZodLiteral<"text">;
|
|
303
|
+
text: z.ZodString;
|
|
304
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
305
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
306
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
307
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
308
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
309
|
+
"1h": "1h";
|
|
310
|
+
"5m": "5m";
|
|
311
|
+
}>>;
|
|
312
|
+
}, z.core.$strict>>;
|
|
313
|
+
type: z.ZodLiteral<"reasoning">;
|
|
314
|
+
text: z.ZodString;
|
|
315
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
316
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
317
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
318
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
319
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
320
|
+
"1h": "1h";
|
|
321
|
+
"5m": "5m";
|
|
322
|
+
}>>;
|
|
323
|
+
}, z.core.$strict>>;
|
|
324
|
+
type: z.ZodLiteral<"file">;
|
|
325
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
326
|
+
type: z.ZodLiteral<"data">;
|
|
327
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
328
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
329
|
+
type: z.ZodLiteral<"url">;
|
|
330
|
+
url: z.ZodInstanceOf<URL>;
|
|
331
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
332
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
333
|
+
type: z.ZodLiteral<"reference">;
|
|
334
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
335
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
336
|
+
type: z.ZodLiteral<"text">;
|
|
337
|
+
text: z.ZodString;
|
|
338
|
+
}, z.core.$strict>], "type">;
|
|
339
|
+
mediaType: z.ZodString;
|
|
340
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
341
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
342
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
343
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
344
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
345
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
346
|
+
"1h": "1h";
|
|
347
|
+
"5m": "5m";
|
|
348
|
+
}>>;
|
|
349
|
+
}, z.core.$strict>>;
|
|
350
|
+
type: z.ZodLiteral<"reasoning-file">;
|
|
351
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
352
|
+
type: z.ZodLiteral<"data">;
|
|
353
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
354
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
355
|
+
type: z.ZodLiteral<"url">;
|
|
356
|
+
url: z.ZodInstanceOf<URL>;
|
|
357
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
358
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
359
|
+
type: z.ZodLiteral<"reference">;
|
|
360
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
361
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
362
|
+
type: z.ZodLiteral<"text">;
|
|
363
|
+
text: z.ZodString;
|
|
364
|
+
}, z.core.$strict>], "type">;
|
|
365
|
+
mediaType: z.ZodString;
|
|
366
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
367
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
368
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
369
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
370
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
371
|
+
"1h": "1h";
|
|
372
|
+
"5m": "5m";
|
|
373
|
+
}>>;
|
|
374
|
+
}, z.core.$strict>>;
|
|
375
|
+
type: z.ZodLiteral<"tool-call">;
|
|
376
|
+
toolCallId: z.ZodString;
|
|
377
|
+
toolName: z.ZodString;
|
|
378
|
+
input: z.ZodUnknown;
|
|
379
|
+
providerExecuted: z.ZodOptional<z.ZodBoolean>;
|
|
380
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
381
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
382
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
383
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
384
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
385
|
+
"1h": "1h";
|
|
386
|
+
"5m": "5m";
|
|
387
|
+
}>>;
|
|
388
|
+
}, z.core.$strict>>;
|
|
389
|
+
type: z.ZodLiteral<"tool-result">;
|
|
390
|
+
toolCallId: z.ZodString;
|
|
391
|
+
toolName: z.ZodString;
|
|
392
|
+
output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
393
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
394
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
395
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
396
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
397
|
+
"1h": "1h";
|
|
398
|
+
"5m": "5m";
|
|
399
|
+
}>>;
|
|
400
|
+
}, z.core.$strict>>;
|
|
401
|
+
type: z.ZodLiteral<"text">;
|
|
402
|
+
value: z.ZodString;
|
|
403
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
404
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
405
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
406
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
407
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
408
|
+
"1h": "1h";
|
|
409
|
+
"5m": "5m";
|
|
410
|
+
}>>;
|
|
411
|
+
}, z.core.$strict>>;
|
|
412
|
+
type: z.ZodLiteral<"error-text">;
|
|
413
|
+
value: z.ZodString;
|
|
414
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
415
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
416
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
417
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
418
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
419
|
+
"1h": "1h";
|
|
420
|
+
"5m": "5m";
|
|
421
|
+
}>>;
|
|
422
|
+
}, z.core.$strict>>;
|
|
423
|
+
type: z.ZodLiteral<"json">;
|
|
424
|
+
value: z.ZodJSONSchema;
|
|
425
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
426
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
427
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
428
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
429
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
430
|
+
"1h": "1h";
|
|
431
|
+
"5m": "5m";
|
|
432
|
+
}>>;
|
|
433
|
+
}, z.core.$strict>>;
|
|
434
|
+
type: z.ZodLiteral<"error-json">;
|
|
435
|
+
value: z.ZodJSONSchema;
|
|
436
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
437
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
438
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
439
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
440
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
441
|
+
"1h": "1h";
|
|
442
|
+
"5m": "5m";
|
|
443
|
+
}>>;
|
|
444
|
+
}, z.core.$strict>>;
|
|
445
|
+
type: z.ZodLiteral<"execution-denied">;
|
|
446
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
447
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
448
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
449
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
450
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
451
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
452
|
+
"1h": "1h";
|
|
453
|
+
"5m": "5m";
|
|
454
|
+
}>>;
|
|
455
|
+
}, z.core.$strict>>;
|
|
456
|
+
type: z.ZodLiteral<"content">;
|
|
457
|
+
value: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
458
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
459
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
460
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
461
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
462
|
+
"1h": "1h";
|
|
463
|
+
"5m": "5m";
|
|
464
|
+
}>>;
|
|
465
|
+
}, z.core.$strict>>;
|
|
466
|
+
type: z.ZodLiteral<"text">;
|
|
467
|
+
text: z.ZodString;
|
|
468
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
469
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
470
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
471
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
472
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
473
|
+
"1h": "1h";
|
|
474
|
+
"5m": "5m";
|
|
475
|
+
}>>;
|
|
476
|
+
}, z.core.$strict>>;
|
|
477
|
+
type: z.ZodLiteral<"file">;
|
|
478
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
479
|
+
type: z.ZodLiteral<"data">;
|
|
480
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
481
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
482
|
+
type: z.ZodLiteral<"url">;
|
|
483
|
+
url: z.ZodInstanceOf<URL>;
|
|
484
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
485
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
486
|
+
type: z.ZodLiteral<"reference">;
|
|
487
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
488
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
489
|
+
type: z.ZodLiteral<"text">;
|
|
490
|
+
text: z.ZodString;
|
|
491
|
+
}, z.core.$strict>], "type">;
|
|
492
|
+
mediaType: z.ZodString;
|
|
493
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
494
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
495
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
496
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
497
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
498
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
499
|
+
"1h": "1h";
|
|
500
|
+
"5m": "5m";
|
|
501
|
+
}>>;
|
|
502
|
+
}, z.core.$strict>>;
|
|
503
|
+
type: z.ZodLiteral<"custom">;
|
|
504
|
+
}, z.core.$strip>], "type">>;
|
|
505
|
+
}, z.core.$strip>], "type">;
|
|
506
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
507
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
508
|
+
approvalId: z.ZodString;
|
|
509
|
+
toolCallId: z.ZodString;
|
|
510
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
511
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
512
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
513
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
514
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
515
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
516
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
517
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
518
|
+
"1h": "1h";
|
|
519
|
+
"5m": "5m";
|
|
520
|
+
}>>;
|
|
521
|
+
}, z.core.$strict>>;
|
|
522
|
+
type: z.ZodLiteral<"custom">;
|
|
523
|
+
kind: z.ZodString;
|
|
524
|
+
}, z.core.$strip>], "type">;
|
|
525
|
+
export type AgentModelAssistantContentPart = z.infer<typeof AgentModelAssistantContentPartSchema>;
|
|
526
|
+
export declare const AgentModelToolContentPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
527
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
528
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
529
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
530
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
531
|
+
"1h": "1h";
|
|
532
|
+
"5m": "5m";
|
|
533
|
+
}>>;
|
|
534
|
+
}, z.core.$strict>>;
|
|
535
|
+
type: z.ZodLiteral<"tool-result">;
|
|
536
|
+
toolCallId: z.ZodString;
|
|
537
|
+
toolName: z.ZodString;
|
|
538
|
+
output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
539
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
540
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
541
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
542
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
543
|
+
"1h": "1h";
|
|
544
|
+
"5m": "5m";
|
|
545
|
+
}>>;
|
|
546
|
+
}, z.core.$strict>>;
|
|
547
|
+
type: z.ZodLiteral<"text">;
|
|
548
|
+
value: z.ZodString;
|
|
549
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
550
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
551
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
552
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
553
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
554
|
+
"1h": "1h";
|
|
555
|
+
"5m": "5m";
|
|
556
|
+
}>>;
|
|
557
|
+
}, z.core.$strict>>;
|
|
558
|
+
type: z.ZodLiteral<"error-text">;
|
|
559
|
+
value: z.ZodString;
|
|
560
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
561
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
562
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
563
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
564
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
565
|
+
"1h": "1h";
|
|
566
|
+
"5m": "5m";
|
|
567
|
+
}>>;
|
|
568
|
+
}, z.core.$strict>>;
|
|
569
|
+
type: z.ZodLiteral<"json">;
|
|
570
|
+
value: z.ZodJSONSchema;
|
|
571
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
572
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
573
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
574
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
575
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
576
|
+
"1h": "1h";
|
|
577
|
+
"5m": "5m";
|
|
578
|
+
}>>;
|
|
579
|
+
}, z.core.$strict>>;
|
|
580
|
+
type: z.ZodLiteral<"error-json">;
|
|
581
|
+
value: z.ZodJSONSchema;
|
|
582
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
583
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
584
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
585
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
586
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
587
|
+
"1h": "1h";
|
|
588
|
+
"5m": "5m";
|
|
589
|
+
}>>;
|
|
590
|
+
}, z.core.$strict>>;
|
|
591
|
+
type: z.ZodLiteral<"execution-denied">;
|
|
592
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
593
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
594
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
595
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
596
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
597
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
598
|
+
"1h": "1h";
|
|
599
|
+
"5m": "5m";
|
|
600
|
+
}>>;
|
|
601
|
+
}, z.core.$strict>>;
|
|
602
|
+
type: z.ZodLiteral<"content">;
|
|
603
|
+
value: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
604
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
605
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
606
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
607
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
608
|
+
"1h": "1h";
|
|
609
|
+
"5m": "5m";
|
|
610
|
+
}>>;
|
|
611
|
+
}, z.core.$strict>>;
|
|
612
|
+
type: z.ZodLiteral<"text">;
|
|
613
|
+
text: z.ZodString;
|
|
614
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
615
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
616
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
617
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
618
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
619
|
+
"1h": "1h";
|
|
620
|
+
"5m": "5m";
|
|
621
|
+
}>>;
|
|
622
|
+
}, z.core.$strict>>;
|
|
623
|
+
type: z.ZodLiteral<"file">;
|
|
624
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
625
|
+
type: z.ZodLiteral<"data">;
|
|
626
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
627
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
628
|
+
type: z.ZodLiteral<"url">;
|
|
629
|
+
url: z.ZodInstanceOf<URL>;
|
|
630
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
631
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
632
|
+
type: z.ZodLiteral<"reference">;
|
|
633
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
634
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
635
|
+
type: z.ZodLiteral<"text">;
|
|
636
|
+
text: z.ZodString;
|
|
637
|
+
}, z.core.$strict>], "type">;
|
|
638
|
+
mediaType: z.ZodString;
|
|
639
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
640
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
641
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
642
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
643
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
644
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
645
|
+
"1h": "1h";
|
|
646
|
+
"5m": "5m";
|
|
647
|
+
}>>;
|
|
648
|
+
}, z.core.$strict>>;
|
|
649
|
+
type: z.ZodLiteral<"custom">;
|
|
650
|
+
}, z.core.$strip>], "type">>;
|
|
651
|
+
}, z.core.$strip>], "type">;
|
|
652
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
653
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
654
|
+
approvalId: z.ZodString;
|
|
655
|
+
approved: z.ZodBoolean;
|
|
656
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
657
|
+
providerExecuted: z.ZodOptional<z.ZodBoolean>;
|
|
658
|
+
}, z.core.$strip>], "type">;
|
|
659
|
+
export type AgentModelToolContentPart = z.infer<typeof AgentModelToolContentPartSchema>;
|
|
660
|
+
export declare const AgentModelUserMessageSchema: z.ZodObject<{
|
|
661
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
662
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
663
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
664
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
665
|
+
"1h": "1h";
|
|
666
|
+
"5m": "5m";
|
|
667
|
+
}>>;
|
|
668
|
+
}, z.core.$strict>>;
|
|
669
|
+
role: z.ZodLiteral<"user">;
|
|
670
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
671
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
672
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
673
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
674
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
675
|
+
"1h": "1h";
|
|
676
|
+
"5m": "5m";
|
|
677
|
+
}>>;
|
|
678
|
+
}, z.core.$strict>>;
|
|
679
|
+
type: z.ZodLiteral<"text">;
|
|
680
|
+
text: z.ZodString;
|
|
681
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
682
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
683
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
684
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
685
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
686
|
+
"1h": "1h";
|
|
687
|
+
"5m": "5m";
|
|
688
|
+
}>>;
|
|
689
|
+
}, z.core.$strict>>;
|
|
690
|
+
type: z.ZodLiteral<"file">;
|
|
691
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
692
|
+
type: z.ZodLiteral<"data">;
|
|
693
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
694
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
695
|
+
type: z.ZodLiteral<"url">;
|
|
696
|
+
url: z.ZodInstanceOf<URL>;
|
|
697
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
698
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
699
|
+
type: z.ZodLiteral<"reference">;
|
|
700
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
701
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
702
|
+
type: z.ZodLiteral<"text">;
|
|
703
|
+
text: z.ZodString;
|
|
704
|
+
}, z.core.$strict>], "type">;
|
|
705
|
+
mediaType: z.ZodString;
|
|
706
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
707
|
+
}, z.core.$strip>], "type">>]>;
|
|
708
|
+
}, z.core.$strip>;
|
|
709
|
+
export type AgentModelUserMessage = z.infer<typeof AgentModelUserMessageSchema>;
|
|
710
|
+
export declare const AgentModelAssistantMessageSchema: z.ZodObject<{
|
|
711
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
712
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
713
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
714
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
715
|
+
"1h": "1h";
|
|
716
|
+
"5m": "5m";
|
|
717
|
+
}>>;
|
|
718
|
+
}, z.core.$strict>>;
|
|
719
|
+
role: z.ZodLiteral<"assistant">;
|
|
720
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
721
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
722
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
723
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
724
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
725
|
+
"1h": "1h";
|
|
726
|
+
"5m": "5m";
|
|
727
|
+
}>>;
|
|
728
|
+
}, z.core.$strict>>;
|
|
729
|
+
type: z.ZodLiteral<"text">;
|
|
730
|
+
text: z.ZodString;
|
|
731
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
732
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
733
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
734
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
735
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
736
|
+
"1h": "1h";
|
|
737
|
+
"5m": "5m";
|
|
738
|
+
}>>;
|
|
739
|
+
}, z.core.$strict>>;
|
|
740
|
+
type: z.ZodLiteral<"reasoning">;
|
|
741
|
+
text: z.ZodString;
|
|
742
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
743
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
744
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
745
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
746
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
747
|
+
"1h": "1h";
|
|
748
|
+
"5m": "5m";
|
|
749
|
+
}>>;
|
|
750
|
+
}, z.core.$strict>>;
|
|
751
|
+
type: z.ZodLiteral<"file">;
|
|
752
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
753
|
+
type: z.ZodLiteral<"data">;
|
|
754
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
755
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
756
|
+
type: z.ZodLiteral<"url">;
|
|
757
|
+
url: z.ZodInstanceOf<URL>;
|
|
758
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
759
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
760
|
+
type: z.ZodLiteral<"reference">;
|
|
761
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
762
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
763
|
+
type: z.ZodLiteral<"text">;
|
|
764
|
+
text: z.ZodString;
|
|
765
|
+
}, z.core.$strict>], "type">;
|
|
766
|
+
mediaType: z.ZodString;
|
|
767
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
768
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
769
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
770
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
771
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
772
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
773
|
+
"1h": "1h";
|
|
774
|
+
"5m": "5m";
|
|
775
|
+
}>>;
|
|
776
|
+
}, z.core.$strict>>;
|
|
777
|
+
type: z.ZodLiteral<"reasoning-file">;
|
|
778
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
779
|
+
type: z.ZodLiteral<"data">;
|
|
780
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
781
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
782
|
+
type: z.ZodLiteral<"url">;
|
|
783
|
+
url: z.ZodInstanceOf<URL>;
|
|
784
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
785
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
786
|
+
type: z.ZodLiteral<"reference">;
|
|
787
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
788
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
789
|
+
type: z.ZodLiteral<"text">;
|
|
790
|
+
text: z.ZodString;
|
|
791
|
+
}, z.core.$strict>], "type">;
|
|
792
|
+
mediaType: z.ZodString;
|
|
793
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
794
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
795
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
796
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
797
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
798
|
+
"1h": "1h";
|
|
799
|
+
"5m": "5m";
|
|
800
|
+
}>>;
|
|
801
|
+
}, z.core.$strict>>;
|
|
802
|
+
type: z.ZodLiteral<"tool-call">;
|
|
803
|
+
toolCallId: z.ZodString;
|
|
804
|
+
toolName: z.ZodString;
|
|
805
|
+
input: z.ZodUnknown;
|
|
806
|
+
providerExecuted: z.ZodOptional<z.ZodBoolean>;
|
|
807
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
808
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
809
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
810
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
811
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
812
|
+
"1h": "1h";
|
|
813
|
+
"5m": "5m";
|
|
814
|
+
}>>;
|
|
815
|
+
}, z.core.$strict>>;
|
|
816
|
+
type: z.ZodLiteral<"tool-result">;
|
|
817
|
+
toolCallId: z.ZodString;
|
|
818
|
+
toolName: z.ZodString;
|
|
819
|
+
output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
820
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
821
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
822
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
823
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
824
|
+
"1h": "1h";
|
|
825
|
+
"5m": "5m";
|
|
826
|
+
}>>;
|
|
827
|
+
}, z.core.$strict>>;
|
|
828
|
+
type: z.ZodLiteral<"text">;
|
|
829
|
+
value: z.ZodString;
|
|
830
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
831
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
832
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
833
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
834
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
835
|
+
"1h": "1h";
|
|
836
|
+
"5m": "5m";
|
|
837
|
+
}>>;
|
|
838
|
+
}, z.core.$strict>>;
|
|
839
|
+
type: z.ZodLiteral<"error-text">;
|
|
840
|
+
value: z.ZodString;
|
|
841
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
842
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
843
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
844
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
845
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
846
|
+
"1h": "1h";
|
|
847
|
+
"5m": "5m";
|
|
848
|
+
}>>;
|
|
849
|
+
}, z.core.$strict>>;
|
|
850
|
+
type: z.ZodLiteral<"json">;
|
|
851
|
+
value: z.ZodJSONSchema;
|
|
852
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
853
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
854
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
855
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
856
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
857
|
+
"1h": "1h";
|
|
858
|
+
"5m": "5m";
|
|
859
|
+
}>>;
|
|
860
|
+
}, z.core.$strict>>;
|
|
861
|
+
type: z.ZodLiteral<"error-json">;
|
|
862
|
+
value: z.ZodJSONSchema;
|
|
863
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
864
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
865
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
866
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
867
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
868
|
+
"1h": "1h";
|
|
869
|
+
"5m": "5m";
|
|
870
|
+
}>>;
|
|
871
|
+
}, z.core.$strict>>;
|
|
872
|
+
type: z.ZodLiteral<"execution-denied">;
|
|
873
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
874
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
875
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
876
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
877
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
878
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
879
|
+
"1h": "1h";
|
|
880
|
+
"5m": "5m";
|
|
881
|
+
}>>;
|
|
882
|
+
}, z.core.$strict>>;
|
|
883
|
+
type: z.ZodLiteral<"content">;
|
|
884
|
+
value: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
885
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
886
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
887
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
888
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
889
|
+
"1h": "1h";
|
|
890
|
+
"5m": "5m";
|
|
891
|
+
}>>;
|
|
892
|
+
}, z.core.$strict>>;
|
|
893
|
+
type: z.ZodLiteral<"text">;
|
|
894
|
+
text: z.ZodString;
|
|
895
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
896
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
897
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
898
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
899
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
900
|
+
"1h": "1h";
|
|
901
|
+
"5m": "5m";
|
|
902
|
+
}>>;
|
|
903
|
+
}, z.core.$strict>>;
|
|
904
|
+
type: z.ZodLiteral<"file">;
|
|
905
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
906
|
+
type: z.ZodLiteral<"data">;
|
|
907
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
908
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
909
|
+
type: z.ZodLiteral<"url">;
|
|
910
|
+
url: z.ZodInstanceOf<URL>;
|
|
911
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
912
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
913
|
+
type: z.ZodLiteral<"reference">;
|
|
914
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
915
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
916
|
+
type: z.ZodLiteral<"text">;
|
|
917
|
+
text: z.ZodString;
|
|
918
|
+
}, z.core.$strict>], "type">;
|
|
919
|
+
mediaType: z.ZodString;
|
|
920
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
921
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
922
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
923
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
924
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
925
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
926
|
+
"1h": "1h";
|
|
927
|
+
"5m": "5m";
|
|
928
|
+
}>>;
|
|
929
|
+
}, z.core.$strict>>;
|
|
930
|
+
type: z.ZodLiteral<"custom">;
|
|
931
|
+
}, z.core.$strip>], "type">>;
|
|
932
|
+
}, z.core.$strip>], "type">;
|
|
933
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
934
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
935
|
+
approvalId: z.ZodString;
|
|
936
|
+
toolCallId: z.ZodString;
|
|
937
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
938
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
939
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
940
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
941
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
942
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
943
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
944
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
945
|
+
"1h": "1h";
|
|
946
|
+
"5m": "5m";
|
|
947
|
+
}>>;
|
|
948
|
+
}, z.core.$strict>>;
|
|
949
|
+
type: z.ZodLiteral<"custom">;
|
|
950
|
+
kind: z.ZodString;
|
|
951
|
+
}, z.core.$strip>], "type">>]>;
|
|
952
|
+
}, z.core.$strip>;
|
|
953
|
+
export type AgentModelAssistantMessage = z.infer<typeof AgentModelAssistantMessageSchema>;
|
|
954
|
+
export declare const AgentModelToolMessageSchema: z.ZodObject<{
|
|
955
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
956
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
957
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
958
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
959
|
+
"1h": "1h";
|
|
960
|
+
"5m": "5m";
|
|
961
|
+
}>>;
|
|
962
|
+
}, z.core.$strict>>;
|
|
963
|
+
role: z.ZodLiteral<"tool">;
|
|
964
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
965
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
966
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
967
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
968
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
969
|
+
"1h": "1h";
|
|
970
|
+
"5m": "5m";
|
|
971
|
+
}>>;
|
|
972
|
+
}, z.core.$strict>>;
|
|
973
|
+
type: z.ZodLiteral<"tool-result">;
|
|
974
|
+
toolCallId: z.ZodString;
|
|
975
|
+
toolName: z.ZodString;
|
|
976
|
+
output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
977
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
978
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
979
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
980
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
981
|
+
"1h": "1h";
|
|
982
|
+
"5m": "5m";
|
|
983
|
+
}>>;
|
|
984
|
+
}, z.core.$strict>>;
|
|
985
|
+
type: z.ZodLiteral<"text">;
|
|
986
|
+
value: z.ZodString;
|
|
987
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
988
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
989
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
990
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
991
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
992
|
+
"1h": "1h";
|
|
993
|
+
"5m": "5m";
|
|
994
|
+
}>>;
|
|
995
|
+
}, z.core.$strict>>;
|
|
996
|
+
type: z.ZodLiteral<"error-text">;
|
|
997
|
+
value: z.ZodString;
|
|
998
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
999
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1000
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1001
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1002
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1003
|
+
"1h": "1h";
|
|
1004
|
+
"5m": "5m";
|
|
1005
|
+
}>>;
|
|
1006
|
+
}, z.core.$strict>>;
|
|
1007
|
+
type: z.ZodLiteral<"json">;
|
|
1008
|
+
value: z.ZodJSONSchema;
|
|
1009
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1010
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1011
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1012
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1013
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1014
|
+
"1h": "1h";
|
|
1015
|
+
"5m": "5m";
|
|
1016
|
+
}>>;
|
|
1017
|
+
}, z.core.$strict>>;
|
|
1018
|
+
type: z.ZodLiteral<"error-json">;
|
|
1019
|
+
value: z.ZodJSONSchema;
|
|
1020
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1021
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1022
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1023
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1024
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1025
|
+
"1h": "1h";
|
|
1026
|
+
"5m": "5m";
|
|
1027
|
+
}>>;
|
|
1028
|
+
}, z.core.$strict>>;
|
|
1029
|
+
type: z.ZodLiteral<"execution-denied">;
|
|
1030
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1031
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1032
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1033
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1034
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1035
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1036
|
+
"1h": "1h";
|
|
1037
|
+
"5m": "5m";
|
|
1038
|
+
}>>;
|
|
1039
|
+
}, z.core.$strict>>;
|
|
1040
|
+
type: z.ZodLiteral<"content">;
|
|
1041
|
+
value: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1042
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1043
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1044
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1045
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1046
|
+
"1h": "1h";
|
|
1047
|
+
"5m": "5m";
|
|
1048
|
+
}>>;
|
|
1049
|
+
}, z.core.$strict>>;
|
|
1050
|
+
type: z.ZodLiteral<"text">;
|
|
1051
|
+
text: z.ZodString;
|
|
1052
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1053
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1054
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1055
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1056
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1057
|
+
"1h": "1h";
|
|
1058
|
+
"5m": "5m";
|
|
1059
|
+
}>>;
|
|
1060
|
+
}, z.core.$strict>>;
|
|
1061
|
+
type: z.ZodLiteral<"file">;
|
|
1062
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1063
|
+
type: z.ZodLiteral<"data">;
|
|
1064
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
1065
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1066
|
+
type: z.ZodLiteral<"url">;
|
|
1067
|
+
url: z.ZodInstanceOf<URL>;
|
|
1068
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
1069
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1070
|
+
type: z.ZodLiteral<"reference">;
|
|
1071
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1072
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1073
|
+
type: z.ZodLiteral<"text">;
|
|
1074
|
+
text: z.ZodString;
|
|
1075
|
+
}, z.core.$strict>], "type">;
|
|
1076
|
+
mediaType: z.ZodString;
|
|
1077
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1079
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1080
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1081
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1082
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1083
|
+
"1h": "1h";
|
|
1084
|
+
"5m": "5m";
|
|
1085
|
+
}>>;
|
|
1086
|
+
}, z.core.$strict>>;
|
|
1087
|
+
type: z.ZodLiteral<"custom">;
|
|
1088
|
+
}, z.core.$strip>], "type">>;
|
|
1089
|
+
}, z.core.$strip>], "type">;
|
|
1090
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1091
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
1092
|
+
approvalId: z.ZodString;
|
|
1093
|
+
approved: z.ZodBoolean;
|
|
1094
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1095
|
+
providerExecuted: z.ZodOptional<z.ZodBoolean>;
|
|
1096
|
+
}, z.core.$strip>], "type">>;
|
|
1097
|
+
}, z.core.$strip>;
|
|
1098
|
+
export type AgentModelToolMessage = z.infer<typeof AgentModelToolMessageSchema>;
|
|
1099
|
+
/** Canonical model-facing message — peer-free and non-deprecated. */
|
|
1100
|
+
export declare const AgentModelMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1101
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1102
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1103
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1104
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1105
|
+
"1h": "1h";
|
|
1106
|
+
"5m": "5m";
|
|
1107
|
+
}>>;
|
|
1108
|
+
}, z.core.$strict>>;
|
|
1109
|
+
role: z.ZodLiteral<"system">;
|
|
1110
|
+
content: z.ZodString;
|
|
1111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1112
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1113
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1114
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1115
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1116
|
+
"1h": "1h";
|
|
1117
|
+
"5m": "5m";
|
|
1118
|
+
}>>;
|
|
1119
|
+
}, z.core.$strict>>;
|
|
1120
|
+
role: z.ZodLiteral<"user">;
|
|
1121
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1122
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1123
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1124
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1125
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1126
|
+
"1h": "1h";
|
|
1127
|
+
"5m": "5m";
|
|
1128
|
+
}>>;
|
|
1129
|
+
}, z.core.$strict>>;
|
|
1130
|
+
type: z.ZodLiteral<"text">;
|
|
1131
|
+
text: z.ZodString;
|
|
1132
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1133
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1134
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1135
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1136
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1137
|
+
"1h": "1h";
|
|
1138
|
+
"5m": "5m";
|
|
1139
|
+
}>>;
|
|
1140
|
+
}, z.core.$strict>>;
|
|
1141
|
+
type: z.ZodLiteral<"file">;
|
|
1142
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1143
|
+
type: z.ZodLiteral<"data">;
|
|
1144
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
1145
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1146
|
+
type: z.ZodLiteral<"url">;
|
|
1147
|
+
url: z.ZodInstanceOf<URL>;
|
|
1148
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
1149
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1150
|
+
type: z.ZodLiteral<"reference">;
|
|
1151
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1152
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1153
|
+
type: z.ZodLiteral<"text">;
|
|
1154
|
+
text: z.ZodString;
|
|
1155
|
+
}, z.core.$strict>], "type">;
|
|
1156
|
+
mediaType: z.ZodString;
|
|
1157
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1158
|
+
}, z.core.$strip>], "type">>]>;
|
|
1159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1160
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1161
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1162
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1163
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1164
|
+
"1h": "1h";
|
|
1165
|
+
"5m": "5m";
|
|
1166
|
+
}>>;
|
|
1167
|
+
}, z.core.$strict>>;
|
|
1168
|
+
role: z.ZodLiteral<"assistant">;
|
|
1169
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1170
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1171
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1172
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1173
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1174
|
+
"1h": "1h";
|
|
1175
|
+
"5m": "5m";
|
|
1176
|
+
}>>;
|
|
1177
|
+
}, z.core.$strict>>;
|
|
1178
|
+
type: z.ZodLiteral<"text">;
|
|
1179
|
+
text: z.ZodString;
|
|
1180
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1181
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1182
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1183
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1184
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1185
|
+
"1h": "1h";
|
|
1186
|
+
"5m": "5m";
|
|
1187
|
+
}>>;
|
|
1188
|
+
}, z.core.$strict>>;
|
|
1189
|
+
type: z.ZodLiteral<"reasoning">;
|
|
1190
|
+
text: z.ZodString;
|
|
1191
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1192
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1193
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1194
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1195
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1196
|
+
"1h": "1h";
|
|
1197
|
+
"5m": "5m";
|
|
1198
|
+
}>>;
|
|
1199
|
+
}, z.core.$strict>>;
|
|
1200
|
+
type: z.ZodLiteral<"file">;
|
|
1201
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1202
|
+
type: z.ZodLiteral<"data">;
|
|
1203
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
1204
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1205
|
+
type: z.ZodLiteral<"url">;
|
|
1206
|
+
url: z.ZodInstanceOf<URL>;
|
|
1207
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
1208
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1209
|
+
type: z.ZodLiteral<"reference">;
|
|
1210
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1211
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1212
|
+
type: z.ZodLiteral<"text">;
|
|
1213
|
+
text: z.ZodString;
|
|
1214
|
+
}, z.core.$strict>], "type">;
|
|
1215
|
+
mediaType: z.ZodString;
|
|
1216
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1218
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1219
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1220
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1221
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1222
|
+
"1h": "1h";
|
|
1223
|
+
"5m": "5m";
|
|
1224
|
+
}>>;
|
|
1225
|
+
}, z.core.$strict>>;
|
|
1226
|
+
type: z.ZodLiteral<"reasoning-file">;
|
|
1227
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1228
|
+
type: z.ZodLiteral<"data">;
|
|
1229
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
1230
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1231
|
+
type: z.ZodLiteral<"url">;
|
|
1232
|
+
url: z.ZodInstanceOf<URL>;
|
|
1233
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
1234
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1235
|
+
type: z.ZodLiteral<"reference">;
|
|
1236
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1237
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1238
|
+
type: z.ZodLiteral<"text">;
|
|
1239
|
+
text: z.ZodString;
|
|
1240
|
+
}, z.core.$strict>], "type">;
|
|
1241
|
+
mediaType: z.ZodString;
|
|
1242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1243
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1244
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1245
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1246
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1247
|
+
"1h": "1h";
|
|
1248
|
+
"5m": "5m";
|
|
1249
|
+
}>>;
|
|
1250
|
+
}, z.core.$strict>>;
|
|
1251
|
+
type: z.ZodLiteral<"tool-call">;
|
|
1252
|
+
toolCallId: z.ZodString;
|
|
1253
|
+
toolName: z.ZodString;
|
|
1254
|
+
input: z.ZodUnknown;
|
|
1255
|
+
providerExecuted: z.ZodOptional<z.ZodBoolean>;
|
|
1256
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1257
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1258
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1259
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1260
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1261
|
+
"1h": "1h";
|
|
1262
|
+
"5m": "5m";
|
|
1263
|
+
}>>;
|
|
1264
|
+
}, z.core.$strict>>;
|
|
1265
|
+
type: z.ZodLiteral<"tool-result">;
|
|
1266
|
+
toolCallId: z.ZodString;
|
|
1267
|
+
toolName: z.ZodString;
|
|
1268
|
+
output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1269
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1270
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1271
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1272
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1273
|
+
"1h": "1h";
|
|
1274
|
+
"5m": "5m";
|
|
1275
|
+
}>>;
|
|
1276
|
+
}, z.core.$strict>>;
|
|
1277
|
+
type: z.ZodLiteral<"text">;
|
|
1278
|
+
value: z.ZodString;
|
|
1279
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1280
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1281
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1282
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1283
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1284
|
+
"1h": "1h";
|
|
1285
|
+
"5m": "5m";
|
|
1286
|
+
}>>;
|
|
1287
|
+
}, z.core.$strict>>;
|
|
1288
|
+
type: z.ZodLiteral<"error-text">;
|
|
1289
|
+
value: z.ZodString;
|
|
1290
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1291
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1292
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1293
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1294
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1295
|
+
"1h": "1h";
|
|
1296
|
+
"5m": "5m";
|
|
1297
|
+
}>>;
|
|
1298
|
+
}, z.core.$strict>>;
|
|
1299
|
+
type: z.ZodLiteral<"json">;
|
|
1300
|
+
value: z.ZodJSONSchema;
|
|
1301
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1302
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1303
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1304
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1305
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1306
|
+
"1h": "1h";
|
|
1307
|
+
"5m": "5m";
|
|
1308
|
+
}>>;
|
|
1309
|
+
}, z.core.$strict>>;
|
|
1310
|
+
type: z.ZodLiteral<"error-json">;
|
|
1311
|
+
value: z.ZodJSONSchema;
|
|
1312
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1313
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1314
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1315
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1316
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1317
|
+
"1h": "1h";
|
|
1318
|
+
"5m": "5m";
|
|
1319
|
+
}>>;
|
|
1320
|
+
}, z.core.$strict>>;
|
|
1321
|
+
type: z.ZodLiteral<"execution-denied">;
|
|
1322
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1323
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1324
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1325
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1326
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1327
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1328
|
+
"1h": "1h";
|
|
1329
|
+
"5m": "5m";
|
|
1330
|
+
}>>;
|
|
1331
|
+
}, z.core.$strict>>;
|
|
1332
|
+
type: z.ZodLiteral<"content">;
|
|
1333
|
+
value: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1334
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1335
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1336
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1337
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1338
|
+
"1h": "1h";
|
|
1339
|
+
"5m": "5m";
|
|
1340
|
+
}>>;
|
|
1341
|
+
}, z.core.$strict>>;
|
|
1342
|
+
type: z.ZodLiteral<"text">;
|
|
1343
|
+
text: z.ZodString;
|
|
1344
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1345
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1346
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1347
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1348
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1349
|
+
"1h": "1h";
|
|
1350
|
+
"5m": "5m";
|
|
1351
|
+
}>>;
|
|
1352
|
+
}, z.core.$strict>>;
|
|
1353
|
+
type: z.ZodLiteral<"file">;
|
|
1354
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1355
|
+
type: z.ZodLiteral<"data">;
|
|
1356
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
1357
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1358
|
+
type: z.ZodLiteral<"url">;
|
|
1359
|
+
url: z.ZodInstanceOf<URL>;
|
|
1360
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
1361
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1362
|
+
type: z.ZodLiteral<"reference">;
|
|
1363
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1364
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1365
|
+
type: z.ZodLiteral<"text">;
|
|
1366
|
+
text: z.ZodString;
|
|
1367
|
+
}, z.core.$strict>], "type">;
|
|
1368
|
+
mediaType: z.ZodString;
|
|
1369
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1370
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1371
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1372
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1373
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1374
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1375
|
+
"1h": "1h";
|
|
1376
|
+
"5m": "5m";
|
|
1377
|
+
}>>;
|
|
1378
|
+
}, z.core.$strict>>;
|
|
1379
|
+
type: z.ZodLiteral<"custom">;
|
|
1380
|
+
}, z.core.$strip>], "type">>;
|
|
1381
|
+
}, z.core.$strip>], "type">;
|
|
1382
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1383
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
1384
|
+
approvalId: z.ZodString;
|
|
1385
|
+
toolCallId: z.ZodString;
|
|
1386
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
1387
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
1388
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1389
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1390
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1391
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1392
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1393
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1394
|
+
"1h": "1h";
|
|
1395
|
+
"5m": "5m";
|
|
1396
|
+
}>>;
|
|
1397
|
+
}, z.core.$strict>>;
|
|
1398
|
+
type: z.ZodLiteral<"custom">;
|
|
1399
|
+
kind: z.ZodString;
|
|
1400
|
+
}, z.core.$strip>], "type">>]>;
|
|
1401
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1402
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1403
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1404
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1405
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1406
|
+
"1h": "1h";
|
|
1407
|
+
"5m": "5m";
|
|
1408
|
+
}>>;
|
|
1409
|
+
}, z.core.$strict>>;
|
|
1410
|
+
role: z.ZodLiteral<"tool">;
|
|
1411
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1412
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1413
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1414
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1415
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1416
|
+
"1h": "1h";
|
|
1417
|
+
"5m": "5m";
|
|
1418
|
+
}>>;
|
|
1419
|
+
}, z.core.$strict>>;
|
|
1420
|
+
type: z.ZodLiteral<"tool-result">;
|
|
1421
|
+
toolCallId: z.ZodString;
|
|
1422
|
+
toolName: z.ZodString;
|
|
1423
|
+
output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1424
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1425
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1426
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1427
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1428
|
+
"1h": "1h";
|
|
1429
|
+
"5m": "5m";
|
|
1430
|
+
}>>;
|
|
1431
|
+
}, z.core.$strict>>;
|
|
1432
|
+
type: z.ZodLiteral<"text">;
|
|
1433
|
+
value: z.ZodString;
|
|
1434
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1435
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1436
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1437
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1438
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1439
|
+
"1h": "1h";
|
|
1440
|
+
"5m": "5m";
|
|
1441
|
+
}>>;
|
|
1442
|
+
}, z.core.$strict>>;
|
|
1443
|
+
type: z.ZodLiteral<"error-text">;
|
|
1444
|
+
value: z.ZodString;
|
|
1445
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1446
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1447
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1448
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1449
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1450
|
+
"1h": "1h";
|
|
1451
|
+
"5m": "5m";
|
|
1452
|
+
}>>;
|
|
1453
|
+
}, z.core.$strict>>;
|
|
1454
|
+
type: z.ZodLiteral<"json">;
|
|
1455
|
+
value: z.ZodJSONSchema;
|
|
1456
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1457
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1458
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1459
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1460
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1461
|
+
"1h": "1h";
|
|
1462
|
+
"5m": "5m";
|
|
1463
|
+
}>>;
|
|
1464
|
+
}, z.core.$strict>>;
|
|
1465
|
+
type: z.ZodLiteral<"error-json">;
|
|
1466
|
+
value: z.ZodJSONSchema;
|
|
1467
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1468
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1469
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1470
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1471
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1472
|
+
"1h": "1h";
|
|
1473
|
+
"5m": "5m";
|
|
1474
|
+
}>>;
|
|
1475
|
+
}, z.core.$strict>>;
|
|
1476
|
+
type: z.ZodLiteral<"execution-denied">;
|
|
1477
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1478
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1479
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1480
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1481
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1482
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1483
|
+
"1h": "1h";
|
|
1484
|
+
"5m": "5m";
|
|
1485
|
+
}>>;
|
|
1486
|
+
}, z.core.$strict>>;
|
|
1487
|
+
type: z.ZodLiteral<"content">;
|
|
1488
|
+
value: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1489
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1490
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1491
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1492
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1493
|
+
"1h": "1h";
|
|
1494
|
+
"5m": "5m";
|
|
1495
|
+
}>>;
|
|
1496
|
+
}, z.core.$strict>>;
|
|
1497
|
+
type: z.ZodLiteral<"text">;
|
|
1498
|
+
text: z.ZodString;
|
|
1499
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1500
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1501
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1502
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1503
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1504
|
+
"1h": "1h";
|
|
1505
|
+
"5m": "5m";
|
|
1506
|
+
}>>;
|
|
1507
|
+
}, z.core.$strict>>;
|
|
1508
|
+
type: z.ZodLiteral<"file">;
|
|
1509
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1510
|
+
type: z.ZodLiteral<"data">;
|
|
1511
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>, z.ZodInstanceOf<ArrayBuffer>]>;
|
|
1512
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1513
|
+
type: z.ZodLiteral<"url">;
|
|
1514
|
+
url: z.ZodInstanceOf<URL>;
|
|
1515
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
|
1516
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1517
|
+
type: z.ZodLiteral<"reference">;
|
|
1518
|
+
reference: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1519
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1520
|
+
type: z.ZodLiteral<"text">;
|
|
1521
|
+
text: z.ZodString;
|
|
1522
|
+
}, z.core.$strict>], "type">;
|
|
1523
|
+
mediaType: z.ZodString;
|
|
1524
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1525
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1526
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
|
|
1527
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
1528
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1529
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1530
|
+
"1h": "1h";
|
|
1531
|
+
"5m": "5m";
|
|
1532
|
+
}>>;
|
|
1533
|
+
}, z.core.$strict>>;
|
|
1534
|
+
type: z.ZodLiteral<"custom">;
|
|
1535
|
+
}, z.core.$strip>], "type">>;
|
|
1536
|
+
}, z.core.$strip>], "type">;
|
|
1537
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1538
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
1539
|
+
approvalId: z.ZodString;
|
|
1540
|
+
approved: z.ZodBoolean;
|
|
1541
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1542
|
+
providerExecuted: z.ZodOptional<z.ZodBoolean>;
|
|
1543
|
+
}, z.core.$strip>], "type">>;
|
|
1544
|
+
}, z.core.$strip>], "role">;
|
|
1545
|
+
export type AgentModelMessage = z.infer<typeof AgentModelMessageSchema>;
|
|
1546
|
+
/** File generated by a model during a step and handed to `persistGeneratedFile`. */
|
|
1547
|
+
export interface AgentGeneratedFile {
|
|
1548
|
+
readonly mediaType: string;
|
|
1549
|
+
readonly data: AgentGeneratedFileData;
|
|
1550
|
+
readonly filename?: string;
|
|
1551
|
+
readonly url?: URL;
|
|
1552
|
+
readonly base64: string;
|
|
1553
|
+
readonly uint8Array: Uint8Array;
|
|
1554
|
+
readonly providerMetadata?: AgentModelProviderOptions;
|
|
1555
|
+
}
|
|
1556
|
+
/** Construct a lazy `AgentGeneratedFile` from inline bytes/base64 or a remote `URL`. */
|
|
1557
|
+
export declare function createAgentGeneratedFile(mediaType: string, payload: AgentGeneratedFileData | Uint8Array | string, providerMetadata?: AgentModelProviderOptions, filename?: string): AgentGeneratedFile;
|
|
1558
|
+
export {};
|
|
1559
|
+
//# sourceMappingURL=model.d.ts.map
|