@opencode-ai/ai 0.0.0-next-16255 → 0.0.0-next-16273

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 (42) hide show
  1. package/dist/llm.d.ts +60 -60
  2. package/dist/protocols/anthropic-messages.d.ts +303 -303
  3. package/dist/protocols/anthropic-messages.js +1 -0
  4. package/dist/protocols/bedrock-converse.d.ts +246 -242
  5. package/dist/protocols/gemini.d.ts +136 -132
  6. package/dist/protocols/gemini.js +1 -0
  7. package/dist/protocols/open-responses.d.ts +232 -232
  8. package/dist/protocols/openai-chat.d.ts +147 -141
  9. package/dist/protocols/openai-chat.js +1 -0
  10. package/dist/protocols/openai-compatible-chat.d.ts +48 -46
  11. package/dist/protocols/openai-compatible-responses.d.ts +56 -56
  12. package/dist/protocols/openai-responses.d.ts +388 -388
  13. package/dist/protocols/shared.d.ts +5 -4
  14. package/dist/protocols/shared.js +1 -0
  15. package/dist/protocols/utils/bedrock-media.d.ts +10 -10
  16. package/dist/protocols/utils/tool-stream.d.ts +180 -180
  17. package/dist/providers/amazon-bedrock.d.ts +109 -107
  18. package/dist/providers/anthropic-compatible.d.ts +145 -145
  19. package/dist/providers/anthropic.d.ts +145 -145
  20. package/dist/providers/azure.d.ts +112 -110
  21. package/dist/providers/cloudflare.d.ts +144 -138
  22. package/dist/providers/github-copilot.d.ts +112 -110
  23. package/dist/providers/google-vertex-chat.d.ts +48 -46
  24. package/dist/providers/google-vertex-messages.d.ts +145 -146
  25. package/dist/providers/google-vertex-responses.d.ts +56 -56
  26. package/dist/providers/google-vertex.d.ts +52 -50
  27. package/dist/providers/google.d.ts +52 -50
  28. package/dist/providers/openai-compatible-responses.d.ts +56 -56
  29. package/dist/providers/openai-compatible.d.ts +48 -46
  30. package/dist/providers/openai.d.ts +176 -174
  31. package/dist/providers/openrouter.d.ts +147 -141
  32. package/dist/providers/xai.d.ts +112 -110
  33. package/dist/route/client.d.ts +60 -60
  34. package/dist/schema/errors.d.ts +2 -6
  35. package/dist/schema/errors.js +2 -5
  36. package/dist/schema/events.d.ts +1117 -1115
  37. package/dist/schema/messages.d.ts +9 -9
  38. package/dist/schema/messages.js +3 -4
  39. package/dist/tool-runtime.js +1 -1
  40. package/dist/tool.d.ts +5 -4
  41. package/dist/tool.js +1 -0
  42. package/package.json +5 -5
@@ -21,91 +21,91 @@ export interface Settings extends ProviderPackage.Settings {
21
21
  readonly topP?: number;
22
22
  }
