veryfront 0.1.759 → 0.1.761
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/esm/cli/commands/init/catalog.d.ts.map +1 -1
- package/esm/cli/commands/init/catalog.js +116 -1
- package/esm/cli/shared/config.d.ts +0 -6
- package/esm/cli/shared/config.d.ts.map +1 -1
- package/esm/cli/shared/config.js +64 -8
- package/esm/cli/templates/integration-loader.d.ts.map +1 -1
- package/esm/cli/templates/integration-loader.js +2 -52
- package/esm/deno.d.ts +5 -16
- package/esm/deno.js +6 -17
- package/esm/src/agent/ag-ui/tool-shared.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/tool-shared.js +7 -1
- package/esm/src/agent/child-run/invoke-agent-child-runs.d.ts +0 -1
- package/esm/src/agent/child-run/invoke-agent-child-runs.d.ts.map +1 -1
- package/esm/src/agent/child-run/invoke-agent-child-runs.js +0 -1
- package/esm/src/agent/conversation/bootstrap.d.ts +0 -1
- package/esm/src/agent/conversation/bootstrap.d.ts.map +1 -1
- package/esm/src/agent/conversation/bootstrap.js +0 -1
- package/esm/src/agent/conversation/durable.d.ts +0 -1
- package/esm/src/agent/conversation/durable.d.ts.map +1 -1
- package/esm/src/agent/conversation/durable.js +0 -1
- package/esm/src/agent/factory.d.ts.map +1 -1
- package/esm/src/agent/factory.js +7 -1
- package/esm/src/agent/hosted/chat-preparation.d.ts +1 -1
- package/esm/src/agent/hosted/chat-preparation.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-preparation.js +17 -3
- package/esm/src/agent/hosted/chat-runtime-contract.d.ts +2 -0
- package/esm/src/agent/hosted/chat-runtime-contract.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-chat-runtime.d.ts +2 -0
- package/esm/src/agent/hosted/default-chat-runtime.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-chat-runtime.js +1 -0
- package/esm/src/agent/hosted/default-project-steering-refresh.js +1 -1
- package/esm/src/agent/hosted/project-steering-adapter.d.ts +7 -0
- package/esm/src/agent/hosted/project-steering-adapter.d.ts.map +1 -1
- package/esm/src/agent/hosted/project-steering-adapter.js +12 -1
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts +4 -0
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts.map +1 -1
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.js +14 -12
- package/esm/src/agent/index.d.ts +1 -0
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +1 -0
- package/esm/src/agent/project/context.d.ts +2 -0
- package/esm/src/agent/project/context.d.ts.map +1 -1
- package/esm/src/agent/project/context.js +1 -0
- package/esm/src/agent/project/steering-mutation.d.ts.map +1 -1
- package/esm/src/agent/project/steering-mutation.js +7 -1
- package/esm/src/agent/runtime/agent-definition.d.ts +6 -0
- package/esm/src/agent/runtime/agent-definition.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-definition.js +46 -0
- package/esm/src/agent/runtime/agent-delegation-names.d.ts +5 -0
- package/esm/src/agent/runtime/agent-delegation-names.d.ts.map +1 -0
- package/esm/src/agent/runtime/agent-delegation-names.js +8 -0
- package/esm/src/agent/runtime/agent-delegation.d.ts +32 -0
- package/esm/src/agent/runtime/agent-delegation.d.ts.map +1 -0
- package/esm/src/agent/runtime/agent-delegation.js +57 -0
- package/esm/src/agent/runtime/agent-markdown-adapter.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-markdown-adapter.js +24 -0
- package/esm/src/agent/runtime/index.d.ts.map +1 -1
- package/esm/src/agent/runtime/index.js +8 -0
- package/esm/src/agent/runtime/local-tool.d.ts +6 -0
- package/esm/src/agent/runtime/local-tool.d.ts.map +1 -0
- package/esm/src/agent/runtime/local-tool.js +15 -0
- package/esm/src/agent/runtime/project-skill-catalog.d.ts.map +1 -1
- package/esm/src/agent/runtime/project-skill-catalog.js +67 -0
- package/esm/src/agent/runtime/project-skill-loader.d.ts +9 -0
- package/esm/src/agent/runtime/project-skill-loader.d.ts.map +1 -1
- package/esm/src/agent/runtime/project-skill-loader.js +44 -6
- package/esm/src/agent/runtime/skill-metadata.d.ts +23 -0
- package/esm/src/agent/runtime/skill-metadata.d.ts.map +1 -1
- package/esm/src/agent/runtime/skill-metadata.js +11 -0
- package/esm/src/agent/runtime/tool-helpers.d.ts +3 -1
- package/esm/src/agent/runtime/tool-helpers.d.ts.map +1 -1
- package/esm/src/agent/runtime/tool-helpers.js +45 -11
- package/esm/src/agent/service/request-auth-cache.d.ts +0 -1
- package/esm/src/agent/service/request-auth-cache.d.ts.map +1 -1
- package/esm/src/agent/service/request-auth-cache.js +0 -1
- package/esm/src/channels/control-plane.d.ts +1 -0
- package/esm/src/channels/control-plane.d.ts.map +1 -1
- package/esm/src/channels/control-plane.js +4 -2
- package/esm/src/chat/ag-ui.d.ts.map +1 -1
- package/esm/src/chat/conversation.d.ts.map +1 -1
- package/esm/src/chat/final-step-fallback.d.ts.map +1 -1
- package/esm/src/chat/protocol.d.ts.map +1 -1
- package/esm/src/chat/protocol.js +1 -0
- package/esm/src/chat/provider-errors.d.ts.map +1 -1
- package/esm/src/chat/provider-errors.js +0 -1
- package/esm/src/chat/stream-watchdog.d.ts +0 -1
- package/esm/src/chat/stream-watchdog.d.ts.map +1 -1
- package/esm/src/chat/stream-watchdog.js +0 -1
- package/esm/src/config/environment-config.d.ts +1 -0
- package/esm/src/config/environment-config.d.ts.map +1 -1
- package/esm/src/config/environment-config.js +4 -0
- package/esm/src/discovery/agent-scoped-capabilities.d.ts +54 -0
- package/esm/src/discovery/agent-scoped-capabilities.d.ts.map +1 -0
- package/esm/src/discovery/agent-scoped-capabilities.js +228 -0
- package/esm/src/discovery/discovery-engine.d.ts.map +1 -1
- package/esm/src/discovery/discovery-engine.js +19 -15
- package/esm/src/discovery/file-discovery.d.ts +10 -0
- package/esm/src/discovery/file-discovery.d.ts.map +1 -1
- package/esm/src/discovery/file-discovery.js +46 -0
- package/esm/src/discovery/handlers/runtime-agent-markdown-handler.d.ts +12 -0
- package/esm/src/discovery/handlers/runtime-agent-markdown-handler.d.ts.map +1 -1
- package/esm/src/discovery/handlers/runtime-agent-markdown-handler.js +99 -22
- package/esm/src/errors/error-registry/agent.d.ts +2 -0
- package/esm/src/errors/error-registry/agent.d.ts.map +1 -1
- package/esm/src/errors/error-registry/agent.js +8 -0
- package/esm/src/errors/error-registry.d.ts +1 -0
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/extensions/errors.d.ts +2 -0
- package/esm/src/extensions/errors.d.ts.map +1 -1
- package/esm/src/extensions/errors.js +8 -0
- package/esm/src/extensions/loader.d.ts +9 -6
- package/esm/src/extensions/loader.d.ts.map +1 -1
- package/esm/src/extensions/loader.js +39 -4
- package/esm/src/extensions/orchestrate.d.ts +3 -0
- package/esm/src/extensions/orchestrate.d.ts.map +1 -1
- package/esm/src/extensions/orchestrate.js +3 -1
- package/esm/src/integrations/_data.d.ts.map +1 -1
- package/esm/src/integrations/_data.js +31348 -7873
- package/esm/src/integrations/_tool_summaries.d.ts.map +1 -1
- package/esm/src/integrations/_tool_summaries.js +1737 -11
- package/esm/src/integrations/feature-flags.d.ts +1 -1
- package/esm/src/integrations/feature-flags.d.ts.map +1 -1
- package/esm/src/integrations/feature-flags.js +83 -0
- package/esm/src/integrations/schema.d.ts +129 -4
- package/esm/src/integrations/schema.d.ts.map +1 -1
- package/esm/src/integrations/schema.js +126 -1
- package/esm/src/internal-agents/run-stream.d.ts +4 -0
- package/esm/src/internal-agents/run-stream.d.ts.map +1 -1
- package/esm/src/internal-agents/run-stream.js +18 -5
- package/esm/src/mcp/server.d.ts.map +1 -1
- package/esm/src/mcp/server.js +5 -0
- package/esm/src/platform/adapters/base.d.ts +7 -0
- package/esm/src/platform/adapters/base.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/deno/adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/deno/adapter.js +7 -2
- package/esm/src/registry/project-scoped-registry-manager.d.ts +7 -0
- package/esm/src/registry/project-scoped-registry-manager.d.ts.map +1 -1
- package/esm/src/registry/project-scoped-registry-manager.js +10 -0
- package/esm/src/registry/scoped-registry-facade.d.ts +2 -0
- package/esm/src/registry/scoped-registry-facade.d.ts.map +1 -1
- package/esm/src/registry/scoped-registry-facade.js +4 -0
- package/esm/src/rendering/layouts/utils/component-loader.d.ts +1 -1
- package/esm/src/rendering/layouts/utils/component-loader.d.ts.map +1 -1
- package/esm/src/rendering/layouts/utils/component-loader.js +82 -3
- package/esm/src/rendering/orchestrator/css-cache.d.ts +3 -0
- package/esm/src/rendering/orchestrator/css-cache.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/css-cache.js +16 -8
- package/esm/src/rendering/orchestrator/mdx.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/mdx.js +12 -1
- package/esm/src/server/bootstrap.d.ts.map +1 -1
- package/esm/src/server/bootstrap.js +3 -0
- package/esm/src/server/handlers/dev/dashboard/api.js +6 -3
- package/esm/src/server/handlers/request/agent-stream.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/agent-stream.handler.js +10 -0
- package/esm/src/server/handlers/request/channel-invoke.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/channel-invoke.handler.js +8 -0
- package/esm/src/server/handlers/request/runtime-shutdown-response.d.ts +13 -0
- package/esm/src/server/handlers/request/runtime-shutdown-response.d.ts.map +1 -0
- package/esm/src/server/handlers/request/runtime-shutdown-response.js +16 -0
- package/esm/src/server/production-server.d.ts.map +1 -1
- package/esm/src/server/production-server.js +7 -1
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +2 -2
- package/esm/src/server/shutdown-state.d.ts +16 -0
- package/esm/src/server/shutdown-state.d.ts.map +1 -0
- package/esm/src/server/shutdown-state.js +22 -0
- package/esm/src/skill/index.d.ts +1 -1
- package/esm/src/skill/index.d.ts.map +1 -1
- package/esm/src/skill/index.js +1 -1
- package/esm/src/skill/registry.d.ts +29 -3
- package/esm/src/skill/registry.d.ts.map +1 -1
- package/esm/src/skill/registry.js +57 -8
- package/esm/src/skill/tools.d.ts.map +1 -1
- package/esm/src/skill/tools.js +27 -25
- package/esm/src/skill/types.d.ts +8 -0
- package/esm/src/skill/types.d.ts.map +1 -1
- package/esm/src/tool/executor.d.ts +7 -1
- package/esm/src/tool/executor.d.ts.map +1 -1
- package/esm/src/tool/executor.js +12 -1
- package/esm/src/tool/index.d.ts +1 -1
- package/esm/src/tool/index.d.ts.map +1 -1
- package/esm/src/tool/index.js +1 -1
- package/esm/src/tool/registry.d.ts +1 -0
- package/esm/src/tool/registry.d.ts.map +1 -1
- package/esm/src/tool/registry.js +25 -0
- package/esm/src/tool/types.d.ts +9 -0
- package/esm/src/tool/types.d.ts.map +1 -1
- package/esm/src/utils/constants/cache.d.ts +8 -0
- package/esm/src/utils/constants/cache.d.ts.map +1 -1
- package/esm/src/utils/constants/cache.js +8 -0
- package/esm/src/utils/constants/index.d.ts +1 -1
- package/esm/src/utils/constants/index.d.ts.map +1 -1
- package/esm/src/utils/constants/index.js +1 -1
- package/esm/src/utils/index.d.ts +1 -1
- package/esm/src/utils/index.d.ts.map +1 -1
- package/esm/src/utils/index.js +1 -1
- package/esm/src/utils/lru-wrapper.d.ts +2 -0
- package/esm/src/utils/lru-wrapper.d.ts.map +1 -1
- package/esm/src/utils/lru-wrapper.js +1 -0
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +1 -45
- package/esm/src/chat/compat.d.ts +0 -782
- package/esm/src/chat/compat.d.ts.map +0 -1
- package/esm/src/chat/compat.js +0 -113
package/esm/src/chat/compat.d.ts
DELETED
|
@@ -1,782 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Back-compat aliases for `src/chat`.
|
|
3
|
-
*
|
|
4
|
-
* This module is the single home for the historical `@deprecated` chat exports.
|
|
5
|
-
* Each alias points at a canonical symbol that lives in its originating module
|
|
6
|
-
* (`ag-ui.ts`, `types.ts`, `conversation.ts`, `message-prep.ts`).
|
|
7
|
-
*
|
|
8
|
-
* Imports here are **one-way** — `compat.ts` imports from those modules, and
|
|
9
|
-
* they never import back from `compat.ts`. Keeping the dependency acyclic is
|
|
10
|
-
* deliberate: an earlier attempt that had the public modules re-export these
|
|
11
|
-
* aliases from `compat.ts` introduced a circular import that broke bundled SSR
|
|
12
|
-
* (see issue #1996). Do not add a back-re-export.
|
|
13
|
-
*
|
|
14
|
-
* Removal milestone: target removal in the next minor after 0.2.0. Prefer the
|
|
15
|
-
* canonical symbol named in each `@deprecated` note.
|
|
16
|
-
*
|
|
17
|
-
* @module
|
|
18
|
-
*/
|
|
19
|
-
import "../../_dnt.polyfills.js";
|
|
20
|
-
import { convertUiMessagesToProviderModelMessages } from "./conversation.js";
|
|
21
|
-
import { prepareProviderModelMessagesFromUiMessages, sanitizeProviderModelMessages } from "./message-prep.js";
|
|
22
|
-
import type { ProviderModelMessage } from "./types.js";
|
|
23
|
-
/** Schema for AG-UI run finished metadata.
|
|
24
|
-
* @deprecated Use getAgUiRunFinishedMetadataSchema()
|
|
25
|
-
*/
|
|
26
|
-
export declare const AgUiRunFinishedMetadataSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
27
|
-
provider: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
28
|
-
model: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
29
|
-
inputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
30
|
-
outputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
31
|
-
totalTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
32
|
-
cachedInputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
33
|
-
reasoningTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
34
|
-
finishReason: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
35
|
-
providerRequestId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
36
|
-
}>>;
|
|
37
|
-
/** Schema for AG-UI snapshot tool call.
|
|
38
|
-
* @deprecated Use getAgUiSnapshotToolCallSchema()
|
|
39
|
-
*/
|
|
40
|
-
export declare const AgUiSnapshotToolCallSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
41
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
42
|
-
type: import("../internal-agents/schema.js").Schema<"function">;
|
|
43
|
-
function: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
44
|
-
name: import("../internal-agents/schema.js").Schema<string>;
|
|
45
|
-
arguments: import("../internal-agents/schema.js").Schema<string>;
|
|
46
|
-
}>>;
|
|
47
|
-
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
48
|
-
}>>;
|
|
49
|
-
/** Schema for AG-UI snapshot message.
|
|
50
|
-
* @deprecated Use getAgUiSnapshotMessageSchema()
|
|
51
|
-
*/
|
|
52
|
-
export declare const AgUiSnapshotMessageSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
53
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
54
|
-
role: import("../internal-agents/schema.js").Schema<"assistant">;
|
|
55
|
-
content: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
56
|
-
name: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
57
|
-
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
58
|
-
toolCalls: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
59
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
60
|
-
type: import("../internal-agents/schema.js").Schema<"function">;
|
|
61
|
-
function: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
62
|
-
name: import("../internal-agents/schema.js").Schema<string>;
|
|
63
|
-
arguments: import("../internal-agents/schema.js").Schema<string>;
|
|
64
|
-
}>>;
|
|
65
|
-
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
66
|
-
}>[] | undefined>;
|
|
67
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
68
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
69
|
-
role: import("../internal-agents/schema.js").Schema<"user">;
|
|
70
|
-
content: import("../internal-agents/schema.js").Schema<string | (import("../extensions/schema/schema-validator.js").InferShape<{
|
|
71
|
-
type: import("../internal-agents/schema.js").Schema<"text">;
|
|
72
|
-
text: import("../internal-agents/schema.js").Schema<string>;
|
|
73
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
74
|
-
type: import("../internal-agents/schema.js").Schema<"binary">;
|
|
75
|
-
mimeType: import("../internal-agents/schema.js").Schema<string>;
|
|
76
|
-
id: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
77
|
-
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
78
|
-
data: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
79
|
-
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
80
|
-
}>)[]>;
|
|
81
|
-
name: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
82
|
-
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
83
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
84
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
85
|
-
role: import("../internal-agents/schema.js").Schema<"tool">;
|
|
86
|
-
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
87
|
-
content: import("../internal-agents/schema.js").Schema<string>;
|
|
88
|
-
error: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
89
|
-
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
90
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
91
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
92
|
-
role: import("../internal-agents/schema.js").Schema<"reasoning">;
|
|
93
|
-
content: import("../internal-agents/schema.js").Schema<string>;
|
|
94
|
-
name: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
95
|
-
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
96
|
-
}>>;
|
|
97
|
-
/** Schema for AG-UI wire event name.
|
|
98
|
-
* @deprecated Use getAgUiWireEventNameSchema()
|
|
99
|
-
*/
|
|
100
|
-
export declare const AgUiWireEventNameSchema: import("../internal-agents/schema.js").Schema<"ToolCallArgs" | "ToolCallEnd" | "ToolCallResult" | "Custom" | "ReasoningMessageStart" | "ReasoningMessageContent" | "ReasoningMessageEnd" | "TextMessageStart" | "TextMessageContent" | "TextMessageEnd" | "ToolCallStart" | "RunError" | "RunFinished" | "RunStarted" | "ToolCallChunk" | "StateSnapshot" | "MessagesSnapshot" | "StateDelta">;
|
|
101
|
-
/** Schema for AG-UI wire event.
|
|
102
|
-
* @deprecated Use getAgUiWireEventSchema()
|
|
103
|
-
*/
|
|
104
|
-
export declare const AgUiWireEventSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
105
|
-
eventName: import("../internal-agents/schema.js").Schema<"RunStarted">;
|
|
106
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
107
|
-
runId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
108
|
-
threadId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
109
|
-
agentId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
110
|
-
}>>;
|
|
111
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
112
|
-
eventName: import("../internal-agents/schema.js").Schema<"Custom">;
|
|
113
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
114
|
-
name: import("../internal-agents/schema.js").Schema<string>;
|
|
115
|
-
value: import("../internal-agents/schema.js").Schema<unknown>;
|
|
116
|
-
}>>;
|
|
117
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
118
|
-
eventName: import("../internal-agents/schema.js").Schema<"TextMessageStart">;
|
|
119
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
120
|
-
messageId: import("../internal-agents/schema.js").Schema<string>;
|
|
121
|
-
contentId: import("../internal-agents/schema.js").Schema<string>;
|
|
122
|
-
role: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
123
|
-
}>>;
|
|
124
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
125
|
-
eventName: import("../internal-agents/schema.js").Schema<"TextMessageContent">;
|
|
126
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
127
|
-
messageId: import("../internal-agents/schema.js").Schema<string>;
|
|
128
|
-
contentId: import("../internal-agents/schema.js").Schema<string>;
|
|
129
|
-
delta: import("../internal-agents/schema.js").Schema<string>;
|
|
130
|
-
}>>;
|
|
131
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
132
|
-
eventName: import("../internal-agents/schema.js").Schema<"TextMessageEnd">;
|
|
133
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
134
|
-
messageId: import("../internal-agents/schema.js").Schema<string>;
|
|
135
|
-
contentId: import("../internal-agents/schema.js").Schema<string>;
|
|
136
|
-
}>>;
|
|
137
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
138
|
-
eventName: import("../internal-agents/schema.js").Schema<"ToolCallStart">;
|
|
139
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
140
|
-
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
141
|
-
toolCallName: import("../internal-agents/schema.js").Schema<string>;
|
|
142
|
-
}>>;
|
|
143
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
144
|
-
eventName: import("../internal-agents/schema.js").Schema<"ToolCallArgs">;
|
|
145
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
146
|
-
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
147
|
-
delta: import("../internal-agents/schema.js").Schema<string>;
|
|
148
|
-
}>>;
|
|
149
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
150
|
-
eventName: import("../internal-agents/schema.js").Schema<"ToolCallChunk">;
|
|
151
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
152
|
-
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
153
|
-
delta: import("../internal-agents/schema.js").Schema<string>;
|
|
154
|
-
}>>;
|
|
155
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
156
|
-
eventName: import("../internal-agents/schema.js").Schema<"ToolCallEnd">;
|
|
157
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
158
|
-
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
159
|
-
}>>;
|
|
160
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
161
|
-
eventName: import("../internal-agents/schema.js").Schema<"ToolCallResult">;
|
|
162
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
163
|
-
messageId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
164
|
-
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
165
|
-
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
166
|
-
content: import("../internal-agents/schema.js").Schema<unknown>;
|
|
167
|
-
result: import("../internal-agents/schema.js").Schema<unknown>;
|
|
168
|
-
role: import("../internal-agents/schema.js").Schema<"tool" | undefined>;
|
|
169
|
-
isError: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
170
|
-
}>>;
|
|
171
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
172
|
-
eventName: import("../internal-agents/schema.js").Schema<"StateSnapshot">;
|
|
173
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
174
|
-
snapshot: import("../internal-agents/schema.js").Schema<Record<string, unknown>>;
|
|
175
|
-
}>>;
|
|
176
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
177
|
-
eventName: import("../internal-agents/schema.js").Schema<"MessagesSnapshot">;
|
|
178
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
179
|
-
messages: import("../internal-agents/schema.js").Schema<(import("../extensions/schema/schema-validator.js").InferShape<{
|
|
180
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
181
|
-
role: import("../internal-agents/schema.js").Schema<"assistant">;
|
|
182
|
-
content: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
183
|
-
name: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
184
|
-
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
185
|
-
toolCalls: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
186
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
187
|
-
type: import("../internal-agents/schema.js").Schema<"function">;
|
|
188
|
-
function: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
189
|
-
name: import("../internal-agents/schema.js").Schema<string>;
|
|
190
|
-
arguments: import("../internal-agents/schema.js").Schema<string>;
|
|
191
|
-
}>>;
|
|
192
|
-
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
193
|
-
}>[] | undefined>;
|
|
194
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
195
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
196
|
-
role: import("../internal-agents/schema.js").Schema<"user">;
|
|
197
|
-
content: import("../internal-agents/schema.js").Schema<string | (import("../extensions/schema/schema-validator.js").InferShape<{
|
|
198
|
-
type: import("../internal-agents/schema.js").Schema<"text">;
|
|
199
|
-
text: import("../internal-agents/schema.js").Schema<string>;
|
|
200
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
201
|
-
type: import("../internal-agents/schema.js").Schema<"binary">;
|
|
202
|
-
mimeType: import("../internal-agents/schema.js").Schema<string>;
|
|
203
|
-
id: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
204
|
-
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
205
|
-
data: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
206
|
-
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
207
|
-
}>)[]>;
|
|
208
|
-
name: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
209
|
-
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
210
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
211
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
212
|
-
role: import("../internal-agents/schema.js").Schema<"tool">;
|
|
213
|
-
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
214
|
-
content: import("../internal-agents/schema.js").Schema<string>;
|
|
215
|
-
error: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
216
|
-
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
217
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
218
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
219
|
-
role: import("../internal-agents/schema.js").Schema<"reasoning">;
|
|
220
|
-
content: import("../internal-agents/schema.js").Schema<string>;
|
|
221
|
-
name: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
222
|
-
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
223
|
-
}>)[]>;
|
|
224
|
-
}>>;
|
|
225
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
226
|
-
eventName: import("../internal-agents/schema.js").Schema<"ReasoningMessageStart">;
|
|
227
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
228
|
-
id: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
229
|
-
messageId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
230
|
-
role: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
231
|
-
}>>;
|
|
232
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
233
|
-
eventName: import("../internal-agents/schema.js").Schema<"ReasoningMessageContent">;
|
|
234
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
235
|
-
id: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
236
|
-
messageId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
237
|
-
delta: import("../internal-agents/schema.js").Schema<string>;
|
|
238
|
-
}>>;
|
|
239
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
240
|
-
eventName: import("../internal-agents/schema.js").Schema<"ReasoningMessageEnd">;
|
|
241
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
242
|
-
id: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
243
|
-
messageId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
244
|
-
}>>;
|
|
245
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
246
|
-
eventName: import("../internal-agents/schema.js").Schema<"StateDelta">;
|
|
247
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
248
|
-
delta: import("../internal-agents/schema.js").Schema<Record<string, unknown> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
249
|
-
op: import("../internal-agents/schema.js").Schema<string>;
|
|
250
|
-
path: import("../internal-agents/schema.js").Schema<string>;
|
|
251
|
-
from: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
252
|
-
value: import("../internal-agents/schema.js").Schema<unknown>;
|
|
253
|
-
}>[]>;
|
|
254
|
-
}>>;
|
|
255
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
256
|
-
eventName: import("../internal-agents/schema.js").Schema<"RunFinished">;
|
|
257
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
258
|
-
metadata: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
259
|
-
provider: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
260
|
-
model: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
261
|
-
inputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
262
|
-
outputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
263
|
-
totalTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
264
|
-
cachedInputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
265
|
-
reasoningTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
266
|
-
finishReason: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
267
|
-
providerRequestId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
268
|
-
}> | undefined>;
|
|
269
|
-
}>>;
|
|
270
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
271
|
-
eventName: import("../internal-agents/schema.js").Schema<"RunError">;
|
|
272
|
-
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
273
|
-
code: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
274
|
-
message: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
275
|
-
}>>;
|
|
276
|
-
}>>;
|
|
277
|
-
/** Message shape for chat model.
|
|
278
|
-
* @deprecated Use ProviderModelMessage for provider-facing model payloads.
|
|
279
|
-
*/
|
|
280
|
-
export type ChatModelMessage = ProviderModelMessage;
|
|
281
|
-
/** Schema for chat request context.
|
|
282
|
-
* @deprecated Use getChatRequestContextSchema()
|
|
283
|
-
*/
|
|
284
|
-
export declare const chatRequestContextSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
285
|
-
conversationId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
286
|
-
projectId: import("../internal-agents/schema.js").Schema<string | null>;
|
|
287
|
-
projectSlug: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
288
|
-
branchId: import("../internal-agents/schema.js").Schema<string | null>;
|
|
289
|
-
environmentContext: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
290
|
-
}>>;
|
|
291
|
-
/** Schema for message metadata.
|
|
292
|
-
* @deprecated Use getMessageMetadataSchema()
|
|
293
|
-
*/
|
|
294
|
-
export declare const messageMetadataSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
295
|
-
createdAt: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
296
|
-
isStopped: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
297
|
-
isCompleted: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
298
|
-
completedAt: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
299
|
-
agentId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
300
|
-
agentName: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
301
|
-
conversationId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
302
|
-
modelId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
303
|
-
runId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
304
|
-
streamingMessageId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
305
|
-
childRunAudit: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
306
|
-
status: import("../internal-agents/schema.js").Schema<string>;
|
|
307
|
-
description: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
308
|
-
steps: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
309
|
-
durationMs: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
310
|
-
toolCalls: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
311
|
-
toolName: import("../internal-agents/schema.js").Schema<string>;
|
|
312
|
-
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
313
|
-
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
314
|
-
}>[] | undefined>;
|
|
315
|
-
toolResults: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
316
|
-
toolName: import("../internal-agents/schema.js").Schema<string>;
|
|
317
|
-
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
318
|
-
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
319
|
-
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
320
|
-
}>[] | undefined>;
|
|
321
|
-
terminalErrorCode: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
322
|
-
terminalErrorMessage: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
323
|
-
}> | undefined>;
|
|
324
|
-
usage: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
325
|
-
inputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
326
|
-
outputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
327
|
-
reasoningTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
328
|
-
cachedInputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
329
|
-
}> | undefined>;
|
|
330
|
-
}>>;
|
|
331
|
-
/** Schema for chat ui message role.
|
|
332
|
-
* @deprecated Use getChatUiMessageRoleSchema()
|
|
333
|
-
*/
|
|
334
|
-
export declare const chatUiMessageRoleSchema: import("../internal-agents/schema.js").Schema<string>;
|
|
335
|
-
/** Schema for chat tool part state.
|
|
336
|
-
* @deprecated Use getChatToolPartStateSchema()
|
|
337
|
-
*/
|
|
338
|
-
export declare const chatToolPartStateSchema: import("../internal-agents/schema.js").Schema<string>;
|
|
339
|
-
/** Schema for chat ui message part.
|
|
340
|
-
* @deprecated Use getChatUiMessagePartSchema()
|
|
341
|
-
*/
|
|
342
|
-
export declare const chatUiMessagePartSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
343
|
-
type: import("../internal-agents/schema.js").Schema<"text">;
|
|
344
|
-
text: import("../internal-agents/schema.js").Schema<string>;
|
|
345
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
346
|
-
type: import("../internal-agents/schema.js").Schema<"reasoning">;
|
|
347
|
-
text: import("../internal-agents/schema.js").Schema<string>;
|
|
348
|
-
signature: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
349
|
-
redactedData: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
350
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
351
|
-
type: import("../internal-agents/schema.js").Schema<"step-start">;
|
|
352
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
353
|
-
type: import("../internal-agents/schema.js").Schema<"source-url">;
|
|
354
|
-
sourceId: import("../internal-agents/schema.js").Schema<string>;
|
|
355
|
-
url: import("../internal-agents/schema.js").Schema<string>;
|
|
356
|
-
title: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
357
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
358
|
-
type: import("../internal-agents/schema.js").Schema<"source-document">;
|
|
359
|
-
sourceId: import("../internal-agents/schema.js").Schema<string>;
|
|
360
|
-
title: import("../internal-agents/schema.js").Schema<string>;
|
|
361
|
-
mediaType: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
362
|
-
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
363
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
364
|
-
type: import("../internal-agents/schema.js").Schema<"file">;
|
|
365
|
-
mediaType: import("../internal-agents/schema.js").Schema<string>;
|
|
366
|
-
url: import("../internal-agents/schema.js").Schema<string>;
|
|
367
|
-
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
368
|
-
uploadId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
369
|
-
uploadPath: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
370
|
-
}> | ({
|
|
371
|
-
toolCallId: string;
|
|
372
|
-
state: string;
|
|
373
|
-
} & {
|
|
374
|
-
input?: unknown;
|
|
375
|
-
title?: string | undefined;
|
|
376
|
-
providerExecuted?: boolean | undefined;
|
|
377
|
-
callProviderMetadata?: Record<string, unknown> | undefined;
|
|
378
|
-
output?: unknown;
|
|
379
|
-
errorText?: string | undefined;
|
|
380
|
-
approval?: import("../extensions/schema/schema-validator.js").InferShape<{
|
|
381
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
382
|
-
}> | undefined;
|
|
383
|
-
} & {
|
|
384
|
-
type: "dynamic-tool";
|
|
385
|
-
toolName: string;
|
|
386
|
-
}) | ({
|
|
387
|
-
toolCallId: string;
|
|
388
|
-
state: string;
|
|
389
|
-
} & {
|
|
390
|
-
input?: unknown;
|
|
391
|
-
title?: string | undefined;
|
|
392
|
-
providerExecuted?: boolean | undefined;
|
|
393
|
-
callProviderMetadata?: Record<string, unknown> | undefined;
|
|
394
|
-
output?: unknown;
|
|
395
|
-
errorText?: string | undefined;
|
|
396
|
-
approval?: import("../extensions/schema/schema-validator.js").InferShape<{
|
|
397
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
398
|
-
}> | undefined;
|
|
399
|
-
} & {
|
|
400
|
-
type: `tool-${string}` | "tool_call";
|
|
401
|
-
toolName: string | undefined;
|
|
402
|
-
}) | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
403
|
-
type: import("../internal-agents/schema.js").Schema<`data-${string}`>;
|
|
404
|
-
data: import("../internal-agents/schema.js").Schema<unknown>;
|
|
405
|
-
}>>;
|
|
406
|
-
/** Schema for chat ui message.
|
|
407
|
-
* @deprecated Use getChatUiMessageSchema()
|
|
408
|
-
*/
|
|
409
|
-
export declare const chatUiMessageSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
410
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
411
|
-
role: import("../internal-agents/schema.js").Schema<string>;
|
|
412
|
-
parts: import("../internal-agents/schema.js").Schema<(import("../extensions/schema/schema-validator.js").InferShape<{
|
|
413
|
-
type: import("../internal-agents/schema.js").Schema<"text">;
|
|
414
|
-
text: import("../internal-agents/schema.js").Schema<string>;
|
|
415
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
416
|
-
type: import("../internal-agents/schema.js").Schema<"reasoning">;
|
|
417
|
-
text: import("../internal-agents/schema.js").Schema<string>;
|
|
418
|
-
signature: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
419
|
-
redactedData: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
420
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
421
|
-
type: import("../internal-agents/schema.js").Schema<"step-start">;
|
|
422
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
423
|
-
type: import("../internal-agents/schema.js").Schema<"source-url">;
|
|
424
|
-
sourceId: import("../internal-agents/schema.js").Schema<string>;
|
|
425
|
-
url: import("../internal-agents/schema.js").Schema<string>;
|
|
426
|
-
title: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
427
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
428
|
-
type: import("../internal-agents/schema.js").Schema<"source-document">;
|
|
429
|
-
sourceId: import("../internal-agents/schema.js").Schema<string>;
|
|
430
|
-
title: import("../internal-agents/schema.js").Schema<string>;
|
|
431
|
-
mediaType: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
432
|
-
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
433
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
434
|
-
type: import("../internal-agents/schema.js").Schema<"file">;
|
|
435
|
-
mediaType: import("../internal-agents/schema.js").Schema<string>;
|
|
436
|
-
url: import("../internal-agents/schema.js").Schema<string>;
|
|
437
|
-
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
438
|
-
uploadId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
439
|
-
uploadPath: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
440
|
-
}> | ({
|
|
441
|
-
toolCallId: string;
|
|
442
|
-
state: string;
|
|
443
|
-
} & {
|
|
444
|
-
input?: unknown;
|
|
445
|
-
title?: string | undefined;
|
|
446
|
-
providerExecuted?: boolean | undefined;
|
|
447
|
-
callProviderMetadata?: Record<string, unknown> | undefined;
|
|
448
|
-
output?: unknown;
|
|
449
|
-
errorText?: string | undefined;
|
|
450
|
-
approval?: import("../extensions/schema/schema-validator.js").InferShape<{
|
|
451
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
452
|
-
}> | undefined;
|
|
453
|
-
} & {
|
|
454
|
-
type: "dynamic-tool";
|
|
455
|
-
toolName: string;
|
|
456
|
-
}) | ({
|
|
457
|
-
toolCallId: string;
|
|
458
|
-
state: string;
|
|
459
|
-
} & {
|
|
460
|
-
input?: unknown;
|
|
461
|
-
title?: string | undefined;
|
|
462
|
-
providerExecuted?: boolean | undefined;
|
|
463
|
-
callProviderMetadata?: Record<string, unknown> | undefined;
|
|
464
|
-
output?: unknown;
|
|
465
|
-
errorText?: string | undefined;
|
|
466
|
-
approval?: import("../extensions/schema/schema-validator.js").InferShape<{
|
|
467
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
468
|
-
}> | undefined;
|
|
469
|
-
} & {
|
|
470
|
-
type: `tool-${string}` | "tool_call";
|
|
471
|
-
toolName: string | undefined;
|
|
472
|
-
}) | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
473
|
-
type: import("../internal-agents/schema.js").Schema<`data-${string}`>;
|
|
474
|
-
data: import("../internal-agents/schema.js").Schema<unknown>;
|
|
475
|
-
}>)[]>;
|
|
476
|
-
metadata: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
477
|
-
createdAt: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
478
|
-
isStopped: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
479
|
-
isCompleted: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
480
|
-
completedAt: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
481
|
-
agentId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
482
|
-
agentName: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
483
|
-
conversationId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
484
|
-
modelId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
485
|
-
runId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
486
|
-
streamingMessageId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
487
|
-
childRunAudit: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
488
|
-
status: import("../internal-agents/schema.js").Schema<string>;
|
|
489
|
-
description: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
490
|
-
steps: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
491
|
-
durationMs: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
492
|
-
toolCalls: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
493
|
-
toolName: import("../internal-agents/schema.js").Schema<string>;
|
|
494
|
-
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
495
|
-
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
496
|
-
}>[] | undefined>;
|
|
497
|
-
toolResults: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
498
|
-
toolName: import("../internal-agents/schema.js").Schema<string>;
|
|
499
|
-
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
500
|
-
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
501
|
-
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
502
|
-
}>[] | undefined>;
|
|
503
|
-
terminalErrorCode: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
504
|
-
terminalErrorMessage: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
505
|
-
}> | undefined>;
|
|
506
|
-
usage: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
507
|
-
inputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
508
|
-
outputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
509
|
-
reasoningTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
510
|
-
cachedInputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
511
|
-
}> | undefined>;
|
|
512
|
-
}> | undefined>;
|
|
513
|
-
}>>;
|
|
514
|
-
/** Schema for chat ui messages.
|
|
515
|
-
* @deprecated Use getChatUiMessagesSchema()
|
|
516
|
-
*/
|
|
517
|
-
export declare const chatUiMessagesSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
518
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
519
|
-
role: import("../internal-agents/schema.js").Schema<string>;
|
|
520
|
-
parts: import("../internal-agents/schema.js").Schema<(import("../extensions/schema/schema-validator.js").InferShape<{
|
|
521
|
-
type: import("../internal-agents/schema.js").Schema<"text">;
|
|
522
|
-
text: import("../internal-agents/schema.js").Schema<string>;
|
|
523
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
524
|
-
type: import("../internal-agents/schema.js").Schema<"reasoning">;
|
|
525
|
-
text: import("../internal-agents/schema.js").Schema<string>;
|
|
526
|
-
signature: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
527
|
-
redactedData: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
528
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
529
|
-
type: import("../internal-agents/schema.js").Schema<"step-start">;
|
|
530
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
531
|
-
type: import("../internal-agents/schema.js").Schema<"source-url">;
|
|
532
|
-
sourceId: import("../internal-agents/schema.js").Schema<string>;
|
|
533
|
-
url: import("../internal-agents/schema.js").Schema<string>;
|
|
534
|
-
title: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
535
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
536
|
-
type: import("../internal-agents/schema.js").Schema<"source-document">;
|
|
537
|
-
sourceId: import("../internal-agents/schema.js").Schema<string>;
|
|
538
|
-
title: import("../internal-agents/schema.js").Schema<string>;
|
|
539
|
-
mediaType: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
540
|
-
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
541
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
542
|
-
type: import("../internal-agents/schema.js").Schema<"file">;
|
|
543
|
-
mediaType: import("../internal-agents/schema.js").Schema<string>;
|
|
544
|
-
url: import("../internal-agents/schema.js").Schema<string>;
|
|
545
|
-
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
546
|
-
uploadId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
547
|
-
uploadPath: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
548
|
-
}> | ({
|
|
549
|
-
toolCallId: string;
|
|
550
|
-
state: string;
|
|
551
|
-
} & {
|
|
552
|
-
input?: unknown;
|
|
553
|
-
title?: string | undefined;
|
|
554
|
-
providerExecuted?: boolean | undefined;
|
|
555
|
-
callProviderMetadata?: Record<string, unknown> | undefined;
|
|
556
|
-
output?: unknown;
|
|
557
|
-
errorText?: string | undefined;
|
|
558
|
-
approval?: import("../extensions/schema/schema-validator.js").InferShape<{
|
|
559
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
560
|
-
}> | undefined;
|
|
561
|
-
} & {
|
|
562
|
-
type: "dynamic-tool";
|
|
563
|
-
toolName: string;
|
|
564
|
-
}) | ({
|
|
565
|
-
toolCallId: string;
|
|
566
|
-
state: string;
|
|
567
|
-
} & {
|
|
568
|
-
input?: unknown;
|
|
569
|
-
title?: string | undefined;
|
|
570
|
-
providerExecuted?: boolean | undefined;
|
|
571
|
-
callProviderMetadata?: Record<string, unknown> | undefined;
|
|
572
|
-
output?: unknown;
|
|
573
|
-
errorText?: string | undefined;
|
|
574
|
-
approval?: import("../extensions/schema/schema-validator.js").InferShape<{
|
|
575
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
576
|
-
}> | undefined;
|
|
577
|
-
} & {
|
|
578
|
-
type: `tool-${string}` | "tool_call";
|
|
579
|
-
toolName: string | undefined;
|
|
580
|
-
}) | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
581
|
-
type: import("../internal-agents/schema.js").Schema<`data-${string}`>;
|
|
582
|
-
data: import("../internal-agents/schema.js").Schema<unknown>;
|
|
583
|
-
}>)[]>;
|
|
584
|
-
metadata: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
585
|
-
createdAt: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
586
|
-
isStopped: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
587
|
-
isCompleted: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
588
|
-
completedAt: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
589
|
-
agentId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
590
|
-
agentName: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
591
|
-
conversationId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
592
|
-
modelId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
593
|
-
runId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
594
|
-
streamingMessageId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
595
|
-
childRunAudit: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
596
|
-
status: import("../internal-agents/schema.js").Schema<string>;
|
|
597
|
-
description: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
598
|
-
steps: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
599
|
-
durationMs: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
600
|
-
toolCalls: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
601
|
-
toolName: import("../internal-agents/schema.js").Schema<string>;
|
|
602
|
-
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
603
|
-
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
604
|
-
}>[] | undefined>;
|
|
605
|
-
toolResults: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
606
|
-
toolName: import("../internal-agents/schema.js").Schema<string>;
|
|
607
|
-
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
608
|
-
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
609
|
-
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
610
|
-
}>[] | undefined>;
|
|
611
|
-
terminalErrorCode: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
612
|
-
terminalErrorMessage: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
613
|
-
}> | undefined>;
|
|
614
|
-
usage: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
615
|
-
inputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
616
|
-
outputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
617
|
-
reasoningTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
618
|
-
cachedInputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
619
|
-
}> | undefined>;
|
|
620
|
-
}> | undefined>;
|
|
621
|
-
}>[]>;
|
|
622
|
-
/** Schema for message part.
|
|
623
|
-
* @deprecated Use getMessagePartSchema()
|
|
624
|
-
*/
|
|
625
|
-
export declare const messagePartSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
626
|
-
type: import("../internal-agents/schema.js").Schema<"text">;
|
|
627
|
-
text: import("../internal-agents/schema.js").Schema<string>;
|
|
628
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
629
|
-
type: import("../internal-agents/schema.js").Schema<"image">;
|
|
630
|
-
upload_id: import("../internal-agents/schema.js").Schema<string>;
|
|
631
|
-
media_type: import("../internal-agents/schema.js").Schema<string>;
|
|
632
|
-
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
633
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
634
|
-
type: import("../internal-agents/schema.js").Schema<"file">;
|
|
635
|
-
upload_id: import("../internal-agents/schema.js").Schema<string>;
|
|
636
|
-
media_type: import("../internal-agents/schema.js").Schema<string>;
|
|
637
|
-
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
638
|
-
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
639
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
640
|
-
type: import("../internal-agents/schema.js").Schema<"tool_call">;
|
|
641
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
642
|
-
name: import("../internal-agents/schema.js").Schema<string>;
|
|
643
|
-
input: import("../internal-agents/schema.js").Schema<Record<string, unknown>>;
|
|
644
|
-
state: import("../internal-agents/schema.js").Schema<string>;
|
|
645
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
646
|
-
type: import("../internal-agents/schema.js").Schema<"tool_result">;
|
|
647
|
-
tool_call_id: import("../internal-agents/schema.js").Schema<string>;
|
|
648
|
-
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
649
|
-
is_error: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
650
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
651
|
-
type: import("../internal-agents/schema.js").Schema<"reasoning">;
|
|
652
|
-
text: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
653
|
-
signature: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
654
|
-
redactedData: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
655
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
656
|
-
type: import("../internal-agents/schema.js").Schema<"citation">;
|
|
657
|
-
source_id: import("../internal-agents/schema.js").Schema<string>;
|
|
658
|
-
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
659
|
-
title: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
660
|
-
quote: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
661
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
662
|
-
type: import("../internal-agents/schema.js").Schema<"step_start">;
|
|
663
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
664
|
-
type: import("../internal-agents/schema.js").Schema<"error">;
|
|
665
|
-
code: import("../internal-agents/schema.js").Schema<string>;
|
|
666
|
-
message: import("../internal-agents/schema.js").Schema<string>;
|
|
667
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
668
|
-
type: import("../internal-agents/schema.js").Schema<"data">;
|
|
669
|
-
name: import("../internal-agents/schema.js").Schema<string>;
|
|
670
|
-
value: import("../internal-agents/schema.js").Schema<unknown>;
|
|
671
|
-
}>>;
|
|
672
|
-
/** Schema for conversation type.
|
|
673
|
-
* @deprecated Use getConversationTypeSchema()
|
|
674
|
-
*/
|
|
675
|
-
export declare const conversationTypeSchema: import("../internal-agents/schema.js").Schema<string>;
|
|
676
|
-
/** Schema for message status.
|
|
677
|
-
* @deprecated Use getMessageStatusSchema()
|
|
678
|
-
*/
|
|
679
|
-
export declare const messageStatusSchema: import("../internal-agents/schema.js").Schema<string>;
|
|
680
|
-
/** Schema for API conversation.
|
|
681
|
-
* @deprecated Use getApiConversationSchema()
|
|
682
|
-
*/
|
|
683
|
-
export declare const apiConversationSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
684
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
685
|
-
projectId: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
686
|
-
type: import("../internal-agents/schema.js").Schema<string>;
|
|
687
|
-
title: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
688
|
-
status: import("../internal-agents/schema.js").Schema<string>;
|
|
689
|
-
summary: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
690
|
-
currentNode: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
691
|
-
messageCount: import("../internal-agents/schema.js").Schema<number>;
|
|
692
|
-
lastMessageAt: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
693
|
-
metadata: import("../internal-agents/schema.js").Schema<Record<string, unknown> | null | undefined>;
|
|
694
|
-
createdBy: import("../internal-agents/schema.js").Schema<string>;
|
|
695
|
-
archivedAt: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
696
|
-
createdAt: import("../internal-agents/schema.js").Schema<string>;
|
|
697
|
-
updatedAt: import("../internal-agents/schema.js").Schema<string>;
|
|
698
|
-
}>>;
|
|
699
|
-
/** Schema for API message.
|
|
700
|
-
* @deprecated Use getApiMessageSchema()
|
|
701
|
-
*/
|
|
702
|
-
export declare const apiMessageSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
703
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
704
|
-
conversationId: import("../internal-agents/schema.js").Schema<string>;
|
|
705
|
-
parentId: import("../internal-agents/schema.js").Schema<string | null>;
|
|
706
|
-
seq: import("../internal-agents/schema.js").Schema<number>;
|
|
707
|
-
role: import("../internal-agents/schema.js").Schema<string>;
|
|
708
|
-
parts: import("../internal-agents/schema.js").Schema<(import("../extensions/schema/schema-validator.js").InferShape<{
|
|
709
|
-
type: import("../internal-agents/schema.js").Schema<"text">;
|
|
710
|
-
text: import("../internal-agents/schema.js").Schema<string>;
|
|
711
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
712
|
-
type: import("../internal-agents/schema.js").Schema<"image">;
|
|
713
|
-
upload_id: import("../internal-agents/schema.js").Schema<string>;
|
|
714
|
-
media_type: import("../internal-agents/schema.js").Schema<string>;
|
|
715
|
-
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
716
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
717
|
-
type: import("../internal-agents/schema.js").Schema<"file">;
|
|
718
|
-
upload_id: import("../internal-agents/schema.js").Schema<string>;
|
|
719
|
-
media_type: import("../internal-agents/schema.js").Schema<string>;
|
|
720
|
-
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
721
|
-
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
722
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
723
|
-
type: import("../internal-agents/schema.js").Schema<"tool_call">;
|
|
724
|
-
id: import("../internal-agents/schema.js").Schema<string>;
|
|
725
|
-
name: import("../internal-agents/schema.js").Schema<string>;
|
|
726
|
-
input: import("../internal-agents/schema.js").Schema<Record<string, unknown>>;
|
|
727
|
-
state: import("../internal-agents/schema.js").Schema<string>;
|
|
728
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
729
|
-
type: import("../internal-agents/schema.js").Schema<"tool_result">;
|
|
730
|
-
tool_call_id: import("../internal-agents/schema.js").Schema<string>;
|
|
731
|
-
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
732
|
-
is_error: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
733
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
734
|
-
type: import("../internal-agents/schema.js").Schema<"reasoning">;
|
|
735
|
-
text: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
736
|
-
signature: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
737
|
-
redactedData: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
738
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
739
|
-
type: import("../internal-agents/schema.js").Schema<"citation">;
|
|
740
|
-
source_id: import("../internal-agents/schema.js").Schema<string>;
|
|
741
|
-
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
742
|
-
title: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
743
|
-
quote: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
744
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
745
|
-
type: import("../internal-agents/schema.js").Schema<"step_start">;
|
|
746
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
747
|
-
type: import("../internal-agents/schema.js").Schema<"error">;
|
|
748
|
-
code: import("../internal-agents/schema.js").Schema<string>;
|
|
749
|
-
message: import("../internal-agents/schema.js").Schema<string>;
|
|
750
|
-
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
751
|
-
type: import("../internal-agents/schema.js").Schema<"data">;
|
|
752
|
-
name: import("../internal-agents/schema.js").Schema<string>;
|
|
753
|
-
value: import("../internal-agents/schema.js").Schema<unknown>;
|
|
754
|
-
}>)[]>;
|
|
755
|
-
status: import("../internal-agents/schema.js").Schema<string>;
|
|
756
|
-
model: import("../internal-agents/schema.js").Schema<string | null>;
|
|
757
|
-
tokenUsage: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
758
|
-
input: import("../internal-agents/schema.js").Schema<number>;
|
|
759
|
-
output: import("../internal-agents/schema.js").Schema<number>;
|
|
760
|
-
}> | null>;
|
|
761
|
-
finishReason: import("../internal-agents/schema.js").Schema<string | null>;
|
|
762
|
-
costCredits: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
763
|
-
createdBy: import("../internal-agents/schema.js").Schema<string | null>;
|
|
764
|
-
editedAt: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
765
|
-
idempotencyKey: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
766
|
-
metadata: import("../internal-agents/schema.js").Schema<Record<string, unknown> | null>;
|
|
767
|
-
createdAt: import("../internal-agents/schema.js").Schema<string>;
|
|
768
|
-
updatedAt: import("../internal-agents/schema.js").Schema<string | null>;
|
|
769
|
-
}>>;
|
|
770
|
-
/** Shared convert UI messages to model messages value.
|
|
771
|
-
* @deprecated Use convertUiMessagesToProviderModelMessages for provider-facing model payloads.
|
|
772
|
-
*/
|
|
773
|
-
export declare const convertUiMessagesToModelMessages: typeof convertUiMessagesToProviderModelMessages;
|
|
774
|
-
/** Shared sanitize model messages value.
|
|
775
|
-
* @deprecated Use sanitizeProviderModelMessages for provider-facing model payloads.
|
|
776
|
-
*/
|
|
777
|
-
export declare const sanitizeModelMessages: typeof sanitizeProviderModelMessages;
|
|
778
|
-
/** Shared prepare model messages from UI messages value.
|
|
779
|
-
* @deprecated Use prepareProviderModelMessagesFromUiMessages for provider-facing model payloads.
|
|
780
|
-
*/
|
|
781
|
-
export declare const prepareModelMessagesFromUiMessages: typeof prepareProviderModelMessagesFromUiMessages;
|
|
782
|
-
//# sourceMappingURL=compat.d.ts.map
|