@opencode-ai/ai 0.0.0-beta-18219 → 0.0.0-beta-18269
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/cache-policy.js +1 -1
- package/dist/protocols/anthropic-messages.js +8 -4
- package/dist/protocols/open-responses.d.ts +231 -25
- package/dist/protocols/open-responses.js +98 -79
- package/dist/protocols/openai-chat.d.ts +1 -0
- package/dist/protocols/openai-chat.js +36 -17
- package/dist/protocols/openai-compatible-responses.d.ts +37 -3
- package/dist/protocols/openai-responses.d.ts +403 -50
- package/dist/protocols/openai-responses.js +30 -21
- package/dist/protocols/shared.d.ts +3 -4
- package/dist/protocols/shared.js +18 -5
- package/dist/protocols/utils/open-responses-options.d.ts +0 -1
- package/dist/protocols/utils/open-responses-options.js +0 -1
- package/dist/protocols/xai-responses.d.ts +52 -3
- package/dist/protocols/xai-responses.js +31 -1
- package/dist/provider-error.js +4 -2
- package/dist/providers/amazon-bedrock-mantle.d.ts +65 -3
- package/dist/providers/azure.d.ts +65 -3
- package/dist/providers/cerebras.d.ts +228 -0
- package/dist/providers/cerebras.js +35 -0
- package/dist/providers/deepinfra.d.ts +228 -0
- package/dist/providers/deepinfra.js +38 -0
- package/dist/providers/google-vertex-responses.d.ts +37 -3
- package/dist/providers/index.d.ts +3 -0
- package/dist/providers/index.js +3 -0
- package/dist/providers/openai-compatible-responses.d.ts +37 -3
- package/dist/providers/openai.d.ts +65 -3
- package/dist/providers/togetherai.d.ts +228 -0
- package/dist/providers/togetherai.js +35 -0
- package/dist/schema/options.d.ts +2 -0
- package/dist/schema/options.js +2 -0
- package/package.json +3 -3
package/dist/cache-policy.js
CHANGED
|
@@ -34,7 +34,7 @@ const resolve = (policy) => {
|
|
|
34
34
|
// Protocols whose wire format ignores inline cache markers (OpenAI's implicit
|
|
35
35
|
// prefix caching, Gemini's implicit + out-of-band CachedContent). Skip the
|
|
36
36
|
// whole policy pass for these — emitting hints would be harmless but pointless.
|
|
37
|
-
const RESPECTS_INLINE_HINTS = new Set(["anthropic-messages", "bedrock-converse", "openrouter"]);
|
|
37
|
+
const RESPECTS_INLINE_HINTS = new Set(["anthropic-messages", "google-vertex-messages", "bedrock-converse", "openrouter"]);
|
|
38
38
|
const makeHint = (ttlSeconds) => ttlSeconds !== undefined ? new CacheHint({ type: "ephemeral", ttlSeconds }) : new CacheHint({ type: "ephemeral" });
|
|
39
39
|
const markLastTool = (tools, hint, budget) => {
|
|
40
40
|
if (tools.length === 0)
|
|
@@ -612,9 +612,13 @@ const endsInServerToolUse = (message) => {
|
|
|
612
612
|
const last = message.content.at(-1);
|
|
613
613
|
return message.role === "assistant" && last?.type === "tool-call" && last.providerExecuted === true;
|
|
614
614
|
};
|
|
615
|
-
const canUseNativeSystemUpdate = (
|
|
616
|
-
const previous = messages[index - 1];
|
|
617
|
-
const next = messages[index + 1];
|
|
615
|
+
const canUseNativeSystemUpdate = (request, index) => {
|
|
616
|
+
const previous = request.messages[index - 1];
|
|
617
|
+
const next = request.messages[index + 1];
|
|
618
|
+
// Vertex currently rejects/404s for a system message after local tool results,
|
|
619
|
+
// so fold it into the user tool-result turn across continuations and history.
|
|
620
|
+
if (request.model.route.id === "google-vertex-messages" && previous?.role === "tool")
|
|
621
|
+
return false;
|
|
618
622
|
return (previous !== undefined &&
|
|
619
623
|
previous.role !== "system" &&
|
|
620
624
|
(previous.role === "user" || previous.role === "tool" || endsInServerToolUse(previous)) &&
|
|
@@ -650,7 +654,7 @@ const lowerMessages = Effect.fn("AnthropicMessages.lowerMessages")(function* (re
|
|
|
650
654
|
if (message.role === "system") {
|
|
651
655
|
if (splitsLocalToolResults(request.messages, index))
|
|
652
656
|
return yield* invalid("Anthropic Messages system updates cannot split a local tool call from its tool result");
|
|
653
|
-
if (supportsNativeSystemUpdates(request) && canUseNativeSystemUpdate(request
|
|
657
|
+
if (supportsNativeSystemUpdates(request) && canUseNativeSystemUpdate(request, index)) {
|
|
654
658
|
messages.push(yield* lowerNativeSystemUpdate(message, breakpoints));
|
|
655
659
|
continue;
|
|
656
660
|
}
|
|
@@ -19,6 +19,35 @@ declare const MediaInput: Schema.Union<readonly [Schema.Struct<{
|
|
|
19
19
|
export type MediaInput = Schema.Schema.Type<typeof MediaInput>;
|
|
20
20
|
export declare const MessagePhase: Schema.NullOr<Schema.Literals<readonly ["commentary", "final_answer"]>>;
|
|
21
21
|
type MessagePhase = Schema.Schema.Type<typeof MessagePhase>;
|
|
22
|
+
export declare const HostedToolItem: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
23
|
+
readonly type: Schema.tag<"web_search_call">;
|
|
24
|
+
readonly id: Schema.String;
|
|
25
|
+
readonly status: Schema.optional<Schema.String>;
|
|
26
|
+
readonly action: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
27
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
|
|
28
|
+
readonly type: Schema.tag<"file_search_call">;
|
|
29
|
+
readonly id: Schema.String;
|
|
30
|
+
readonly status: Schema.optional<Schema.String>;
|
|
31
|
+
readonly queries: Schema.optional<Schema.$Array<Schema.String>>;
|
|
32
|
+
readonly results: Schema.optional<Schema.NullOr<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>>;
|
|
33
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
|
|
34
|
+
readonly type: Schema.tag<"code_interpreter_call">;
|
|
35
|
+
readonly id: Schema.String;
|
|
36
|
+
readonly status: Schema.optional<Schema.String>;
|
|
37
|
+
readonly code: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
38
|
+
readonly container_id: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
39
|
+
readonly outputs: Schema.optional<Schema.NullOr<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>>;
|
|
40
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
|
|
41
|
+
readonly type: Schema.tag<"mcp_call">;
|
|
42
|
+
readonly id: Schema.String;
|
|
43
|
+
readonly status: Schema.optional<Schema.String>;
|
|
44
|
+
readonly server_label: Schema.optional<Schema.String>;
|
|
45
|
+
readonly name: Schema.optional<Schema.String>;
|
|
46
|
+
readonly arguments: Schema.optional<Schema.String>;
|
|
47
|
+
readonly output: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
48
|
+
readonly error: Schema.optional<Schema.Unknown>;
|
|
49
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>]>;
|
|
50
|
+
export type HostedToolItem = Schema.Schema.Type<typeof HostedToolItem>;
|
|
22
51
|
export declare const InputItem: Schema.Union<readonly [Schema.Struct<{
|
|
23
52
|
readonly role: Schema.tag<"system">;
|
|
24
53
|
readonly content: Schema.String;
|
|
@@ -56,9 +85,6 @@ export declare const InputItem: Schema.Union<readonly [Schema.Struct<{
|
|
|
56
85
|
readonly text: Schema.String;
|
|
57
86
|
}>>;
|
|
58
87
|
readonly encrypted_content: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
59
|
-
}>, Schema.Struct<{
|
|
60
|
-
readonly type: Schema.tag<"item_reference">;
|
|
61
|
-
readonly id: Schema.String;
|
|
62
88
|
}>, Schema.Struct<{
|
|
63
89
|
readonly type: Schema.tag<"function_call">;
|
|
64
90
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
@@ -83,9 +109,41 @@ export declare const InputItem: Schema.Union<readonly [Schema.Struct<{
|
|
|
83
109
|
readonly type: Schema.tag<"input_video">;
|
|
84
110
|
readonly video_url: Schema.String;
|
|
85
111
|
}>]>>]>;
|
|
86
|
-
}
|
|
112
|
+
}>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
113
|
+
readonly type: Schema.tag<"web_search_call">;
|
|
114
|
+
readonly id: Schema.String;
|
|
115
|
+
readonly status: Schema.optional<Schema.String>;
|
|
116
|
+
readonly action: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
117
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
|
|
118
|
+
readonly type: Schema.tag<"file_search_call">;
|
|
119
|
+
readonly id: Schema.String;
|
|
120
|
+
readonly status: Schema.optional<Schema.String>;
|
|
121
|
+
readonly queries: Schema.optional<Schema.$Array<Schema.String>>;
|
|
122
|
+
readonly results: Schema.optional<Schema.NullOr<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>>;
|
|
123
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
|
|
124
|
+
readonly type: Schema.tag<"code_interpreter_call">;
|
|
125
|
+
readonly id: Schema.String;
|
|
126
|
+
readonly status: Schema.optional<Schema.String>;
|
|
127
|
+
readonly code: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
128
|
+
readonly container_id: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
129
|
+
readonly outputs: Schema.optional<Schema.NullOr<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>>;
|
|
130
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
|
|
131
|
+
readonly type: Schema.tag<"mcp_call">;
|
|
132
|
+
readonly id: Schema.String;
|
|
133
|
+
readonly status: Schema.optional<Schema.String>;
|
|
134
|
+
readonly server_label: Schema.optional<Schema.String>;
|
|
135
|
+
readonly name: Schema.optional<Schema.String>;
|
|
136
|
+
readonly arguments: Schema.optional<Schema.String>;
|
|
137
|
+
readonly output: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
138
|
+
readonly error: Schema.optional<Schema.Unknown>;
|
|
139
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>]>]>;
|
|
87
140
|
type OpenResponsesInputItem = Schema.Schema.Type<typeof InputItem>;
|
|
88
|
-
type
|
|
141
|
+
export type ExtendedHostedToolItem = {
|
|
142
|
+
readonly type: string;
|
|
143
|
+
readonly id: string;
|
|
144
|
+
readonly [key: string]: unknown;
|
|
145
|
+
};
|
|
146
|
+
type LoweredInputItem = OpenResponsesInputItem | ExtendedHostedToolItem | {
|
|
89
147
|
readonly type: "message";
|
|
90
148
|
readonly id?: string;
|
|
91
149
|
readonly role: "assistant";
|
|
@@ -152,9 +210,6 @@ export declare const coreFields: {
|
|
|
152
210
|
readonly text: Schema.String;
|
|
153
211
|
}>>;
|
|
154
212
|
readonly encrypted_content: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
155
|
-
}>, Schema.Struct<{
|
|
156
|
-
readonly type: Schema.tag<"item_reference">;
|
|
157
|
-
readonly id: Schema.String;
|
|
158
213
|
}>, Schema.Struct<{
|
|
159
214
|
readonly type: Schema.tag<"function_call">;
|
|
160
215
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
@@ -179,7 +234,34 @@ export declare const coreFields: {
|
|
|
179
234
|
readonly type: Schema.tag<"input_video">;
|
|
180
235
|
readonly video_url: Schema.String;
|
|
181
236
|
}>]>>]>;
|
|
182
|
-
}
|
|
237
|
+
}>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
238
|
+
readonly type: Schema.tag<"web_search_call">;
|
|
239
|
+
readonly id: Schema.String;
|
|
240
|
+
readonly status: Schema.optional<Schema.String>;
|
|
241
|
+
readonly action: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
242
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
|
|
243
|
+
readonly type: Schema.tag<"file_search_call">;
|
|
244
|
+
readonly id: Schema.String;
|
|
245
|
+
readonly status: Schema.optional<Schema.String>;
|
|
246
|
+
readonly queries: Schema.optional<Schema.$Array<Schema.String>>;
|
|
247
|
+
readonly results: Schema.optional<Schema.NullOr<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>>;
|
|
248
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
|
|
249
|
+
readonly type: Schema.tag<"code_interpreter_call">;
|
|
250
|
+
readonly id: Schema.String;
|
|
251
|
+
readonly status: Schema.optional<Schema.String>;
|
|
252
|
+
readonly code: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
253
|
+
readonly container_id: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
254
|
+
readonly outputs: Schema.optional<Schema.NullOr<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>>;
|
|
255
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
|
|
256
|
+
readonly type: Schema.tag<"mcp_call">;
|
|
257
|
+
readonly id: Schema.String;
|
|
258
|
+
readonly status: Schema.optional<Schema.String>;
|
|
259
|
+
readonly server_label: Schema.optional<Schema.String>;
|
|
260
|
+
readonly name: Schema.optional<Schema.String>;
|
|
261
|
+
readonly arguments: Schema.optional<Schema.String>;
|
|
262
|
+
readonly output: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
263
|
+
readonly error: Schema.optional<Schema.Unknown>;
|
|
264
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>]>]>>;
|
|
183
265
|
instructions: Schema.optional<Schema.String>;
|
|
184
266
|
tools: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
185
267
|
readonly type: Schema.tag<"function">;
|
|
@@ -265,9 +347,6 @@ declare const OpenResponsesBody: Schema.Struct<{
|
|
|
265
347
|
readonly text: Schema.String;
|
|
266
348
|
}>>;
|
|
267
349
|
readonly encrypted_content: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
268
|
-
}>, Schema.Struct<{
|
|
269
|
-
readonly type: Schema.tag<"item_reference">;
|
|
270
|
-
readonly id: Schema.String;
|
|
271
350
|
}>, Schema.Struct<{
|
|
272
351
|
readonly type: Schema.tag<"function_call">;
|
|
273
352
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
@@ -292,7 +371,34 @@ declare const OpenResponsesBody: Schema.Struct<{
|
|
|
292
371
|
readonly type: Schema.tag<"input_video">;
|
|
293
372
|
readonly video_url: Schema.String;
|
|
294
373
|
}>]>>]>;
|
|
295
|
-
}
|
|
374
|
+
}>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
375
|
+
readonly type: Schema.tag<"web_search_call">;
|
|
376
|
+
readonly id: Schema.String;
|
|
377
|
+
readonly status: Schema.optional<Schema.String>;
|
|
378
|
+
readonly action: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
379
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
|
|
380
|
+
readonly type: Schema.tag<"file_search_call">;
|
|
381
|
+
readonly id: Schema.String;
|
|
382
|
+
readonly status: Schema.optional<Schema.String>;
|
|
383
|
+
readonly queries: Schema.optional<Schema.$Array<Schema.String>>;
|
|
384
|
+
readonly results: Schema.optional<Schema.NullOr<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>>;
|
|
385
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
|
|
386
|
+
readonly type: Schema.tag<"code_interpreter_call">;
|
|
387
|
+
readonly id: Schema.String;
|
|
388
|
+
readonly status: Schema.optional<Schema.String>;
|
|
389
|
+
readonly code: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
390
|
+
readonly container_id: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
391
|
+
readonly outputs: Schema.optional<Schema.NullOr<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>>;
|
|
392
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
|
|
393
|
+
readonly type: Schema.tag<"mcp_call">;
|
|
394
|
+
readonly id: Schema.String;
|
|
395
|
+
readonly status: Schema.optional<Schema.String>;
|
|
396
|
+
readonly server_label: Schema.optional<Schema.String>;
|
|
397
|
+
readonly name: Schema.optional<Schema.String>;
|
|
398
|
+
readonly arguments: Schema.optional<Schema.String>;
|
|
399
|
+
readonly output: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
400
|
+
readonly error: Schema.optional<Schema.Unknown>;
|
|
401
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>]>]>>;
|
|
296
402
|
readonly instructions: Schema.optional<Schema.String>;
|
|
297
403
|
readonly tools: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
298
404
|
readonly type: Schema.tag<"function">;
|
|
@@ -444,7 +550,6 @@ export declare const Event: Schema.StructWithRest<Schema.Struct<{
|
|
|
444
550
|
readonly headers: Schema.optional<Schema.Unknown>;
|
|
445
551
|
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
|
|
446
552
|
export type Event = Schema.Schema.Type<typeof Event>;
|
|
447
|
-
export type ItemKind = "message" | "reasoning" | "function-call" | "reference";
|
|
448
553
|
export interface Extension {
|
|
449
554
|
readonly id: string;
|
|
450
555
|
readonly name: string;
|
|
@@ -453,7 +558,7 @@ export interface Extension {
|
|
|
453
558
|
readonly media: ProviderShared.NormalizedMedia;
|
|
454
559
|
readonly request: LLMRequest;
|
|
455
560
|
}) => MediaInput | undefined;
|
|
456
|
-
readonly
|
|
561
|
+
readonly lowerHostedToolItem?: (item: unknown) => ExtendedHostedToolItem | undefined;
|
|
457
562
|
}
|
|
458
563
|
export interface ParserState {
|
|
459
564
|
readonly id: string;
|
|
@@ -466,7 +571,6 @@ export interface ParserState {
|
|
|
466
571
|
readonly messageItems: ReadonlySet<string>;
|
|
467
572
|
readonly messagePhases: Readonly<Record<string, MessagePhase | null>>;
|
|
468
573
|
readonly reasoningItems: Readonly<Record<string, ReasoningStreamItem>>;
|
|
469
|
-
readonly store: boolean | undefined;
|
|
470
574
|
}
|
|
471
575
|
type ReasoningSummaryStatus = "active" | "can-conclude" | "concluded";
|
|
472
576
|
interface ReasoningStreamItem {
|
|
@@ -545,6 +649,43 @@ export declare const fromRequestWithExtension: (request: LLMRequest, extension:
|
|
|
545
649
|
}, AIError, never>;
|
|
546
650
|
export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
|
|
547
651
|
readonly input: readonly ({
|
|
652
|
+
readonly [x: string]: unknown;
|
|
653
|
+
readonly id: string;
|
|
654
|
+
readonly type: "web_search_call";
|
|
655
|
+
readonly status?: string | undefined;
|
|
656
|
+
readonly action?: {
|
|
657
|
+
readonly [x: string]: unknown;
|
|
658
|
+
} | null | undefined;
|
|
659
|
+
} | {
|
|
660
|
+
readonly [x: string]: unknown;
|
|
661
|
+
readonly id: string;
|
|
662
|
+
readonly type: "file_search_call";
|
|
663
|
+
readonly status?: string | undefined;
|
|
664
|
+
readonly queries?: readonly string[] | undefined;
|
|
665
|
+
readonly results?: readonly {
|
|
666
|
+
readonly [x: string]: unknown;
|
|
667
|
+
}[] | null | undefined;
|
|
668
|
+
} | {
|
|
669
|
+
readonly [x: string]: unknown;
|
|
670
|
+
readonly id: string;
|
|
671
|
+
readonly type: "code_interpreter_call";
|
|
672
|
+
readonly status?: string | undefined;
|
|
673
|
+
readonly code?: string | null | undefined;
|
|
674
|
+
readonly container_id?: string | null | undefined;
|
|
675
|
+
readonly outputs?: readonly {
|
|
676
|
+
readonly [x: string]: unknown;
|
|
677
|
+
}[] | null | undefined;
|
|
678
|
+
} | {
|
|
679
|
+
readonly [x: string]: unknown;
|
|
680
|
+
readonly id: string;
|
|
681
|
+
readonly type: "mcp_call";
|
|
682
|
+
readonly status?: string | undefined;
|
|
683
|
+
readonly name?: string | undefined;
|
|
684
|
+
readonly output?: string | null | undefined;
|
|
685
|
+
readonly error?: unknown;
|
|
686
|
+
readonly arguments?: string | undefined;
|
|
687
|
+
readonly server_label?: string | undefined;
|
|
688
|
+
} | {
|
|
548
689
|
readonly type: "reasoning";
|
|
549
690
|
readonly summary: readonly {
|
|
550
691
|
readonly type: "summary_text";
|
|
@@ -552,9 +693,6 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
|
|
|
552
693
|
}[];
|
|
553
694
|
readonly id?: string | undefined;
|
|
554
695
|
readonly encrypted_content?: string | null | undefined;
|
|
555
|
-
} | {
|
|
556
|
-
readonly type: "item_reference";
|
|
557
|
-
readonly id: string;
|
|
558
696
|
} | {
|
|
559
697
|
readonly role: "system";
|
|
560
698
|
readonly content: string;
|
|
@@ -857,6 +995,43 @@ export declare const step: (state: ParserState, input: Event) => AIError | Effec
|
|
|
857
995
|
export declare const initial: (request: LLMRequest, extension?: Extension) => ParserState;
|
|
858
996
|
export declare const protocol: Protocol<{
|
|
859
997
|
readonly input: readonly ({
|
|
998
|
+
readonly [x: string]: unknown;
|
|
999
|
+
readonly id: string;
|
|
1000
|
+
readonly type: "web_search_call";
|
|
1001
|
+
readonly status?: string | undefined;
|
|
1002
|
+
readonly action?: {
|
|
1003
|
+
readonly [x: string]: unknown;
|
|
1004
|
+
} | null | undefined;
|
|
1005
|
+
} | {
|
|
1006
|
+
readonly [x: string]: unknown;
|
|
1007
|
+
readonly id: string;
|
|
1008
|
+
readonly type: "file_search_call";
|
|
1009
|
+
readonly status?: string | undefined;
|
|
1010
|
+
readonly queries?: readonly string[] | undefined;
|
|
1011
|
+
readonly results?: readonly {
|
|
1012
|
+
readonly [x: string]: unknown;
|
|
1013
|
+
}[] | null | undefined;
|
|
1014
|
+
} | {
|
|
1015
|
+
readonly [x: string]: unknown;
|
|
1016
|
+
readonly id: string;
|
|
1017
|
+
readonly type: "code_interpreter_call";
|
|
1018
|
+
readonly status?: string | undefined;
|
|
1019
|
+
readonly code?: string | null | undefined;
|
|
1020
|
+
readonly container_id?: string | null | undefined;
|
|
1021
|
+
readonly outputs?: readonly {
|
|
1022
|
+
readonly [x: string]: unknown;
|
|
1023
|
+
}[] | null | undefined;
|
|
1024
|
+
} | {
|
|
1025
|
+
readonly [x: string]: unknown;
|
|
1026
|
+
readonly id: string;
|
|
1027
|
+
readonly type: "mcp_call";
|
|
1028
|
+
readonly status?: string | undefined;
|
|
1029
|
+
readonly name?: string | undefined;
|
|
1030
|
+
readonly output?: string | null | undefined;
|
|
1031
|
+
readonly error?: unknown;
|
|
1032
|
+
readonly arguments?: string | undefined;
|
|
1033
|
+
readonly server_label?: string | undefined;
|
|
1034
|
+
} | {
|
|
860
1035
|
readonly type: "reasoning";
|
|
861
1036
|
readonly summary: readonly {
|
|
862
1037
|
readonly type: "summary_text";
|
|
@@ -864,9 +1039,6 @@ export declare const protocol: Protocol<{
|
|
|
864
1039
|
}[];
|
|
865
1040
|
readonly id?: string | undefined;
|
|
866
1041
|
readonly encrypted_content?: string | null | undefined;
|
|
867
|
-
} | {
|
|
868
|
-
readonly type: "item_reference";
|
|
869
|
-
readonly id: string;
|
|
870
1042
|
} | {
|
|
871
1043
|
readonly role: "system";
|
|
872
1044
|
readonly content: string;
|
|
@@ -1039,6 +1211,43 @@ export declare const protocol: Protocol<{
|
|
|
1039
1211
|
}, ParserState>;
|
|
1040
1212
|
export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
1041
1213
|
readonly input: readonly ({
|
|
1214
|
+
readonly [x: string]: unknown;
|
|
1215
|
+
readonly id: string;
|
|
1216
|
+
readonly type: "web_search_call";
|
|
1217
|
+
readonly status?: string | undefined;
|
|
1218
|
+
readonly action?: {
|
|
1219
|
+
readonly [x: string]: unknown;
|
|
1220
|
+
} | null | undefined;
|
|
1221
|
+
} | {
|
|
1222
|
+
readonly [x: string]: unknown;
|
|
1223
|
+
readonly id: string;
|
|
1224
|
+
readonly type: "file_search_call";
|
|
1225
|
+
readonly status?: string | undefined;
|
|
1226
|
+
readonly queries?: readonly string[] | undefined;
|
|
1227
|
+
readonly results?: readonly {
|
|
1228
|
+
readonly [x: string]: unknown;
|
|
1229
|
+
}[] | null | undefined;
|
|
1230
|
+
} | {
|
|
1231
|
+
readonly [x: string]: unknown;
|
|
1232
|
+
readonly id: string;
|
|
1233
|
+
readonly type: "code_interpreter_call";
|
|
1234
|
+
readonly status?: string | undefined;
|
|
1235
|
+
readonly code?: string | null | undefined;
|
|
1236
|
+
readonly container_id?: string | null | undefined;
|
|
1237
|
+
readonly outputs?: readonly {
|
|
1238
|
+
readonly [x: string]: unknown;
|
|
1239
|
+
}[] | null | undefined;
|
|
1240
|
+
} | {
|
|
1241
|
+
readonly [x: string]: unknown;
|
|
1242
|
+
readonly id: string;
|
|
1243
|
+
readonly type: "mcp_call";
|
|
1244
|
+
readonly status?: string | undefined;
|
|
1245
|
+
readonly name?: string | undefined;
|
|
1246
|
+
readonly output?: string | null | undefined;
|
|
1247
|
+
readonly error?: unknown;
|
|
1248
|
+
readonly arguments?: string | undefined;
|
|
1249
|
+
readonly server_label?: string | undefined;
|
|
1250
|
+
} | {
|
|
1042
1251
|
readonly type: "reasoning";
|
|
1043
1252
|
readonly summary: readonly {
|
|
1044
1253
|
readonly type: "summary_text";
|
|
@@ -1046,9 +1255,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
1046
1255
|
}[];
|
|
1047
1256
|
readonly id?: string | undefined;
|
|
1048
1257
|
readonly encrypted_content?: string | null | undefined;
|
|
1049
|
-
} | {
|
|
1050
|
-
readonly type: "item_reference";
|
|
1051
|
-
readonly id: string;
|
|
1052
1258
|
} | {
|
|
1053
1259
|
readonly role: "system";
|
|
1054
1260
|
readonly content: string;
|