23
23
  export declare const routes: import("../route").Route<{
24
- readonly messages: readonly (import("effect/Schema").Struct.ReadonlySide<{
25
- readonly role: import("effect/Schema").Literal<"user">;
26
- readonly content: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
27
- readonly text: import("effect/Schema").String;
28
- }>, import("effect/Schema").Struct<{
29
- readonly image: import("effect/Schema").Struct<{
30
- readonly format: import("effect/Schema").Literals<readonly ["png", "jpeg", "gif", "webp"]>;
31
- readonly source: import("effect/Schema").Struct<{
32
- readonly bytes: import("effect/Schema").String;
33
- }>;
34
- }>;
35
- }>, import("effect/Schema").Struct<{
36
- readonly document: import("effect/Schema").Struct<{
37
- readonly format: import("effect/Schema").Literals<readonly ["pdf", "csv", "doc", "docx", "xls", "xlsx", "html", "txt", "md"]>;
38
- readonly name: import("effect/Schema").String;
39
- readonly source: import("effect/Schema").Struct<{
40
- readonly bytes: import("effect/Schema").String;
41
- }>;
42
- }>;
43
- }>, import("effect/Schema").Struct<{
44
- readonly toolResult: import("effect/Schema").Struct<{
45
- readonly toolUseId: import("effect/Schema").String;
46
- readonly content: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
47
- readonly text: import("effect/Schema").String;
48
- }>, import("effect/Schema").Struct<{
49
- readonly json: import("effect/Schema").Unknown;
50
- }>, import("effect/Schema").Struct<{
51
- readonly image: import("effect/Schema").Struct<{
52
- readonly format: import("effect/Schema").Literals<readonly ["png", "jpeg", "gif", "webp"]>;
53
- readonly source: import("effect/Schema").Struct<{
54
- readonly bytes: import("effect/Schema").String;
55
- }>;
56
- }>;
57
- }>, import("effect/Schema").Struct<{
58
- readonly document: import("effect/Schema").Struct<{
59
- readonly format: import("effect/Schema").Literals<readonly ["pdf", "csv", "doc", "docx", "xls", "xlsx", "html", "txt", "md"]>;
60
- readonly name: import("effect/Schema").String;
61
- readonly source: import("effect/Schema").Struct<{
62
- readonly bytes: import("effect/Schema").String;
63
- }>;
64
- }>;
65
- }>]>>;
66
- readonly status: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["success", "error"]>>;
67
- }>;
68
- }>, import("effect/Schema").Struct<{
69
- readonly cachePoint: import("effect/Schema").Struct<{
70
- readonly type: import("effect/Schema").tag<"default">;
71
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
72
- }>;
73
- }>]>>;
74
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
75
- readonly role: import("effect/Schema").Literal<"assistant">;
76
- readonly content: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
77
- readonly text: import("effect/Schema").String;
78
- }>, import("effect/Schema").Struct<{
79
- readonly reasoningContent: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
80
- readonly reasoningText: import("effect/Schema").Struct<{
81
- readonly text: import("effect/Schema").String;
82
- readonly signature: import("effect/Schema").optional<import("effect/Schema").String>;
83
- }>;
84
- }>, import("effect/Schema").Struct<{
85
- readonly redactedContent: import("effect/Schema").String;
86
- }>]>;
87
- }>, import("effect/Schema").Struct<{
88
- readonly toolUse: import("effect/Schema").Struct<{
89
- readonly toolUseId: import("effect/Schema").String;
90
- readonly name: import("effect/Schema").String;
91
- readonly input: import("effect/Schema").Unknown;
92
- }>;
93
- }>, import("effect/Schema").Struct<{
94
- readonly cachePoint: import("effect/Schema").Struct<{
95
- readonly type: import("effect/Schema").tag<"default">;
96
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
97
- }>;
98
- }>]>>;
99
- }, "Type">)[];
24
+ readonly messages: readonly ({
25
+ readonly role: "user";
26
+ readonly content: readonly ({
27
+ readonly cachePoint: {
28
+ readonly type: "default";
29
+ readonly ttl?: "1h" | "5m" | undefined;
30
+ };
31
+ } | {
32
+ readonly image: {
33
+ readonly format: "png" | "jpeg" | "gif" | "webp";
34
+ readonly source: {
35
+ readonly bytes: string;
36
+ };
37
+ };
38
+ } | {
39
+ readonly document: {
40
+ readonly format: "pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md";
41
+ readonly name: string;
42
+ readonly source: {
43
+ readonly bytes: string;
44
+ };
45
+ };
46
+ } | {
47
+ readonly text: string;
48
+ } | {
49
+ readonly toolResult: {
50
+ readonly content: readonly ({
51
+ readonly image: {
52
+ readonly format: "png" | "jpeg" | "gif" | "webp";
53
+ readonly source: {
54
+ readonly bytes: string;
55
+ };
56
+ };
57
+ } | {
58
+ readonly document: {
59
+ readonly format: "pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md";
60
+ readonly name: string;
61
+ readonly source: {
62
+ readonly bytes: string;
63
+ };
64
+ };
65
+ } | {
66
+ readonly text: string;
67
+ } | {
68
+ readonly json: unknown;
69
+ })[];
70
+ readonly toolUseId: string;
71
+ readonly status?: "error" | "success" | undefined;
72
+ };
73
+ })[];
74
+ } | {
75
+ readonly role: "assistant";
76
+ readonly content: readonly ({
77
+ readonly cachePoint: {
78
+ readonly type: "default";
79
+ readonly ttl?: "1h" | "5m" | undefined;
80
+ };
81
+ } | {
82
+ readonly text: string;
83
+ } | {
84
+ readonly toolUse: {
85
+ readonly toolUseId: string;
86
+ readonly name: string;
87
+ readonly input: unknown;
88
+ };
89
+ } | {
90
+ readonly reasoningContent: {
91
+ readonly reasoningText: {
92
+ readonly text: string;
93
+ readonly signature?: string | undefined;
94
+ };
95
+ } | {
96
+ readonly redactedContent: string;
97
+ };
98
+ })[];
99
+ })[];
100
100
  readonly modelId: string;
