@opencode/ai 2.1.3 → 2.1.4

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.
Files changed (106) hide show
  1. package/dist/experimental/evaluation.js +3 -10
  2. package/dist/image-client.d.ts +8 -8
  3. package/dist/image.d.ts +148 -148
  4. package/dist/promise.d.ts +120 -120
  5. package/dist/protocols/alibaba-chat.d.ts +12 -12
  6. package/dist/protocols/alibaba-messages.d.ts +11 -11
  7. package/dist/protocols/alibaba-responses.d.ts +35 -35
  8. package/dist/protocols/anthropic-messages.d.ts +40 -44
  9. package/dist/protocols/anthropic-messages.js +3 -3
  10. package/dist/protocols/bedrock-converse.d.ts +30 -32
  11. package/dist/protocols/bedrock-converse.js +2 -3
  12. package/dist/protocols/cartesia-speech.d.ts +32 -32
  13. package/dist/protocols/cohere-chat.d.ts +7 -8
  14. package/dist/protocols/deepgram-speech.d.ts +32 -32
  15. package/dist/protocols/elevenlabs-speech.d.ts +32 -32
  16. package/dist/protocols/gemini.d.ts +34 -34
  17. package/dist/protocols/gemini.js +2 -2
  18. package/dist/protocols/google-interactions.d.ts +14 -14
  19. package/dist/protocols/google-interactions.js +2 -2
  20. package/dist/protocols/google-speech.d.ts +32 -32
  21. package/dist/protocols/google-transcription.d.ts +32 -32
  22. package/dist/protocols/meta-messages.d.ts +23 -23
  23. package/dist/protocols/meta-responses.d.ts +78 -78
  24. package/dist/protocols/mistral-chat.d.ts +81 -78
  25. package/dist/protocols/mistral-chat.js +2 -1
  26. package/dist/protocols/open-responses-channel.js +47 -46
  27. package/dist/protocols/open-responses-continuation.d.ts +8 -2
  28. package/dist/protocols/open-responses-continuation.js +3 -1
  29. package/dist/protocols/open-responses.d.ts +398 -398
  30. package/dist/protocols/open-responses.js +8 -7
  31. package/dist/protocols/openai-chat.d.ts +60 -60
  32. package/dist/protocols/openai-chat.js +3 -3
  33. package/dist/protocols/openai-compatible-chat.d.ts +13 -14
  34. package/dist/protocols/openai-compatible-responses.d.ts +36 -37
  35. package/dist/protocols/openai-images.d.ts +32 -32
  36. package/dist/protocols/openai-responses.d.ts +235 -235
  37. package/dist/protocols/openai-responses.js +1 -1
  38. package/dist/protocols/openai-speech.d.ts +32 -32
  39. package/dist/protocols/openai-transcription.d.ts +32 -32
  40. package/dist/protocols/openai-transcription.js +12 -7
  41. package/dist/protocols/utils/partial-json-options.d.ts +0 -1
  42. package/dist/protocols/utils/partial-json-options.js +0 -1
  43. package/dist/protocols/utils/tool-stream.d.ts +1 -1
  44. package/dist/protocols/venice-chat.d.ts +52 -53
  45. package/dist/protocols/venice-chat.js +6 -5
  46. package/dist/protocols/xai-responses.d.ts +78 -78
  47. package/dist/protocols/zai-chat.d.ts +33 -30
  48. package/dist/protocols/zai-chat.js +8 -3
  49. package/dist/protocols/zai-messages.d.ts +21 -19
  50. package/dist/protocols/zai-messages.js +3 -2
  51. package/dist/provider-error.js +5 -3
  52. package/dist/providers/alibaba.d.ts +69 -69
  53. package/dist/providers/amazon-bedrock-mantle.d.ts +202 -202
  54. package/dist/providers/amazon-bedrock.d.ts +15 -15
  55. package/dist/providers/anthropic-compatible.d.ts +13 -13
  56. package/dist/providers/anthropic.d.ts +13 -13
  57. package/dist/providers/azure.d.ts +106 -106
  58. package/dist/providers/baseten.d.ts +24 -24
  59. package/dist/providers/cerebras.d.ts +24 -24
  60. package/dist/providers/cloudflare-ai-gateway.d.ts +230 -227
  61. package/dist/providers/cloudflare-ai-gateway.js +1 -2
  62. package/dist/providers/cloudflare-workers-ai.d.ts +24 -24
  63. package/dist/providers/cohere.d.ts +75 -75
  64. package/dist/providers/deepinfra.d.ts +24 -24
  65. package/dist/providers/deepseek.d.ts +24 -24
  66. package/dist/providers/digitalocean.d.ts +36 -36
  67. package/dist/providers/fireworks.d.ts +24 -24
  68. package/dist/providers/google-vertex-chat.d.ts +12 -12
  69. package/dist/providers/google-vertex-messages.d.ts +13 -13
  70. package/dist/providers/google-vertex-mistral.d.ts +17 -17
  71. package/dist/providers/google-vertex-responses.d.ts +35 -35
  72. package/dist/providers/google-vertex.d.ts +17 -17
  73. package/dist/providers/google-vertex.js +2 -2
  74. package/dist/providers/google.d.ts +17 -17
  75. package/dist/providers/groq.d.ts +24 -24
  76. package/dist/providers/meta.d.ts +179 -179
  77. package/dist/providers/minimax.d.ts +71 -71
  78. package/dist/providers/mistral.d.ts +28 -28
  79. package/dist/providers/moonshot.d.ts +202 -202
  80. package/dist/providers/open-responses-options.d.ts +0 -1
  81. package/dist/providers/open-responses-options.js +1 -1
  82. package/dist/providers/openai-compatible-responses.d.ts +35 -35
  83. package/dist/providers/openai-compatible.d.ts +12 -12
  84. package/dist/providers/openai-compatible.js +1 -1
  85. package/dist/providers/openai-options.d.ts +0 -1
  86. package/dist/providers/openai-options.js +0 -1
  87. package/dist/providers/openai.d.ts +100 -100
  88. package/dist/providers/openrouter.d.ts +36 -36
  89. package/dist/providers/togetherai.d.ts +24 -24
  90. package/dist/providers/venice.d.ts +195 -20
  91. package/dist/providers/xai.d.ts +12 -12
  92. package/dist/providers/zai-coding-plan.d.ts +149 -69
  93. package/dist/providers/zai.d.ts +84 -19
  94. package/dist/route/auth-options.d.ts +0 -3
  95. package/dist/route/auth.d.ts +0 -2
  96. package/dist/route/auth.js +0 -2
  97. package/dist/route/client.d.ts +0 -2
  98. package/dist/route/client.js +3 -4
  99. package/dist/route/executor-service.js +1 -1
  100. package/dist/speech-client.d.ts +8 -8
  101. package/dist/speech.d.ts +148 -148
  102. package/dist/transcription-client.d.ts +8 -8
  103. package/dist/transcription.d.ts +148 -148
  104. package/dist/video-client.d.ts +8 -8
  105. package/dist/video.d.ts +114 -114
  106. package/package.json +6 -5
