@opencode-ai/ai 0.0.0-dev-17675 → 0.0.0-dev-17681
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/protocols/anthropic-messages.d.ts +22 -22
- package/dist/protocols/gemini.d.ts +3 -3
- package/dist/protocols/open-responses.d.ts +33 -33
- package/dist/protocols/openai-chat.d.ts +15 -15
- package/dist/protocols/openai-compatible-chat.d.ts +3 -3
- package/dist/protocols/openai-compatible-responses.d.ts +4 -4
- package/dist/protocols/openai-responses.d.ts +28 -28
- package/dist/protocols/utils/open-responses-options.d.ts +10 -5
- package/dist/protocols/utils/open-responses-options.js +4 -2
- package/dist/protocols/utils/openai-options.d.ts +6 -4
- package/dist/protocols/utils/openai-options.js +3 -3
- package/dist/providers/amazon-bedrock-mantle.d.ts +8 -8
- package/dist/providers/anthropic-compatible.d.ts +9 -9
- package/dist/providers/anthropic.d.ts +9 -9
- package/dist/providers/azure.d.ts +8 -8
- package/dist/providers/cloudflare.d.ts +9 -9
- package/dist/providers/google-vertex-chat.d.ts +3 -3
- package/dist/providers/google-vertex-messages.d.ts +9 -9
- package/dist/providers/google-vertex-responses.d.ts +4 -4
- package/dist/providers/google-vertex.d.ts +1 -1
- package/dist/providers/google.d.ts +1 -1
- package/dist/providers/openai-compatible-responses.d.ts +4 -4
- package/dist/providers/openai-compatible.d.ts +3 -3
- package/dist/providers/openai.d.ts +8 -8
- package/dist/providers/openrouter.d.ts +10 -10
- package/dist/providers/xai.d.ts +8 -8
- package/dist/schema/errors.js +2 -1
- package/dist/schema/events.d.ts +5 -3
- package/dist/schema/events.js +5 -2
- package/dist/schema/ids.d.ts +0 -13
- package/dist/schema/ids.js +0 -9
- package/dist/schema/messages.d.ts +4 -0
- package/dist/schema/messages.js +5 -2
- package/dist/schema/options.d.ts +2 -0
- package/dist/schema/options.js +2 -1
- package/package.json +3 -3
|
@@ -346,14 +346,6 @@ export declare const protocol: Protocol<{
|
|
|
346
346
|
}[];
|
|
347
347
|
})[];
|
|
348
348
|
readonly stream: true;
|
|
349
|
-
readonly system?: readonly {
|
|
350
|
-
readonly type: "text";
|
|
351
|
-
readonly text: string;
|
|
352
|
-
readonly cache_control?: {
|
|
353
|
-
readonly type: "ephemeral";
|
|
354
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
355
|
-
} | undefined;
|
|
356
|
-
}[] | undefined;
|
|
357
349
|
readonly tools?: readonly {
|
|
358
350
|
readonly description: string;
|
|
359
351
|
readonly name: string;
|
|
@@ -365,6 +357,14 @@ export declare const protocol: Protocol<{
|
|
|
365
357
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
366
358
|
} | undefined;
|
|
367
359
|
}[] | undefined;
|
|
360
|
+
readonly system?: readonly {
|
|
361
|
+
readonly type: "text";
|
|
362
|
+
readonly text: string;
|
|
363
|
+
readonly cache_control?: {
|
|
364
|
+
readonly type: "ephemeral";
|
|
365
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
366
|
+
} | undefined;
|
|
367
|
+
}[] | undefined;
|
|
368
368
|
readonly temperature?: number | undefined;
|
|
369
369
|
readonly thinking?: {
|
|
370
370
|
readonly type: "enabled";
|
|
@@ -376,7 +376,7 @@ export declare const protocol: Protocol<{
|
|
|
376
376
|
readonly type: "disabled";
|
|
377
377
|
} | undefined;
|
|
378
378
|
readonly tool_choice?: {
|
|
379
|
-
readonly type: "
|
|
379
|
+
readonly type: "auto" | "none" | "any";
|
|
380
380
|
} | {
|
|
381
381
|
readonly type: "tool";
|
|
382
382
|
readonly name: string;
|
|
@@ -389,10 +389,6 @@ export declare const protocol: Protocol<{
|
|
|
389
389
|
} | undefined;
|
|
390
390
|
}, string, {
|
|
391
391
|
readonly type: string;
|
|
392
|
-
readonly error?: {
|
|
393
|
-
readonly type?: string | undefined;
|
|
394
|
-
readonly message?: string | undefined;
|
|
395
|
-
} | undefined;
|
|
396
392
|
readonly message?: {
|
|
397
393
|
readonly usage?: {
|
|
398
394
|
readonly [x: string]: unknown;
|
|
@@ -410,6 +406,10 @@ export declare const protocol: Protocol<{
|
|
|
410
406
|
} | null | undefined;
|
|
411
407
|
} | undefined;
|
|
412
408
|
} | undefined;
|
|
409
|
+
readonly error?: {
|
|
410
|
+
readonly type?: string | undefined;
|
|
411
|
+
readonly message?: string | undefined;
|
|
412
|
+
} | undefined;
|
|
413
413
|
readonly delta?: {
|
|
414
414
|
readonly type?: string | undefined;
|
|
415
415
|
readonly text?: string | undefined;
|
|
@@ -588,14 +588,6 @@ export declare const route: Route<{
|
|
|
588
588
|
}[];
|
|
589
589
|
})[];
|
|
590
590
|
readonly stream: true;
|
|
591
|
-
readonly system?: readonly {
|
|
592
|
-
readonly type: "text";
|
|
593
|
-
readonly text: string;
|
|
594
|
-
readonly cache_control?: {
|
|
595
|
-
readonly type: "ephemeral";
|
|
596
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
597
|
-
} | undefined;
|
|
598
|
-
}[] | undefined;
|
|
599
591
|
readonly tools?: readonly {
|
|
600
592
|
readonly description: string;
|
|
601
593
|
readonly name: string;
|
|
@@ -607,6 +599,14 @@ export declare const route: Route<{
|
|
|
607
599
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
608
600
|
} | undefined;
|
|
609
601
|
}[] | undefined;
|
|
602
|
+
readonly system?: readonly {
|
|
603
|
+
readonly type: "text";
|
|
604
|
+
readonly text: string;
|
|
605
|
+
readonly cache_control?: {
|
|
606
|
+
readonly type: "ephemeral";
|
|
607
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
608
|
+
} | undefined;
|
|
609
|
+
}[] | undefined;
|
|
610
610
|
readonly temperature?: number | undefined;
|
|
611
611
|
readonly thinking?: {
|
|
612
612
|
readonly type: "enabled";
|
|
@@ -618,7 +618,7 @@ export declare const route: Route<{
|
|
|
618
618
|
readonly type: "disabled";
|
|
619
619
|
} | undefined;
|
|
620
620
|
readonly tool_choice?: {
|
|
621
|
-
readonly type: "
|
|
621
|
+
readonly type: "auto" | "none" | "any";
|
|
622
622
|
} | {
|
|
623
623
|
readonly type: "tool";
|
|
624
624
|
readonly name: string;
|
|
@@ -103,7 +103,7 @@ export type GeminiBody = Schema.Schema.Type<typeof GeminiBody>;
|
|
|
103
103
|
*/
|
|
104
104
|
export declare const protocol: Protocol<{
|
|
105
105
|
readonly contents: readonly {
|
|
106
|
-
readonly role: "
|
|
106
|
+
readonly role: "model" | "user";
|
|
107
107
|
readonly parts: readonly ({
|
|
108
108
|
readonly inlineData: {
|
|
109
109
|
readonly mimeType: string;
|
|
@@ -181,7 +181,7 @@ export declare const protocol: Protocol<{
|
|
|
181
181
|
}, string, {
|
|
182
182
|
readonly candidates?: readonly {
|
|
183
183
|
readonly content?: {
|
|
184
|
-
readonly role: "
|
|
184
|
+
readonly role: "model" | "user";
|
|
185
185
|
readonly parts: readonly ({
|
|
186
186
|
readonly inlineData: {
|
|
187
187
|
readonly mimeType: string;
|
|
@@ -234,7 +234,7 @@ export declare const protocol: Protocol<{
|
|
|
234
234
|
}>;
|
|
235
235
|
export declare const route: Route<{
|
|
236
236
|
readonly contents: readonly {
|
|
237
|
-
readonly role: "
|
|
237
|
+
readonly role: "model" | "user";
|
|
238
238
|
readonly parts: readonly ({
|
|
239
239
|
readonly inlineData: {
|
|
240
240
|
readonly mimeType: string;
|
|
@@ -191,11 +191,11 @@ export declare const coreFields: {
|
|
|
191
191
|
prompt_cache_key: Schema.optional<Schema.String>;
|
|
192
192
|
include: Schema.optional<Schema.$Array<Schema.declare<OpenResponsesOptions.ResponseIncludable, OpenResponsesOptions.ResponseIncludable>>>;
|
|
193
193
|
reasoning: Schema.optional<Schema.Struct<{
|
|
194
|
-
readonly effort: Schema.optional<Schema.
|
|
194
|
+
readonly effort: Schema.optional<Schema.declare<OpenResponsesOptions.ReasoningEffort, OpenResponsesOptions.ReasoningEffort>>;
|
|
195
195
|
readonly summary: Schema.optional<Schema.Literals<readonly ["auto", "concise", "detailed"]>>;
|
|
196
196
|
}>>;
|
|
197
197
|
text: Schema.optional<Schema.Struct<{
|
|
198
|
-
readonly verbosity: Schema.optional<Schema.
|
|
198
|
+
readonly verbosity: Schema.optional<Schema.declare<OpenResponsesOptions.TextVerbosity, OpenResponsesOptions.TextVerbosity>>;
|
|
199
199
|
}>>;
|
|
200
200
|
max_output_tokens: Schema.optional<Schema.Number>;
|
|
201
201
|
max_tool_calls: Schema.optional<Schema.Int>;
|
|
@@ -290,11 +290,11 @@ declare const OpenResponsesBody: Schema.Struct<{
|
|
|
290
290
|
readonly prompt_cache_key: Schema.optional<Schema.String>;
|
|
291
291
|
readonly include: Schema.optional<Schema.$Array<Schema.declare<OpenResponsesOptions.ResponseIncludable, OpenResponsesOptions.ResponseIncludable>>>;
|
|
292
292
|
readonly reasoning: Schema.optional<Schema.Struct<{
|
|
293
|
-
readonly effort: Schema.optional<Schema.
|
|
293
|
+
readonly effort: Schema.optional<Schema.declare<OpenResponsesOptions.ReasoningEffort, OpenResponsesOptions.ReasoningEffort>>;
|
|
294
294
|
readonly summary: Schema.optional<Schema.Literals<readonly ["auto", "concise", "detailed"]>>;
|
|
295
295
|
}>>;
|
|
296
296
|
readonly text: Schema.optional<Schema.Struct<{
|
|
297
|
-
readonly verbosity: Schema.optional<Schema.
|
|
297
|
+
readonly verbosity: Schema.optional<Schema.declare<OpenResponsesOptions.TextVerbosity, OpenResponsesOptions.TextVerbosity>>;
|
|
298
298
|
}>>;
|
|
299
299
|
readonly max_output_tokens: Schema.optional<Schema.Number>;
|
|
300
300
|
readonly max_tool_calls: Schema.optional<Schema.Int>;
|
|
@@ -330,18 +330,18 @@ export declare const WebSocketErrorEvent: Schema.StructWithRest<Schema.Struct<{
|
|
|
330
330
|
export declare const decodeKnownErrorEvent: (event: Event) => Effect.Effect<{
|
|
331
331
|
readonly [x: string]: unknown;
|
|
332
332
|
readonly type: "error";
|
|
333
|
-
readonly error?: {
|
|
334
|
-
readonly type?: string | null | undefined;
|
|
335
|
-
readonly code?: string | null | undefined;
|
|
336
|
-
readonly message?: string | null | undefined;
|
|
337
|
-
readonly param?: string | null | undefined;
|
|
338
|
-
} | null | undefined;
|
|
339
333
|
readonly status?: number | undefined;
|
|
340
334
|
readonly code?: string | null | undefined;
|
|
341
335
|
readonly message?: string | undefined;
|
|
342
336
|
readonly headers?: {
|
|
343
337
|
readonly [x: string]: string | number | boolean;
|
|
344
338
|
} | undefined;
|
|
339
|
+
readonly error?: {
|
|
340
|
+
readonly type?: string | null | undefined;
|
|
341
|
+
readonly code?: string | null | undefined;
|
|
342
|
+
readonly message?: string | null | undefined;
|
|
343
|
+
readonly param?: string | null | undefined;
|
|
344
|
+
} | null | undefined;
|
|
345
345
|
readonly param?: string | null | undefined;
|
|
346
346
|
readonly status_code?: number | undefined;
|
|
347
347
|
}, Schema.SchemaError, never>;
|
|
@@ -437,7 +437,7 @@ export declare const lowerTool: (protocolName: string, tool: ToolDefinition, inp
|
|
|
437
437
|
};
|
|
438
438
|
strict: boolean;
|
|
439
439
|
}, AIError, never>;
|
|
440
|
-
export declare const lowerToolChoice: (protocolName: string, toolChoice: NonNullable<LLMRequest["toolChoice"]>) => Effect.Effect<"required" | "
|
|
440
|
+
export declare const lowerToolChoice: (protocolName: string, toolChoice: NonNullable<LLMRequest["toolChoice"]>) => Effect.Effect<"required" | "auto" | "none" | {
|
|
441
441
|
type: "function";
|
|
442
442
|
name: string;
|
|
443
443
|
}, AIError, never>;
|
|
@@ -447,10 +447,10 @@ export declare const fromRequestWithExtension: (request: LLMRequest, extension:
|
|
|
447
447
|
max_tool_calls?: number | undefined;
|
|
448
448
|
service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
|
|
449
449
|
text?: {
|
|
450
|
-
verbosity:
|
|
450
|
+
verbosity: OpenResponsesOptions.TextVerbosity;
|
|
451
451
|
} | undefined;
|
|
452
452
|
reasoning?: {
|
|
453
|
-
effort:
|
|
453
|
+
effort: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
454
454
|
summary: "auto" | "concise" | "detailed" | undefined;
|
|
455
455
|
} | undefined;
|
|
456
456
|
include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
|
|
@@ -468,9 +468,9 @@ export declare const fromRequestWithExtension: (request: LLMRequest, extension:
|
|
|
468
468
|
};
|
|
469
469
|
strict: boolean;
|
|
470
470
|
}[] | undefined;
|
|
471
|
-
tool_choice: "required" | "
|
|
471
|
+
tool_choice: "required" | "auto" | "none" | {
|
|
472
472
|
type: "allowed_tools";
|
|
473
|
-
mode: "required" | "
|
|
473
|
+
mode: "required" | "auto" | "none";
|
|
474
474
|
tools: {
|
|
475
475
|
type: "function";
|
|
476
476
|
name: string;
|
|
@@ -549,7 +549,7 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
|
|
|
549
549
|
readonly instructions?: string | undefined;
|
|
550
550
|
readonly reasoning?: {
|
|
551
551
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
552
|
-
readonly effort?:
|
|
552
|
+
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
553
553
|
} | undefined;
|
|
554
554
|
readonly tools?: readonly {
|
|
555
555
|
readonly type: "function";
|
|
@@ -561,15 +561,15 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
|
|
|
561
561
|
readonly strict?: boolean | undefined;
|
|
562
562
|
}[] | undefined;
|
|
563
563
|
readonly text?: {
|
|
564
|
-
readonly verbosity?:
|
|
564
|
+
readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
|
|
565
565
|
} | undefined;
|
|
566
566
|
readonly temperature?: number | undefined;
|
|
567
|
-
readonly tool_choice?: "required" | "
|
|
567
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
568
568
|
readonly type: "function";
|
|
569
569
|
readonly name: string;
|
|
570
570
|
} | {
|
|
571
571
|
readonly type: "allowed_tools";
|
|
572
|
-
readonly mode: "required" | "
|
|
572
|
+
readonly mode: "required" | "auto" | "none";
|
|
573
573
|
readonly tools: readonly {
|
|
574
574
|
readonly type: "function";
|
|
575
575
|
readonly name: string;
|
|
@@ -843,7 +843,7 @@ export declare const protocol: Protocol<{
|
|
|
843
843
|
readonly instructions?: string | undefined;
|
|
844
844
|
readonly reasoning?: {
|
|
845
845
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
846
|
-
readonly effort?:
|
|
846
|
+
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
847
847
|
} | undefined;
|
|
848
848
|
readonly tools?: readonly {
|
|
849
849
|
readonly type: "function";
|
|
@@ -855,15 +855,15 @@ export declare const protocol: Protocol<{
|
|
|
855
855
|
readonly strict?: boolean | undefined;
|
|
856
856
|
}[] | undefined;
|
|
857
857
|
readonly text?: {
|
|
858
|
-
readonly verbosity?:
|
|
858
|
+
readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
|
|
859
859
|
} | undefined;
|
|
860
860
|
readonly temperature?: number | undefined;
|
|
861
|
-
readonly tool_choice?: "required" | "
|
|
861
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
862
862
|
readonly type: "function";
|
|
863
863
|
readonly name: string;
|
|
864
864
|
} | {
|
|
865
865
|
readonly type: "allowed_tools";
|
|
866
|
-
readonly mode: "required" | "
|
|
866
|
+
readonly mode: "required" | "auto" | "none";
|
|
867
867
|
readonly tools: readonly {
|
|
868
868
|
readonly type: "function";
|
|
869
869
|
readonly name: string;
|
|
@@ -881,17 +881,17 @@ export declare const protocol: Protocol<{
|
|
|
881
881
|
}, string, {
|
|
882
882
|
readonly [x: string]: unknown;
|
|
883
883
|
readonly type: string;
|
|
884
|
+
readonly status?: unknown;
|
|
885
|
+
readonly code?: string | null | undefined;
|
|
886
|
+
readonly message?: string | undefined;
|
|
887
|
+
readonly headers?: unknown;
|
|
888
|
+
readonly text?: string | undefined;
|
|
884
889
|
readonly error?: {
|
|
885
890
|
readonly type?: string | null | undefined;
|
|
886
891
|
readonly code?: string | null | undefined;
|
|
887
892
|
readonly message?: string | null | undefined;
|
|
888
893
|
readonly param?: string | null | undefined;
|
|
889
894
|
} | null | undefined;
|
|
890
|
-
readonly status?: unknown;
|
|
891
|
-
readonly code?: string | null | undefined;
|
|
892
|
-
readonly message?: string | undefined;
|
|
893
|
-
readonly headers?: unknown;
|
|
894
|
-
readonly text?: string | undefined;
|
|
895
895
|
readonly item?: {
|
|
896
896
|
readonly [x: string]: unknown;
|
|
897
897
|
readonly type: string;
|
|
@@ -904,13 +904,13 @@ export declare const protocol: Protocol<{
|
|
|
904
904
|
readonly delta?: string | undefined;
|
|
905
905
|
readonly response?: {
|
|
906
906
|
readonly [x: string]: unknown;
|
|
907
|
+
readonly id?: string | undefined;
|
|
907
908
|
readonly error?: {
|
|
908
909
|
readonly type?: string | null | undefined;
|
|
909
910
|
readonly code?: string | null | undefined;
|
|
910
911
|
readonly message?: string | null | undefined;
|
|
911
912
|
readonly param?: string | null | undefined;
|
|
912
913
|
} | null | undefined;
|
|
913
|
-
readonly id?: string | undefined;
|
|
914
914
|
readonly usage?: {
|
|
915
915
|
readonly input_tokens?: number | undefined;
|
|
916
916
|
readonly output_tokens?: number | undefined;
|
|
@@ -998,7 +998,7 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
998
998
|
readonly instructions?: string | undefined;
|
|
999
999
|
readonly reasoning?: {
|
|
1000
1000
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
1001
|
-
readonly effort?:
|
|
1001
|
+
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
1002
1002
|
} | undefined;
|
|
1003
1003
|
readonly tools?: readonly {
|
|
1004
1004
|
readonly type: "function";
|
|
@@ -1010,15 +1010,15 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
1010
1010
|
readonly strict?: boolean | undefined;
|
|
1011
1011
|
}[] | undefined;
|
|
1012
1012
|
readonly text?: {
|
|
1013
|
-
readonly verbosity?:
|
|
1013
|
+
readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
|
|
1014
1014
|
} | undefined;
|
|
1015
1015
|
readonly temperature?: number | undefined;
|
|
1016
|
-
readonly tool_choice?: "required" | "
|
|
1016
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
1017
1017
|
readonly type: "function";
|
|
1018
1018
|
readonly name: string;
|
|
1019
1019
|
} | {
|
|
1020
1020
|
readonly type: "allowed_tools";
|
|
1021
|
-
readonly mode: "required" | "
|
|
1021
|
+
readonly mode: "required" | "auto" | "none";
|
|
1022
1022
|
readonly tools: readonly {
|
|
1023
1023
|
readonly type: "function";
|
|
1024
1024
|
readonly name: string;
|
|
@@ -95,7 +95,7 @@ export declare const bodyFields: {
|
|
|
95
95
|
}>>;
|
|
96
96
|
store: Schema.optional<Schema.Boolean>;
|
|
97
97
|
prompt_cache_key: Schema.optional<Schema.String>;
|
|
98
|
-
reasoning_effort: Schema.optional<Schema.
|
|
98
|
+
reasoning_effort: Schema.optional<Schema.declare<import("./utils/open-responses-options.js").ReasoningEffort, import("./utils/open-responses-options.js").ReasoningEffort>>;
|
|
99
99
|
max_completion_tokens: Schema.optional<Schema.Number>;
|
|
100
100
|
max_tokens: Schema.optional<Schema.Number>;
|
|
101
101
|
temperature: Schema.optional<Schema.Number>;
|
|
@@ -189,7 +189,7 @@ declare const OpenAIChatBody: Schema.Struct<{
|
|
|
189
189
|
}>>;
|
|
190
190
|
store: Schema.optional<Schema.Boolean>;
|
|
191
191
|
prompt_cache_key: Schema.optional<Schema.String>;
|
|
192
|
-
reasoning_effort: Schema.optional<Schema.
|
|
192
|
+
reasoning_effort: Schema.optional<Schema.declare<import("./utils/open-responses-options.js").ReasoningEffort, import("./utils/open-responses-options.js").ReasoningEffort>>;
|
|
193
193
|
max_completion_tokens: Schema.optional<Schema.Number>;
|
|
194
194
|
max_tokens: Schema.optional<Schema.Number>;
|
|
195
195
|
temperature: Schema.optional<Schema.Number>;
|
|
@@ -263,7 +263,7 @@ interface LoweringOptions {
|
|
|
263
263
|
readonly cacheControl?: (cache: CacheHint | undefined) => Schema.Schema.Type<typeof OpenAIChatCacheControl> | undefined;
|
|
264
264
|
}
|
|
265
265
|
export declare const fromRequest: (request: LLMRequest, options?: LoweringOptions | undefined) => Effect.Effect<{
|
|
266
|
-
reasoning_effort?:
|
|
266
|
+
reasoning_effort?: import("./utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
267
267
|
prompt_cache_key?: string | undefined;
|
|
268
268
|
store?: boolean | undefined;
|
|
269
269
|
temperature: number | undefined;
|
|
@@ -347,7 +347,7 @@ export declare const fromRequest: (request: LLMRequest, options?: LoweringOption
|
|
|
347
347
|
readonly ttl?: string | undefined;
|
|
348
348
|
} | undefined;
|
|
349
349
|
}[] | undefined;
|
|
350
|
-
tool_choice: "required" | "
|
|
350
|
+
tool_choice: "required" | "auto" | "none" | {
|
|
351
351
|
type: "function";
|
|
352
352
|
function: {
|
|
353
353
|
name: string;
|
|
@@ -358,7 +358,7 @@ export declare const fromRequest: (request: LLMRequest, options?: LoweringOption
|
|
|
358
358
|
include_usage: boolean;
|
|
359
359
|
};
|
|
360
360
|
} | {
|
|
361
|
-
reasoning_effort?:
|
|
361
|
+
reasoning_effort?: import("./utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
362
362
|
prompt_cache_key?: string | undefined;
|
|
363
363
|
store?: boolean | undefined;
|
|
364
364
|
temperature: number | undefined;
|
|
@@ -442,7 +442,7 @@ export declare const fromRequest: (request: LLMRequest, options?: LoweringOption
|
|
|
442
442
|
readonly ttl?: string | undefined;
|
|
443
443
|
} | undefined;
|
|
444
444
|
}[] | undefined;
|
|
445
|
-
tool_choice: "required" | "
|
|
445
|
+
tool_choice: "required" | "auto" | "none" | {
|
|
446
446
|
type: "function";
|
|
447
447
|
function: {
|
|
448
448
|
name: string;
|
|
@@ -521,7 +521,6 @@ export declare const protocol: Protocol<{
|
|
|
521
521
|
} | undefined;
|
|
522
522
|
})[];
|
|
523
523
|
readonly stream: true;
|
|
524
|
-
readonly stop?: readonly string[] | undefined;
|
|
525
524
|
readonly max_completion_tokens?: number | undefined;
|
|
526
525
|
readonly max_tokens?: number | undefined;
|
|
527
526
|
readonly tools?: readonly {
|
|
@@ -538,9 +537,10 @@ export declare const protocol: Protocol<{
|
|
|
538
537
|
readonly ttl?: string | undefined;
|
|
539
538
|
} | undefined;
|
|
540
539
|
}[] | undefined;
|
|
540
|
+
readonly stop?: readonly string[] | undefined;
|
|
541
541
|
readonly temperature?: number | undefined;
|
|
542
542
|
readonly seed?: number | undefined;
|
|
543
|
-
readonly tool_choice?: "required" | "
|
|
543
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
544
544
|
readonly type: "function";
|
|
545
545
|
readonly function: {
|
|
546
546
|
readonly name: string;
|
|
@@ -552,7 +552,7 @@ export declare const protocol: Protocol<{
|
|
|
552
552
|
readonly include_usage: boolean;
|
|
553
553
|
} | undefined;
|
|
554
554
|
readonly prompt_cache_key?: string | undefined;
|
|
555
|
-
readonly reasoning_effort?:
|
|
555
|
+
readonly reasoning_effort?: import("./utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
556
556
|
readonly frequency_penalty?: number | undefined;
|
|
557
557
|
readonly presence_penalty?: number | undefined;
|
|
558
558
|
}, string, {
|
|
@@ -660,7 +660,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
660
660
|
} | undefined;
|
|
661
661
|
})[];
|
|
662
662
|
readonly stream: true;
|
|
663
|
-
readonly stop?: readonly string[] | undefined;
|
|
664
663
|
readonly max_completion_tokens?: number | undefined;
|
|
665
664
|
readonly max_tokens?: number | undefined;
|
|
666
665
|
readonly tools?: readonly {
|
|
@@ -677,9 +676,10 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
677
676
|
readonly ttl?: string | undefined;
|
|
678
677
|
} | undefined;
|
|
679
678
|
}[] | undefined;
|
|
679
|
+
readonly stop?: readonly string[] | undefined;
|
|
680
680
|
readonly temperature?: number | undefined;
|
|
681
681
|
readonly seed?: number | undefined;
|
|
682
|
-
readonly tool_choice?: "required" | "
|
|
682
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
683
683
|
readonly type: "function";
|
|
684
684
|
readonly function: {
|
|
685
685
|
readonly name: string;
|
|
@@ -691,7 +691,7 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
691
691
|
readonly include_usage: boolean;
|
|
692
692
|
} | undefined;
|
|
693
693
|
readonly prompt_cache_key?: string | undefined;
|
|
694
|
-
readonly reasoning_effort?:
|
|
694
|
+
readonly reasoning_effort?: import("./utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
695
695
|
readonly frequency_penalty?: number | undefined;
|
|
696
696
|
readonly presence_penalty?: number | undefined;
|
|
697
697
|
}, string>;
|
|
@@ -757,7 +757,6 @@ export declare const route: Route<{
|
|
|
757
757
|
} | undefined;
|
|
758
758
|
})[];
|
|
759
759
|
readonly stream: true;
|
|
760
|
-
readonly stop?: readonly string[] | undefined;
|
|
761
760
|
readonly max_completion_tokens?: number | undefined;
|
|
762
761
|
readonly max_tokens?: number | undefined;
|
|
763
762
|
readonly tools?: readonly {
|
|
@@ -774,9 +773,10 @@ export declare const route: Route<{
|
|
|
774
773
|
readonly ttl?: string | undefined;
|
|
775
774
|
} | undefined;
|
|
776
775
|
}[] | undefined;
|
|
776
|
+
readonly stop?: readonly string[] | undefined;
|
|
777
777
|
readonly temperature?: number | undefined;
|
|
778
778
|
readonly seed?: number | undefined;
|
|
779
|
-
readonly tool_choice?: "required" | "
|
|
779
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
780
780
|
readonly type: "function";
|
|
781
781
|
readonly function: {
|
|
782
782
|
readonly name: string;
|
|
@@ -788,7 +788,7 @@ export declare const route: Route<{
|
|
|
788
788
|
readonly include_usage: boolean;
|
|
789
789
|
} | undefined;
|
|
790
790
|
readonly prompt_cache_key?: string | undefined;
|
|
791
|
-
readonly reasoning_effort?:
|
|
791
|
+
readonly reasoning_effort?: import("./utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
792
792
|
readonly frequency_penalty?: number | undefined;
|
|
793
793
|
readonly presence_penalty?: number | undefined;
|
|
794
794
|
}, HttpTransport.HttpPrepared<string>>;
|
|
@@ -69,7 +69,6 @@ export declare const route: Route<{
|
|
|
69
69
|
} | undefined;
|
|
70
70
|
})[];
|
|
71
71
|
readonly stream: true;
|
|
72
|
-
readonly stop?: readonly string[] | undefined;
|
|
73
72
|
readonly max_completion_tokens?: number | undefined;
|
|
74
73
|
readonly max_tokens?: number | undefined;
|
|
75
74
|
readonly tools?: readonly {
|
|
@@ -86,9 +85,10 @@ export declare const route: Route<{
|
|
|
86
85
|
readonly ttl?: string | undefined;
|
|
87
86
|
} | undefined;
|
|
88
87
|
}[] | undefined;
|
|
88
|
+
readonly stop?: readonly string[] | undefined;
|
|
89
89
|
readonly temperature?: number | undefined;
|
|
90
90
|
readonly seed?: number | undefined;
|
|
91
|
-
readonly tool_choice?: "required" | "
|
|
91
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
92
92
|
readonly type: "function";
|
|
93
93
|
readonly function: {
|
|
94
94
|
readonly name: string;
|
|
@@ -100,7 +100,7 @@ export declare const route: Route<{
|
|
|
100
100
|
readonly include_usage: boolean;
|
|
101
101
|
} | undefined;
|
|
102
102
|
readonly prompt_cache_key?: string | undefined;
|
|
103
|
-
readonly reasoning_effort?:
|
|
103
|
+
readonly reasoning_effort?: import("./utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
104
104
|
readonly frequency_penalty?: number | undefined;
|
|
105
105
|
readonly presence_penalty?: number | undefined;
|
|
106
106
|
}, import("../route/transport/http.js").HttpPrepared<string>>;
|
|
@@ -70,7 +70,7 @@ export declare const route: Route<{
|
|
|
70
70
|
readonly instructions?: string | undefined;
|
|
71
71
|
readonly reasoning?: {
|
|
72
72
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
73
|
-
readonly effort?:
|
|
73
|
+
readonly effort?: import("./utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
74
74
|
} | undefined;
|
|
75
75
|
readonly tools?: readonly {
|
|
76
76
|
readonly type: "function";
|
|
@@ -82,15 +82,15 @@ export declare const route: Route<{
|
|
|
82
82
|
readonly strict?: boolean | undefined;
|
|
83
83
|
}[] | undefined;
|
|
84
84
|
readonly text?: {
|
|
85
|
-
readonly verbosity?: "
|
|
85
|
+
readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
|
|
86
86
|
} | undefined;
|
|
87
87
|
readonly temperature?: number | undefined;
|
|
88
|
-
readonly tool_choice?: "required" | "
|
|
88
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
89
89
|
readonly type: "function";
|
|
90
90
|
readonly name: string;
|
|
91
91
|
} | {
|
|
92
92
|
readonly type: "allowed_tools";
|
|
93
|
-
readonly mode: "required" | "
|
|
93
|
+
readonly mode: "required" | "auto" | "none";
|
|
94
94
|
readonly tools: readonly {
|
|
95
95
|
readonly type: "function";
|
|
96
96
|
readonly name: string;
|