101
- readonly system?: readonly (import("effect/Schema").Struct.ReadonlySide<{
102
- readonly cachePoint: import("effect/Schema").Struct<{
103
- readonly type: import("effect/Schema").tag<"default">;
104
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
105
- }>;
106
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
107
- readonly text: import("effect/Schema").String;
108
- }, "Type">)[] | undefined;
101
+ readonly system?: readonly ({
102
+ readonly cachePoint: {
103
+ readonly type: "default";
104
+ readonly ttl?: "1h" | "5m" | undefined;
105
+ };
106
+ } | {
107
+ readonly text: string;
108
+ })[] | undefined;
109
109
  readonly inferenceConfig?: {
110
110
  readonly maxTokens?: number | undefined;
111
111
  readonly temperature?: number | undefined;
@@ -113,29 +113,31 @@ export declare const routes: import("../route").Route<{
113
113
  readonly stopSequences?: readonly string[] | undefined;
114
114
  } | undefined;
115
115
  readonly toolConfig?: {
116
- readonly tools: readonly (import("effect/Schema").Struct.ReadonlySide<{
117
- readonly cachePoint: import("effect/Schema").Struct<{
118
- readonly type: import("effect/Schema").tag<"default">;
119
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
120
- }>;
121
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
122
- readonly toolSpec: import("effect/Schema").Struct<{
123
- readonly name: import("effect/Schema").String;
124
- readonly description: import("effect/Schema").String;
125
- readonly inputSchema: import("effect/Schema").Struct<{
126
- readonly json: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
127
- }>;
128
- }>;
129
- }, "Type">)[];
130
- readonly toolChoice?: import("effect/Schema").Struct.ReadonlySide<{
131
- readonly auto: import("effect/Schema").Struct<{}>;
132
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
133
- readonly any: import("effect/Schema").Struct<{}>;
134
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
135
- readonly tool: import("effect/Schema").Struct<{
136
- readonly name: import("effect/Schema").String;
137
- }>;
138
- }, "Type"> | undefined;
116
+ readonly tools: readonly ({
117
+ readonly cachePoint: {
118
+ readonly type: "default";
119
+ readonly ttl?: "1h" | "5m" | undefined;
120
+ };
121
+ } | {
122
+ readonly toolSpec: {
123
+ readonly name: string;
124
+ readonly description: string;
125
+ readonly inputSchema: {
126
+ readonly json: {
127
+ readonly [x: string]: unknown;
128
+ };
129
+ };
130
+ };
131
+ })[];
132
+ readonly toolChoice?: {
133
+ readonly auto: {};
134
+ } | {
135
+ readonly any: {};
136
+ } | {
137
+ readonly tool: {
138
+ readonly name: string;
139
+ };
140
+ } | undefined;
139
141
  } | undefined;
140
142
  readonly additionalModelRequestFields?: {
141
143
  readonly [x: string]: unknown;
@@ -24,139 +24,139 @@ export type Settings = ProviderPackage.Settings & ({
24
24
  readonly providerOptions?: AnthropicMessages.ProviderOptionsInput;
25
25
  };
26
26
  export declare const routes: import("../route").Route<{
27
- readonly messages: readonly (import("effect/Schema").Struct.ReadonlySide<{
28
- readonly role: import("effect/Schema").Literal<"user">;
29
- readonly content: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
30
- readonly type: import("effect/Schema").tag<"text">;
31
- readonly text: import("effect/Schema").String;
32
- readonly cache_control: import("effect/Schema").optional<import("effect/Schema").Struct<{
33
- readonly type: import("effect/Schema").tag<"ephemeral">;
34
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
35
- }>>;
36
- }>, import("effect/Schema").Struct<{
37
- readonly type: import("effect/Schema").tag<"image">;
38
- readonly source: import("effect/Schema").Struct<{
39
- readonly type: import("effect/Schema").tag<"base64">;
40
- readonly media_type: import("effect/Schema").String;
41
- readonly data: import("effect/Schema").String;
42
- }>;
43
- readonly cache_control: import("effect/Schema").optional<import("effect/Schema").Struct<{
44
- readonly type: import("effect/Schema").tag<"ephemeral">;
45
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
46
- }>>;
47
- }>, import("effect/Schema").Struct<{
48
- readonly type: import("effect/Schema").tag<"document">;
49
- readonly source: import("effect/Schema").Struct<{
50
- readonly type: import("effect/Schema").tag<"base64">;
51
- readonly media_type: import("effect/Schema").Literal<"application/pdf">;
52
- readonly data: import("effect/Schema").String;
53
- }>;
54
- readonly cache_control: import("effect/Schema").optional<import("effect/Schema").Struct<{
55
- readonly type: import("effect/Schema").tag<"ephemeral">;
56
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
57
- }>>;
58
- }>, import("effect/Schema").Struct<{
59
- readonly type: import("effect/Schema").tag<"tool_result">;
60
- readonly tool_use_id: import("effect/Schema").String;
61
- readonly content: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
62
- readonly type: import("effect/Schema").tag<"text">;
63
- readonly text: import("effect/Schema").String;
64
- readonly cache_control: import("effect/Schema").optional<import("effect/Schema").Struct<{
65
- readonly type: import("effect/Schema").tag<"ephemeral">;
66
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
67
- }>>;
68
- }>, import("effect/Schema").Struct<{
69
- readonly type: import("effect/Schema").tag<"image">;
70
- readonly source: import("effect/Schema").Struct<{
71
- readonly type: import("effect/Schema").tag<"base64">;
72
- readonly media_type: import("effect/Schema").String;
73
- readonly data: import("effect/Schema").String;
74
- }>;
75
- readonly cache_control: import("effect/Schema").optional<import("effect/Schema").Struct<{
76
- readonly type: import("effect/Schema").tag<"ephemeral">;
77
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
78
- }>>;
79
- }>, import("effect/Schema").Struct<{
80
- readonly type: import("effect/Schema").tag<"document">;
81
- readonly source: import("effect/Schema").Struct<{
82
- readonly type: import("effect/Schema").tag<"base64">;
83
- readonly media_type: import("effect/Schema").Literal<"application/pdf">;
84
- readonly data: import("effect/Schema").String;
85
- }>;
86
- readonly cache_control: import("effect/Schema").optional<import("effect/Schema").Struct<{
87
- readonly type: import("effect/Schema").tag<"ephemeral">;
88
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
89
- }>>;
90
- }>]>>]>;
91
- readonly is_error: import("effect/Schema").optional<import("effect/Schema").Boolean>;
92
- readonly cache_control: import("effect/Schema").optional<import("effect/Schema").Struct<{
93
- readonly type: import("effect/Schema").tag<"ephemeral">;
94
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
95
- }>>;
96
- }>]>>;
97
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
98
- readonly role: import("effect/Schema").Literal<"assistant">;
99
- readonly content: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
100
- readonly type: import("effect/Schema").tag<"text">;
101
- readonly text: import("effect/Schema").String;
102
- readonly cache_control: import("effect/Schema").optional<import("effect/Schema").Struct<{
103
- readonly type: import("effect/Schema").tag<"ephemeral">;
104
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
105
- }>>;
106
- }>, import("effect/Schema").Struct<{
107
- readonly type: import("effect/Schema").tag<"thinking">;
108
- readonly thinking: import("effect/Schema").String;
109
- readonly signature: import("effect/Schema").optional<import("effect/Schema").String>;
110
- readonly cache_control: import("effect/Schema").optional<import("effect/Schema").Struct<{
111
- readonly type: import("effect/Schema").tag<"ephemeral">;
112
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
113
- }>>;
114
- }>, import("effect/Schema").Struct<{
115
- readonly type: import("effect/Schema").tag<"redacted_thinking">;
116
- readonly data: import("effect/Schema").String;
117
- readonly cache_control: import("effect/Schema").optional<import("effect/Schema").Struct<{
118
- readonly type: import("effect/Schema").tag<"ephemeral">;
119
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
120
- }>>;
121
- }>, import("effect/Schema").Struct<{
122
- readonly type: import("effect/Schema").tag<"tool_use">;
123
- readonly id: import("effect/Schema").String;
124
- readonly name: import("effect/Schema").String;
125
- readonly input: import("effect/Schema").Unknown;
126
- readonly cache_control: import("effect/Schema").optional<import("effect/Schema").Struct<{
127
- readonly type: import("effect/Schema").tag<"ephemeral">;
128
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
129
- }>>;
130
- }>, import("effect/Schema").Struct<{
131
- readonly type: import("effect/Schema").tag<"server_tool_use">;
132
- readonly id: import("effect/Schema").String;
133
- readonly name: import("effect/Schema").String;
134
- readonly input: import("effect/Schema").Unknown;
135
- readonly cache_control: import("effect/Schema").optional<import("effect/Schema").Struct<{
136
- readonly type: import("effect/Schema").tag<"ephemeral">;
137
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
138
- }>>;
139
- }>, import("effect/Schema").Struct<{
140
- readonly type: import("effect/Schema").Literals<readonly ["web_search_tool_result", "code_execution_tool_result", "web_fetch_tool_result"]>;
141
- readonly tool_use_id: import("effect/Schema").String;
142
- readonly content: import("effect/Schema").Unknown;
143
- readonly cache_control: import("effect/Schema").optional<import("effect/Schema").Struct<{
144
- readonly type: import("effect/Schema").tag<"ephemeral">;
145
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
146
- }>>;
147
- }>]>>;
148
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
149
- readonly role: import("effect/Schema").Literal<"system">;
150
- readonly content: import("effect/Schema").$Array<import("effect/Schema").Struct<{
151
- readonly type: import("effect/Schema").tag<"text">;
152
- readonly text: import("effect/Schema").String;
153
- readonly cache_control: import("effect/Schema").optional<import("effect/Schema").Struct<{
154
- readonly type: import("effect/Schema").tag<"ephemeral">;
155
- readonly ttl: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["5m", "1h"]>>;
156
- }>>;
157
- }>>;
158
- }, "Type">)[];
159
27
  readonly model: string;
