@opencode/ai 2.0.32 → 2.1.1
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/ai-client.d.ts +2 -2
- package/dist/experimental/evaluation-client.d.ts +1 -1
- package/dist/experimental/evaluation.d.ts +20 -20
- package/dist/experimental/realtime.d.ts +6 -14
- package/dist/experimental/realtime.js +28 -3
- package/dist/experimental/system-one.d.ts +1 -1
- package/dist/image-client.d.ts +8 -8
- package/dist/image.d.ts +593 -437
- package/dist/llm.d.ts +51 -51
- package/dist/media-client.d.ts +1 -1
- package/dist/media.d.ts +4 -4
- package/dist/promise.d.ts +199 -198
- package/dist/protocols/alibaba-chat.d.ts +81 -82
- package/dist/protocols/alibaba-chat.js +0 -1
- package/dist/protocols/alibaba-messages.d.ts +99 -99
- package/dist/protocols/alibaba-responses.d.ts +120 -120
- package/dist/protocols/anthropic-messages.d.ts +187 -187
- package/dist/protocols/anthropic-messages.js +3 -2
- package/dist/protocols/assemblyai-transcription.d.ts +1 -1
- package/dist/protocols/bedrock-converse.d.ts +75 -79
- package/dist/protocols/bfl-images.d.ts +1 -1
- package/dist/protocols/cartesia-speech.d.ts +17 -17
- package/dist/protocols/cohere-chat.d.ts +26 -23
- package/dist/protocols/cohere-chat.js +22 -1
- package/dist/protocols/deepgram-speech.d.ts +17 -17
- package/dist/protocols/deepgram-transcription.d.ts +1 -1
- package/dist/protocols/elevenlabs-speech.d.ts +17 -17
- package/dist/protocols/elevenlabs-transcription.d.ts +1 -1
- package/dist/protocols/fal-images.d.ts +1 -1
- package/dist/protocols/fal-video.d.ts +1 -1
- package/dist/protocols/gemini.d.ts +55 -55
- package/dist/protocols/google-images.d.ts +1 -1
- package/dist/protocols/google-interactions.d.ts +64 -62
- package/dist/protocols/google-interactions.js +19 -1
- package/dist/protocols/google-speech.d.ts +17 -17
- package/dist/protocols/google-transcription.d.ts +47 -47
- package/dist/protocols/google-video.d.ts +1 -1
- package/dist/protocols/meta-messages.d.ts +121 -121
- package/dist/protocols/meta-responses.d.ts +201 -201
- package/dist/protocols/mistral-chat.d.ts +45 -45
- package/dist/protocols/open-responses-channel.d.ts +1 -1
- package/dist/protocols/open-responses.d.ts +584 -450
- package/dist/protocols/open-responses.js +27 -35
- package/dist/protocols/openai-chat.d.ts +248 -248
- package/dist/protocols/openai-chat.js +11 -42
- package/dist/protocols/openai-compatible-chat.d.ts +32 -32
- package/dist/protocols/openai-compatible-responses.d.ts +88 -88
- package/dist/protocols/openai-images.d.ts +17 -17
- package/dist/protocols/openai-responses.d.ts +567 -567
- package/dist/protocols/openai-responses.js +1 -1
- package/dist/protocols/openai-speech.d.ts +17 -17
- package/dist/protocols/openai-transcription.d.ts +47 -47
- package/dist/protocols/replicate-images.d.ts +1 -1
- package/dist/protocols/runway-video.d.ts +1 -1
- package/dist/protocols/shared.d.ts +12 -1
- package/dist/protocols/shared.js +17 -1
- package/dist/protocols/stability-images.d.ts +2 -2
- package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
- package/dist/protocols/utils/bedrock-media.d.ts +4 -4
- package/dist/protocols/utils/openai-options.d.ts +1 -1
- package/dist/protocols/utils/speech-stream.d.ts +1 -1
- package/dist/protocols/utils/tool-schema.d.ts +10 -5
- package/dist/protocols/utils/tool-stream.d.ts +152 -152
- package/dist/protocols/venice-chat.d.ts +109 -110
- package/dist/protocols/venice-chat.js +0 -1
- package/dist/protocols/xai-images.d.ts +1 -1
- package/dist/protocols/xai-responses.d.ts +79 -79
- package/dist/protocols/xai-video.d.ts +1 -1
- package/dist/protocols/zai-chat.d.ts +77 -78
- package/dist/protocols/zai-chat.js +0 -1
- package/dist/protocols/zai-images.d.ts +1 -1
- package/dist/protocols/zai-messages.d.ts +97 -97
- package/dist/providers/alibaba.d.ts +222 -283
- package/dist/providers/amazon-bedrock-mantle.d.ts +291 -298
- package/dist/providers/amazon-bedrock.d.ts +22 -28
- package/dist/providers/anthropic-compatible.d.ts +86 -90
- package/dist/providers/anthropic.d.ts +86 -90
- package/dist/providers/assemblyai.d.ts +2 -6
- package/dist/providers/azure.d.ts +228 -238
- package/dist/providers/baseten.d.ts +66 -70
- package/dist/providers/black-forest-labs.d.ts +2 -6
- package/dist/providers/cartesia.d.ts +2 -6
- package/dist/providers/cerebras.d.ts +66 -70
- package/dist/providers/cerebras.js +0 -1
- package/dist/providers/cloudflare-ai-gateway.d.ts +352 -356
- package/dist/providers/cloudflare-workers-ai.d.ts +66 -70
- package/dist/providers/cohere.d.ts +122 -132
- package/dist/providers/cohere.js +0 -2
- package/dist/providers/deepgram.d.ts +2 -7
- package/dist/providers/deepinfra.d.ts +66 -70
- package/dist/providers/deepinfra.js +0 -1
- package/dist/providers/deepseek.d.ts +66 -70
- package/dist/providers/deepseek.js +1 -1
- package/dist/providers/digitalocean.d.ts +137 -141
- package/dist/providers/elevenlabs.d.ts +2 -7
- package/dist/providers/fal.d.ts +2 -7
- package/dist/providers/fireworks.d.ts +66 -70
- package/dist/providers/google-vertex-chat.d.ts +34 -38
- package/dist/providers/google-vertex-interactions.d.ts +31 -41
- package/dist/providers/google-vertex-messages.d.ts +81 -85
- package/dist/providers/google-vertex-mistral.d.ts +23 -27
- package/dist/providers/google-vertex-responses.d.ts +90 -94
- package/dist/providers/google-vertex.d.ts +26 -30
- package/dist/providers/google.d.ts +94 -109
- package/dist/providers/groq.d.ts +111 -115
- package/dist/providers/groq.js +0 -1
- package/dist/providers/meta.d.ts +309 -317
- package/dist/providers/meta.js +1 -1
- package/dist/providers/minimax.d.ts +296 -303
- package/dist/providers/minimax.js +1 -1
- package/dist/providers/mistral.d.ts +22 -26
- package/dist/providers/moonshot.d.ts +296 -303
- package/dist/providers/moonshot.js +0 -1
- package/dist/providers/openai-compatible-responses.d.ts +90 -94
- package/dist/providers/openai-compatible.d.ts +34 -38
- package/dist/providers/openai.d.ts +93 -108
- package/dist/providers/opencode.d.ts +2 -8
- package/dist/providers/openrouter.d.ts +137 -144
- package/dist/providers/replicate.d.ts +2 -6
- package/dist/providers/runway.d.ts +2 -6
- package/dist/providers/stability.d.ts +2 -7
- package/dist/providers/togetherai.d.ts +66 -70
- package/dist/providers/togetherai.js +1 -1
- package/dist/providers/typesafe-ai.d.ts +2 -8
- package/dist/providers/venice.d.ts +58 -63
- package/dist/providers/vercel-ai-gateway.d.ts +2 -12
- package/dist/providers/xai.d.ts +38 -50
- package/dist/providers/zai-coding-plan.d.ts +206 -213
- package/dist/providers/zai.d.ts +40 -46
- package/dist/route/client.d.ts +51 -51
- package/dist/route/media-protocol.d.ts +1 -1
- package/dist/route/transport/http.d.ts +1 -1
- package/dist/route/transport/websocket.d.ts +8 -8
- package/dist/schema/errors.d.ts +19 -19
- package/dist/schema/events.d.ts +3090 -3288
- package/dist/schema/messages.d.ts +8 -7
- package/dist/schema/options.d.ts +2 -1
- package/dist/schema/options.js +2 -1
- package/dist/speech-client.d.ts +8 -8
- package/dist/speech.d.ts +434 -398
- package/dist/testing.d.ts +338 -338
- package/dist/tool-runtime.d.ts +1 -1
- package/dist/transcription-client.d.ts +23 -23
- package/dist/transcription.d.ts +562 -646
- package/dist/utils/sanitize.d.ts +4 -0
- package/dist/utils/sanitize.js +23 -6
- package/dist/video-client.d.ts +8 -8
- package/dist/video.d.ts +416 -372
- package/package.json +6 -6
|
@@ -28,33 +28,33 @@ export declare const ContextManagement: Schema.Struct<{
|
|
|
28
28
|
}>;
|
|
29
29
|
export type ContextManagement = typeof ContextManagement.Type;
|
|
30
30
|
declare const AnthropicThinkingBlockBinding: Schema.Struct<{
|
|
31
|
-
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
31
|
+
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"drop_block" | "error">, import("../schema/options.js").OpenString<"drop_block" | "error">>>;
|
|
32
32
|
}>;
|
|
33
33
|
declare const Thinking: Schema.Union<readonly [Schema.decodeTo<Schema.Struct<{
|
|
34
|
-
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
34
|
+
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"omitted" | "summarized">, import("../schema/options.js").OpenString<"omitted" | "summarized">>>;
|
|
35
35
|
readonly block_binding: Schema.optional<Schema.Struct<{
|
|
36
|
-
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
36
|
+
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"drop_block" | "error">, import("../schema/options.js").OpenString<"drop_block" | "error">>>;
|
|
37
37
|
}>>;
|
|
38
38
|
readonly type: Schema.tag<"enabled">;
|
|
39
39
|
readonly budget_tokens: Schema.Number;
|
|
40
40
|
}>, Schema.Union<readonly [Schema.Struct<{
|
|
41
|
-
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
41
|
+
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"omitted" | "summarized">, import("../schema/options.js").OpenString<"omitted" | "summarized">>>;
|
|
42
42
|
readonly block_binding: Schema.optional<Schema.Struct<{
|
|
43
|
-
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
43
|
+
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"drop_block" | "error">, import("../schema/options.js").OpenString<"drop_block" | "error">>>;
|
|
44
44
|
}>>;
|
|
45
45
|
readonly type: Schema.tag<"enabled">;
|
|
46
46
|
readonly budgetTokens: Schema.Number;
|
|
47
47
|
}>, Schema.Struct<{
|
|
48
|
-
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
48
|
+
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"omitted" | "summarized">, import("../schema/options.js").OpenString<"omitted" | "summarized">>>;
|
|
49
49
|
readonly block_binding: Schema.optional<Schema.Struct<{
|
|
50
|
-
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
50
|
+
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"drop_block" | "error">, import("../schema/options.js").OpenString<"drop_block" | "error">>>;
|
|
51
51
|
}>>;
|
|
52
52
|
readonly type: Schema.tag<"enabled">;
|
|
53
53
|
readonly budget_tokens: Schema.Number;
|
|
54
54
|
}>]>, never, never>, Schema.Struct<{
|
|
55
|
-
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
55
|
+
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"omitted" | "summarized">, import("../schema/options.js").OpenString<"omitted" | "summarized">>>;
|
|
56
56
|
readonly block_binding: Schema.optional<Schema.Struct<{
|
|
57
|
-
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
57
|
+
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"drop_block" | "error">, import("../schema/options.js").OpenString<"drop_block" | "error">>>;
|
|
58
58
|
}>>;
|
|
59
59
|
readonly type: Schema.tag<"adaptive">;
|
|
60
60
|
}>, Schema.Struct<{
|
|
@@ -74,30 +74,30 @@ declare const Options: Schema.Struct<{
|
|
|
74
74
|
}>>;
|
|
75
75
|
}>>;
|
|
76
76
|
readonly thinking: Schema.optional<Schema.Union<readonly [Schema.decodeTo<Schema.Struct<{
|
|
77
|
-
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
77
|
+
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"omitted" | "summarized">, import("../schema/options.js").OpenString<"omitted" | "summarized">>>;
|
|
78
78
|
readonly block_binding: Schema.optional<Schema.Struct<{
|
|
79
|
-
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
79
|
+
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"drop_block" | "error">, import("../schema/options.js").OpenString<"drop_block" | "error">>>;
|
|
80
80
|
}>>;
|
|
81
81
|
readonly type: Schema.tag<"enabled">;
|
|
82
82
|
readonly budget_tokens: Schema.Number;
|
|
83
83
|
}>, Schema.Union<readonly [Schema.Struct<{
|
|
84
|
-
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
84
|
+
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"omitted" | "summarized">, import("../schema/options.js").OpenString<"omitted" | "summarized">>>;
|
|
85
85
|
readonly block_binding: Schema.optional<Schema.Struct<{
|
|
86
|
-
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
86
|
+
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"drop_block" | "error">, import("../schema/options.js").OpenString<"drop_block" | "error">>>;
|
|
87
87
|
}>>;
|
|
88
88
|
readonly type: Schema.tag<"enabled">;
|
|
89
89
|
readonly budgetTokens: Schema.Number;
|
|
90
90
|
}>, Schema.Struct<{
|
|
91
|
-
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
91
|
+
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"omitted" | "summarized">, import("../schema/options.js").OpenString<"omitted" | "summarized">>>;
|
|
92
92
|
readonly block_binding: Schema.optional<Schema.Struct<{
|
|
93
|
-
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
93
|
+
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"drop_block" | "error">, import("../schema/options.js").OpenString<"drop_block" | "error">>>;
|
|
94
94
|
}>>;
|
|
95
95
|
readonly type: Schema.tag<"enabled">;
|
|
96
96
|
readonly budget_tokens: Schema.Number;
|
|
97
97
|
}>]>, never, never>, Schema.Struct<{
|
|
98
|
-
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
98
|
+
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"omitted" | "summarized">, import("../schema/options.js").OpenString<"omitted" | "summarized">>>;
|
|
99
99
|
readonly block_binding: Schema.optional<Schema.Struct<{
|
|
100
|
-
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
100
|
+
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"drop_block" | "error">, import("../schema/options.js").OpenString<"drop_block" | "error">>>;
|
|
101
101
|
}>>;
|
|
102
102
|
readonly type: Schema.tag<"adaptive">;
|
|
103
103
|
}>, Schema.Struct<{
|
|
@@ -369,16 +369,16 @@ export declare const AnthropicMessagesBody: Schema.Struct<{
|
|
|
369
369
|
top_k: Schema.optional<Schema.Number>;
|
|
370
370
|
stop_sequences: Schema.optional<Schema.$Array<Schema.String>>;
|
|
371
371
|
thinking: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
372
|
-
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
372
|
+
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"omitted" | "summarized">, import("../schema/options.js").OpenString<"omitted" | "summarized">>>;
|
|
373
373
|
readonly block_binding: Schema.optional<Schema.Struct<{
|
|
374
|
-
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
374
|
+
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"drop_block" | "error">, import("../schema/options.js").OpenString<"drop_block" | "error">>>;
|
|
375
375
|
}>>;
|
|
376
376
|
readonly type: Schema.tag<"enabled">;
|
|
377
377
|
readonly budget_tokens: Schema.Number;
|
|
378
378
|
}>, Schema.Struct<{
|
|
379
|
-
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
379
|
+
readonly display: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"omitted" | "summarized">, import("../schema/options.js").OpenString<"omitted" | "summarized">>>;
|
|
380
380
|
readonly block_binding: Schema.optional<Schema.Struct<{
|
|
381
|
-
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"
|
|
381
|
+
readonly prefix_mismatch_behavior: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"drop_block" | "error">, import("../schema/options.js").OpenString<"drop_block" | "error">>>;
|
|
382
382
|
}>>;
|
|
383
383
|
readonly type: Schema.tag<"adaptive">;
|
|
384
384
|
}>, Schema.Struct<{
|
|
@@ -412,8 +412,26 @@ export type AnthropicMessagesBody = Schema.Schema.Type<typeof AnthropicMessagesB
|
|
|
412
412
|
* Vertex-hosted Messages routes.
|
|
413
413
|
*/
|
|
414
414
|
export declare const protocol: Protocol<{
|
|
415
|
-
readonly
|
|
415
|
+
readonly context_management?: {
|
|
416
|
+
readonly edits: readonly {
|
|
417
|
+
readonly type: "compact_20260112";
|
|
418
|
+
readonly trigger?: {
|
|
419
|
+
readonly type: "input_tokens";
|
|
420
|
+
readonly value: number;
|
|
421
|
+
} | undefined;
|
|
422
|
+
readonly pause_after_compaction?: boolean | undefined;
|
|
423
|
+
readonly instructions?: string | undefined;
|
|
424
|
+
}[];
|
|
425
|
+
} | undefined;
|
|
416
426
|
readonly model: string;
|
|
427
|
+
readonly system?: readonly {
|
|
428
|
+
readonly type: "text";
|
|
429
|
+
readonly text: string;
|
|
430
|
+
readonly cache_control?: {
|
|
431
|
+
readonly type: "ephemeral";
|
|
432
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
433
|
+
} | undefined;
|
|
434
|
+
}[] | undefined;
|
|
417
435
|
readonly messages: readonly ({
|
|
418
436
|
readonly role: "user";
|
|
419
437
|
readonly content: readonly ({
|
|
@@ -441,7 +459,7 @@ export declare const protocol: Protocol<{
|
|
|
441
459
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
442
460
|
} | undefined;
|
|
443
461
|
readonly transformations?: {
|
|
444
|
-
readonly oversized_image?: "
|
|
462
|
+
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
445
463
|
} | undefined;
|
|
446
464
|
} | {
|
|
447
465
|
readonly type: "document";
|
|
@@ -460,17 +478,18 @@ export declare const protocol: Protocol<{
|
|
|
460
478
|
readonly type: "file";
|
|
461
479
|
readonly file_id: string;
|
|
462
480
|
};
|
|
463
|
-
readonly title?: string | undefined;
|
|
464
|
-
readonly context?: string | undefined;
|
|
465
481
|
readonly cache_control?: {
|
|
466
482
|
readonly type: "ephemeral";
|
|
467
483
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
468
484
|
} | undefined;
|
|
485
|
+
readonly title?: string | undefined;
|
|
486
|
+
readonly context?: string | undefined;
|
|
469
487
|
readonly citations?: {
|
|
470
488
|
readonly enabled: boolean;
|
|
471
489
|
} | undefined;
|
|
472
490
|
} | {
|
|
473
491
|
readonly type: "tool_result";
|
|
492
|
+
readonly tool_use_id: string;
|
|
474
493
|
readonly content: string | readonly ({
|
|
475
494
|
readonly type: "text";
|
|
476
495
|
readonly text: string;
|
|
@@ -496,7 +515,7 @@ export declare const protocol: Protocol<{
|
|
|
496
515
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
497
516
|
} | undefined;
|
|
498
517
|
readonly transformations?: {
|
|
499
|
-
readonly oversized_image?: "
|
|
518
|
+
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
500
519
|
} | undefined;
|
|
501
520
|
} | {
|
|
502
521
|
readonly type: "document";
|
|
@@ -515,22 +534,21 @@ export declare const protocol: Protocol<{
|
|
|
515
534
|
readonly type: "file";
|
|
516
535
|
readonly file_id: string;
|
|
517
536
|
};
|
|
518
|
-
readonly title?: string | undefined;
|
|
519
|
-
readonly context?: string | undefined;
|
|
520
537
|
readonly cache_control?: {
|
|
521
538
|
readonly type: "ephemeral";
|
|
522
539
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
523
540
|
} | undefined;
|
|
541
|
+
readonly title?: string | undefined;
|
|
542
|
+
readonly context?: string | undefined;
|
|
524
543
|
readonly citations?: {
|
|
525
544
|
readonly enabled: boolean;
|
|
526
545
|
} | undefined;
|
|
527
546
|
})[];
|
|
528
|
-
readonly
|
|
547
|
+
readonly is_error?: boolean | undefined;
|
|
529
548
|
readonly cache_control?: {
|
|
530
549
|
readonly type: "ephemeral";
|
|
531
550
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
532
551
|
} | undefined;
|
|
533
|
-
readonly is_error?: boolean | undefined;
|
|
534
552
|
})[];
|
|
535
553
|
} | {
|
|
536
554
|
readonly role: "assistant";
|
|
@@ -542,8 +560,8 @@ export declare const protocol: Protocol<{
|
|
|
542
560
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
543
561
|
} | undefined;
|
|
544
562
|
} | {
|
|
545
|
-
readonly id: string;
|
|
546
563
|
readonly type: "tool_use";
|
|
564
|
+
readonly id: string;
|
|
547
565
|
readonly name: string;
|
|
548
566
|
readonly input: unknown;
|
|
549
567
|
readonly cache_control?: {
|
|
@@ -551,8 +569,8 @@ export declare const protocol: Protocol<{
|
|
|
551
569
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
552
570
|
} | undefined;
|
|
553
571
|
} | {
|
|
554
|
-
readonly id: string;
|
|
555
572
|
readonly type: "server_tool_use";
|
|
573
|
+
readonly id: string;
|
|
556
574
|
readonly name: string;
|
|
557
575
|
readonly input: unknown;
|
|
558
576
|
readonly cache_control?: {
|
|
@@ -560,13 +578,16 @@ export declare const protocol: Protocol<{
|
|
|
560
578
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
561
579
|
} | undefined;
|
|
562
580
|
} | {
|
|
563
|
-
readonly type: "
|
|
564
|
-
readonly content: unknown;
|
|
581
|
+
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
565
582
|
readonly tool_use_id: string;
|
|
583
|
+
readonly content: unknown;
|
|
566
584
|
readonly cache_control?: {
|
|
567
585
|
readonly type: "ephemeral";
|
|
568
586
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
569
587
|
} | undefined;
|
|
588
|
+
} | {
|
|
589
|
+
readonly type: "compaction";
|
|
590
|
+
readonly content: string | null;
|
|
570
591
|
} | {
|
|
571
592
|
readonly type: "thinking";
|
|
572
593
|
readonly thinking: string;
|
|
@@ -576,17 +597,15 @@ export declare const protocol: Protocol<{
|
|
|
576
597
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
577
598
|
} | undefined;
|
|
578
599
|
} | {
|
|
579
|
-
readonly data: string;
|
|
580
600
|
readonly type: "redacted_thinking";
|
|
601
|
+
readonly data: string;
|
|
581
602
|
readonly cache_control?: {
|
|
582
603
|
readonly type: "ephemeral";
|
|
583
604
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
584
605
|
} | undefined;
|
|
585
|
-
} | {
|
|
586
|
-
readonly type: "compaction";
|
|
587
|
-
readonly content: string | null;
|
|
588
606
|
})[];
|
|
589
607
|
} | {
|
|
608
|
+
readonly role: "system";
|
|
590
609
|
readonly content: readonly {
|
|
591
610
|
readonly type: "text";
|
|
592
611
|
readonly text: string;
|
|
@@ -595,19 +614,13 @@ export declare const protocol: Protocol<{
|
|
|
595
614
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
596
615
|
} | undefined;
|
|
597
616
|
}[];
|
|
598
|
-
readonly role: "system";
|
|
599
617
|
readonly output_config?: {
|
|
600
618
|
readonly effort: string;
|
|
601
619
|
} | undefined;
|
|
602
620
|
})[];
|
|
603
|
-
readonly stream: true;
|
|
604
|
-
readonly metadata?: {
|
|
605
|
-
readonly user_id?: string | null | undefined;
|
|
606
|
-
} | undefined;
|
|
607
|
-
readonly temperature?: number | undefined;
|
|
608
621
|
readonly tools?: readonly {
|
|
609
|
-
readonly description: string;
|
|
610
622
|
readonly name: string;
|
|
623
|
+
readonly description: string;
|
|
611
624
|
readonly input_schema: {
|
|
612
625
|
readonly [x: string]: unknown;
|
|
613
626
|
};
|
|
@@ -616,88 +629,76 @@ export declare const protocol: Protocol<{
|
|
|
616
629
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
617
630
|
} | undefined;
|
|
618
631
|
}[] | undefined;
|
|
619
|
-
readonly
|
|
620
|
-
readonly type: "
|
|
621
|
-
readonly
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
}
|
|
632
|
+
readonly tool_choice?: {
|
|
633
|
+
readonly type: "any" | "auto" | "none";
|
|
634
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
635
|
+
} | {
|
|
636
|
+
readonly type: "tool";
|
|
637
|
+
readonly name: string;
|
|
638
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
639
|
+
} | undefined;
|
|
640
|
+
readonly stream: true;
|
|
641
|
+
readonly max_tokens: number;
|
|
642
|
+
readonly temperature?: number | undefined;
|
|
643
|
+
readonly top_p?: number | undefined;
|
|
644
|
+
readonly top_k?: number | undefined;
|
|
645
|
+
readonly stop_sequences?: readonly string[] | undefined;
|
|
627
646
|
readonly thinking?: {
|
|
628
|
-
readonly
|
|
629
|
-
readonly budget_tokens: number;
|
|
630
|
-
readonly display?: import("../schema/options.js").OpenString<"summarized" | "omitted"> | undefined;
|
|
647
|
+
readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
|
|
631
648
|
readonly block_binding?: {
|
|
632
|
-
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"
|
|
649
|
+
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
633
650
|
} | undefined;
|
|
651
|
+
readonly type: "enabled";
|
|
652
|
+
readonly budget_tokens: number;
|
|
634
653
|
} | {
|
|
635
|
-
readonly
|
|
636
|
-
readonly display?: import("../schema/options.js").OpenString<"summarized" | "omitted"> | undefined;
|
|
654
|
+
readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
|
|
637
655
|
readonly block_binding?: {
|
|
638
|
-
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"
|
|
656
|
+
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
639
657
|
} | undefined;
|
|
658
|
+
readonly type: "adaptive";
|
|
640
659
|
} | {
|
|
641
|
-
readonly type: "
|
|
642
|
-
} | undefined;
|
|
643
|
-
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
|
|
644
|
-
readonly container?: string | {
|
|
645
|
-
readonly id?: string | null | undefined;
|
|
646
|
-
readonly skills?: readonly {
|
|
647
|
-
readonly [x: string]: unknown;
|
|
648
|
-
}[] | null | undefined;
|
|
649
|
-
} | null | undefined;
|
|
650
|
-
readonly inference_geo?: string | null | undefined;
|
|
651
|
-
readonly cache_control?: {
|
|
652
|
-
readonly type: "ephemeral";
|
|
653
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
660
|
+
readonly type: "between_tools" | "disabled";
|
|
654
661
|
} | undefined;
|
|
655
662
|
readonly output_config?: {
|
|
663
|
+
readonly effort?: string | undefined;
|
|
656
664
|
readonly format?: {
|
|
657
665
|
readonly type: "json_schema";
|
|
658
666
|
readonly schema: {
|
|
659
667
|
readonly [x: string]: unknown;
|
|
660
668
|
};
|
|
661
669
|
} | null | undefined;
|
|
662
|
-
readonly effort?: string | undefined;
|
|
663
670
|
} | undefined;
|
|
664
|
-
readonly
|
|
665
|
-
readonly
|
|
666
|
-
|
|
667
|
-
readonly instructions?: string | undefined;
|
|
668
|
-
readonly trigger?: {
|
|
669
|
-
readonly type: "input_tokens";
|
|
670
|
-
readonly value: number;
|
|
671
|
-
} | undefined;
|
|
672
|
-
readonly pause_after_compaction?: boolean | undefined;
|
|
673
|
-
}[];
|
|
671
|
+
readonly cache_control?: {
|
|
672
|
+
readonly type: "ephemeral";
|
|
673
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
674
674
|
} | undefined;
|
|
675
|
-
readonly
|
|
676
|
-
readonly
|
|
677
|
-
readonly
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
675
|
+
readonly container?: string | {
|
|
676
|
+
readonly id?: string | null | undefined;
|
|
677
|
+
readonly skills?: readonly {
|
|
678
|
+
readonly [x: string]: unknown;
|
|
679
|
+
}[] | null | undefined;
|
|
680
|
+
} | null | undefined;
|
|
681
|
+
readonly inference_geo?: string | null | undefined;
|
|
682
|
+
readonly metadata?: {
|
|
683
|
+
readonly user_id?: string | null | undefined;
|
|
682
684
|
} | undefined;
|
|
683
|
-
readonly
|
|
684
|
-
readonly top_k?: number | undefined;
|
|
685
|
-
readonly stop_sequences?: readonly string[] | undefined;
|
|
685
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
|
|
686
686
|
}, string, {
|
|
687
687
|
readonly [x: string]: unknown;
|
|
688
688
|
readonly type: string;
|
|
689
|
+
readonly index?: number | undefined;
|
|
689
690
|
readonly message?: {
|
|
690
691
|
readonly [x: string]: unknown;
|
|
691
692
|
readonly usage?: {
|
|
692
693
|
readonly [x: string]: unknown;
|
|
693
694
|
readonly input_tokens?: number | null | undefined;
|
|
695
|
+
readonly output_tokens?: number | undefined;
|
|
696
|
+
readonly cache_creation_input_tokens?: number | null | undefined;
|
|
697
|
+
readonly cache_read_input_tokens?: number | null | undefined;
|
|
694
698
|
readonly server_tool_use?: {
|
|
695
699
|
readonly [x: string]: unknown;
|
|
696
700
|
readonly web_search_requests?: number | undefined;
|
|
697
701
|
} | null | undefined;
|
|
698
|
-
readonly output_tokens?: number | undefined;
|
|
699
|
-
readonly cache_creation_input_tokens?: number | null | undefined;
|
|
700
|
-
readonly cache_read_input_tokens?: number | null | undefined;
|
|
701
702
|
readonly output_tokens_details?: {
|
|
702
703
|
readonly [x: string]: unknown;
|
|
703
704
|
readonly thinking_tokens?: number | undefined;
|
|
@@ -705,13 +706,13 @@ export declare const protocol: Protocol<{
|
|
|
705
706
|
readonly iterations?: readonly {
|
|
706
707
|
readonly [x: string]: unknown;
|
|
707
708
|
readonly input_tokens?: number | null | undefined;
|
|
709
|
+
readonly output_tokens?: number | undefined;
|
|
710
|
+
readonly cache_creation_input_tokens?: number | null | undefined;
|
|
711
|
+
readonly cache_read_input_tokens?: number | null | undefined;
|
|
708
712
|
readonly server_tool_use?: {
|
|
709
713
|
readonly [x: string]: unknown;
|
|
710
714
|
readonly web_search_requests?: number | undefined;
|
|
711
715
|
} | null | undefined;
|
|
712
|
-
readonly output_tokens?: number | undefined;
|
|
713
|
-
readonly cache_creation_input_tokens?: number | null | undefined;
|
|
714
|
-
readonly cache_read_input_tokens?: number | null | undefined;
|
|
715
716
|
readonly output_tokens_details?: {
|
|
716
717
|
readonly [x: string]: unknown;
|
|
717
718
|
readonly thinking_tokens?: number | undefined;
|
|
@@ -719,23 +720,18 @@ export declare const protocol: Protocol<{
|
|
|
719
720
|
}[] | undefined;
|
|
720
721
|
} | undefined;
|
|
721
722
|
} | undefined;
|
|
722
|
-
readonly
|
|
723
|
-
readonly [x: string]: unknown;
|
|
724
|
-
readonly type?: string | undefined;
|
|
725
|
-
readonly message?: string | undefined;
|
|
726
|
-
} | undefined;
|
|
723
|
+
readonly content_block?: unknown;
|
|
727
724
|
readonly delta?: unknown;
|
|
728
|
-
readonly index?: number | undefined;
|
|
729
725
|
readonly usage?: {
|
|
730
726
|
readonly [x: string]: unknown;
|
|
731
727
|
readonly input_tokens?: number | null | undefined;
|
|
728
|
+
readonly output_tokens?: number | undefined;
|
|
729
|
+
readonly cache_creation_input_tokens?: number | null | undefined;
|
|
730
|
+
readonly cache_read_input_tokens?: number | null | undefined;
|
|
732
731
|
readonly server_tool_use?: {
|
|
733
732
|
readonly [x: string]: unknown;
|
|
734
733
|
readonly web_search_requests?: number | undefined;
|
|
735
734
|
} | null | undefined;
|
|
736
|
-
readonly output_tokens?: number | undefined;
|
|
737
|
-
readonly cache_creation_input_tokens?: number | null | undefined;
|
|
738
|
-
readonly cache_read_input_tokens?: number | null | undefined;
|
|
739
735
|
readonly output_tokens_details?: {
|
|
740
736
|
readonly [x: string]: unknown;
|
|
741
737
|
readonly thinking_tokens?: number | undefined;
|
|
@@ -743,20 +739,24 @@ export declare const protocol: Protocol<{
|
|
|
743
739
|
readonly iterations?: readonly {
|
|
744
740
|
readonly [x: string]: unknown;
|
|
745
741
|
readonly input_tokens?: number | null | undefined;
|
|
742
|
+
readonly output_tokens?: number | undefined;
|
|
743
|
+
readonly cache_creation_input_tokens?: number | null | undefined;
|
|
744
|
+
readonly cache_read_input_tokens?: number | null | undefined;
|
|
746
745
|
readonly server_tool_use?: {
|
|
747
746
|
readonly [x: string]: unknown;
|
|
748
747
|
readonly web_search_requests?: number | undefined;
|
|
749
748
|
} | null | undefined;
|
|
750
|
-
readonly output_tokens?: number | undefined;
|
|
751
|
-
readonly cache_creation_input_tokens?: number | null | undefined;
|
|
752
|
-
readonly cache_read_input_tokens?: number | null | undefined;
|
|
753
749
|
readonly output_tokens_details?: {
|
|
754
750
|
readonly [x: string]: unknown;
|
|
755
751
|
readonly thinking_tokens?: number | undefined;
|
|
756
752
|
} | null | undefined;
|
|
757
753
|
}[] | undefined;
|
|
758
754
|
} | undefined;
|
|
759
|
-
readonly
|
|
755
|
+
readonly error?: {
|
|
756
|
+
readonly [x: string]: unknown;
|
|
757
|
+
readonly type?: string | undefined;
|
|
758
|
+
readonly message?: string | undefined;
|
|
759
|
+
} | undefined;
|
|
760
760
|
}, {
|
|
761
761
|
provider: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
762
762
|
compactions: {};
|
|
@@ -766,14 +766,32 @@ export declare const protocol: Protocol<{
|
|
|
766
766
|
lifecycle: Lifecycle.State;
|
|
767
767
|
}>;
|
|
768
768
|
export declare const transport: <Body extends Pick<AnthropicMessagesBody, "messages" | "context_management" | "thinking">>() => {
|
|
769
|
-
prepare: (input: Parameters<(input: import("../route/transport/index.js").TransportPrepareInput<Body>) => Effect.Effect<HttpTransport.HttpPrepared<string>, AIError, never>>[0]) => Effect.Effect<HttpTransport.HttpPrepared<string>, AIError, never>;
|
|
770
769
|
with: (patch: Partial<HttpTransport.HttpJsonInput<Body, string>>) => HttpTransport.HttpJsonTransport<Body, string>;
|
|
771
770
|
id: string;
|
|
772
771
|
execute: (prepared: HttpTransport.HttpPrepared<string>, request: LLMRequest, runtime: import("../route/transport/index.js").TransportRuntime, options?: import("../route/transport/index.js").TransportExecuteOptions) => Effect.Effect<import("../route/transport/index.js").TransportExecution<string>, AIError, import("effect/Scope").Scope>;
|
|
772
|
+
prepare: (input: Parameters<(input: import("../route/transport/index.js").TransportPrepareInput<Body>) => Effect.Effect<HttpTransport.HttpPrepared<string>, AIError, never>>[0]) => Effect.Effect<HttpTransport.HttpPrepared<string>, AIError, never>;
|
|
773
773
|
};
|
|
774
774
|
export declare const route: Route<{
|
|
775
|
-
readonly
|
|
775
|
+
readonly context_management?: {
|
|
776
|
+
readonly edits: readonly {
|
|
777
|
+
readonly type: "compact_20260112";
|
|
778
|
+
readonly trigger?: {
|
|
779
|
+
readonly type: "input_tokens";
|
|
780
|
+
readonly value: number;
|
|
781
|
+
} | undefined;
|
|
782
|
+
readonly pause_after_compaction?: boolean | undefined;
|
|
783
|
+
readonly instructions?: string | undefined;
|
|
784
|
+
}[];
|
|
785
|
+
} | undefined;
|
|
776
786
|
readonly model: string;
|
|
787
|
+
readonly system?: readonly {
|
|
788
|
+
readonly type: "text";
|
|
789
|
+
readonly text: string;
|
|
790
|
+
readonly cache_control?: {
|
|
791
|
+
readonly type: "ephemeral";
|
|
792
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
793
|
+
} | undefined;
|
|
794
|
+
}[] | undefined;
|
|
777
795
|
readonly messages: readonly ({
|
|
778
796
|
readonly role: "user";
|
|
779
797
|
readonly content: readonly ({
|
|
@@ -801,7 +819,7 @@ export declare const route: Route<{
|
|
|
801
819
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
802
820
|
} | undefined;
|
|
803
821
|
readonly transformations?: {
|
|
804
|
-
readonly oversized_image?: "
|
|
822
|
+
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
805
823
|
} | undefined;
|
|
806
824
|
} | {
|
|
807
825
|
readonly type: "document";
|
|
@@ -820,17 +838,18 @@ export declare const route: Route<{
|
|
|
820
838
|
readonly type: "file";
|
|
821
839
|
readonly file_id: string;
|
|
822
840
|
};
|
|
823
|
-
readonly title?: string | undefined;
|
|
824
|
-
readonly context?: string | undefined;
|
|
825
841
|
readonly cache_control?: {
|
|
826
842
|
readonly type: "ephemeral";
|
|
827
843
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
828
844
|
} | undefined;
|
|
845
|
+
readonly title?: string | undefined;
|
|
846
|
+
readonly context?: string | undefined;
|
|
829
847
|
readonly citations?: {
|
|
830
848
|
readonly enabled: boolean;
|
|
831
849
|
} | undefined;
|
|
832
850
|
} | {
|
|
833
851
|
readonly type: "tool_result";
|
|
852
|
+
readonly tool_use_id: string;
|
|
834
853
|
readonly content: string | readonly ({
|
|
835
854
|
readonly type: "text";
|
|
836
855
|
readonly text: string;
|
|
@@ -856,7 +875,7 @@ export declare const route: Route<{
|
|
|
856
875
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
857
876
|
} | undefined;
|
|
858
877
|
readonly transformations?: {
|
|
859
|
-
readonly oversized_image?: "
|
|
878
|
+
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
860
879
|
} | undefined;
|
|
861
880
|
} | {
|
|
862
881
|
readonly type: "document";
|
|
@@ -875,22 +894,21 @@ export declare const route: Route<{
|
|
|
875
894
|
readonly type: "file";
|
|
876
895
|
readonly file_id: string;
|
|
877
896
|
};
|
|
878
|
-
readonly title?: string | undefined;
|
|
879
|
-
readonly context?: string | undefined;
|
|
880
897
|
readonly cache_control?: {
|
|
881
898
|
readonly type: "ephemeral";
|
|
882
899
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
883
900
|
} | undefined;
|
|
901
|
+
readonly title?: string | undefined;
|
|
902
|
+
readonly context?: string | undefined;
|
|
884
903
|
readonly citations?: {
|
|
885
904
|
readonly enabled: boolean;
|
|
886
905
|
} | undefined;
|
|
887
906
|
})[];
|
|
888
|
-
readonly
|
|
907
|
+
readonly is_error?: boolean | undefined;
|
|
889
908
|
readonly cache_control?: {
|
|
890
909
|
readonly type: "ephemeral";
|
|
891
910
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
892
911
|
} | undefined;
|
|
893
|
-
readonly is_error?: boolean | undefined;
|
|
894
912
|
})[];
|
|
895
913
|
} | {
|
|
896
914
|
readonly role: "assistant";
|
|
@@ -902,8 +920,8 @@ export declare const route: Route<{
|
|
|
902
920
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
903
921
|
} | undefined;
|
|
904
922
|
} | {
|
|
905
|
-
readonly id: string;
|
|
906
923
|
readonly type: "tool_use";
|
|
924
|
+
readonly id: string;
|
|
907
925
|
readonly name: string;
|
|
908
926
|
readonly input: unknown;
|
|
909
927
|
readonly cache_control?: {
|
|
@@ -911,8 +929,8 @@ export declare const route: Route<{
|
|
|
911
929
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
912
930
|
} | undefined;
|
|
913
931
|
} | {
|
|
914
|
-
readonly id: string;
|
|
915
932
|
readonly type: "server_tool_use";
|
|
933
|
+
readonly id: string;
|
|
916
934
|
readonly name: string;
|
|
917
935
|
readonly input: unknown;
|
|
918
936
|
readonly cache_control?: {
|
|
@@ -920,13 +938,16 @@ export declare const route: Route<{
|
|
|
920
938
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
921
939
|
} | undefined;
|
|
922
940
|
} | {
|
|
923
|
-
readonly type: "
|
|
924
|
-
readonly content: unknown;
|
|
941
|
+
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
925
942
|
readonly tool_use_id: string;
|
|
943
|
+
readonly content: unknown;
|
|
926
944
|
readonly cache_control?: {
|
|
927
945
|
readonly type: "ephemeral";
|
|
928
946
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
929
947
|
} | undefined;
|
|
948
|
+
} | {
|
|
949
|
+
readonly type: "compaction";
|
|
950
|
+
readonly content: string | null;
|
|
930
951
|
} | {
|
|
931
952
|
readonly type: "thinking";
|
|
932
953
|
readonly thinking: string;
|
|
@@ -936,17 +957,15 @@ export declare const route: Route<{
|
|
|
936
957
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
937
958
|
} | undefined;
|
|
938
959
|
} | {
|
|
939
|
-
readonly data: string;
|
|
940
960
|
readonly type: "redacted_thinking";
|
|
961
|
+
readonly data: string;
|
|
941
962
|
readonly cache_control?: {
|
|
942
963
|
readonly type: "ephemeral";
|
|
943
964
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
944
965
|
} | undefined;
|
|
945
|
-
} | {
|
|
946
|
-
readonly type: "compaction";
|
|
947
|
-
readonly content: string | null;
|
|
948
966
|
})[];
|
|
949
967
|
} | {
|
|
968
|
+
readonly role: "system";
|
|
950
969
|
readonly content: readonly {
|
|
951
970
|
readonly type: "text";
|
|
952
971
|
readonly text: string;
|
|
@@ -955,19 +974,13 @@ export declare const route: Route<{
|
|
|
955
974
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
956
975
|
} | undefined;
|
|
957
976
|
}[];
|
|
958
|
-
readonly role: "system";
|
|
959
977
|
readonly output_config?: {
|
|
960
978
|
readonly effort: string;
|
|
961
979
|
} | undefined;
|
|
962
980
|
})[];
|
|
963
|
-
readonly stream: true;
|
|
964
|
-
readonly metadata?: {
|
|
965
|
-
readonly user_id?: string | null | undefined;
|
|
966
|
-
} | undefined;
|
|
967
|
-
readonly temperature?: number | undefined;
|
|
968
981
|
readonly tools?: readonly {
|
|
969
|
-
readonly description: string;
|
|
970
982
|
readonly name: string;
|
|
983
|
+
readonly description: string;
|
|
971
984
|
readonly input_schema: {
|
|
972
985
|
readonly [x: string]: unknown;
|
|
973
986
|
};
|
|
@@ -976,72 +989,59 @@ export declare const route: Route<{
|
|
|
976
989
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
977
990
|
} | undefined;
|
|
978
991
|
}[] | undefined;
|
|
979
|
-
readonly
|
|
980
|
-
readonly type: "
|
|
981
|
-
readonly
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
}
|
|
992
|
+
readonly tool_choice?: {
|
|
993
|
+
readonly type: "any" | "auto" | "none";
|
|
994
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
995
|
+
} | {
|
|
996
|
+
readonly type: "tool";
|
|
997
|
+
readonly name: string;
|
|
998
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
999
|
+
} | undefined;
|
|
1000
|
+
readonly stream: true;
|
|
1001
|
+
readonly max_tokens: number;
|
|
1002
|
+
readonly temperature?: number | undefined;
|
|
1003
|
+
readonly top_p?: number | undefined;
|
|
1004
|
+
readonly top_k?: number | undefined;
|
|
1005
|
+
readonly stop_sequences?: readonly string[] | undefined;
|
|
987
1006
|
readonly thinking?: {
|
|
988
|
-
readonly
|
|
989
|
-
readonly budget_tokens: number;
|
|
990
|
-
readonly display?: import("../schema/options.js").OpenString<"summarized" | "omitted"> | undefined;
|
|
1007
|
+
readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
|
|
991
1008
|
readonly block_binding?: {
|
|
992
|
-
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"
|
|
1009
|
+
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
993
1010
|
} | undefined;
|
|
1011
|
+
readonly type: "enabled";
|
|
1012
|
+
readonly budget_tokens: number;
|
|
994
1013
|
} | {
|
|
995
|
-
readonly
|
|
996
|
-
readonly display?: import("../schema/options.js").OpenString<"summarized" | "omitted"> | undefined;
|
|
1014
|
+
readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
|
|
997
1015
|
readonly block_binding?: {
|
|
998
|
-
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"
|
|
1016
|
+
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
999
1017
|
} | undefined;
|
|
1018
|
+
readonly type: "adaptive";
|
|
1000
1019
|
} | {
|
|
1001
|
-
readonly type: "
|
|
1002
|
-
} | undefined;
|
|
1003
|
-
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
|
|
1004
|
-
readonly container?: string | {
|
|
1005
|
-
readonly id?: string | null | undefined;
|
|
1006
|
-
readonly skills?: readonly {
|
|
1007
|
-
readonly [x: string]: unknown;
|
|
1008
|
-
}[] | null | undefined;
|
|
1009
|
-
} | null | undefined;
|
|
1010
|
-
readonly inference_geo?: string | null | undefined;
|
|
1011
|
-
readonly cache_control?: {
|
|
1012
|
-
readonly type: "ephemeral";
|
|
1013
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
1020
|
+
readonly type: "between_tools" | "disabled";
|
|
1014
1021
|
} | undefined;
|
|
1015
1022
|
readonly output_config?: {
|
|
1023
|
+
readonly effort?: string | undefined;
|
|
1016
1024
|
readonly format?: {
|
|
1017
1025
|
readonly type: "json_schema";
|
|
1018
1026
|
readonly schema: {
|
|
1019
1027
|
readonly [x: string]: unknown;
|
|
1020
1028
|
};
|
|
1021
1029
|
} | null | undefined;
|
|
1022
|
-
readonly effort?: string | undefined;
|
|
1023
1030
|
} | undefined;
|
|
1024
|
-
readonly
|
|
1025
|
-
readonly
|
|
1026
|
-
|
|
1027
|
-
readonly instructions?: string | undefined;
|
|
1028
|
-
readonly trigger?: {
|
|
1029
|
-
readonly type: "input_tokens";
|
|
1030
|
-
readonly value: number;
|
|
1031
|
-
} | undefined;
|
|
1032
|
-
readonly pause_after_compaction?: boolean | undefined;
|
|
1033
|
-
}[];
|
|
1031
|
+
readonly cache_control?: {
|
|
1032
|
+
readonly type: "ephemeral";
|
|
1033
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
1034
1034
|
} | undefined;
|
|
1035
|
-
readonly
|
|
1036
|
-
readonly
|
|
1037
|
-
readonly
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1035
|
+
readonly container?: string | {
|
|
1036
|
+
readonly id?: string | null | undefined;
|
|
1037
|
+
readonly skills?: readonly {
|
|
1038
|
+
readonly [x: string]: unknown;
|
|
1039
|
+
}[] | null | undefined;
|
|
1040
|
+
} | null | undefined;
|
|
1041
|
+
readonly inference_geo?: string | null | undefined;
|
|
1042
|
+
readonly metadata?: {
|
|
1043
|
+
readonly user_id?: string | null | undefined;
|
|
1042
1044
|
} | undefined;
|
|
1043
|
-
readonly
|
|
1044
|
-
readonly top_k?: number | undefined;
|
|
1045
|
-
readonly stop_sequences?: readonly string[] | undefined;
|
|
1045
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
|
|
1046
1046
|
}, HttpTransport.HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>;
|
|
1047
1047
|
export * as AnthropicMessages from "./anthropic-messages.js";
|