@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.
- package/dist/llm.d.ts +60 -60
- package/dist/protocols/anthropic-messages.d.ts +303 -303
- package/dist/protocols/anthropic-messages.js +1 -0
- package/dist/protocols/bedrock-converse.d.ts +246 -242
- package/dist/protocols/gemini.d.ts +136 -132
- package/dist/protocols/gemini.js +1 -0
- package/dist/protocols/open-responses.d.ts +232 -232
- package/dist/protocols/openai-chat.d.ts +147 -141
- package/dist/protocols/openai-chat.js +1 -0
- package/dist/protocols/openai-compatible-chat.d.ts +48 -46
- package/dist/protocols/openai-compatible-responses.d.ts +56 -56
- package/dist/protocols/openai-responses.d.ts +388 -388
- package/dist/protocols/shared.d.ts +5 -4
- package/dist/protocols/shared.js +1 -0
- package/dist/protocols/utils/bedrock-media.d.ts +10 -10
- package/dist/protocols/utils/tool-stream.d.ts +180 -180
- package/dist/providers/amazon-bedrock.d.ts +109 -107
- package/dist/providers/anthropic-compatible.d.ts +145 -145
- package/dist/providers/anthropic.d.ts +145 -145
- package/dist/providers/azure.d.ts +112 -110
- package/dist/providers/cloudflare.d.ts +144 -138
- package/dist/providers/github-copilot.d.ts +112 -110
- package/dist/providers/google-vertex-chat.d.ts +48 -46
- package/dist/providers/google-vertex-messages.d.ts +145 -146
- package/dist/providers/google-vertex-responses.d.ts +56 -56
- package/dist/providers/google-vertex.d.ts +52 -50
- package/dist/providers/google.d.ts +52 -50
- package/dist/providers/openai-compatible-responses.d.ts +56 -56
- package/dist/providers/openai-compatible.d.ts +48 -46
- package/dist/providers/openai.d.ts +176 -174
- package/dist/providers/openrouter.d.ts +147 -141
- package/dist/providers/xai.d.ts +112 -110
- package/dist/route/client.d.ts +60 -60
- package/dist/schema/errors.d.ts +2 -6
- package/dist/schema/errors.js +2 -5
- package/dist/schema/events.d.ts +1117 -1115
- package/dist/schema/messages.d.ts +9 -9
- package/dist/schema/messages.js +3 -4
- package/dist/tool-runtime.js +1 -1
- package/dist/tool.d.ts +5 -4
- package/dist/tool.js +1 -0
- package/package.json +5 -5
|
@@ -17,66 +17,68 @@ export interface Settings extends ProviderPackage.Settings {
|
|
|
17
17
|
readonly providerOptions?: ProviderOptions;
|
|
18
18
|
}
|
|
19
19
|
export declare const routes: import("../route").Route<{
|
|
20
|
-
readonly
|
|
21
|
-
|
|
22
|
-
readonly
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
readonly
|
|
26
|
-
|
|
27
|
-
readonly
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
readonly
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
20
|
+
readonly model: string;
|
|
21
|
+
readonly messages: readonly ({
|
|
22
|
+
readonly role: "system";
|
|
23
|
+
readonly content: string;
|
|
24
|
+
} | {
|
|
25
|
+
readonly role: "user";
|
|
26
|
+
readonly content: string | readonly ({
|
|
27
|
+
readonly type: "text";
|
|
28
|
+
readonly text: string;
|
|
29
|
+
} | {
|
|
30
|
+
readonly type: "image_url";
|
|
31
|
+
readonly image_url: {
|
|
32
|
+
readonly url: string;
|
|
33
|
+
};
|
|
34
|
+
})[];
|
|
35
|
+
} | {
|
|
35
36
|
readonly [x: string]: unknown;
|
|
36
37
|
readonly content: string | null;
|
|
37
38
|
readonly role: "assistant";
|
|
38
39
|
readonly reasoning?: string | undefined;
|
|
39
|
-
readonly tool_calls?: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
40
|
-
readonly id: import("effect/Schema").String;
|
|
41
|
-
readonly type: import("effect/Schema").tag<"function">;
|
|
42
|
-
readonly function: import("effect/Schema").Struct<{
|
|
43
|
-
readonly name: import("effect/Schema").String;
|
|
44
|
-
readonly arguments: import("effect/Schema").String;
|
|
45
|
-
}>;
|
|
46
|
-
}, "Type">[] | undefined;
|
|
47
40
|
readonly reasoning_content?: string | undefined;
|
|
48
41
|
readonly reasoning_text?: string | undefined;
|
|
42
|
+
readonly tool_calls?: readonly {
|
|
43
|
+
readonly id: string;
|
|
44
|
+
readonly type: "function";
|
|
45
|
+
readonly function: {
|
|
46
|
+
readonly name: string;
|
|
47
|
+
readonly arguments: string;
|
|
48
|
+
};
|
|
49
|
+
}[] | undefined;
|
|
49
50
|
readonly reasoning_details?: unknown;
|
|
50
|
-
} |
|
|
51
|
-
readonly role:
|
|
52
|
-
readonly tool_call_id:
|
|
53
|
-
readonly content:
|
|
54
|
-
}
|
|
55
|
-
readonly model: string;
|
|
51
|
+
} | {
|
|
52
|
+
readonly role: "tool";
|
|
53
|
+
readonly tool_call_id: string;
|
|
54
|
+
readonly content: string;
|
|
55
|
+
})[];
|
|
56
56
|
readonly stream: true;
|
|
57
57
|
readonly stop?: readonly string[] | undefined;
|
|
58
|
-
readonly tools?: readonly
|
|
59
|
-
readonly type:
|
|
60
|
-
readonly function:
|
|
61
|
-
readonly name:
|
|
62
|
-
readonly description:
|
|
63
|
-
readonly parameters:
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
readonly tools?: readonly {
|
|
59
|
+
readonly type: "function";
|
|
60
|
+
readonly function: {
|
|
61
|
+
readonly name: string;
|
|
62
|
+
readonly description: string;
|
|
63
|
+
readonly parameters: {
|
|
64
|
+
readonly [x: string]: unknown;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
}[] | undefined;
|
|
66
68
|
readonly temperature?: number | undefined;
|
|
67
69
|
readonly seed?: number | undefined;
|
|
68
70
|
readonly frequency_penalty?: number | undefined;
|
|
69
71
|
readonly max_tokens?: number | undefined;
|
|
70
72
|
readonly presence_penalty?: number | undefined;
|
|
71
|
-
readonly stream_options?:
|
|
72
|
-
readonly include_usage:
|
|
73
|
-
}
|
|
74
|
-
readonly tool_choice?: "required" | "none" | "auto" |
|
|
75
|
-
readonly type:
|
|
76
|
-
readonly function:
|
|
77
|
-
readonly name:
|
|
78
|
-
}
|
|
79
|
-
}
|
|
73
|
+
readonly stream_options?: {
|
|
74
|
+
readonly include_usage: boolean;
|
|
75
|
+
} | undefined;
|
|
76
|
+
readonly tool_choice?: "required" | "none" | "auto" | {
|
|
77
|
+
readonly type: "function";
|
|
78
|
+
readonly function: {
|
|
79
|
+
readonly name: string;
|
|
80
|
+
};
|
|
81
|
+
} | undefined;
|
|
80
82
|
readonly top_p?: number | undefined;
|
|
81
83
|
readonly store?: boolean | undefined;
|
|
82
84
|
readonly reasoning_effort?: string | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Schema } from "effect";
|
|
2
1
|
import type { ProviderPackage } from "../provider-package";
|
|
3
2
|
import { AnthropicMessages } from "../protocols/anthropic-messages";
|
|
4
3
|
import { Route, type RouteDefaultsInput } from "../route/client";
|
|
@@ -32,138 +31,6 @@ export declare const routes: Route<{
|
|
|
32
31
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
33
32
|
} | undefined;
|
|
34
33
|
}[] | undefined;
|
|
35
|
-
messages: readonly (Schema.Struct.ReadonlySide<{
|
|
36
|
-
readonly role: Schema.Literal<"user">;
|
|
37
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
38
|
-
readonly type: Schema.tag<"text">;
|
|
39
|
-
readonly text: Schema.String;
|
|
40
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
41
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
42
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
43
|
-
}>>;
|
|
44
|
-
}>, Schema.Struct<{
|
|
45
|
-
readonly type: Schema.tag<"image">;
|
|
46
|
-
readonly source: Schema.Struct<{
|
|
47
|
-
readonly type: Schema.tag<"base64">;
|
|
48
|
-
readonly media_type: Schema.String;
|
|
49
|
-
readonly data: Schema.String;
|
|
50
|
-
}>;
|
|
51
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
52
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
53
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
54
|
-
}>>;
|
|
55
|
-
}>, Schema.Struct<{
|
|
56
|
-
readonly type: Schema.tag<"document">;
|
|
57
|
-
readonly source: Schema.Struct<{
|
|
58
|
-
readonly type: Schema.tag<"base64">;
|
|
59
|
-
readonly media_type: Schema.Literal<"application/pdf">;
|
|
60
|
-
readonly data: Schema.String;
|
|
61
|
-
}>;
|
|
62
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
63
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
64
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
65
|
-
}>>;
|
|
66
|
-
}>, Schema.Struct<{
|
|
67
|
-
readonly type: Schema.tag<"tool_result">;
|
|
68
|
-
readonly tool_use_id: Schema.String;
|
|
69
|
-
readonly content: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
70
|
-
readonly type: Schema.tag<"text">;
|
|
71
|
-
readonly text: Schema.String;
|
|
72
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
73
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
74
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
75
|
-
}>>;
|
|
76
|
-
}>, Schema.Struct<{
|
|
77
|
-
readonly type: Schema.tag<"image">;
|
|
78
|
-
readonly source: Schema.Struct<{
|
|
79
|
-
readonly type: Schema.tag<"base64">;
|
|
80
|
-
readonly media_type: Schema.String;
|
|
81
|
-
readonly data: Schema.String;
|
|
82
|
-
}>;
|
|
83
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
84
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
85
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
86
|
-
}>>;
|
|
87
|
-
}>, Schema.Struct<{
|
|
88
|
-
readonly type: Schema.tag<"document">;
|
|
89
|
-
readonly source: Schema.Struct<{
|
|
90
|
-
readonly type: Schema.tag<"base64">;
|
|
91
|
-
readonly media_type: Schema.Literal<"application/pdf">;
|
|
92
|
-
readonly data: Schema.String;
|
|
93
|
-
}>;
|
|
94
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
95
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
96
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
97
|
-
}>>;
|
|
98
|
-
}>]>>]>;
|
|
99
|
-
readonly is_error: Schema.optional<Schema.Boolean>;
|
|
100
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
101
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
102
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
103
|
-
}>>;
|
|
104
|
-
}>]>>;
|
|
105
|
-
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
106
|
-
readonly role: Schema.Literal<"assistant">;
|
|
107
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
108
|
-
readonly type: Schema.tag<"text">;
|
|
109
|
-
readonly text: Schema.String;
|
|
110
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
111
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
112
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
113
|
-
}>>;
|
|
114
|
-
}>, Schema.Struct<{
|
|
115
|
-
readonly type: Schema.tag<"thinking">;
|
|
116
|
-
readonly thinking: Schema.String;
|
|
117
|
-
readonly signature: Schema.optional<Schema.String>;
|
|
118
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
119
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
120
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
121
|
-
}>>;
|
|
122
|
-
}>, Schema.Struct<{
|
|
123
|
-
readonly type: Schema.tag<"redacted_thinking">;
|
|
124
|
-
readonly data: Schema.String;
|
|
125
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
126
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
127
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
128
|
-
}>>;
|
|
129
|
-
}>, Schema.Struct<{
|
|
130
|
-
readonly type: Schema.tag<"tool_use">;
|
|
131
|
-
readonly id: Schema.String;
|
|
132
|
-
readonly name: Schema.String;
|
|
133
|
-
readonly input: Schema.Unknown;
|
|
134
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
135
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
136
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
137
|
-
}>>;
|
|
138
|
-
}>, Schema.Struct<{
|
|
139
|
-
readonly type: Schema.tag<"server_tool_use">;
|
|
140
|
-
readonly id: Schema.String;
|
|
141
|
-
readonly name: Schema.String;
|
|
142
|
-
readonly input: Schema.Unknown;
|
|
143
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
144
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
145
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
146
|
-
}>>;
|
|
147
|
-
}>, Schema.Struct<{
|
|
148
|
-
readonly type: Schema.Literals<readonly ["web_search_tool_result", "code_execution_tool_result", "web_fetch_tool_result"]>;
|
|
149
|
-
readonly tool_use_id: Schema.String;
|
|
150
|
-
readonly content: Schema.Unknown;
|
|
151
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
152
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
153
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
154
|
-
}>>;
|
|
155
|
-
}>]>>;
|
|
156
|
-
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
157
|
-
readonly role: Schema.Literal<"system">;
|
|
158
|
-
readonly content: Schema.$Array<Schema.Struct<{
|
|
159
|
-
readonly type: Schema.tag<"text">;
|
|
160
|
-
readonly text: Schema.String;
|
|
161
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
162
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
163
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
164
|
-
}>>;
|
|
165
|
-
}>>;
|
|
166
|
-
}, "Type">)[];
|
|
167
34
|
tools?: readonly {
|
|
168
35
|
readonly name: string;
|
|
169
36
|
readonly description: string;
|
|
@@ -175,25 +42,157 @@ export declare const routes: Route<{
|
|
|
175
42
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
176
43
|
} | undefined;
|
|
177
44
|
}[] | undefined;
|
|
45
|
+
messages: readonly ({
|
|
46
|
+
readonly role: "user";
|
|
47
|
+
readonly content: readonly ({
|
|
48
|
+
readonly type: "text";
|
|
49
|
+
readonly text: string;
|
|
50
|
+
readonly cache_control?: {
|
|
51
|
+
readonly type: "ephemeral";
|
|
52
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
} | {
|
|
55
|
+
readonly type: "image";
|
|
56
|
+
readonly source: {
|
|
57
|
+
readonly type: "base64";
|
|
58
|
+
readonly media_type: string;
|
|
59
|
+
readonly data: string;
|
|
60
|
+
};
|
|
61
|
+
readonly cache_control?: {
|
|
62
|
+
readonly type: "ephemeral";
|
|
63
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
} | {
|
|
66
|
+
readonly type: "document";
|
|
67
|
+
readonly source: {
|
|
68
|
+
readonly type: "base64";
|
|
69
|
+
readonly media_type: "application/pdf";
|
|
70
|
+
readonly data: string;
|
|
71
|
+
};
|
|
72
|
+
readonly cache_control?: {
|
|
73
|
+
readonly type: "ephemeral";
|
|
74
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
readonly type: "tool_result";
|
|
78
|
+
readonly content: string | readonly ({
|
|
79
|
+
readonly type: "text";
|
|
80
|
+
readonly text: string;
|
|
81
|
+
readonly cache_control?: {
|
|
82
|
+
readonly type: "ephemeral";
|
|
83
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
84
|
+
} | undefined;
|
|
85
|
+
} | {
|
|
86
|
+
readonly type: "image";
|
|
87
|
+
readonly source: {
|
|
88
|
+
readonly type: "base64";
|
|
89
|
+
readonly media_type: string;
|
|
90
|
+
readonly data: string;
|
|
91
|
+
};
|
|
92
|
+
readonly cache_control?: {
|
|
93
|
+
readonly type: "ephemeral";
|
|
94
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
} | {
|
|
97
|
+
readonly type: "document";
|
|
98
|
+
readonly source: {
|
|
99
|
+
readonly type: "base64";
|
|
100
|
+
readonly media_type: "application/pdf";
|
|
101
|
+
readonly data: string;
|
|
102
|
+
};
|
|
103
|
+
readonly cache_control?: {
|
|
104
|
+
readonly type: "ephemeral";
|
|
105
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
})[];
|
|
108
|
+
readonly tool_use_id: string;
|
|
109
|
+
readonly cache_control?: {
|
|
110
|
+
readonly type: "ephemeral";
|
|
111
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
112
|
+
} | undefined;
|
|
113
|
+
readonly is_error?: boolean | undefined;
|
|
114
|
+
})[];
|
|
115
|
+
} | {
|
|
116
|
+
readonly role: "assistant";
|
|
117
|
+
readonly content: readonly ({
|
|
118
|
+
readonly type: "text";
|
|
119
|
+
readonly text: string;
|
|
120
|
+
readonly cache_control?: {
|
|
121
|
+
readonly type: "ephemeral";
|
|
122
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
} | {
|
|
125
|
+
readonly id: string;
|
|
126
|
+
readonly type: "tool_use";
|
|
127
|
+
readonly name: string;
|
|
128
|
+
readonly input: unknown;
|
|
129
|
+
readonly cache_control?: {
|
|
130
|
+
readonly type: "ephemeral";
|
|
131
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
} | {
|
|
134
|
+
readonly id: string;
|
|
135
|
+
readonly type: "server_tool_use";
|
|
136
|
+
readonly name: string;
|
|
137
|
+
readonly input: unknown;
|
|
138
|
+
readonly cache_control?: {
|
|
139
|
+
readonly type: "ephemeral";
|
|
140
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
} | {
|
|
143
|
+
readonly type: "web_search_tool_result" | "code_execution_tool_result" | "web_fetch_tool_result";
|
|
144
|
+
readonly content: unknown;
|
|
145
|
+
readonly tool_use_id: string;
|
|
146
|
+
readonly cache_control?: {
|
|
147
|
+
readonly type: "ephemeral";
|
|
148
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
149
|
+
} | undefined;
|
|
150
|
+
} | {
|
|
151
|
+
readonly type: "thinking";
|
|
152
|
+
readonly thinking: string;
|
|
153
|
+
readonly cache_control?: {
|
|
154
|
+
readonly type: "ephemeral";
|
|
155
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
156
|
+
} | undefined;
|
|
157
|
+
readonly signature?: string | undefined;
|
|
158
|
+
} | {
|
|
159
|
+
readonly data: string;
|
|
160
|
+
readonly type: "redacted_thinking";
|
|
161
|
+
readonly cache_control?: {
|
|
162
|
+
readonly type: "ephemeral";
|
|
163
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
})[];
|
|
166
|
+
} | {
|
|
167
|
+
readonly role: "system";
|
|
168
|
+
readonly content: readonly {
|
|
169
|
+
readonly type: "text";
|
|
170
|
+
readonly text: string;
|
|
171
|
+
readonly cache_control?: {
|
|
172
|
+
readonly type: "ephemeral";
|
|
173
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
}[];
|
|
176
|
+
})[];
|
|
178
177
|
temperature?: number | undefined;
|
|
179
178
|
stream: true;
|
|
180
179
|
max_tokens: number;
|
|
181
180
|
stop_sequences?: readonly string[] | undefined;
|
|
182
|
-
thinking?:
|
|
183
|
-
readonly type:
|
|
184
|
-
readonly budget_tokens:
|
|
185
|
-
}
|
|
181
|
+
thinking?: {
|
|
182
|
+
readonly type: "enabled";
|
|
183
|
+
readonly budget_tokens: number;
|
|
184
|
+
} | {
|
|
186
185
|
readonly type: "adaptive";
|
|
187
186
|
readonly display?: "summarized" | "omitted" | undefined;
|
|
188
|
-
} |
|
|
189
|
-
readonly type:
|
|
190
|
-
}
|
|
191
|
-
tool_choice?:
|
|
192
|
-
readonly type:
|
|
193
|
-
}
|
|
194
|
-
readonly type:
|
|
195
|
-
readonly name:
|
|
196
|
-
}
|
|
187
|
+
} | {
|
|
188
|
+
readonly type: "disabled";
|
|
189
|
+
} | undefined;
|
|
190
|
+
tool_choice?: {
|
|
191
|
+
readonly type: "none" | "auto" | "any";
|
|
192
|
+
} | {
|
|
193
|
+
readonly type: "tool";
|
|
194
|
+
readonly name: string;
|
|
195
|
+
} | undefined;
|
|
197
196
|
top_k?: number | undefined;
|
|
198
197
|
top_p?: number | undefined;
|
|
199
198
|
output_config?: {
|
|
@@ -19,68 +19,69 @@ export interface Settings extends ProviderPackage.Settings {
|
|
|
19
19
|
export declare const routes: import("../route").Route<{
|
|
20
20
|
readonly input: readonly ({
|
|
21
21
|
readonly type: "reasoning";
|
|
22
|
-
readonly summary: readonly
|
|
23
|
-
readonly type:
|
|
24
|
-
readonly text:
|
|
25
|
-
}
|
|
22
|
+
readonly summary: readonly {
|
|
23
|
+
readonly type: "summary_text";
|
|
24
|
+
readonly text: string;
|
|
25
|
+
}[];
|
|
26
26
|
readonly id?: string | undefined;
|
|
27
27
|
readonly encrypted_content?: string | null | undefined;
|
|
28
|
-
} |
|
|
29
|
-
readonly type:
|
|
30
|
-
readonly id:
|
|
31
|
-
}
|
|
32
|
-
readonly role:
|
|
33
|
-
readonly content:
|
|
34
|
-
}
|
|
35
|
-
readonly role:
|
|
36
|
-
readonly content:
|
|
37
|
-
readonly type:
|
|
38
|
-
readonly
|
|
39
|
-
}
|
|
40
|
-
readonly type:
|
|
41
|
-
readonly
|
|
42
|
-
|
|
43
|
-
readonly
|
|
44
|
-
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
readonly content: readonly
|
|
50
|
-
readonly type:
|
|
51
|
-
readonly text:
|
|
52
|
-
}
|
|
28
|
+
} | {
|
|
29
|
+
readonly type: "item_reference";
|
|
30
|
+
readonly id: string;
|
|
31
|
+
} | {
|
|
32
|
+
readonly role: "system";
|
|
33
|
+
readonly content: string;
|
|
34
|
+
} | {
|
|
35
|
+
readonly role: "user";
|
|
36
|
+
readonly content: readonly ({
|
|
37
|
+
readonly type: "input_image";
|
|
38
|
+
readonly image_url: string;
|
|
39
|
+
} | {
|
|
40
|
+
readonly type: "input_file";
|
|
41
|
+
readonly filename: string;
|
|
42
|
+
readonly file_data: string;
|
|
43
|
+
readonly mime_type?: string | undefined;
|
|
44
|
+
} | {
|
|
45
|
+
readonly type: "input_text";
|
|
46
|
+
readonly text: string;
|
|
47
|
+
})[];
|
|
48
|
+
} | {
|
|
49
|
+
readonly content: readonly {
|
|
50
|
+
readonly type: "output_text";
|
|
51
|
+
readonly text: string;
|
|
52
|
+
}[];
|
|
53
53
|
readonly role: "assistant";
|
|
54
54
|
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
55
|
-
} |
|
|
56
|
-
readonly type:
|
|
57
|
-
readonly call_id:
|
|
58
|
-
readonly name:
|
|
59
|
-
readonly arguments:
|
|
60
|
-
}
|
|
61
|
-
readonly type:
|
|
62
|
-
readonly call_id:
|
|
63
|
-
readonly output:
|
|
64
|
-
readonly type:
|
|
65
|
-
readonly
|
|
66
|
-
}
|
|
67
|
-
readonly type:
|
|
68
|
-
readonly
|
|
69
|
-
|
|
70
|
-
readonly
|
|
71
|
-
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
}
|
|
75
|
-
}
|
|
55
|
+
} | {
|
|
56
|
+
readonly type: "function_call";
|
|
57
|
+
readonly call_id: string;
|
|
58
|
+
readonly name: string;
|
|
59
|
+
readonly arguments: string;
|
|
60
|
+
} | {
|
|
61
|
+
readonly type: "function_call_output";
|
|
62
|
+
readonly call_id: string;
|
|
63
|
+
readonly output: string | readonly ({
|
|
64
|
+
readonly type: "input_image";
|
|
65
|
+
readonly image_url: string;
|
|
66
|
+
} | {
|
|
67
|
+
readonly type: "input_file";
|
|
68
|
+
readonly filename: string;
|
|
69
|
+
readonly file_data: string;
|
|
70
|
+
readonly mime_type?: string | undefined;
|
|
71
|
+
} | {
|
|
72
|
+
readonly type: "input_text";
|
|
73
|
+
readonly text: string;
|
|
74
|
+
})[];
|
|
75
|
+
})[];
|
|
76
76
|
readonly model: string;
|
|
77
77
|
readonly stream: true;
|
|
78
78
|
readonly text?: {
|
|
79
79
|
readonly verbosity?: "low" | "medium" | "high" | undefined;
|
|
80
80
|
} | undefined;
|
|
81
|
+
readonly instructions?: string | undefined;
|
|
81
82
|
readonly reasoning?: {
|
|
82
|
-
readonly effort?: string | undefined;
|
|
83
83
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
84
|
+
readonly effort?: string | undefined;
|
|
84
85
|
} | undefined;
|
|
85
86
|
readonly tools?: readonly {
|
|
86
87
|
readonly type: "function";
|
|
@@ -92,13 +93,12 @@ export declare const routes: import("../route").Route<{
|
|
|
92
93
|
readonly strict?: boolean | undefined;
|
|
93
94
|
}[] | undefined;
|
|
94
95
|
readonly temperature?: number | undefined;
|
|
95
|
-
readonly tool_choice?: "required" | "none" | "auto" |
|
|
96
|
-
readonly type:
|
|
97
|
-
readonly name:
|
|
98
|
-
}
|
|
96
|
+
readonly tool_choice?: "required" | "none" | "auto" | {
|
|
97
|
+
readonly type: "function";
|
|
98
|
+
readonly name: string;
|
|
99
|
+
} | undefined;
|
|
99
100
|
readonly top_p?: number | undefined;
|
|
100
101
|
readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
|
|
101
|
-
readonly instructions?: string | undefined;
|
|
102
102
|
readonly store?: boolean | undefined;
|
|
103
103
|
readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
|
|
104
104
|
readonly prompt_cache_key?: string | undefined;
|