@openai/agents-core 0.5.4 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/computer.d.ts +10 -2
- package/dist/events.d.ts +1 -1
- package/dist/events.js.map +1 -1
- package/dist/events.mjs.map +1 -1
- package/dist/extensions/handoffFilters.d.ts +4 -3
- package/dist/extensions/handoffFilters.js +8 -3
- package/dist/extensions/handoffFilters.js.map +1 -1
- package/dist/extensions/handoffFilters.mjs +9 -4
- package/dist/extensions/handoffFilters.mjs.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/items.d.ts +1158 -32
- package/dist/items.js +56 -2
- package/dist/items.js.map +1 -1
- package/dist/items.mjs +53 -1
- package/dist/items.mjs.map +1 -1
- package/dist/metadata.js +3 -3
- package/dist/metadata.mjs +3 -3
- package/dist/model.d.ts +14 -2
- package/dist/run.js +2 -2
- package/dist/run.js.map +1 -1
- package/dist/run.mjs +3 -3
- package/dist/run.mjs.map +1 -1
- package/dist/runContext.js +116 -67
- package/dist/runContext.js.map +1 -1
- package/dist/runContext.mjs +116 -67
- package/dist/runContext.mjs.map +1 -1
- package/dist/runState.d.ts +493 -17
- package/dist/runState.js +303 -12
- package/dist/runState.js.map +1 -1
- package/dist/runState.mjs +304 -13
- package/dist/runState.mjs.map +1 -1
- package/dist/runner/modelOutputs.d.ts +5 -1
- package/dist/runner/modelOutputs.js +552 -12
- package/dist/runner/modelOutputs.js.map +1 -1
- package/dist/runner/modelOutputs.mjs +552 -13
- package/dist/runner/modelOutputs.mjs.map +1 -1
- package/dist/runner/modelPreparation.js +5 -2
- package/dist/runner/modelPreparation.js.map +1 -1
- package/dist/runner/modelPreparation.mjs +5 -2
- package/dist/runner/modelPreparation.mjs.map +1 -1
- package/dist/runner/sessionPersistence.js +17 -3
- package/dist/runner/sessionPersistence.js.map +1 -1
- package/dist/runner/sessionPersistence.mjs +17 -3
- package/dist/runner/sessionPersistence.mjs.map +1 -1
- package/dist/runner/streaming.js +8 -0
- package/dist/runner/streaming.js.map +1 -1
- package/dist/runner/streaming.mjs +9 -1
- package/dist/runner/streaming.mjs.map +1 -1
- package/dist/runner/toolExecution.js +102 -67
- package/dist/runner/toolExecution.js.map +1 -1
- package/dist/runner/toolExecution.mjs +102 -67
- package/dist/runner/toolExecution.mjs.map +1 -1
- package/dist/runner/toolSearch.d.ts +23 -0
- package/dist/runner/toolSearch.js +426 -0
- package/dist/runner/toolSearch.js.map +1 -0
- package/dist/runner/toolSearch.mjs +416 -0
- package/dist/runner/toolSearch.mjs.map +1 -0
- package/dist/runner/turnResolution.js +2 -1
- package/dist/runner/turnResolution.js.map +1 -1
- package/dist/runner/turnResolution.mjs +2 -1
- package/dist/runner/turnResolution.mjs.map +1 -1
- package/dist/tool.d.ts +50 -0
- package/dist/tool.js +79 -0
- package/dist/tool.js.map +1 -1
- package/dist/tool.mjs +74 -0
- package/dist/tool.mjs.map +1 -1
- package/dist/toolIdentity.d.ts +23 -0
- package/dist/toolIdentity.js +105 -0
- package/dist/toolIdentity.js.map +1 -0
- package/dist/toolIdentity.mjs +89 -0
- package/dist/toolIdentity.mjs.map +1 -0
- package/dist/tooling.d.ts +24 -0
- package/dist/tooling.js +110 -0
- package/dist/tooling.js.map +1 -0
- package/dist/tooling.mjs +97 -0
- package/dist/tooling.mjs.map +1 -0
- package/dist/types/aliases.d.ts +3 -3
- package/dist/types/protocol.d.ts +417 -12
- package/dist/types/protocol.js +59 -4
- package/dist/types/protocol.js.map +1 -1
- package/dist/types/protocol.mjs +57 -2
- package/dist/types/protocol.mjs.map +1 -1
- package/dist/types/providerData.d.ts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +15 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +2 -0
- package/dist/utils/index.mjs.map +1 -1
- package/dist/utils/serialize.js +37 -6
- package/dist/utils/serialize.js.map +1 -1
- package/dist/utils/serialize.mjs +37 -6
- package/dist/utils/serialize.mjs.map +1 -1
- package/dist/utils/toolSearch.d.ts +1 -0
- package/dist/utils/toolSearch.js +13 -0
- package/dist/utils/toolSearch.js.map +1 -0
- package/dist/utils/toolSearch.mjs +2 -0
- package/dist/utils/toolSearch.mjs.map +1 -0
- package/package.json +2 -2
package/dist/runState.d.ts
CHANGED
|
@@ -10,9 +10,11 @@ import type { ProcessedResponse } from './runner/types';
|
|
|
10
10
|
import type { AgentSpanData, Span } from './tracing/spans';
|
|
11
11
|
import { Usage } from './usage';
|
|
12
12
|
import { Trace } from './tracing/traces';
|
|
13
|
-
import
|
|
13
|
+
import * as protocol from './types/protocol';
|
|
14
|
+
import { AgentInputItem, UnknownContext } from './types';
|
|
14
15
|
import type { InputGuardrailResult, OutputGuardrailResult } from './guardrail';
|
|
15
16
|
import type { ToolInputGuardrailResult, ToolOutputGuardrailResult } from './toolGuardrail';
|
|
17
|
+
import { Tool } from './tool';
|
|
16
18
|
import type { AgentToolInvocation } from './agentToolInvocation';
|
|
17
19
|
/**
|
|
18
20
|
* The schema version of the serialized run state. This is used to ensure that the serialized
|
|
@@ -29,9 +31,11 @@ import type { AgentToolInvocation } from './agentToolInvocation';
|
|
|
29
31
|
* - 1.4: Adds optional toolInput to serialized run context.
|
|
30
32
|
* - 1.5: Adds optional reasoningItemIdPolicy to preserve reasoning input policy across resume.
|
|
31
33
|
* - 1.6: Adds optional requestId to serialized model responses.
|
|
32
|
-
* - 1.7: Adds optional approval rejection messages
|
|
34
|
+
* - 1.7: Adds optional approval rejection messages.
|
|
35
|
+
* - 1.8: Adds tool search item variants, batched computer actions, and GA computer tool
|
|
36
|
+
* aliasing to serialized run state payloads.
|
|
33
37
|
*/
|
|
34
|
-
export declare const CURRENT_SCHEMA_VERSION: "1.
|
|
38
|
+
export declare const CURRENT_SCHEMA_VERSION: "1.8";
|
|
35
39
|
type ContextOverrideStrategy = 'merge' | 'replace';
|
|
36
40
|
declare const serializedSpanBase: z.ZodObject<{
|
|
37
41
|
object: z.ZodLiteral<"trace.span">;
|
|
@@ -59,6 +63,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
59
63
|
1.5: "1.5";
|
|
60
64
|
1.6: "1.6";
|
|
61
65
|
1.7: "1.7";
|
|
66
|
+
1.8: "1.8";
|
|
62
67
|
}>;
|
|
63
68
|
currentTurn: z.ZodNumber;
|
|
64
69
|
currentAgent: z.ZodObject<{
|
|
@@ -135,6 +140,30 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
135
140
|
type: z.ZodOptional<z.ZodLiteral<"message">>;
|
|
136
141
|
role: z.ZodLiteral<"system">;
|
|
137
142
|
content: z.ZodString;
|
|
143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
145
|
+
id: z.ZodOptional<z.ZodString>;
|
|
146
|
+
type: z.ZodLiteral<"tool_search_call">;
|
|
147
|
+
call_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
148
|
+
callId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
|
+
execution: z.ZodOptional<z.ZodEnum<{
|
|
150
|
+
client: "client";
|
|
151
|
+
server: "server";
|
|
152
|
+
}>>;
|
|
153
|
+
arguments: z.ZodUnknown;
|
|
154
|
+
status: z.ZodOptional<z.ZodString>;
|
|
155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
156
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
157
|
+
id: z.ZodOptional<z.ZodString>;
|
|
158
|
+
type: z.ZodLiteral<"tool_search_output">;
|
|
159
|
+
call_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
+
callId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
execution: z.ZodOptional<z.ZodEnum<{
|
|
162
|
+
client: "client";
|
|
163
|
+
server: "server";
|
|
164
|
+
}>>;
|
|
165
|
+
status: z.ZodOptional<z.ZodString>;
|
|
166
|
+
tools: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
138
167
|
}, z.core.$strip>, z.ZodObject<{
|
|
139
168
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
140
169
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -149,6 +178,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
149
178
|
type: z.ZodLiteral<"function_call">;
|
|
150
179
|
callId: z.ZodString;
|
|
151
180
|
name: z.ZodString;
|
|
181
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
152
182
|
status: z.ZodOptional<z.ZodEnum<{
|
|
153
183
|
in_progress: "in_progress";
|
|
154
184
|
completed: "completed";
|
|
@@ -165,7 +195,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
165
195
|
completed: "completed";
|
|
166
196
|
incomplete: "incomplete";
|
|
167
197
|
}>;
|
|
168
|
-
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
198
|
+
action: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
169
199
|
type: z.ZodLiteral<"screenshot">;
|
|
170
200
|
}, z.core.$strip>, z.ZodObject<{
|
|
171
201
|
type: z.ZodLiteral<"click">;
|
|
@@ -206,7 +236,49 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
206
236
|
x: z.ZodNumber;
|
|
207
237
|
y: z.ZodNumber;
|
|
208
238
|
}, z.core.$strip>>;
|
|
209
|
-
}, z.core.$strip>], "type"
|
|
239
|
+
}, z.core.$strip>], "type">>;
|
|
240
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
241
|
+
type: z.ZodLiteral<"screenshot">;
|
|
242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
243
|
+
type: z.ZodLiteral<"click">;
|
|
244
|
+
x: z.ZodNumber;
|
|
245
|
+
y: z.ZodNumber;
|
|
246
|
+
button: z.ZodEnum<{
|
|
247
|
+
left: "left";
|
|
248
|
+
right: "right";
|
|
249
|
+
wheel: "wheel";
|
|
250
|
+
back: "back";
|
|
251
|
+
forward: "forward";
|
|
252
|
+
}>;
|
|
253
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
254
|
+
type: z.ZodLiteral<"double_click">;
|
|
255
|
+
x: z.ZodNumber;
|
|
256
|
+
y: z.ZodNumber;
|
|
257
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
258
|
+
type: z.ZodLiteral<"scroll">;
|
|
259
|
+
x: z.ZodNumber;
|
|
260
|
+
y: z.ZodNumber;
|
|
261
|
+
scroll_x: z.ZodNumber;
|
|
262
|
+
scroll_y: z.ZodNumber;
|
|
263
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
264
|
+
type: z.ZodLiteral<"type">;
|
|
265
|
+
text: z.ZodString;
|
|
266
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
267
|
+
type: z.ZodLiteral<"wait">;
|
|
268
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
269
|
+
type: z.ZodLiteral<"move">;
|
|
270
|
+
x: z.ZodNumber;
|
|
271
|
+
y: z.ZodNumber;
|
|
272
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
273
|
+
type: z.ZodLiteral<"keypress">;
|
|
274
|
+
keys: z.ZodArray<z.ZodString>;
|
|
275
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
276
|
+
type: z.ZodLiteral<"drag">;
|
|
277
|
+
path: z.ZodArray<z.ZodObject<{
|
|
278
|
+
x: z.ZodNumber;
|
|
279
|
+
y: z.ZodNumber;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
}, z.core.$strip>], "type">>>;
|
|
210
282
|
}, z.core.$strip>, z.ZodObject<{
|
|
211
283
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
212
284
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -248,6 +320,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
248
320
|
id: z.ZodOptional<z.ZodString>;
|
|
249
321
|
type: z.ZodLiteral<"function_call_result">;
|
|
250
322
|
name: z.ZodString;
|
|
323
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
251
324
|
callId: z.ZodString;
|
|
252
325
|
status: z.ZodEnum<{
|
|
253
326
|
in_progress: "in_progress";
|
|
@@ -414,6 +487,30 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
414
487
|
type: z.ZodLiteral<"image">;
|
|
415
488
|
image: z.ZodString;
|
|
416
489
|
}, z.core.$strip>], "type">>;
|
|
490
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
491
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
492
|
+
id: z.ZodOptional<z.ZodString>;
|
|
493
|
+
type: z.ZodLiteral<"tool_search_call">;
|
|
494
|
+
call_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
495
|
+
callId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
496
|
+
execution: z.ZodOptional<z.ZodEnum<{
|
|
497
|
+
client: "client";
|
|
498
|
+
server: "server";
|
|
499
|
+
}>>;
|
|
500
|
+
arguments: z.ZodUnknown;
|
|
501
|
+
status: z.ZodOptional<z.ZodString>;
|
|
502
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
503
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
504
|
+
id: z.ZodOptional<z.ZodString>;
|
|
505
|
+
type: z.ZodLiteral<"tool_search_output">;
|
|
506
|
+
call_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
507
|
+
callId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
508
|
+
execution: z.ZodOptional<z.ZodEnum<{
|
|
509
|
+
client: "client";
|
|
510
|
+
server: "server";
|
|
511
|
+
}>>;
|
|
512
|
+
status: z.ZodOptional<z.ZodString>;
|
|
513
|
+
tools: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
417
514
|
}, z.core.$strip>, z.ZodObject<{
|
|
418
515
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
419
516
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -428,6 +525,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
428
525
|
type: z.ZodLiteral<"function_call">;
|
|
429
526
|
callId: z.ZodString;
|
|
430
527
|
name: z.ZodString;
|
|
528
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
431
529
|
status: z.ZodOptional<z.ZodEnum<{
|
|
432
530
|
in_progress: "in_progress";
|
|
433
531
|
completed: "completed";
|
|
@@ -444,7 +542,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
444
542
|
completed: "completed";
|
|
445
543
|
incomplete: "incomplete";
|
|
446
544
|
}>;
|
|
447
|
-
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
545
|
+
action: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
448
546
|
type: z.ZodLiteral<"screenshot">;
|
|
449
547
|
}, z.core.$strip>, z.ZodObject<{
|
|
450
548
|
type: z.ZodLiteral<"click">;
|
|
@@ -485,7 +583,49 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
485
583
|
x: z.ZodNumber;
|
|
486
584
|
y: z.ZodNumber;
|
|
487
585
|
}, z.core.$strip>>;
|
|
488
|
-
}, z.core.$strip>], "type"
|
|
586
|
+
}, z.core.$strip>], "type">>;
|
|
587
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
588
|
+
type: z.ZodLiteral<"screenshot">;
|
|
589
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
590
|
+
type: z.ZodLiteral<"click">;
|
|
591
|
+
x: z.ZodNumber;
|
|
592
|
+
y: z.ZodNumber;
|
|
593
|
+
button: z.ZodEnum<{
|
|
594
|
+
left: "left";
|
|
595
|
+
right: "right";
|
|
596
|
+
wheel: "wheel";
|
|
597
|
+
back: "back";
|
|
598
|
+
forward: "forward";
|
|
599
|
+
}>;
|
|
600
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
601
|
+
type: z.ZodLiteral<"double_click">;
|
|
602
|
+
x: z.ZodNumber;
|
|
603
|
+
y: z.ZodNumber;
|
|
604
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
605
|
+
type: z.ZodLiteral<"scroll">;
|
|
606
|
+
x: z.ZodNumber;
|
|
607
|
+
y: z.ZodNumber;
|
|
608
|
+
scroll_x: z.ZodNumber;
|
|
609
|
+
scroll_y: z.ZodNumber;
|
|
610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
611
|
+
type: z.ZodLiteral<"type">;
|
|
612
|
+
text: z.ZodString;
|
|
613
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
614
|
+
type: z.ZodLiteral<"wait">;
|
|
615
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
616
|
+
type: z.ZodLiteral<"move">;
|
|
617
|
+
x: z.ZodNumber;
|
|
618
|
+
y: z.ZodNumber;
|
|
619
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
620
|
+
type: z.ZodLiteral<"keypress">;
|
|
621
|
+
keys: z.ZodArray<z.ZodString>;
|
|
622
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
623
|
+
type: z.ZodLiteral<"drag">;
|
|
624
|
+
path: z.ZodArray<z.ZodObject<{
|
|
625
|
+
x: z.ZodNumber;
|
|
626
|
+
y: z.ZodNumber;
|
|
627
|
+
}, z.core.$strip>>;
|
|
628
|
+
}, z.core.$strip>], "type">>>;
|
|
489
629
|
}, z.core.$strip>, z.ZodObject<{
|
|
490
630
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
491
631
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -527,6 +667,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
527
667
|
id: z.ZodOptional<z.ZodString>;
|
|
528
668
|
type: z.ZodLiteral<"function_call_result">;
|
|
529
669
|
name: z.ZodString;
|
|
670
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
530
671
|
callId: z.ZodString;
|
|
531
672
|
status: z.ZodEnum<{
|
|
532
673
|
in_progress: "in_progress";
|
|
@@ -788,6 +929,30 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
788
929
|
type: z.ZodLiteral<"image">;
|
|
789
930
|
image: z.ZodString;
|
|
790
931
|
}, z.core.$strip>], "type">>;
|
|
932
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
933
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
934
|
+
id: z.ZodOptional<z.ZodString>;
|
|
935
|
+
type: z.ZodLiteral<"tool_search_call">;
|
|
936
|
+
call_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
937
|
+
callId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
938
|
+
execution: z.ZodOptional<z.ZodEnum<{
|
|
939
|
+
client: "client";
|
|
940
|
+
server: "server";
|
|
941
|
+
}>>;
|
|
942
|
+
arguments: z.ZodUnknown;
|
|
943
|
+
status: z.ZodOptional<z.ZodString>;
|
|
944
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
945
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
946
|
+
id: z.ZodOptional<z.ZodString>;
|
|
947
|
+
type: z.ZodLiteral<"tool_search_output">;
|
|
948
|
+
call_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
949
|
+
callId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
950
|
+
execution: z.ZodOptional<z.ZodEnum<{
|
|
951
|
+
client: "client";
|
|
952
|
+
server: "server";
|
|
953
|
+
}>>;
|
|
954
|
+
status: z.ZodOptional<z.ZodString>;
|
|
955
|
+
tools: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
791
956
|
}, z.core.$strip>, z.ZodObject<{
|
|
792
957
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
793
958
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -802,6 +967,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
802
967
|
type: z.ZodLiteral<"function_call">;
|
|
803
968
|
callId: z.ZodString;
|
|
804
969
|
name: z.ZodString;
|
|
970
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
805
971
|
status: z.ZodOptional<z.ZodEnum<{
|
|
806
972
|
in_progress: "in_progress";
|
|
807
973
|
completed: "completed";
|
|
@@ -818,7 +984,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
818
984
|
completed: "completed";
|
|
819
985
|
incomplete: "incomplete";
|
|
820
986
|
}>;
|
|
821
|
-
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
987
|
+
action: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
822
988
|
type: z.ZodLiteral<"screenshot">;
|
|
823
989
|
}, z.core.$strip>, z.ZodObject<{
|
|
824
990
|
type: z.ZodLiteral<"click">;
|
|
@@ -859,7 +1025,49 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
859
1025
|
x: z.ZodNumber;
|
|
860
1026
|
y: z.ZodNumber;
|
|
861
1027
|
}, z.core.$strip>>;
|
|
862
|
-
}, z.core.$strip>], "type"
|
|
1028
|
+
}, z.core.$strip>], "type">>;
|
|
1029
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1030
|
+
type: z.ZodLiteral<"screenshot">;
|
|
1031
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1032
|
+
type: z.ZodLiteral<"click">;
|
|
1033
|
+
x: z.ZodNumber;
|
|
1034
|
+
y: z.ZodNumber;
|
|
1035
|
+
button: z.ZodEnum<{
|
|
1036
|
+
left: "left";
|
|
1037
|
+
right: "right";
|
|
1038
|
+
wheel: "wheel";
|
|
1039
|
+
back: "back";
|
|
1040
|
+
forward: "forward";
|
|
1041
|
+
}>;
|
|
1042
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1043
|
+
type: z.ZodLiteral<"double_click">;
|
|
1044
|
+
x: z.ZodNumber;
|
|
1045
|
+
y: z.ZodNumber;
|
|
1046
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1047
|
+
type: z.ZodLiteral<"scroll">;
|
|
1048
|
+
x: z.ZodNumber;
|
|
1049
|
+
y: z.ZodNumber;
|
|
1050
|
+
scroll_x: z.ZodNumber;
|
|
1051
|
+
scroll_y: z.ZodNumber;
|
|
1052
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1053
|
+
type: z.ZodLiteral<"type">;
|
|
1054
|
+
text: z.ZodString;
|
|
1055
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1056
|
+
type: z.ZodLiteral<"wait">;
|
|
1057
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1058
|
+
type: z.ZodLiteral<"move">;
|
|
1059
|
+
x: z.ZodNumber;
|
|
1060
|
+
y: z.ZodNumber;
|
|
1061
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1062
|
+
type: z.ZodLiteral<"keypress">;
|
|
1063
|
+
keys: z.ZodArray<z.ZodString>;
|
|
1064
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1065
|
+
type: z.ZodLiteral<"drag">;
|
|
1066
|
+
path: z.ZodArray<z.ZodObject<{
|
|
1067
|
+
x: z.ZodNumber;
|
|
1068
|
+
y: z.ZodNumber;
|
|
1069
|
+
}, z.core.$strip>>;
|
|
1070
|
+
}, z.core.$strip>], "type">>>;
|
|
863
1071
|
}, z.core.$strip>, z.ZodObject<{
|
|
864
1072
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
865
1073
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -901,6 +1109,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
901
1109
|
id: z.ZodOptional<z.ZodString>;
|
|
902
1110
|
type: z.ZodLiteral<"function_call_result">;
|
|
903
1111
|
name: z.ZodString;
|
|
1112
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
904
1113
|
callId: z.ZodString;
|
|
905
1114
|
status: z.ZodEnum<{
|
|
906
1115
|
in_progress: "in_progress";
|
|
@@ -1050,6 +1259,42 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1050
1259
|
agent: z.ZodObject<{
|
|
1051
1260
|
name: z.ZodString;
|
|
1052
1261
|
}, z.core.$strip>;
|
|
1262
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1263
|
+
type: z.ZodLiteral<"tool_search_call_item">;
|
|
1264
|
+
rawItem: z.ZodObject<{
|
|
1265
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1266
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
type: z.ZodLiteral<"tool_search_call">;
|
|
1268
|
+
call_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1269
|
+
callId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1270
|
+
execution: z.ZodOptional<z.ZodEnum<{
|
|
1271
|
+
client: "client";
|
|
1272
|
+
server: "server";
|
|
1273
|
+
}>>;
|
|
1274
|
+
arguments: z.ZodUnknown;
|
|
1275
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1276
|
+
}, z.core.$strip>;
|
|
1277
|
+
agent: z.ZodObject<{
|
|
1278
|
+
name: z.ZodString;
|
|
1279
|
+
}, z.core.$strip>;
|
|
1280
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1281
|
+
type: z.ZodLiteral<"tool_search_output_item">;
|
|
1282
|
+
rawItem: z.ZodObject<{
|
|
1283
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1284
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1285
|
+
type: z.ZodLiteral<"tool_search_output">;
|
|
1286
|
+
call_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1287
|
+
callId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1288
|
+
execution: z.ZodOptional<z.ZodEnum<{
|
|
1289
|
+
client: "client";
|
|
1290
|
+
server: "server";
|
|
1291
|
+
}>>;
|
|
1292
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1293
|
+
tools: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1294
|
+
}, z.core.$strip>;
|
|
1295
|
+
agent: z.ZodObject<{
|
|
1296
|
+
name: z.ZodString;
|
|
1297
|
+
}, z.core.$strip>;
|
|
1053
1298
|
}, z.core.$strip>, z.ZodObject<{
|
|
1054
1299
|
type: z.ZodLiteral<"tool_call_item">;
|
|
1055
1300
|
rawItem: z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1062,7 +1307,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1062
1307
|
completed: "completed";
|
|
1063
1308
|
incomplete: "incomplete";
|
|
1064
1309
|
}>;
|
|
1065
|
-
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1310
|
+
action: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1066
1311
|
type: z.ZodLiteral<"screenshot">;
|
|
1067
1312
|
}, z.core.$strip>, z.ZodObject<{
|
|
1068
1313
|
type: z.ZodLiteral<"click">;
|
|
@@ -1103,7 +1348,49 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1103
1348
|
x: z.ZodNumber;
|
|
1104
1349
|
y: z.ZodNumber;
|
|
1105
1350
|
}, z.core.$strip>>;
|
|
1106
|
-
}, z.core.$strip>], "type"
|
|
1351
|
+
}, z.core.$strip>], "type">>;
|
|
1352
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1353
|
+
type: z.ZodLiteral<"screenshot">;
|
|
1354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1355
|
+
type: z.ZodLiteral<"click">;
|
|
1356
|
+
x: z.ZodNumber;
|
|
1357
|
+
y: z.ZodNumber;
|
|
1358
|
+
button: z.ZodEnum<{
|
|
1359
|
+
left: "left";
|
|
1360
|
+
right: "right";
|
|
1361
|
+
wheel: "wheel";
|
|
1362
|
+
back: "back";
|
|
1363
|
+
forward: "forward";
|
|
1364
|
+
}>;
|
|
1365
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1366
|
+
type: z.ZodLiteral<"double_click">;
|
|
1367
|
+
x: z.ZodNumber;
|
|
1368
|
+
y: z.ZodNumber;
|
|
1369
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1370
|
+
type: z.ZodLiteral<"scroll">;
|
|
1371
|
+
x: z.ZodNumber;
|
|
1372
|
+
y: z.ZodNumber;
|
|
1373
|
+
scroll_x: z.ZodNumber;
|
|
1374
|
+
scroll_y: z.ZodNumber;
|
|
1375
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1376
|
+
type: z.ZodLiteral<"type">;
|
|
1377
|
+
text: z.ZodString;
|
|
1378
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1379
|
+
type: z.ZodLiteral<"wait">;
|
|
1380
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1381
|
+
type: z.ZodLiteral<"move">;
|
|
1382
|
+
x: z.ZodNumber;
|
|
1383
|
+
y: z.ZodNumber;
|
|
1384
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1385
|
+
type: z.ZodLiteral<"keypress">;
|
|
1386
|
+
keys: z.ZodArray<z.ZodString>;
|
|
1387
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1388
|
+
type: z.ZodLiteral<"drag">;
|
|
1389
|
+
path: z.ZodArray<z.ZodObject<{
|
|
1390
|
+
x: z.ZodNumber;
|
|
1391
|
+
y: z.ZodNumber;
|
|
1392
|
+
}, z.core.$strip>>;
|
|
1393
|
+
}, z.core.$strip>], "type">>>;
|
|
1107
1394
|
}, z.core.$strip>, z.ZodObject<{
|
|
1108
1395
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1109
1396
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1146,6 +1433,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1146
1433
|
type: z.ZodLiteral<"function_call">;
|
|
1147
1434
|
callId: z.ZodString;
|
|
1148
1435
|
name: z.ZodString;
|
|
1436
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
1149
1437
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1150
1438
|
in_progress: "in_progress";
|
|
1151
1439
|
completed: "completed";
|
|
@@ -1179,6 +1467,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1179
1467
|
id: z.ZodOptional<z.ZodString>;
|
|
1180
1468
|
type: z.ZodLiteral<"function_call_result">;
|
|
1181
1469
|
name: z.ZodString;
|
|
1470
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
1182
1471
|
callId: z.ZodString;
|
|
1183
1472
|
status: z.ZodEnum<{
|
|
1184
1473
|
in_progress: "in_progress";
|
|
@@ -1305,6 +1594,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1305
1594
|
type: z.ZodLiteral<"function_call">;
|
|
1306
1595
|
callId: z.ZodString;
|
|
1307
1596
|
name: z.ZodString;
|
|
1597
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
1308
1598
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1309
1599
|
in_progress: "in_progress";
|
|
1310
1600
|
completed: "completed";
|
|
@@ -1322,6 +1612,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1322
1612
|
id: z.ZodOptional<z.ZodString>;
|
|
1323
1613
|
type: z.ZodLiteral<"function_call_result">;
|
|
1324
1614
|
name: z.ZodString;
|
|
1615
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
1325
1616
|
callId: z.ZodString;
|
|
1326
1617
|
status: z.ZodEnum<{
|
|
1327
1618
|
in_progress: "in_progress";
|
|
@@ -1394,6 +1685,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1394
1685
|
type: z.ZodLiteral<"function_call">;
|
|
1395
1686
|
callId: z.ZodString;
|
|
1396
1687
|
name: z.ZodString;
|
|
1688
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
1397
1689
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1398
1690
|
in_progress: "in_progress";
|
|
1399
1691
|
completed: "completed";
|
|
@@ -1418,7 +1710,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1418
1710
|
completed: "completed";
|
|
1419
1711
|
incomplete: "incomplete";
|
|
1420
1712
|
}>;
|
|
1421
|
-
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1713
|
+
action: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1422
1714
|
type: z.ZodLiteral<"screenshot">;
|
|
1423
1715
|
}, z.core.$strip>, z.ZodObject<{
|
|
1424
1716
|
type: z.ZodLiteral<"click">;
|
|
@@ -1459,7 +1751,49 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1459
1751
|
x: z.ZodNumber;
|
|
1460
1752
|
y: z.ZodNumber;
|
|
1461
1753
|
}, z.core.$strip>>;
|
|
1462
|
-
}, z.core.$strip>], "type"
|
|
1754
|
+
}, z.core.$strip>], "type">>;
|
|
1755
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1756
|
+
type: z.ZodLiteral<"screenshot">;
|
|
1757
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1758
|
+
type: z.ZodLiteral<"click">;
|
|
1759
|
+
x: z.ZodNumber;
|
|
1760
|
+
y: z.ZodNumber;
|
|
1761
|
+
button: z.ZodEnum<{
|
|
1762
|
+
left: "left";
|
|
1763
|
+
right: "right";
|
|
1764
|
+
wheel: "wheel";
|
|
1765
|
+
back: "back";
|
|
1766
|
+
forward: "forward";
|
|
1767
|
+
}>;
|
|
1768
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1769
|
+
type: z.ZodLiteral<"double_click">;
|
|
1770
|
+
x: z.ZodNumber;
|
|
1771
|
+
y: z.ZodNumber;
|
|
1772
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1773
|
+
type: z.ZodLiteral<"scroll">;
|
|
1774
|
+
x: z.ZodNumber;
|
|
1775
|
+
y: z.ZodNumber;
|
|
1776
|
+
scroll_x: z.ZodNumber;
|
|
1777
|
+
scroll_y: z.ZodNumber;
|
|
1778
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1779
|
+
type: z.ZodLiteral<"type">;
|
|
1780
|
+
text: z.ZodString;
|
|
1781
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1782
|
+
type: z.ZodLiteral<"wait">;
|
|
1783
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1784
|
+
type: z.ZodLiteral<"move">;
|
|
1785
|
+
x: z.ZodNumber;
|
|
1786
|
+
y: z.ZodNumber;
|
|
1787
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1788
|
+
type: z.ZodLiteral<"keypress">;
|
|
1789
|
+
keys: z.ZodArray<z.ZodString>;
|
|
1790
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1791
|
+
type: z.ZodLiteral<"drag">;
|
|
1792
|
+
path: z.ZodArray<z.ZodObject<{
|
|
1793
|
+
x: z.ZodNumber;
|
|
1794
|
+
y: z.ZodNumber;
|
|
1795
|
+
}, z.core.$strip>>;
|
|
1796
|
+
}, z.core.$strip>], "type">>>;
|
|
1463
1797
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
1464
1798
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1465
1799
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1541,6 +1875,42 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1541
1875
|
agent: z.ZodObject<{
|
|
1542
1876
|
name: z.ZodString;
|
|
1543
1877
|
}, z.core.$strip>;
|
|
1878
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1879
|
+
type: z.ZodLiteral<"tool_search_call_item">;
|
|
1880
|
+
rawItem: z.ZodObject<{
|
|
1881
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1882
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1883
|
+
type: z.ZodLiteral<"tool_search_call">;
|
|
1884
|
+
call_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1885
|
+
callId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1886
|
+
execution: z.ZodOptional<z.ZodEnum<{
|
|
1887
|
+
client: "client";
|
|
1888
|
+
server: "server";
|
|
1889
|
+
}>>;
|
|
1890
|
+
arguments: z.ZodUnknown;
|
|
1891
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1892
|
+
}, z.core.$strip>;
|
|
1893
|
+
agent: z.ZodObject<{
|
|
1894
|
+
name: z.ZodString;
|
|
1895
|
+
}, z.core.$strip>;
|
|
1896
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1897
|
+
type: z.ZodLiteral<"tool_search_output_item">;
|
|
1898
|
+
rawItem: z.ZodObject<{
|
|
1899
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1900
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1901
|
+
type: z.ZodLiteral<"tool_search_output">;
|
|
1902
|
+
call_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1903
|
+
callId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1904
|
+
execution: z.ZodOptional<z.ZodEnum<{
|
|
1905
|
+
client: "client";
|
|
1906
|
+
server: "server";
|
|
1907
|
+
}>>;
|
|
1908
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1909
|
+
tools: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1910
|
+
}, z.core.$strip>;
|
|
1911
|
+
agent: z.ZodObject<{
|
|
1912
|
+
name: z.ZodString;
|
|
1913
|
+
}, z.core.$strip>;
|
|
1544
1914
|
}, z.core.$strip>, z.ZodObject<{
|
|
1545
1915
|
type: z.ZodLiteral<"tool_call_item">;
|
|
1546
1916
|
rawItem: z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1553,7 +1923,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1553
1923
|
completed: "completed";
|
|
1554
1924
|
incomplete: "incomplete";
|
|
1555
1925
|
}>;
|
|
1556
|
-
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1926
|
+
action: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1557
1927
|
type: z.ZodLiteral<"screenshot">;
|
|
1558
1928
|
}, z.core.$strip>, z.ZodObject<{
|
|
1559
1929
|
type: z.ZodLiteral<"click">;
|
|
@@ -1594,7 +1964,49 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1594
1964
|
x: z.ZodNumber;
|
|
1595
1965
|
y: z.ZodNumber;
|
|
1596
1966
|
}, z.core.$strip>>;
|
|
1597
|
-
}, z.core.$strip>], "type"
|
|
1967
|
+
}, z.core.$strip>], "type">>;
|
|
1968
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1969
|
+
type: z.ZodLiteral<"screenshot">;
|
|
1970
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1971
|
+
type: z.ZodLiteral<"click">;
|
|
1972
|
+
x: z.ZodNumber;
|
|
1973
|
+
y: z.ZodNumber;
|
|
1974
|
+
button: z.ZodEnum<{
|
|
1975
|
+
left: "left";
|
|
1976
|
+
right: "right";
|
|
1977
|
+
wheel: "wheel";
|
|
1978
|
+
back: "back";
|
|
1979
|
+
forward: "forward";
|
|
1980
|
+
}>;
|
|
1981
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1982
|
+
type: z.ZodLiteral<"double_click">;
|
|
1983
|
+
x: z.ZodNumber;
|
|
1984
|
+
y: z.ZodNumber;
|
|
1985
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1986
|
+
type: z.ZodLiteral<"scroll">;
|
|
1987
|
+
x: z.ZodNumber;
|
|
1988
|
+
y: z.ZodNumber;
|
|
1989
|
+
scroll_x: z.ZodNumber;
|
|
1990
|
+
scroll_y: z.ZodNumber;
|
|
1991
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1992
|
+
type: z.ZodLiteral<"type">;
|
|
1993
|
+
text: z.ZodString;
|
|
1994
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1995
|
+
type: z.ZodLiteral<"wait">;
|
|
1996
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1997
|
+
type: z.ZodLiteral<"move">;
|
|
1998
|
+
x: z.ZodNumber;
|
|
1999
|
+
y: z.ZodNumber;
|
|
2000
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2001
|
+
type: z.ZodLiteral<"keypress">;
|
|
2002
|
+
keys: z.ZodArray<z.ZodString>;
|
|
2003
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2004
|
+
type: z.ZodLiteral<"drag">;
|
|
2005
|
+
path: z.ZodArray<z.ZodObject<{
|
|
2006
|
+
x: z.ZodNumber;
|
|
2007
|
+
y: z.ZodNumber;
|
|
2008
|
+
}, z.core.$strip>>;
|
|
2009
|
+
}, z.core.$strip>], "type">>>;
|
|
1598
2010
|
}, z.core.$strip>, z.ZodObject<{
|
|
1599
2011
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1600
2012
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1637,6 +2049,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1637
2049
|
type: z.ZodLiteral<"function_call">;
|
|
1638
2050
|
callId: z.ZodString;
|
|
1639
2051
|
name: z.ZodString;
|
|
2052
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
1640
2053
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1641
2054
|
in_progress: "in_progress";
|
|
1642
2055
|
completed: "completed";
|
|
@@ -1670,6 +2083,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1670
2083
|
id: z.ZodOptional<z.ZodString>;
|
|
1671
2084
|
type: z.ZodLiteral<"function_call_result">;
|
|
1672
2085
|
name: z.ZodString;
|
|
2086
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
1673
2087
|
callId: z.ZodString;
|
|
1674
2088
|
status: z.ZodEnum<{
|
|
1675
2089
|
in_progress: "in_progress";
|
|
@@ -1796,6 +2210,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1796
2210
|
type: z.ZodLiteral<"function_call">;
|
|
1797
2211
|
callId: z.ZodString;
|
|
1798
2212
|
name: z.ZodString;
|
|
2213
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
1799
2214
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1800
2215
|
in_progress: "in_progress";
|
|
1801
2216
|
completed: "completed";
|
|
@@ -1813,6 +2228,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1813
2228
|
id: z.ZodOptional<z.ZodString>;
|
|
1814
2229
|
type: z.ZodLiteral<"function_call_result">;
|
|
1815
2230
|
name: z.ZodString;
|
|
2231
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
1816
2232
|
callId: z.ZodString;
|
|
1817
2233
|
status: z.ZodEnum<{
|
|
1818
2234
|
in_progress: "in_progress";
|
|
@@ -1885,6 +2301,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1885
2301
|
type: z.ZodLiteral<"function_call">;
|
|
1886
2302
|
callId: z.ZodString;
|
|
1887
2303
|
name: z.ZodString;
|
|
2304
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
1888
2305
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1889
2306
|
in_progress: "in_progress";
|
|
1890
2307
|
completed: "completed";
|
|
@@ -1909,7 +2326,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1909
2326
|
completed: "completed";
|
|
1910
2327
|
incomplete: "incomplete";
|
|
1911
2328
|
}>;
|
|
1912
|
-
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2329
|
+
action: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1913
2330
|
type: z.ZodLiteral<"screenshot">;
|
|
1914
2331
|
}, z.core.$strip>, z.ZodObject<{
|
|
1915
2332
|
type: z.ZodLiteral<"click">;
|
|
@@ -1950,7 +2367,49 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1950
2367
|
x: z.ZodNumber;
|
|
1951
2368
|
y: z.ZodNumber;
|
|
1952
2369
|
}, z.core.$strip>>;
|
|
1953
|
-
}, z.core.$strip>], "type"
|
|
2370
|
+
}, z.core.$strip>], "type">>;
|
|
2371
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2372
|
+
type: z.ZodLiteral<"screenshot">;
|
|
2373
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2374
|
+
type: z.ZodLiteral<"click">;
|
|
2375
|
+
x: z.ZodNumber;
|
|
2376
|
+
y: z.ZodNumber;
|
|
2377
|
+
button: z.ZodEnum<{
|
|
2378
|
+
left: "left";
|
|
2379
|
+
right: "right";
|
|
2380
|
+
wheel: "wheel";
|
|
2381
|
+
back: "back";
|
|
2382
|
+
forward: "forward";
|
|
2383
|
+
}>;
|
|
2384
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2385
|
+
type: z.ZodLiteral<"double_click">;
|
|
2386
|
+
x: z.ZodNumber;
|
|
2387
|
+
y: z.ZodNumber;
|
|
2388
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2389
|
+
type: z.ZodLiteral<"scroll">;
|
|
2390
|
+
x: z.ZodNumber;
|
|
2391
|
+
y: z.ZodNumber;
|
|
2392
|
+
scroll_x: z.ZodNumber;
|
|
2393
|
+
scroll_y: z.ZodNumber;
|
|
2394
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2395
|
+
type: z.ZodLiteral<"type">;
|
|
2396
|
+
text: z.ZodString;
|
|
2397
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2398
|
+
type: z.ZodLiteral<"wait">;
|
|
2399
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2400
|
+
type: z.ZodLiteral<"move">;
|
|
2401
|
+
x: z.ZodNumber;
|
|
2402
|
+
y: z.ZodNumber;
|
|
2403
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2404
|
+
type: z.ZodLiteral<"keypress">;
|
|
2405
|
+
keys: z.ZodArray<z.ZodString>;
|
|
2406
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2407
|
+
type: z.ZodLiteral<"drag">;
|
|
2408
|
+
path: z.ZodArray<z.ZodObject<{
|
|
2409
|
+
x: z.ZodNumber;
|
|
2410
|
+
y: z.ZodNumber;
|
|
2411
|
+
}, z.core.$strip>>;
|
|
2412
|
+
}, z.core.$strip>], "type">>>;
|
|
1954
2413
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
1955
2414
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1956
2415
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -2049,6 +2508,15 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
2049
2508
|
}, z.core.$strip>>;
|
|
2050
2509
|
}, z.core.$strip>;
|
|
2051
2510
|
export type FinalOutputSource = 'error_handler' | 'turn_resolution';
|
|
2511
|
+
type ToolSearchRuntimeToolEntry<TContext = UnknownContext> = {
|
|
2512
|
+
order: number;
|
|
2513
|
+
tools: Tool<TContext>[];
|
|
2514
|
+
};
|
|
2515
|
+
type ToolSearchRuntimeToolState<TContext = UnknownContext> = {
|
|
2516
|
+
anonymousEntries: ToolSearchRuntimeToolEntry<TContext>[];
|
|
2517
|
+
keyedEntries: Map<string, ToolSearchRuntimeToolEntry<TContext>>;
|
|
2518
|
+
nextOrder: number;
|
|
2519
|
+
};
|
|
2052
2520
|
/**
|
|
2053
2521
|
* Serializable snapshot of an agent's run, including context, usage and trace.
|
|
2054
2522
|
* While this class has publicly writable properties (prefixed with `_`), they are not meant to be
|
|
@@ -2179,6 +2647,11 @@ export declare class RunState<TContext, TAgent extends Agent<any, any>> {
|
|
|
2179
2647
|
* Trace associated with this run if tracing is enabled.
|
|
2180
2648
|
*/
|
|
2181
2649
|
_trace: Trace | null;
|
|
2650
|
+
/**
|
|
2651
|
+
* Runtime-only tool_search-loaded tools, scoped by agent name and preserved across turns for
|
|
2652
|
+
* the lifetime of this in-memory run.
|
|
2653
|
+
*/
|
|
2654
|
+
_toolSearchRuntimeToolsByAgentName: Map<string, ToolSearchRuntimeToolState<TContext>>;
|
|
2182
2655
|
constructor(context: RunContext<TContext>, originalInput: string | AgentInputItem[], startingAgent: TAgent, maxTurns: number);
|
|
2183
2656
|
/**
|
|
2184
2657
|
* Updates server-managed conversation identifiers as a single operation.
|
|
@@ -2192,6 +2665,9 @@ export declare class RunState<TContext, TAgent extends Agent<any, any>> {
|
|
|
2192
2665
|
* Updates the agent span associated with the current run.
|
|
2193
2666
|
*/
|
|
2194
2667
|
setCurrentAgentSpan(span?: Span<AgentSpanData>): void;
|
|
2668
|
+
private getOrCreateToolSearchRuntimeToolState;
|
|
2669
|
+
recordToolSearchRuntimeTools(agent: Agent<any, any>, toolSearchOutput: protocol.ToolSearchOutputItem, tools: Tool<TContext>[]): void;
|
|
2670
|
+
getToolSearchRuntimeTools(agent: Agent<any, any>): Tool<TContext>[];
|
|
2195
2671
|
/**
|
|
2196
2672
|
* Switches the active agent handling the run.
|
|
2197
2673
|
*/
|