@opencode-ai/ai 0.0.0-next-16255 → 0.0.0-next-16274
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
package/dist/llm.d.ts
CHANGED
|
@@ -20,92 +20,92 @@ export declare class GenerateObjectResponse<T> {
|
|
|
20
20
|
readonly object: T;
|
|
21
21
|
readonly response: LLMResponse;
|
|
22
22
|
constructor(object: T, response: LLMResponse);
|
|
23
|
-
get events(): readonly (
|
|
24
|
-
readonly type:
|
|
25
|
-
readonly index:
|
|
26
|
-
}
|
|
27
|
-
readonly type: "text-start";
|
|
23
|
+
get events(): readonly ({
|
|
24
|
+
readonly type: "step-start";
|
|
25
|
+
readonly index: number;
|
|
26
|
+
} | {
|
|
28
27
|
readonly id: string;
|
|
28
|
+
readonly type: "text-start";
|
|
29
29
|
readonly providerMetadata?: {
|
|
30
30
|
readonly [x: string]: {
|
|
31
31
|
readonly [x: string]: unknown;
|
|
32
32
|
};
|
|
33
33
|
} | undefined;
|
|
34
34
|
} | {
|
|
35
|
+
readonly id: string;
|
|
35
36
|
readonly type: "text-delta";
|
|
36
37
|
readonly text: string;
|
|
37
|
-
readonly id: string;
|
|
38
38
|
readonly providerMetadata?: {
|
|
39
39
|
readonly [x: string]: {
|
|
40
40
|
readonly [x: string]: unknown;
|
|
41
41
|
};
|
|
42
42
|
} | undefined;
|
|
43
43
|
} | {
|
|
44
|
-
readonly type: "text-end";
|
|
45
44
|
readonly id: string;
|
|
45
|
+
readonly type: "text-end";
|
|
46
46
|
readonly providerMetadata?: {
|
|
47
47
|
readonly [x: string]: {
|
|
48
48
|
readonly [x: string]: unknown;
|
|
49
49
|
};
|
|
50
50
|
} | undefined;
|
|
51
51
|
} | {
|
|
52
|
-
readonly type: "reasoning-start";
|
|
53
52
|
readonly id: string;
|
|
53
|
+
readonly type: "reasoning-start";
|
|
54
54
|
readonly providerMetadata?: {
|
|
55
55
|
readonly [x: string]: {
|
|
56
56
|
readonly [x: string]: unknown;
|
|
57
57
|
};
|
|
58
58
|
} | undefined;
|
|
59
59
|
} | {
|
|
60
|
+
readonly id: string;
|
|
60
61
|
readonly type: "reasoning-delta";
|
|
61
62
|
readonly text: string;
|
|
62
|
-
readonly id: string;
|
|
63
63
|
readonly providerMetadata?: {
|
|
64
64
|
readonly [x: string]: {
|
|
65
65
|
readonly [x: string]: unknown;
|
|
66
66
|
};
|
|
67
67
|
} | undefined;
|
|
68
68
|
} | {
|
|
69
|
-
readonly type: "reasoning-end";
|
|
70
69
|
readonly id: string;
|
|
70
|
+
readonly type: "reasoning-end";
|
|
71
71
|
readonly providerMetadata?: {
|
|
72
72
|
readonly [x: string]: {
|
|
73
73
|
readonly [x: string]: unknown;
|
|
74
74
|
};
|
|
75
75
|
} | undefined;
|
|
76
76
|
} | {
|
|
77
|
+
readonly id: string;
|
|
77
78
|
readonly type: "tool-input-start";
|
|
78
79
|
readonly name: string;
|
|
79
|
-
readonly id: string;
|
|
80
80
|
readonly providerMetadata?: {
|
|
81
81
|
readonly [x: string]: {
|
|
82
82
|
readonly [x: string]: unknown;
|
|
83
83
|
};
|
|
84
84
|
} | undefined;
|
|
85
85
|
readonly providerExecuted?: boolean | undefined;
|
|
86
|
-
} |
|
|
87
|
-
readonly type:
|
|
88
|
-
readonly id:
|
|
89
|
-
readonly name: Schema.String;
|
|
90
|
-
readonly text: Schema.String;
|
|
91
|
-
}, "Type"> | {
|
|
92
|
-
readonly type: "tool-input-end";
|
|
86
|
+
} | {
|
|
87
|
+
readonly type: "tool-input-delta";
|
|
88
|
+
readonly id: string;
|
|
93
89
|
readonly name: string;
|
|
90
|
+
readonly text: string;
|
|
91
|
+
} | {
|
|
94
92
|
readonly id: string;
|
|
93
|
+
readonly type: "tool-input-end";
|
|
94
|
+
readonly name: string;
|
|
95
95
|
readonly providerMetadata?: {
|
|
96
96
|
readonly [x: string]: {
|
|
97
97
|
readonly [x: string]: unknown;
|
|
98
98
|
};
|
|
99
99
|
} | undefined;
|
|
100
|
-
} |
|
|
101
|
-
readonly type:
|
|
102
|
-
readonly id:
|
|
103
|
-
readonly name: Schema.String;
|
|
104
|
-
readonly raw: Schema.String;
|
|
105
|
-
}, "Type"> | {
|
|
106
|
-
readonly type: "tool-call";
|
|
100
|
+
} | {
|
|
101
|
+
readonly type: "tool-input-error";
|
|
102
|
+
readonly id: string;
|
|
107
103
|
readonly name: string;
|
|
104
|
+
readonly raw: string;
|
|
105
|
+
} | {
|
|
108
106
|
readonly id: string;
|
|
107
|
+
readonly type: "tool-call";
|
|
108
|
+
readonly name: string;
|
|
109
109
|
readonly input: unknown;
|
|
110
110
|
readonly providerMetadata?: {
|
|
111
111
|
readonly [x: string]: {
|
|
@@ -114,52 +114,52 @@ export declare class GenerateObjectResponse<T> {
|
|
|
114
114
|
} | undefined;
|
|
115
115
|
readonly providerExecuted?: boolean | undefined;
|
|
116
116
|
} | {
|
|
117
|
+
readonly id: string;
|
|
117
118
|
readonly type: "tool-result";
|
|
118
119
|
readonly name: string;
|
|
119
|
-
readonly
|
|
120
|
-
|
|
121
|
-
readonly
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
readonly
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
readonly
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
readonly
|
|
131
|
-
|
|
132
|
-
readonly
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
readonly
|
|
136
|
-
readonly
|
|
137
|
-
readonly
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
120
|
+
readonly result: {
|
|
121
|
+
readonly type: "json";
|
|
122
|
+
readonly value: unknown;
|
|
123
|
+
} | {
|
|
124
|
+
readonly type: "text";
|
|
125
|
+
readonly value: unknown;
|
|
126
|
+
} | {
|
|
127
|
+
readonly type: "error";
|
|
128
|
+
readonly value: unknown;
|
|
129
|
+
} | {
|
|
130
|
+
readonly type: "content";
|
|
131
|
+
readonly value: readonly ({
|
|
132
|
+
readonly type: "text";
|
|
133
|
+
readonly text: string;
|
|
134
|
+
} | {
|
|
135
|
+
readonly type: "file";
|
|
136
|
+
readonly uri: string;
|
|
137
|
+
readonly mime: string;
|
|
138
|
+
readonly name?: string | undefined;
|
|
139
|
+
})[];
|
|
140
|
+
};
|
|
141
|
+
readonly output?: {
|
|
142
|
+
readonly structured: unknown;
|
|
143
|
+
readonly content: readonly ({
|
|
144
|
+
readonly type: "text";
|
|
145
|
+
readonly text: string;
|
|
146
|
+
} | {
|
|
147
|
+
readonly type: "file";
|
|
148
|
+
readonly uri: string;
|
|
149
|
+
readonly mime: string;
|
|
150
|
+
readonly name?: string | undefined;
|
|
151
|
+
})[];
|
|
152
|
+
} | undefined;
|
|
141
153
|
readonly providerMetadata?: {
|
|
142
154
|
readonly [x: string]: {
|
|
143
155
|
readonly [x: string]: unknown;
|
|
144
156
|
};
|
|
145
157
|
} | undefined;
|
|
146
158
|
readonly providerExecuted?: boolean | undefined;
|
|
147
|
-
readonly output?: Schema.Struct.ReadonlySide<{
|
|
148
|
-
readonly structured: Schema.Unknown;
|
|
149
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
150
|
-
readonly type: Schema.Literal<"text">;
|
|
151
|
-
readonly text: Schema.String;
|
|
152
|
-
}>, Schema.Struct<{
|
|
153
|
-
readonly type: Schema.Literal<"file">;
|
|
154
|
-
readonly uri: Schema.String;
|
|
155
|
-
readonly mime: Schema.String;
|
|
156
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
157
|
-
}>]>>;
|
|
158
|
-
}, "Type"> | undefined;
|
|
159
159
|
} | {
|
|
160
|
+
readonly id: string;
|
|
160
161
|
readonly type: "tool-error";
|
|
161
162
|
readonly name: string;
|
|
162
|
-
readonly id: string;
|
|
163
163
|
readonly message: string;
|
|
164
164
|
readonly error?: unknown;
|
|
165
165
|
readonly providerMetadata?: {
|