28
+ readonly messages: readonly ({
29
+ readonly role: "user";
30
+ readonly content: readonly ({
31
+ readonly type: "text";
32
+ readonly text: string;
33
+ readonly cache_control?: {
34
+ readonly type: "ephemeral";
35
+ readonly ttl?: "1h" | "5m" | undefined;
36
+ } | undefined;
37
+ } | {
38
+ readonly type: "image";
39
+ readonly source: {
40
+ readonly type: "base64";
41
+ readonly media_type: string;
42
+ readonly data: string;
43
+ };
44
+ readonly cache_control?: {
45
+ readonly type: "ephemeral";
46
+ readonly ttl?: "1h" | "5m" | undefined;
47
+ } | undefined;
48
+ } | {
49
+ readonly type: "document";
50
+ readonly source: {
51
+ readonly type: "base64";
52
+ readonly media_type: "application/pdf";
53
+ readonly data: string;
54
+ };
55
+ readonly cache_control?: {
56
+ readonly type: "ephemeral";
57
+ readonly ttl?: "1h" | "5m" | undefined;
58
+ } | undefined;
59
+ } | {
60
+ readonly type: "tool_result";
61
+ readonly content: string | readonly ({
62
+ readonly type: "text";
63
+ readonly text: string;
64
+ readonly cache_control?: {
65
+ readonly type: "ephemeral";
66
+ readonly ttl?: "1h" | "5m" | undefined;
67
+ } | undefined;
68
+ } | {
69
+ readonly type: "image";
70
+ readonly source: {
71
+ readonly type: "base64";
72
+ readonly media_type: string;
73
+ readonly data: string;
74
+ };
75
+ readonly cache_control?: {
76
+ readonly type: "ephemeral";
77
+ readonly ttl?: "1h" | "5m" | undefined;
78
+ } | undefined;
79
+ } | {
80
+ readonly type: "document";
81
+ readonly source: {
82
+ readonly type: "base64";
83
+ readonly media_type: "application/pdf";
84
+ readonly data: string;
85
+ };
86
+ readonly cache_control?: {
87
+ readonly type: "ephemeral";
88
+ readonly ttl?: "1h" | "5m" | undefined;
89
+ } | undefined;
90
+ })[];
91
+ readonly tool_use_id: string;
92
+ readonly cache_control?: {
93
+ readonly type: "ephemeral";
94
+ readonly ttl?: "1h" | "5m" | undefined;
95
+ } | undefined;
96
+ readonly is_error?: boolean | undefined;
97
+ })[];
98
+ } | {
99
+ readonly role: "assistant";
100
+ readonly content: readonly ({
101
+ readonly type: "text";
102
+ readonly text: string;
103
+ readonly cache_control?: {
104
+ readonly type: "ephemeral";
105
+ readonly ttl?: "1h" | "5m" | undefined;
106
+ } | undefined;
107
+ } | {
108
+ readonly id: string;
109
+ readonly type: "tool_use";
110
+ readonly name: string;
111
+ readonly input: unknown;
112
+ readonly cache_control?: {
113
+ readonly type: "ephemeral";
114
+ readonly ttl?: "1h" | "5m" | undefined;
115
+ } | undefined;
116
+ } | {
117
+ readonly id: string;
118
+ readonly type: "server_tool_use";
119
+ readonly name: string;
120
+ readonly input: unknown;
121
+ readonly cache_control?: {
122
+ readonly type: "ephemeral";
123
+ readonly ttl?: "1h" | "5m" | undefined;
124
+ } | undefined;
125
+ } | {
126
+ readonly type: "web_search_tool_result" | "code_execution_tool_result" | "web_fetch_tool_result";
127
+ readonly content: unknown;
128
+ readonly tool_use_id: string;
129
+ readonly cache_control?: {
130
+ readonly type: "ephemeral";
131
+ readonly ttl?: "1h" | "5m" | undefined;
132
+ } | undefined;
133
+ } | {
134
+ readonly type: "thinking";
135
+ readonly thinking: string;
136
+ readonly cache_control?: {
137
+ readonly type: "ephemeral";
138
+ readonly ttl?: "1h" | "5m" | undefined;
139
+ } | undefined;
140
+ readonly signature?: string | undefined;
141
+ } | {
142
+ readonly data: string;
143
+ readonly type: "redacted_thinking";
144
+ readonly cache_control?: {
145
+ readonly type: "ephemeral";
146
+ readonly ttl?: "1h" | "5m" | undefined;
147
+ } | undefined;
148
+ })[];
149
+ } | {
150
+ readonly role: "system";
151
+ readonly content: readonly {
152
+ readonly type: "text";
153
+ readonly text: string;
154
+ readonly cache_control?: {
155
+ readonly type: "ephemeral";
156
+ readonly ttl?: "1h" | "5m" | undefined;
157
+ } | undefined;
158
+ }[];
159
+ })[];
160
160
  readonly stream: true;
