veryfront 0.1.632 → 0.1.633
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/deno.d.ts +1 -0
- package/esm/deno.js +2 -1
- package/esm/src/agent/ag-ui/browser-encoder.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/browser-encoder.js +0 -2
- package/esm/src/cache/backends/api.d.ts.map +1 -1
- package/esm/src/cache/backends/api.js +8 -10
- package/esm/src/cache/backends/batch-results.d.ts +21 -0
- package/esm/src/cache/backends/batch-results.d.ts.map +1 -0
- package/esm/src/cache/backends/batch-results.js +26 -0
- package/esm/src/cache/backends/memory.d.ts.map +1 -1
- package/esm/src/cache/backends/memory.js +7 -10
- package/esm/src/cache/backends/redis.d.ts.map +1 -1
- package/esm/src/cache/backends/redis.js +6 -11
- package/esm/src/chat/ag-ui.d.ts +0 -257
- package/esm/src/chat/ag-ui.d.ts.map +1 -1
- package/esm/src/chat/ag-ui.js +1 -21
- package/esm/src/chat/compat.d.ts +776 -0
- package/esm/src/chat/compat.d.ts.map +1 -0
- package/esm/src/chat/compat.js +113 -0
- package/esm/src/chat/conversation.d.ts +0 -151
- package/esm/src/chat/conversation.d.ts.map +1 -1
- package/esm/src/chat/conversation.js +1 -26
- package/esm/src/chat/message-prep.d.ts +0 -10
- package/esm/src/chat/message-prep.d.ts.map +1 -1
- package/esm/src/chat/message-prep.js +0 -10
- package/esm/src/chat/types.d.ts +0 -339
- package/esm/src/chat/types.d.ts.map +1 -1
- package/esm/src/chat/types.js +1 -29
- package/esm/src/platform/adapters/runtime/deno/adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/deno/adapter.js +3 -14
- package/esm/src/platform/compat/http/deno-server.d.ts.map +1 -1
- package/esm/src/platform/compat/http/deno-server.js +3 -14
- package/esm/src/platform/compat/http/native-response.d.ts +29 -0
- package/esm/src/platform/compat/http/native-response.d.ts.map +1 -0
- package/esm/src/platform/compat/http/native-response.js +43 -0
- package/esm/src/server/handlers/dev/dashboard/api.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/dashboard/api.js +1 -10
- package/esm/src/server/handlers/dev/http-helpers.d.ts +17 -0
- package/esm/src/server/handlers/dev/http-helpers.d.ts.map +1 -0
- package/esm/src/server/handlers/dev/http-helpers.js +20 -0
- package/esm/src/server/handlers/dev/projects/api.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/projects/api.js +1 -7
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,776 @@
|
|
|
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
|
+
id: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
122
|
+
contentId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
123
|
+
role: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
124
|
+
}>>;
|
|
125
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
126
|
+
eventName: import("../internal-agents/schema.js").Schema<"TextMessageContent">;
|
|
127
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
128
|
+
messageId: import("../internal-agents/schema.js").Schema<string>;
|
|
129
|
+
id: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
130
|
+
contentId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
131
|
+
delta: import("../internal-agents/schema.js").Schema<string>;
|
|
132
|
+
}>>;
|
|
133
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
134
|
+
eventName: import("../internal-agents/schema.js").Schema<"TextMessageEnd">;
|
|
135
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
136
|
+
messageId: import("../internal-agents/schema.js").Schema<string>;
|
|
137
|
+
id: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
138
|
+
contentId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
139
|
+
}>>;
|
|
140
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
141
|
+
eventName: import("../internal-agents/schema.js").Schema<"ToolCallStart">;
|
|
142
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
143
|
+
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
144
|
+
toolCallName: import("../internal-agents/schema.js").Schema<string>;
|
|
145
|
+
}>>;
|
|
146
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
147
|
+
eventName: import("../internal-agents/schema.js").Schema<"ToolCallArgs">;
|
|
148
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
149
|
+
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
150
|
+
delta: import("../internal-agents/schema.js").Schema<string>;
|
|
151
|
+
}>>;
|
|
152
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
153
|
+
eventName: import("../internal-agents/schema.js").Schema<"ToolCallChunk">;
|
|
154
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
155
|
+
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
156
|
+
delta: import("../internal-agents/schema.js").Schema<string>;
|
|
157
|
+
}>>;
|
|
158
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
159
|
+
eventName: import("../internal-agents/schema.js").Schema<"ToolCallEnd">;
|
|
160
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
161
|
+
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
162
|
+
}>>;
|
|
163
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
164
|
+
eventName: import("../internal-agents/schema.js").Schema<"ToolCallResult">;
|
|
165
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
166
|
+
messageId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
167
|
+
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
168
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
169
|
+
content: import("../internal-agents/schema.js").Schema<unknown>;
|
|
170
|
+
result: import("../internal-agents/schema.js").Schema<unknown>;
|
|
171
|
+
role: import("../internal-agents/schema.js").Schema<"tool" | undefined>;
|
|
172
|
+
isError: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
173
|
+
}>>;
|
|
174
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
175
|
+
eventName: import("../internal-agents/schema.js").Schema<"StateSnapshot">;
|
|
176
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
177
|
+
snapshot: import("../internal-agents/schema.js").Schema<Record<string, unknown>>;
|
|
178
|
+
}>>;
|
|
179
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
180
|
+
eventName: import("../internal-agents/schema.js").Schema<"MessagesSnapshot">;
|
|
181
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
182
|
+
messages: import("../internal-agents/schema.js").Schema<(import("../extensions/schema/schema-validator.js").InferShape<{
|
|
183
|
+
id: import("../internal-agents/schema.js").Schema<string>;
|
|
184
|
+
role: import("../internal-agents/schema.js").Schema<"assistant">;
|
|
185
|
+
content: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
186
|
+
name: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
187
|
+
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
188
|
+
toolCalls: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
189
|
+
id: import("../internal-agents/schema.js").Schema<string>;
|
|
190
|
+
type: import("../internal-agents/schema.js").Schema<"function">;
|
|
191
|
+
function: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
192
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
193
|
+
arguments: import("../internal-agents/schema.js").Schema<string>;
|
|
194
|
+
}>>;
|
|
195
|
+
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
196
|
+
}>[] | undefined>;
|
|
197
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
198
|
+
id: import("../internal-agents/schema.js").Schema<string>;
|
|
199
|
+
role: import("../internal-agents/schema.js").Schema<"user">;
|
|
200
|
+
content: import("../internal-agents/schema.js").Schema<string | (import("../extensions/schema/schema-validator.js").InferShape<{
|
|
201
|
+
type: import("../internal-agents/schema.js").Schema<"text">;
|
|
202
|
+
text: import("../internal-agents/schema.js").Schema<string>;
|
|
203
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
204
|
+
type: import("../internal-agents/schema.js").Schema<"binary">;
|
|
205
|
+
mimeType: import("../internal-agents/schema.js").Schema<string>;
|
|
206
|
+
id: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
207
|
+
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
208
|
+
data: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
209
|
+
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
210
|
+
}>)[]>;
|
|
211
|
+
name: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
212
|
+
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
213
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
214
|
+
id: import("../internal-agents/schema.js").Schema<string>;
|
|
215
|
+
role: import("../internal-agents/schema.js").Schema<"tool">;
|
|
216
|
+
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
217
|
+
content: import("../internal-agents/schema.js").Schema<string>;
|
|
218
|
+
error: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
219
|
+
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
220
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
221
|
+
id: import("../internal-agents/schema.js").Schema<string>;
|
|
222
|
+
role: import("../internal-agents/schema.js").Schema<"reasoning">;
|
|
223
|
+
content: import("../internal-agents/schema.js").Schema<string>;
|
|
224
|
+
name: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
225
|
+
encryptedValue: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
226
|
+
}>)[]>;
|
|
227
|
+
}>>;
|
|
228
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
229
|
+
eventName: import("../internal-agents/schema.js").Schema<"ReasoningMessageStart">;
|
|
230
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
231
|
+
id: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
232
|
+
messageId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
233
|
+
role: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
234
|
+
}>>;
|
|
235
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
236
|
+
eventName: import("../internal-agents/schema.js").Schema<"ReasoningMessageContent">;
|
|
237
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
238
|
+
id: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
239
|
+
messageId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
240
|
+
delta: import("../internal-agents/schema.js").Schema<string>;
|
|
241
|
+
}>>;
|
|
242
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
243
|
+
eventName: import("../internal-agents/schema.js").Schema<"ReasoningMessageEnd">;
|
|
244
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
245
|
+
id: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
246
|
+
messageId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
247
|
+
}>>;
|
|
248
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
249
|
+
eventName: import("../internal-agents/schema.js").Schema<"StateDelta">;
|
|
250
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
251
|
+
delta: import("../internal-agents/schema.js").Schema<Record<string, unknown> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
252
|
+
op: import("../internal-agents/schema.js").Schema<string>;
|
|
253
|
+
path: import("../internal-agents/schema.js").Schema<string>;
|
|
254
|
+
from: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
255
|
+
value: import("../internal-agents/schema.js").Schema<unknown>;
|
|
256
|
+
}>[]>;
|
|
257
|
+
}>>;
|
|
258
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
259
|
+
eventName: import("../internal-agents/schema.js").Schema<"RunFinished">;
|
|
260
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
261
|
+
metadata: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
262
|
+
provider: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
263
|
+
model: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
264
|
+
inputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
265
|
+
outputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
266
|
+
totalTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
267
|
+
cachedInputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
268
|
+
reasoningTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
269
|
+
finishReason: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
270
|
+
providerRequestId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
271
|
+
}> | undefined>;
|
|
272
|
+
}>>;
|
|
273
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
274
|
+
eventName: import("../internal-agents/schema.js").Schema<"RunError">;
|
|
275
|
+
payload: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
276
|
+
code: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
277
|
+
message: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
278
|
+
}>>;
|
|
279
|
+
}>>;
|
|
280
|
+
/** Message shape for chat model.
|
|
281
|
+
* @deprecated Use ProviderModelMessage for provider-facing model payloads.
|
|
282
|
+
*/
|
|
283
|
+
export type ChatModelMessage = ProviderModelMessage;
|
|
284
|
+
/** Schema for chat request context.
|
|
285
|
+
* @deprecated Use getChatRequestContextSchema()
|
|
286
|
+
*/
|
|
287
|
+
export declare const chatRequestContextSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
288
|
+
conversationId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
289
|
+
projectId: import("../internal-agents/schema.js").Schema<string | null>;
|
|
290
|
+
branchId: import("../internal-agents/schema.js").Schema<string | null>;
|
|
291
|
+
environmentContext: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
292
|
+
}>>;
|
|
293
|
+
/** Schema for message metadata.
|
|
294
|
+
* @deprecated Use getMessageMetadataSchema()
|
|
295
|
+
*/
|
|
296
|
+
export declare const messageMetadataSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
297
|
+
createdAt: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
298
|
+
isStopped: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
299
|
+
isCompleted: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
300
|
+
completedAt: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
301
|
+
agentId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
302
|
+
agentName: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
303
|
+
conversationId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
304
|
+
modelId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
305
|
+
runId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
306
|
+
streamingMessageId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
307
|
+
childRunAudit: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
308
|
+
status: import("../internal-agents/schema.js").Schema<string>;
|
|
309
|
+
description: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
310
|
+
steps: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
311
|
+
durationMs: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
312
|
+
toolCalls: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
313
|
+
toolName: import("../internal-agents/schema.js").Schema<string>;
|
|
314
|
+
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
315
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
316
|
+
}>[] | undefined>;
|
|
317
|
+
toolResults: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
318
|
+
toolName: import("../internal-agents/schema.js").Schema<string>;
|
|
319
|
+
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
320
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
321
|
+
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
322
|
+
}>[] | undefined>;
|
|
323
|
+
terminalErrorCode: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
324
|
+
terminalErrorMessage: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
325
|
+
}> | undefined>;
|
|
326
|
+
usage: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
327
|
+
inputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
328
|
+
outputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
329
|
+
reasoningTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
330
|
+
cachedInputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
331
|
+
}> | undefined>;
|
|
332
|
+
}>>;
|
|
333
|
+
/** Schema for chat ui message role.
|
|
334
|
+
* @deprecated Use getChatUiMessageRoleSchema()
|
|
335
|
+
*/
|
|
336
|
+
export declare const chatUiMessageRoleSchema: import("../internal-agents/schema.js").Schema<string>;
|
|
337
|
+
/** Schema for chat tool part state.
|
|
338
|
+
* @deprecated Use getChatToolPartStateSchema()
|
|
339
|
+
*/
|
|
340
|
+
export declare const chatToolPartStateSchema: import("../internal-agents/schema.js").Schema<string>;
|
|
341
|
+
/** Schema for chat ui message part.
|
|
342
|
+
* @deprecated Use getChatUiMessagePartSchema()
|
|
343
|
+
*/
|
|
344
|
+
export declare const chatUiMessagePartSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
345
|
+
type: import("../internal-agents/schema.js").Schema<"text">;
|
|
346
|
+
text: import("../internal-agents/schema.js").Schema<string>;
|
|
347
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
348
|
+
type: import("../internal-agents/schema.js").Schema<"reasoning">;
|
|
349
|
+
text: import("../internal-agents/schema.js").Schema<string>;
|
|
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
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
419
|
+
type: import("../internal-agents/schema.js").Schema<"step-start">;
|
|
420
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
421
|
+
type: import("../internal-agents/schema.js").Schema<"source-url">;
|
|
422
|
+
sourceId: import("../internal-agents/schema.js").Schema<string>;
|
|
423
|
+
url: import("../internal-agents/schema.js").Schema<string>;
|
|
424
|
+
title: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
425
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
426
|
+
type: import("../internal-agents/schema.js").Schema<"source-document">;
|
|
427
|
+
sourceId: import("../internal-agents/schema.js").Schema<string>;
|
|
428
|
+
title: import("../internal-agents/schema.js").Schema<string>;
|
|
429
|
+
mediaType: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
430
|
+
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
431
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
432
|
+
type: import("../internal-agents/schema.js").Schema<"file">;
|
|
433
|
+
mediaType: import("../internal-agents/schema.js").Schema<string>;
|
|
434
|
+
url: import("../internal-agents/schema.js").Schema<string>;
|
|
435
|
+
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
436
|
+
uploadId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
437
|
+
uploadPath: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
438
|
+
}> | ({
|
|
439
|
+
toolCallId: string;
|
|
440
|
+
state: string;
|
|
441
|
+
} & {
|
|
442
|
+
input?: unknown;
|
|
443
|
+
title?: string | undefined;
|
|
444
|
+
providerExecuted?: boolean | undefined;
|
|
445
|
+
callProviderMetadata?: Record<string, unknown> | undefined;
|
|
446
|
+
output?: unknown;
|
|
447
|
+
errorText?: string | undefined;
|
|
448
|
+
approval?: import("../extensions/schema/schema-validator.js").InferShape<{
|
|
449
|
+
id: import("../internal-agents/schema.js").Schema<string>;
|
|
450
|
+
}> | undefined;
|
|
451
|
+
} & {
|
|
452
|
+
type: "dynamic-tool";
|
|
453
|
+
toolName: string;
|
|
454
|
+
}) | ({
|
|
455
|
+
toolCallId: string;
|
|
456
|
+
state: string;
|
|
457
|
+
} & {
|
|
458
|
+
input?: unknown;
|
|
459
|
+
title?: string | undefined;
|
|
460
|
+
providerExecuted?: boolean | undefined;
|
|
461
|
+
callProviderMetadata?: Record<string, unknown> | undefined;
|
|
462
|
+
output?: unknown;
|
|
463
|
+
errorText?: string | undefined;
|
|
464
|
+
approval?: import("../extensions/schema/schema-validator.js").InferShape<{
|
|
465
|
+
id: import("../internal-agents/schema.js").Schema<string>;
|
|
466
|
+
}> | undefined;
|
|
467
|
+
} & {
|
|
468
|
+
type: `tool-${string}` | "tool_call";
|
|
469
|
+
toolName: string | undefined;
|
|
470
|
+
}) | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
471
|
+
type: import("../internal-agents/schema.js").Schema<`data-${string}`>;
|
|
472
|
+
data: import("../internal-agents/schema.js").Schema<unknown>;
|
|
473
|
+
}>)[]>;
|
|
474
|
+
metadata: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
475
|
+
createdAt: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
476
|
+
isStopped: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
477
|
+
isCompleted: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
478
|
+
completedAt: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
479
|
+
agentId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
480
|
+
agentName: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
481
|
+
conversationId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
482
|
+
modelId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
483
|
+
runId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
484
|
+
streamingMessageId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
485
|
+
childRunAudit: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
486
|
+
status: import("../internal-agents/schema.js").Schema<string>;
|
|
487
|
+
description: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
488
|
+
steps: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
489
|
+
durationMs: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
490
|
+
toolCalls: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
491
|
+
toolName: import("../internal-agents/schema.js").Schema<string>;
|
|
492
|
+
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
493
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
494
|
+
}>[] | undefined>;
|
|
495
|
+
toolResults: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
496
|
+
toolName: import("../internal-agents/schema.js").Schema<string>;
|
|
497
|
+
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
498
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
499
|
+
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
500
|
+
}>[] | undefined>;
|
|
501
|
+
terminalErrorCode: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
502
|
+
terminalErrorMessage: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
503
|
+
}> | undefined>;
|
|
504
|
+
usage: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
505
|
+
inputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
506
|
+
outputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
507
|
+
reasoningTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
508
|
+
cachedInputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
509
|
+
}> | undefined>;
|
|
510
|
+
}> | undefined>;
|
|
511
|
+
}>>;
|
|
512
|
+
/** Schema for chat ui messages.
|
|
513
|
+
* @deprecated Use getChatUiMessagesSchema()
|
|
514
|
+
*/
|
|
515
|
+
export declare const chatUiMessagesSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
516
|
+
id: import("../internal-agents/schema.js").Schema<string>;
|
|
517
|
+
role: import("../internal-agents/schema.js").Schema<string>;
|
|
518
|
+
parts: import("../internal-agents/schema.js").Schema<(import("../extensions/schema/schema-validator.js").InferShape<{
|
|
519
|
+
type: import("../internal-agents/schema.js").Schema<"text">;
|
|
520
|
+
text: import("../internal-agents/schema.js").Schema<string>;
|
|
521
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
522
|
+
type: import("../internal-agents/schema.js").Schema<"reasoning">;
|
|
523
|
+
text: import("../internal-agents/schema.js").Schema<string>;
|
|
524
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
525
|
+
type: import("../internal-agents/schema.js").Schema<"step-start">;
|
|
526
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
527
|
+
type: import("../internal-agents/schema.js").Schema<"source-url">;
|
|
528
|
+
sourceId: import("../internal-agents/schema.js").Schema<string>;
|
|
529
|
+
url: import("../internal-agents/schema.js").Schema<string>;
|
|
530
|
+
title: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
531
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
532
|
+
type: import("../internal-agents/schema.js").Schema<"source-document">;
|
|
533
|
+
sourceId: import("../internal-agents/schema.js").Schema<string>;
|
|
534
|
+
title: import("../internal-agents/schema.js").Schema<string>;
|
|
535
|
+
mediaType: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
536
|
+
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
537
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
538
|
+
type: import("../internal-agents/schema.js").Schema<"file">;
|
|
539
|
+
mediaType: import("../internal-agents/schema.js").Schema<string>;
|
|
540
|
+
url: import("../internal-agents/schema.js").Schema<string>;
|
|
541
|
+
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
542
|
+
uploadId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
543
|
+
uploadPath: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
544
|
+
}> | ({
|
|
545
|
+
toolCallId: string;
|
|
546
|
+
state: string;
|
|
547
|
+
} & {
|
|
548
|
+
input?: unknown;
|
|
549
|
+
title?: string | undefined;
|
|
550
|
+
providerExecuted?: boolean | undefined;
|
|
551
|
+
callProviderMetadata?: Record<string, unknown> | undefined;
|
|
552
|
+
output?: unknown;
|
|
553
|
+
errorText?: string | undefined;
|
|
554
|
+
approval?: import("../extensions/schema/schema-validator.js").InferShape<{
|
|
555
|
+
id: import("../internal-agents/schema.js").Schema<string>;
|
|
556
|
+
}> | undefined;
|
|
557
|
+
} & {
|
|
558
|
+
type: "dynamic-tool";
|
|
559
|
+
toolName: string;
|
|
560
|
+
}) | ({
|
|
561
|
+
toolCallId: string;
|
|
562
|
+
state: string;
|
|
563
|
+
} & {
|
|
564
|
+
input?: unknown;
|
|
565
|
+
title?: string | undefined;
|
|
566
|
+
providerExecuted?: boolean | undefined;
|
|
567
|
+
callProviderMetadata?: Record<string, unknown> | undefined;
|
|
568
|
+
output?: unknown;
|
|
569
|
+
errorText?: string | undefined;
|
|
570
|
+
approval?: import("../extensions/schema/schema-validator.js").InferShape<{
|
|
571
|
+
id: import("../internal-agents/schema.js").Schema<string>;
|
|
572
|
+
}> | undefined;
|
|
573
|
+
} & {
|
|
574
|
+
type: `tool-${string}` | "tool_call";
|
|
575
|
+
toolName: string | undefined;
|
|
576
|
+
}) | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
577
|
+
type: import("../internal-agents/schema.js").Schema<`data-${string}`>;
|
|
578
|
+
data: import("../internal-agents/schema.js").Schema<unknown>;
|
|
579
|
+
}>)[]>;
|
|
580
|
+
metadata: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
581
|
+
createdAt: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
582
|
+
isStopped: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
583
|
+
isCompleted: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
584
|
+
completedAt: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
585
|
+
agentId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
586
|
+
agentName: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
587
|
+
conversationId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
588
|
+
modelId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
589
|
+
runId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
590
|
+
streamingMessageId: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
591
|
+
childRunAudit: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
592
|
+
status: import("../internal-agents/schema.js").Schema<string>;
|
|
593
|
+
description: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
594
|
+
steps: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
595
|
+
durationMs: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
596
|
+
toolCalls: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
597
|
+
toolName: import("../internal-agents/schema.js").Schema<string>;
|
|
598
|
+
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
599
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
600
|
+
}>[] | undefined>;
|
|
601
|
+
toolResults: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
602
|
+
toolName: import("../internal-agents/schema.js").Schema<string>;
|
|
603
|
+
toolCallId: import("../internal-agents/schema.js").Schema<string>;
|
|
604
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
605
|
+
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
606
|
+
}>[] | undefined>;
|
|
607
|
+
terminalErrorCode: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
608
|
+
terminalErrorMessage: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
609
|
+
}> | undefined>;
|
|
610
|
+
usage: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
611
|
+
inputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
612
|
+
outputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
613
|
+
reasoningTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
614
|
+
cachedInputTokens: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
615
|
+
}> | undefined>;
|
|
616
|
+
}> | undefined>;
|
|
617
|
+
}>[]>;
|
|
618
|
+
/** Schema for message part.
|
|
619
|
+
* @deprecated Use getMessagePartSchema()
|
|
620
|
+
*/
|
|
621
|
+
export declare const messagePartSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
622
|
+
type: import("../internal-agents/schema.js").Schema<"text">;
|
|
623
|
+
text: import("../internal-agents/schema.js").Schema<string>;
|
|
624
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
625
|
+
type: import("../internal-agents/schema.js").Schema<"image">;
|
|
626
|
+
upload_id: import("../internal-agents/schema.js").Schema<string>;
|
|
627
|
+
media_type: import("../internal-agents/schema.js").Schema<string>;
|
|
628
|
+
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
629
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
630
|
+
type: import("../internal-agents/schema.js").Schema<"file">;
|
|
631
|
+
upload_id: import("../internal-agents/schema.js").Schema<string>;
|
|
632
|
+
media_type: import("../internal-agents/schema.js").Schema<string>;
|
|
633
|
+
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
634
|
+
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
635
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
636
|
+
type: import("../internal-agents/schema.js").Schema<"tool_call">;
|
|
637
|
+
id: import("../internal-agents/schema.js").Schema<string>;
|
|
638
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
639
|
+
input: import("../internal-agents/schema.js").Schema<Record<string, unknown>>;
|
|
640
|
+
state: import("../internal-agents/schema.js").Schema<string>;
|
|
641
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
642
|
+
type: import("../internal-agents/schema.js").Schema<"tool_result">;
|
|
643
|
+
tool_call_id: import("../internal-agents/schema.js").Schema<string>;
|
|
644
|
+
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
645
|
+
is_error: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
646
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
647
|
+
type: import("../internal-agents/schema.js").Schema<"reasoning">;
|
|
648
|
+
text: import("../internal-agents/schema.js").Schema<string>;
|
|
649
|
+
signature: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
650
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
651
|
+
type: import("../internal-agents/schema.js").Schema<"citation">;
|
|
652
|
+
source_id: import("../internal-agents/schema.js").Schema<string>;
|
|
653
|
+
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
654
|
+
title: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
655
|
+
quote: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
656
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
657
|
+
type: import("../internal-agents/schema.js").Schema<"step_start">;
|
|
658
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
659
|
+
type: import("../internal-agents/schema.js").Schema<"error">;
|
|
660
|
+
code: import("../internal-agents/schema.js").Schema<string>;
|
|
661
|
+
message: import("../internal-agents/schema.js").Schema<string>;
|
|
662
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
663
|
+
type: import("../internal-agents/schema.js").Schema<"data">;
|
|
664
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
665
|
+
value: import("../internal-agents/schema.js").Schema<unknown>;
|
|
666
|
+
}>>;
|
|
667
|
+
/** Schema for conversation type.
|
|
668
|
+
* @deprecated Use getConversationTypeSchema()
|
|
669
|
+
*/
|
|
670
|
+
export declare const conversationTypeSchema: import("../internal-agents/schema.js").Schema<string>;
|
|
671
|
+
/** Schema for message status.
|
|
672
|
+
* @deprecated Use getMessageStatusSchema()
|
|
673
|
+
*/
|
|
674
|
+
export declare const messageStatusSchema: import("../internal-agents/schema.js").Schema<string>;
|
|
675
|
+
/** Schema for API conversation.
|
|
676
|
+
* @deprecated Use getApiConversationSchema()
|
|
677
|
+
*/
|
|
678
|
+
export declare const apiConversationSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
679
|
+
id: import("../internal-agents/schema.js").Schema<string>;
|
|
680
|
+
projectId: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
681
|
+
type: import("../internal-agents/schema.js").Schema<string>;
|
|
682
|
+
title: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
683
|
+
status: import("../internal-agents/schema.js").Schema<string>;
|
|
684
|
+
summary: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
685
|
+
currentNode: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
686
|
+
messageCount: import("../internal-agents/schema.js").Schema<number>;
|
|
687
|
+
lastMessageAt: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
688
|
+
metadata: import("../internal-agents/schema.js").Schema<Record<string, unknown> | null | undefined>;
|
|
689
|
+
createdBy: import("../internal-agents/schema.js").Schema<string>;
|
|
690
|
+
archivedAt: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
691
|
+
createdAt: import("../internal-agents/schema.js").Schema<string>;
|
|
692
|
+
updatedAt: import("../internal-agents/schema.js").Schema<string>;
|
|
693
|
+
}>>;
|
|
694
|
+
/** Schema for API message.
|
|
695
|
+
* @deprecated Use getApiMessageSchema()
|
|
696
|
+
*/
|
|
697
|
+
export declare const apiMessageSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
698
|
+
id: import("../internal-agents/schema.js").Schema<string>;
|
|
699
|
+
conversationId: import("../internal-agents/schema.js").Schema<string>;
|
|
700
|
+
parentId: import("../internal-agents/schema.js").Schema<string | null>;
|
|
701
|
+
seq: import("../internal-agents/schema.js").Schema<number>;
|
|
702
|
+
role: import("../internal-agents/schema.js").Schema<string>;
|
|
703
|
+
parts: import("../internal-agents/schema.js").Schema<(import("../extensions/schema/schema-validator.js").InferShape<{
|
|
704
|
+
type: import("../internal-agents/schema.js").Schema<"text">;
|
|
705
|
+
text: import("../internal-agents/schema.js").Schema<string>;
|
|
706
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
707
|
+
type: import("../internal-agents/schema.js").Schema<"image">;
|
|
708
|
+
upload_id: import("../internal-agents/schema.js").Schema<string>;
|
|
709
|
+
media_type: import("../internal-agents/schema.js").Schema<string>;
|
|
710
|
+
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
711
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
712
|
+
type: import("../internal-agents/schema.js").Schema<"file">;
|
|
713
|
+
upload_id: import("../internal-agents/schema.js").Schema<string>;
|
|
714
|
+
media_type: import("../internal-agents/schema.js").Schema<string>;
|
|
715
|
+
filename: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
716
|
+
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
717
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
718
|
+
type: import("../internal-agents/schema.js").Schema<"tool_call">;
|
|
719
|
+
id: import("../internal-agents/schema.js").Schema<string>;
|
|
720
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
721
|
+
input: import("../internal-agents/schema.js").Schema<Record<string, unknown>>;
|
|
722
|
+
state: import("../internal-agents/schema.js").Schema<string>;
|
|
723
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
724
|
+
type: import("../internal-agents/schema.js").Schema<"tool_result">;
|
|
725
|
+
tool_call_id: import("../internal-agents/schema.js").Schema<string>;
|
|
726
|
+
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
727
|
+
is_error: import("../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
728
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
729
|
+
type: import("../internal-agents/schema.js").Schema<"reasoning">;
|
|
730
|
+
text: import("../internal-agents/schema.js").Schema<string>;
|
|
731
|
+
signature: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
732
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
733
|
+
type: import("../internal-agents/schema.js").Schema<"citation">;
|
|
734
|
+
source_id: import("../internal-agents/schema.js").Schema<string>;
|
|
735
|
+
url: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
736
|
+
title: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
737
|
+
quote: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
738
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
739
|
+
type: import("../internal-agents/schema.js").Schema<"step_start">;
|
|
740
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
741
|
+
type: import("../internal-agents/schema.js").Schema<"error">;
|
|
742
|
+
code: import("../internal-agents/schema.js").Schema<string>;
|
|
743
|
+
message: import("../internal-agents/schema.js").Schema<string>;
|
|
744
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
745
|
+
type: import("../internal-agents/schema.js").Schema<"data">;
|
|
746
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
747
|
+
value: import("../internal-agents/schema.js").Schema<unknown>;
|
|
748
|
+
}>)[]>;
|
|
749
|
+
status: import("../internal-agents/schema.js").Schema<string>;
|
|
750
|
+
model: import("../internal-agents/schema.js").Schema<string | null>;
|
|
751
|
+
tokenUsage: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
752
|
+
input: import("../internal-agents/schema.js").Schema<number>;
|
|
753
|
+
output: import("../internal-agents/schema.js").Schema<number>;
|
|
754
|
+
}> | null>;
|
|
755
|
+
finishReason: import("../internal-agents/schema.js").Schema<string | null>;
|
|
756
|
+
costCredits: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
757
|
+
createdBy: import("../internal-agents/schema.js").Schema<string | null>;
|
|
758
|
+
editedAt: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
759
|
+
idempotencyKey: import("../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
760
|
+
metadata: import("../internal-agents/schema.js").Schema<Record<string, unknown> | null>;
|
|
761
|
+
createdAt: import("../internal-agents/schema.js").Schema<string>;
|
|
762
|
+
updatedAt: import("../internal-agents/schema.js").Schema<string | null>;
|
|
763
|
+
}>>;
|
|
764
|
+
/** Shared convert UI messages to model messages value.
|
|
765
|
+
* @deprecated Use convertUiMessagesToProviderModelMessages for provider-facing model payloads.
|
|
766
|
+
*/
|
|
767
|
+
export declare const convertUiMessagesToModelMessages: typeof convertUiMessagesToProviderModelMessages;
|
|
768
|
+
/** Shared sanitize model messages value.
|
|
769
|
+
* @deprecated Use sanitizeProviderModelMessages for provider-facing model payloads.
|
|
770
|
+
*/
|
|
771
|
+
export declare const sanitizeModelMessages: typeof sanitizeProviderModelMessages;
|
|
772
|
+
/** Shared prepare model messages from UI messages value.
|
|
773
|
+
* @deprecated Use prepareProviderModelMessagesFromUiMessages for provider-facing model payloads.
|
|
774
|
+
*/
|
|
775
|
+
export declare const prepareModelMessagesFromUiMessages: typeof prepareProviderModelMessagesFromUiMessages;
|
|
776
|
+
//# sourceMappingURL=compat.d.ts.map
|