@@ -30,55 +30,10 @@ export declare const baseURL: (input: GatewayURL) => string;
30
30
  export declare const responsesRoute: import("../route/client.js").Route<{
31
31
  readonly model: string;
32
32
  readonly input: readonly ({
33
- readonly [x: string]: unknown;
34
- readonly type: "web_search_call";
35
- readonly id: string;
36
- readonly status?: string | undefined;
37
- readonly action?: {
38
- readonly [x: string]: unknown;
39
- } | null | undefined;
40
- } | {
41
- readonly [x: string]: unknown;
42
- readonly type: "file_search_call";
43
- readonly id: string;
44
- readonly status?: string | undefined;
45
- readonly queries?: readonly string[] | undefined;
46
- readonly results?: readonly {
47
- readonly [x: string]: unknown;
48
- }[] | null | undefined;
49
- } | {
50
- readonly [x: string]: unknown;
51
- readonly type: "code_interpreter_call";
52
- readonly id: string;
53
- readonly status?: string | undefined;
54
- readonly code?: string | null | undefined;
55
- readonly container_id?: string | null | undefined;
56
- readonly outputs?: readonly {
57
- readonly [x: string]: unknown;
58
- }[] | null | undefined;
59
- } | {
60
- readonly [x: string]: unknown;
61
- readonly type: "mcp_call";
62
- readonly id: string;
63
- readonly status?: string | undefined;
64
- readonly server_label?: string | undefined;
65
- readonly name?: string | undefined;
66
- readonly arguments?: string | undefined;
67
- readonly output?: string | null | undefined;
68
- readonly error?: unknown;
69
- } | {
70
33
  readonly type: "configuration_update";
71
34
  readonly reasoning: {
72
35
  readonly effort: import("../schema/options.js").ReasoningEffort;
73
36
  };
74
- } | {
75
- readonly [x: string]: unknown;
76
- readonly type: string;
77
- readonly id: string;
78
- } | {
79
- readonly type: "compaction";
80
- readonly id?: string | null | undefined;
81
- readonly encrypted_content: string;
82
37
  } | {
83
38
  readonly type: "message";
84
39
  readonly role: "system";
@@ -87,10 +42,45 @@ export declare const responsesRoute: import("../route/client.js").Route<{
87
42
  readonly type: "message";
88
43
  readonly role: "developer";
89
44
  readonly content: string;
45
+ } | {
46
+ readonly type: "function_call_output";
47
+ readonly call_id: string;
48
+ readonly output: string | readonly ({
49
+ readonly type: "input_text";
50
+ readonly text: string;
51
+ } | {
52
+ readonly type: "input_video";
53
+ readonly video_url: string;
54
+ } | {
55
+ readonly type: "input_image";
56
+ readonly image_url: string;
57
+ readonly detail?: string | undefined;
58
+ } | {
59
+ readonly type: "input_file";
60
+ readonly filename: string;
61
+ readonly detail?: string | undefined;
62
+ readonly file_data?: string | undefined;
63
+ readonly file_url?: string | undefined;
64
+ })[];
65
+ } | {
66
+ readonly type: "reasoning";
67
+ readonly id?: string | undefined;
68
+ readonly summary: readonly {
69
+ readonly type: "summary_text";
70
+ readonly text: string;
71
+ }[];
72
+ readonly encrypted_content?: string | null | undefined;
73
+ } | {
74
+ readonly type: "compaction";
75
+ readonly id?: string | null | undefined;
76
+ readonly encrypted_content: string;
90
77
  } | {
91
78
  readonly type: "message";
92
79
  readonly role: "user";
93
80
  readonly content: readonly ({
81
+ readonly type: "input_text";
82
+ readonly text: string;
83
+ } | {
94
84
  readonly type: "input_image";
95
85
  readonly image_url: string;
96
86
  readonly detail?: string | undefined;
@@ -100,9 +90,6 @@ export declare const responsesRoute: import("../route/client.js").Route<{
100
90
  readonly detail?: string | undefined;
101
91
  readonly file_data?: string | undefined;
102
92
  readonly file_url?: string | undefined;
103
- } | {
104
- readonly type: "input_text";
105
- readonly text: string;
106
93
  })[];
107
94
  readonly id?: string | undefined;
108
95
  readonly status?: string | undefined;
@@ -116,14 +103,6 @@ export declare const responsesRoute: import("../route/client.js").Route<{
116
103
  }[];
117
104
  readonly phase?: "commentary" | "final_answer" | null | undefined;
118
105
  readonly status?: string | undefined;
119
- } | {
120
- readonly type: "reasoning";
121
- readonly id?: string | undefined;
122
- readonly summary: readonly {
123
- readonly type: "summary_text";
124
- readonly text: string;
125
- }[];
126
- readonly encrypted_content?: string | null | undefined;
127
106
  } | {
128
107
  readonly type: "function_call";
129
108
  readonly id?: string | undefined;
@@ -132,25 +111,46 @@ export declare const responsesRoute: import("../route/client.js").Route<{
132
111
  readonly namespace?: string | undefined;
133
112
  readonly arguments: string;
134
113
  } | {
135
- readonly type: "function_call_output";
136
- readonly call_id: string;
137
- readonly output: string | readonly ({
138
- readonly type: "input_image";
139
- readonly image_url: string;
140
- readonly detail?: string | undefined;
141
- } | {
142
- readonly type: "input_file";
143
- readonly filename: string;
144
- readonly detail?: string | undefined;
145
- readonly file_data?: string | undefined;
146
- readonly file_url?: string | undefined;
147
- } | {
148
- readonly type: "input_text";
149
- readonly text: string;
150
- } | {
151
- readonly type: "input_video";
152
- readonly video_url: string;
153
- })[];
114
+ readonly [x: string]: unknown;
115
+ readonly type: "web_search_call";
116
+ readonly id: string;
117
+ readonly status?: string | undefined;
118
+ readonly action?: {
119
+ readonly [x: string]: unknown;
120
+ } | null | undefined;
121
+ } | {
122
+ readonly [x: string]: unknown;
123
+ readonly type: "file_search_call";
124
+ readonly id: string;
125
+ readonly status?: string | undefined;
126
+ readonly queries?: readonly string[] | undefined;
127
+ readonly results?: readonly {
128
+ readonly [x: string]: unknown;
129
+ }[] | null | undefined;
130
+ } | {
131
+ readonly [x: string]: unknown;
132
+ readonly type: "code_interpreter_call";
133
+ readonly id: string;
134
+ readonly status?: string | undefined;
135
+ readonly code?: string | null | undefined;
136
+ readonly container_id?: string | null | undefined;
137
+ readonly outputs?: readonly {
138
+ readonly [x: string]: unknown;
139
+ }[] | null | undefined;
140
+ } | {
141
+ readonly [x: string]: unknown;
142
+ readonly type: "mcp_call";
143
+ readonly id: string;
144
+ readonly status?: string | undefined;
145
+ readonly server_label?: string | undefined;
146
+ readonly name?: string | undefined;
147
+ readonly arguments?: string | undefined;
148
+ readonly output?: string | null | undefined;
149
+ readonly error?: unknown;
150
+ } | {
151
+ readonly [x: string]: unknown;
152
+ readonly type: string;
153
+ readonly id: string;
154
154
  })[];
155
155
  readonly instructions?: string | undefined;
156
156
  readonly store?: boolean | undefined;
@@ -181,6 +181,19 @@ export declare const responsesRoute: import("../route/client.js").Route<{
181
181
  readonly presence_penalty?: number | undefined;
182
182
  readonly frequency_penalty?: number | undefined;
183
183
  readonly tools?: readonly ({
184
+ readonly type: "namespace";
185
+ readonly name: string;
186
+ readonly description: string;
187
+ readonly tools: readonly {
188
+ readonly type: "function";
189
+ readonly name: string;
190
+ readonly description: string;
191
+ readonly parameters: {
192
+ readonly [x: string]: unknown;
193
+ };
194
+ readonly strict?: boolean | undefined;
195
+ }[];
196
+ } | {
184
197
  readonly type: "function";
185
198
  readonly name: string;
186
199
  readonly description: string;
@@ -198,19 +211,6 @@ export declare const responsesRoute: import("../route/client.js").Route<{
198
211
  readonly partial_images?: number | undefined;
199
212
  readonly quality?: "auto" | "high" | "low" | "medium" | undefined;
200
213
  readonly size?: string | undefined;
201
- } | {
202
- readonly type: "namespace";
203
- readonly name: string;
204
- readonly description: string;
205
- readonly tools: readonly {
206
- readonly type: "function";
207
- readonly name: string;
208
- readonly description: string;
209
- readonly parameters: {
210
- readonly [x: string]: unknown;
211
- };
212
- readonly strict?: boolean | undefined;
213
- }[];
214
214
  })[] | undefined;
215
215
  readonly tool_choice?: "auto" | "none" | "required" | {
216
216
  readonly type: "function";
@@ -376,23 +376,15 @@ export declare const messagesRoute: import("../route/client.js").Route<{
376
376
  } | {
377
377
  readonly role: "assistant";
378
378
  readonly content: readonly ({
379
+ readonly type: "compaction";
380
+ readonly content: string | null;
381
+ } | {
379
382
  readonly type: "text";
380
383
  readonly text: string;
381
384
  readonly cache_control?: {
382
385
  readonly type: "ephemeral";
383
386
  readonly ttl?: "1h" | "5m" | undefined;
384
387
  } | undefined;
385
- } | {
386
- readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
387
- readonly tool_use_id: string;
388
- readonly content: unknown;
389
- readonly cache_control?: {
390
- readonly type: "ephemeral";
391
- readonly ttl?: "1h" | "5m" | undefined;
392
- } | undefined;
393
- } | {
394
- readonly type: "compaction";
395
- readonly content: string | null;
396
388
  } | {
397
389
  readonly type: "thinking";
398
390
  readonly thinking: string;
@@ -426,6 +418,14 @@ export declare const messagesRoute: import("../route/client.js").Route<{
426
418
  readonly type: "ephemeral";
427
419
  readonly ttl?: "1h" | "5m" | undefined;
428
420
  } | undefined;
421
+ } | {
422
+ readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
423
+ readonly tool_use_id: string;
424
+ readonly content: unknown;
425
+ readonly cache_control?: {
426
+ readonly type: "ephemeral";
427
+ readonly ttl?: "1h" | "5m" | undefined;
428
+ } | undefined;
429
429
  })[];
430
430
  } | {
431
431
  readonly role: "system";
@@ -467,6 +467,8 @@ export declare const messagesRoute: import("../route/client.js").Route<{
467
467
  readonly top_k?: number | undefined;
468
468
  readonly stop_sequences?: readonly string[] | undefined;
469
469
  readonly thinking?: {
470
+ readonly type: "between_tools" | "disabled";
471
+ } | {
470
472
  readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
471
473
  readonly block_binding?: {
472
474
  readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
@@ -479,8 +481,6 @@ export declare const messagesRoute: import("../route/client.js").Route<{
479
481
  readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
480
482
  } | undefined;
481
483
  readonly type: "adaptive";
482
- } | {
483
- readonly type: "between_tools" | "disabled";
484
484
  } | undefined;
485
485
  readonly output_config?: {
486
486
  readonly effort?: string | undefined;
@@ -512,13 +512,6 @@ export declare const route: import("../route/client.js").Route<{
512
512
  readonly messages: readonly ({
513
513
  readonly role: "system";
514
514
  readonly content: string | readonly ({
515
- readonly type: "text";
516
- readonly text: string;
517
- readonly cache_control?: {
518
- readonly type: "ephemeral";
519
- readonly ttl?: string | undefined;
520
- } | undefined;
521
- } | {
522
515
  readonly type: "image_url";
523
516
  readonly image_url: {
524
517
  readonly url: string;
@@ -529,17 +522,17 @@ export declare const route: import("../route/client.js").Route<{
529
522
  readonly filename: string;
530
523
  readonly file_data: string;
531
524
  };
532
- })[];
533
- } | {
534
- readonly role: "user";
535
- readonly content: string | readonly ({
525
+ } | {
536
526
  readonly type: "text";
537
527
  readonly text: string;
538
528
  readonly cache_control?: {
539
529
  readonly type: "ephemeral";
540
530
  readonly ttl?: string | undefined;
541
531
  } | undefined;
542
- } | {
532
+ })[];
533
+ } | {
534
+ readonly role: "user";
535
+ readonly content: string | readonly ({
543
536
  readonly type: "image_url";
544
537
  readonly image_url: {
545
538
  readonly url: string;
@@ -550,6 +543,13 @@ export declare const route: import("../route/client.js").Route<{
550
543
  readonly filename: string;
551
544
  readonly file_data: string;
552
545
  };
546
+ } | {
547
+ readonly type: "text";
548
+ readonly text: string;
549
+ readonly cache_control?: {
550
+ readonly type: "ephemeral";
551
+ readonly ttl?: string | undefined;
552
+ } | undefined;
553
553
  })[];
554
554
  } | {
555
555
  readonly role: "tool";
@@ -771,23 +771,15 @@ export declare const routes: (import("../route/client.js").Route<{
771
771
  } | {
772
772
  readonly role: "assistant";
773
773
  readonly content: readonly ({
774
+ readonly type: "compaction";
775
+ readonly content: string | null;
776
+ } | {
774
777
  readonly type: "text";
775
778
  readonly text: string;
776
779
  readonly cache_control?: {
777
780
  readonly type: "ephemeral";
778
781
  readonly ttl?: "1h" | "5m" | undefined;
779
782
  } | undefined;
780
- } | {
781
- readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
782
- readonly tool_use_id: string;
783
- readonly content: unknown;
784
- readonly cache_control?: {
785
- readonly type: "ephemeral";
786
- readonly ttl?: "1h" | "5m" | undefined;
787
- } | undefined;
788
- } | {
789
- readonly type: "compaction";
790
- readonly content: string | null;
791
783
  } | {
792
784
  readonly type: "thinking";
793
785
  readonly thinking: string;
@@ -821,6 +813,14 @@ export declare const routes: (import("../route/client.js").Route<{
821
813
  readonly type: "ephemeral";
822
814
  readonly ttl?: "1h" | "5m" | undefined;
823
815
  } | undefined;
816
+ } | {
817
+ readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
818
+ readonly tool_use_id: string;
819
+ readonly content: unknown;
820
+ readonly cache_control?: {
821
+ readonly type: "ephemeral";
822
+ readonly ttl?: "1h" | "5m" | undefined;
823
+ } | undefined;
824
824
  })[];
825
825
  } | {
826
826
  readonly role: "system";
@@ -862,6 +862,8 @@ export declare const routes: (import("../route/client.js").Route<{
862
862
  readonly top_k?: number | undefined;
863
863
  readonly stop_sequences?: readonly string[] | undefined;
864
864
  readonly thinking?: {
865
+ readonly type: "between_tools" | "disabled";
866
+ } | {
865
867
  readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
866
868
  readonly block_binding?: {
867
869
  readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
@@ -874,8 +876,6 @@ export declare const routes: (import("../route/client.js").Route<{
874
876
  readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
875
877
  } | undefined;
876
878
  readonly type: "adaptive";
877
- } | {
878
- readonly type: "between_tools" | "disabled";
879
879
  } | undefined;
880
880
  readonly output_config?: {
881
881
  readonly effort?: string | undefined;
@@ -906,13 +906,6 @@ export declare const routes: (import("../route/client.js").Route<{
906
906
  readonly messages: readonly ({
907
907
  readonly role: "system";
908
908
  readonly content: string | readonly ({
909
- readonly type: "text";
910
- readonly text: string;
911
- readonly cache_control?: {
912
- readonly type: "ephemeral";
913
- readonly ttl?: string | undefined;
914
- } | undefined;
915
- } | {
916
909
  readonly type: "image_url";
917
910
  readonly image_url: {
918
911
  readonly url: string;
@@ -923,17 +916,17 @@ export declare const routes: (import("../route/client.js").Route<{
923
916
  readonly filename: string;
924
917
  readonly file_data: string;
925
918
  };
926
- })[];
927
- } | {
928
- readonly role: "user";
929
- readonly content: string | readonly ({
919
+ } | {
930
920
  readonly type: "text";
931
921
  readonly text: string;
932
922
  readonly cache_control?: {
933
923
  readonly type: "ephemeral";
934
924
  readonly ttl?: string | undefined;
935
925
  } | undefined;
936
- } | {
926
+ })[];
927
+ } | {
928
+ readonly role: "user";
929
+ readonly content: string | readonly ({
937
930
  readonly type: "image_url";
938
931
  readonly image_url: {
939
932
  readonly url: string;
@@ -944,6 +937,13 @@ export declare const routes: (import("../route/client.js").Route<{
944
937
  readonly filename: string;
945
938
  readonly file_data: string;
946
939
  };
940
+ } | {
941
+ readonly type: "text";
942
+ readonly text: string;
943
+ readonly cache_control?: {
944
+ readonly type: "ephemeral";
945
+ readonly ttl?: string | undefined;
946
+ } | undefined;
947
947
  })[];
948
948
  } | {
949
949
  readonly role: "tool";
@@ -1025,55 +1025,10 @@ export declare const routes: (import("../route/client.js").Route<{
1025
1025
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | import("../route/client.js").Route<{
1026
1026
  readonly model: string;
1027
1027
  readonly input: readonly ({
1028
- readonly [x: string]: unknown;
1029
- readonly type: "web_search_call";
1030
- readonly id: string;
1031
- readonly status?: string | undefined;
1032
- readonly action?: {
1033
- readonly [x: string]: unknown;
1034
- } | null | undefined;
1035
- } | {
1036
- readonly [x: string]: unknown;
1037
- readonly type: "file_search_call";
1038
- readonly id: string;
1039
- readonly status?: string | undefined;
1040
- readonly queries?: readonly string[] | undefined;
1041
- readonly results?: readonly {
1042
- readonly [x: string]: unknown;
1043
- }[] | null | undefined;
1044
- } | {
1045
- readonly [x: string]: unknown;
1046
- readonly type: "code_interpreter_call";
1047
- readonly id: string;
1048
- readonly status?: string | undefined;
1049
- readonly code?: string | null | undefined;
1050
- readonly container_id?: string | null | undefined;
1051
- readonly outputs?: readonly {
1052
- readonly [x: string]: unknown;
1053
- }[] | null | undefined;
1054
- } | {
1055
- readonly [x: string]: unknown;
1056
- readonly type: "mcp_call";
1057
- readonly id: string;
1058
- readonly status?: string | undefined;
1059
- readonly server_label?: string | undefined;
1060
- readonly name?: string | undefined;
1061
- readonly arguments?: string | undefined;
1062
- readonly output?: string | null | undefined;
1063
- readonly error?: unknown;
1064
- } | {
1065
1028
  readonly type: "configuration_update";
1066
1029
  readonly reasoning: {
1067
1030
  readonly effort: import("../schema/options.js").ReasoningEffort;
1068
1031
  };
1069
- } | {
1070
- readonly [x: string]: unknown;
1071
- readonly type: string;
1072
- readonly id: string;
1073
- } | {
1074
- readonly type: "compaction";
1075
- readonly id?: string | null | undefined;
1076
- readonly encrypted_content: string;
1077
1032
  } | {
1078
1033
  readonly type: "message";
1079
1034
  readonly role: "system";
@@ -1082,10 +1037,45 @@ export declare const routes: (import("../route/client.js").Route<{
1082
1037
  readonly type: "message";
1083
1038
  readonly role: "developer";
1084
1039
  readonly content: string;
1040
+ } | {
1041
+ readonly type: "function_call_output";
1042
+ readonly call_id: string;
1043
+ readonly output: string | readonly ({
1044
+ readonly type: "input_text";
1045
+ readonly text: string;
1046
+ } | {
1047
+ readonly type: "input_video";
1048
+ readonly video_url: string;
1049
+ } | {
1050
+ readonly type: "input_image";
1051
+ readonly image_url: string;
1052
+ readonly detail?: string | undefined;
1053
+ } | {
1054
+ readonly type: "input_file";
1055
+ readonly filename: string;
1056
+ readonly detail?: string | undefined;
1057
+ readonly file_data?: string | undefined;
1058
+ readonly file_url?: string | undefined;
1059
+ })[];
1060
+ } | {
1061
+ readonly type: "reasoning";
1062
+ readonly id?: string | undefined;
1063
+ readonly summary: readonly {
1064
+ readonly type: "summary_text";
1065
+ readonly text: string;
1066
+ }[];
1067
+ readonly encrypted_content?: string | null | undefined;
1068
+ } | {
1069
+ readonly type: "compaction";
1070
+ readonly id?: string | null | undefined;
1071
+ readonly encrypted_content: string;
1085
1072
  } | {
1086
1073
  readonly type: "message";
1087
1074
  readonly role: "user";
1088
1075
  readonly content: readonly ({
1076
+ readonly type: "input_text";
1077
+ readonly text: string;
1078
+ } | {
1089
1079
  readonly type: "input_image";
1090
1080
  readonly image_url: string;
1091
1081
  readonly detail?: string | undefined;
@@ -1095,9 +1085,6 @@ export declare const routes: (import("../route/client.js").Route<{
1095
1085
  readonly detail?: string | undefined;
1096
1086
  readonly file_data?: string | undefined;
1097
1087
  readonly file_url?: string | undefined;
1098
- } | {
1099
- readonly type: "input_text";
1100
- readonly text: string;
1101
1088
  })[];
1102
1089
  readonly id?: string | undefined;
1103
1090
  readonly status?: string | undefined;
@@ -1111,14 +1098,6 @@ export declare const routes: (import("../route/client.js").Route<{
1111
1098
  }[];
1112
1099
  readonly phase?: "commentary" | "final_answer" | null | undefined;
1113
1100
  readonly status?: string | undefined;
1114
- } | {
1115
- readonly type: "reasoning";
1116
- readonly id?: string | undefined;
1117
- readonly summary: readonly {
1118
- readonly type: "summary_text";
1119
- readonly text: string;
1120
- }[];
1121
- readonly encrypted_content?: string | null | undefined;
1122
1101
  } | {
1123
1102
  readonly type: "function_call";
1124
1103
  readonly id?: string | undefined;
@@ -1127,25 +1106,46 @@ export declare const routes: (import("../route/client.js").Route<{
1127
1106
  readonly namespace?: string | undefined;
1128
1107
  readonly arguments: string;
1129
1108
  } | {
1130
- readonly type: "function_call_output";
1131
- readonly call_id: string;
1132
- readonly output: string | readonly ({
1133
- readonly type: "input_image";
1134
- readonly image_url: string;
1135
- readonly detail?: string | undefined;
1136
- } | {
1137
- readonly type: "input_file";
1138
- readonly filename: string;
1139
- readonly detail?: string | undefined;
1140
- readonly file_data?: string | undefined;
1141
- readonly file_url?: string | undefined;
1142
- } | {
1143
- readonly type: "input_text";
1144
- readonly text: string;
1145
- } | {
1146
- readonly type: "input_video";
1147
- readonly video_url: string;
1148
- })[];
1109
+ readonly [x: string]: unknown;
1110
+ readonly type: "web_search_call";
1111
+ readonly id: string;
1112
+ readonly status?: string | undefined;
1113
+ readonly action?: {
1114
+ readonly [x: string]: unknown;
1115
+ } | null | undefined;
1116
+ } | {
1117
+ readonly [x: string]: unknown;
1118
+ readonly type: "file_search_call";
1119
+ readonly id: string;
1120
+ readonly status?: string | undefined;
1121
+ readonly queries?: readonly string[] | undefined;
1122
+ readonly results?: readonly {
1123
+ readonly [x: string]: unknown;
1124
+ }[] | null | undefined;
1125
+ } | {
1126
+ readonly [x: string]: unknown;
1127
+ readonly type: "code_interpreter_call";
1128
+ readonly id: string;
1129
+ readonly status?: string | undefined;
1130
+ readonly code?: string | null | undefined;
1131
+ readonly container_id?: string | null | undefined;
1132
+ readonly outputs?: readonly {
1133
+ readonly [x: string]: unknown;
1134
+ }[] | null | undefined;
1135
+ } | {
1136
+ readonly [x: string]: unknown;
1137
+ readonly type: "mcp_call";
1138
+ readonly id: string;
1139
+ readonly status?: string | undefined;
1140
+ readonly server_label?: string | undefined;
1141
+ readonly name?: string | undefined;
1142
+ readonly arguments?: string | undefined;
1143
+ readonly output?: string | null | undefined;
1144
+ readonly error?: unknown;
1145
+ } | {
1146
+ readonly [x: string]: unknown;
1147
+ readonly type: string;
1148
+ readonly id: string;
1149
1149
  })[];
1150
1150
  readonly instructions?: string | undefined;
1151
1151
  readonly store?: boolean | undefined;
@@ -1176,6 +1176,19 @@ export declare const routes: (import("../route/client.js").Route<{
1176
1176
  readonly presence_penalty?: number | undefined;
1177
1177
  readonly frequency_penalty?: number | undefined;
1178
1178
  readonly tools?: readonly ({
1179
+ readonly type: "namespace";
1180
+ readonly name: string;
1181
+ readonly description: string;
1182
+ readonly tools: readonly {
1183
+ readonly type: "function";
1184
+ readonly name: string;
1185
+ readonly description: string;
1186
+ readonly parameters: {
1187
+ readonly [x: string]: unknown;
1188
+ };
1189
+ readonly strict?: boolean | undefined;
1190
+ }[];
1191
+ } | {
1179
1192
  readonly type: "function";
1180
1193
  readonly name: string;
1181
1194
  readonly description: string;
@@ -1193,19 +1206,6 @@ export declare const routes: (import("../route/client.js").Route<{
1193
1206
  readonly partial_images?: number | undefined;
1194
1207
  readonly quality?: "auto" | "high" | "low" | "medium" | undefined;
1195
1208
  readonly size?: string | undefined;
1196
- } | {
1197
- readonly type: "namespace";
1198
- readonly name: string;
1199
- readonly description: string;
1200
- readonly tools: readonly {
1201
- readonly type: "function";
1202
- readonly name: string;
1203
- readonly description: string;
1204
- readonly parameters: {
1205
- readonly [x: string]: unknown;
1206
- };
1207
- readonly strict?: boolean | undefined;
1208
- }[];
1209
1209
  })[] | undefined;
1210
1210
  readonly tool_choice?: "auto" | "none" | "required" | {
1211
1211
  readonly type: "function";
@@ -1231,7 +1231,10 @@ export declare const routes: (import("../route/client.js").Route<{
1231
1231
  }>)[];
1232
1232
  export declare const configure: (input: LanguageModelOptions) => {
1233
1233
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
1234
- model: (input: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
1234
+ model: (value: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, {
1235
+ endpoint: import("../route/client.js").CompactOperation;
1236
+ trigger: import("../route/client.js").TriggerCompactOperation;
1237
+ }>;
1235
1238
  configure: typeof configure;
1236
1239
  };
1237
1240
  export declare const provider: {