161
161
  readonly max_tokens: number;
162
162
  readonly system?: readonly {
@@ -180,21 +180,21 @@ export declare const routes: import("../route").Route<{
180
180
  }[] | undefined;
181
181
  readonly temperature?: number | undefined;
182
182
  readonly stop_sequences?: readonly string[] | undefined;
183
- readonly thinking?: import("effect/Schema").Struct.ReadonlySide<{
184
- readonly type: import("effect/Schema").tag<"enabled">;
185
- readonly budget_tokens: import("effect/Schema").Number;
186
- }, "Type"> | {
183
+ readonly thinking?: {
184
+ readonly type: "enabled";
185
+ readonly budget_tokens: number;
186
+ } | {
187
187
  readonly type: "adaptive";
188
188
  readonly display?: "summarized" | "omitted" | undefined;
189
- } | import("effect/Schema").Struct.ReadonlySide<{
190
- readonly type: import("effect/Schema").tag<"disabled">;
191
- }, "Type"> | undefined;
192
- readonly tool_choice?: import("effect/Schema").Struct.ReadonlySide<{
193
- readonly type: import("effect/Schema").Literals<readonly ["auto", "any", "none"]>;
194
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
195
- readonly type: import("effect/Schema").tag<"tool">;
196
- readonly name: import("effect/Schema").String;
197
- }, "Type"> | undefined;
189
+ } | {
190
+ readonly type: "disabled";
191
+ } | undefined;
192
+ readonly tool_choice?: {
193
+ readonly type: "none" | "auto" | "any";
194
+ } | {
195
+ readonly type: "tool";
196
+ readonly name: string;
197
+ } | undefined;
198
198
  readonly top_k?: number | undefined;
199
199
  readonly top_p?: number | undefined;
200
200
  readonly output_config?: {