@codeworksh/aikit 0.3.0 → 0.3.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/agent/codemode/drivers/drivers.d.mts +1 -1
- package/{codemode-z3ZIw-5q.d.mts → codemode-SiETGR3z.d.mts} +255 -79
- package/index.d.mts +3 -3
- package/index.mjs +739 -52
- package/index.mjs.map +1 -1
- package/package.json +4 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { lazy } from "@codeworksh/utils";
|
|
1
2
|
import * as _$_sinclair_typebox0 from "@sinclair/typebox";
|
|
2
3
|
import { Static, TSchema } from "@sinclair/typebox";
|
|
3
4
|
|
|
@@ -32,7 +33,7 @@ declare namespace Event {
|
|
|
32
33
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
33
34
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
34
35
|
provider: _$_sinclair_typebox0.TObject<{
|
|
35
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
36
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
36
37
|
name: _$_sinclair_typebox0.TString;
|
|
37
38
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
38
39
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -214,7 +215,7 @@ declare namespace Event {
|
|
|
214
215
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
215
216
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
216
217
|
provider: _$_sinclair_typebox0.TObject<{
|
|
217
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
218
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
218
219
|
name: _$_sinclair_typebox0.TString;
|
|
219
220
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
220
221
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -397,7 +398,7 @@ declare namespace Event {
|
|
|
397
398
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
398
399
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
399
400
|
provider: _$_sinclair_typebox0.TObject<{
|
|
400
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
401
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
401
402
|
name: _$_sinclair_typebox0.TString;
|
|
402
403
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
403
404
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -580,7 +581,7 @@ declare namespace Event {
|
|
|
580
581
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
581
582
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
582
583
|
provider: _$_sinclair_typebox0.TObject<{
|
|
583
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
584
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
584
585
|
name: _$_sinclair_typebox0.TString;
|
|
585
586
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
586
587
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -762,7 +763,7 @@ declare namespace Event {
|
|
|
762
763
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
763
764
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
764
765
|
provider: _$_sinclair_typebox0.TObject<{
|
|
765
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
766
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
766
767
|
name: _$_sinclair_typebox0.TString;
|
|
767
768
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
768
769
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -945,7 +946,7 @@ declare namespace Event {
|
|
|
945
946
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
946
947
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
947
948
|
provider: _$_sinclair_typebox0.TObject<{
|
|
948
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
949
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
949
950
|
name: _$_sinclair_typebox0.TString;
|
|
950
951
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
951
952
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -1128,7 +1129,7 @@ declare namespace Event {
|
|
|
1128
1129
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
1129
1130
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
1130
1131
|
provider: _$_sinclair_typebox0.TObject<{
|
|
1131
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
1132
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
1132
1133
|
name: _$_sinclair_typebox0.TString;
|
|
1133
1134
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
1134
1135
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -1310,7 +1311,7 @@ declare namespace Event {
|
|
|
1310
1311
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
1311
1312
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
1312
1313
|
provider: _$_sinclair_typebox0.TObject<{
|
|
1313
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
1314
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
1314
1315
|
name: _$_sinclair_typebox0.TString;
|
|
1315
1316
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
1316
1317
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -1493,7 +1494,7 @@ declare namespace Event {
|
|
|
1493
1494
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
1494
1495
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
1495
1496
|
provider: _$_sinclair_typebox0.TObject<{
|
|
1496
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
1497
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
1497
1498
|
name: _$_sinclair_typebox0.TString;
|
|
1498
1499
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
1499
1500
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -1807,7 +1808,7 @@ declare namespace Event {
|
|
|
1807
1808
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
1808
1809
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
1809
1810
|
provider: _$_sinclair_typebox0.TObject<{
|
|
1810
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
1811
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
1811
1812
|
name: _$_sinclair_typebox0.TString;
|
|
1812
1813
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
1813
1814
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -1989,7 +1990,7 @@ declare namespace Event {
|
|
|
1989
1990
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
1990
1991
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
1991
1992
|
provider: _$_sinclair_typebox0.TObject<{
|
|
1992
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
1993
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
1993
1994
|
name: _$_sinclair_typebox0.TString;
|
|
1994
1995
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
1995
1996
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -2171,7 +2172,7 @@ declare namespace Event {
|
|
|
2171
2172
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
2172
2173
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
2173
2174
|
provider: _$_sinclair_typebox0.TObject<{
|
|
2174
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
2175
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
2175
2176
|
name: _$_sinclair_typebox0.TString;
|
|
2176
2177
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
2177
2178
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -2454,7 +2455,7 @@ declare namespace Event {
|
|
|
2454
2455
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
2455
2456
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
2456
2457
|
provider: _$_sinclair_typebox0.TObject<{
|
|
2457
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
2458
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
2458
2459
|
name: _$_sinclair_typebox0.TString;
|
|
2459
2460
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
2460
2461
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -2637,7 +2638,7 @@ declare namespace Event {
|
|
|
2637
2638
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
2638
2639
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
2639
2640
|
provider: _$_sinclair_typebox0.TObject<{
|
|
2640
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
2641
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
2641
2642
|
name: _$_sinclair_typebox0.TString;
|
|
2642
2643
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
2643
2644
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -2833,7 +2834,7 @@ declare namespace Event {
|
|
|
2833
2834
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
2834
2835
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
2835
2836
|
provider: _$_sinclair_typebox0.TObject<{
|
|
2836
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
2837
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
2837
2838
|
name: _$_sinclair_typebox0.TString;
|
|
2838
2839
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
2839
2840
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -3070,7 +3071,7 @@ declare namespace Event {
|
|
|
3070
3071
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
3071
3072
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
3072
3073
|
provider: _$_sinclair_typebox0.TObject<{
|
|
3073
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
3074
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
3074
3075
|
name: _$_sinclair_typebox0.TString;
|
|
3075
3076
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
3076
3077
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -3397,7 +3398,7 @@ declare namespace Event {
|
|
|
3397
3398
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
3398
3399
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
3399
3400
|
provider: _$_sinclair_typebox0.TObject<{
|
|
3400
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
3401
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
3401
3402
|
name: _$_sinclair_typebox0.TString;
|
|
3402
3403
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
3403
3404
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -3725,7 +3726,7 @@ declare namespace Event {
|
|
|
3725
3726
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
3726
3727
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
3727
3728
|
provider: _$_sinclair_typebox0.TObject<{
|
|
3728
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
3729
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
3729
3730
|
name: _$_sinclair_typebox0.TString;
|
|
3730
3731
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
3731
3732
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -4053,7 +4054,7 @@ declare namespace Event {
|
|
|
4053
4054
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
4054
4055
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
4055
4056
|
provider: _$_sinclair_typebox0.TObject<{
|
|
4056
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
4057
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
4057
4058
|
name: _$_sinclair_typebox0.TString;
|
|
4058
4059
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
4059
4060
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -4395,7 +4396,7 @@ declare namespace Event {
|
|
|
4395
4396
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
4396
4397
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
4397
4398
|
provider: _$_sinclair_typebox0.TObject<{
|
|
4398
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
4399
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
4399
4400
|
name: _$_sinclair_typebox0.TString;
|
|
4400
4401
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
4401
4402
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -4591,7 +4592,7 @@ declare namespace Event {
|
|
|
4591
4592
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
4592
4593
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
4593
4594
|
provider: _$_sinclair_typebox0.TObject<{
|
|
4594
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
4595
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
4595
4596
|
name: _$_sinclair_typebox0.TString;
|
|
4596
4597
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
4597
4598
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -4833,11 +4834,18 @@ declare namespace Provider {
|
|
|
4833
4834
|
const KnownProviderEnum: {
|
|
4834
4835
|
readonly anthropic: "anthropic";
|
|
4835
4836
|
readonly openai: "openai";
|
|
4837
|
+
readonly githubCopilot: "github-copilot";
|
|
4838
|
+
readonly openrouter: "openrouter";
|
|
4839
|
+
readonly groq: "groq";
|
|
4840
|
+
readonly xai: "xai";
|
|
4841
|
+
readonly cerebras: "cerebras";
|
|
4842
|
+
readonly zai: "zai";
|
|
4843
|
+
readonly opencode: "opencode";
|
|
4836
4844
|
};
|
|
4837
|
-
const KnownProviderSchema: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
4845
|
+
const KnownProviderSchema: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
4838
4846
|
type KnownProvider = Static<typeof KnownProviderSchema>;
|
|
4839
4847
|
const Info: _$_sinclair_typebox0.TObject<{
|
|
4840
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
4848
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
4841
4849
|
name: _$_sinclair_typebox0.TString;
|
|
4842
4850
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
4843
4851
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -4852,6 +4860,7 @@ declare namespace Provider {
|
|
|
4852
4860
|
xhigh: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
4853
4861
|
}>;
|
|
4854
4862
|
type ReasoningEffortMap = Static<typeof ReasoningEffortMapSchema>;
|
|
4863
|
+
type StrictReasoningEffortMap = { [K in keyof ReasoningEffortMap]-?: NonNullable<ReasoningEffortMap[K]> };
|
|
4855
4864
|
const OpenRouterRoutingSchema: _$_sinclair_typebox0.TObject<{
|
|
4856
4865
|
only: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>>;
|
|
4857
4866
|
order: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>>;
|
|
@@ -4864,6 +4873,57 @@ declare namespace Provider {
|
|
|
4864
4873
|
type VercelGatewayRouting = Static<typeof VercelGatewayRoutingSchema>;
|
|
4865
4874
|
}
|
|
4866
4875
|
//#endregion
|
|
4876
|
+
//#region src/model/catalog.d.ts
|
|
4877
|
+
declare namespace ModelCatalog {
|
|
4878
|
+
export interface ModelsDevModel {
|
|
4879
|
+
id: string;
|
|
4880
|
+
name: string;
|
|
4881
|
+
family: string;
|
|
4882
|
+
attachment: boolean;
|
|
4883
|
+
reasoning?: boolean;
|
|
4884
|
+
tool_call?: boolean;
|
|
4885
|
+
temperature?: boolean;
|
|
4886
|
+
knowledge?: string | boolean;
|
|
4887
|
+
release_date: string;
|
|
4888
|
+
last_updated: string;
|
|
4889
|
+
modalities: {
|
|
4890
|
+
input?: string[];
|
|
4891
|
+
output: string[];
|
|
4892
|
+
};
|
|
4893
|
+
open_weights: boolean;
|
|
4894
|
+
baseUrl?: string;
|
|
4895
|
+
headers?: Record<string, string>;
|
|
4896
|
+
cost?: {
|
|
4897
|
+
input?: number;
|
|
4898
|
+
output?: number;
|
|
4899
|
+
cache_read?: number;
|
|
4900
|
+
cache_write?: number;
|
|
4901
|
+
};
|
|
4902
|
+
limit?: {
|
|
4903
|
+
context?: number;
|
|
4904
|
+
output?: number;
|
|
4905
|
+
};
|
|
4906
|
+
}
|
|
4907
|
+
export interface ModelsDevProvider {
|
|
4908
|
+
id: string;
|
|
4909
|
+
env: string[];
|
|
4910
|
+
npm?: string;
|
|
4911
|
+
api: string;
|
|
4912
|
+
baseUrl?: string;
|
|
4913
|
+
name: string;
|
|
4914
|
+
doc?: string;
|
|
4915
|
+
key?: string;
|
|
4916
|
+
headers?: Record<string, string>;
|
|
4917
|
+
models: Record<string, ModelsDevModel>;
|
|
4918
|
+
}
|
|
4919
|
+
export type ModelsDevCatalog = Record<string, ModelsDevProvider>;
|
|
4920
|
+
type LazyModelsDevCatalog = ReturnType<typeof lazy<Promise<ModelsDevCatalog>>>;
|
|
4921
|
+
export const modelsDevData: LazyModelsDevCatalog;
|
|
4922
|
+
export function get(): Promise<ModelsDevCatalog>;
|
|
4923
|
+
export function refresh(): Promise<void>;
|
|
4924
|
+
export {};
|
|
4925
|
+
}
|
|
4926
|
+
//#endregion
|
|
4867
4927
|
//#region src/model/model.d.ts
|
|
4868
4928
|
declare namespace Model {
|
|
4869
4929
|
const KnownProtocolEnum: {
|
|
@@ -4873,11 +4933,16 @@ declare namespace Model {
|
|
|
4873
4933
|
};
|
|
4874
4934
|
const KnownProtocolSchema: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
4875
4935
|
type KnownProtocol = Static<typeof KnownProtocolSchema>;
|
|
4936
|
+
const SupportedProtocolsSchema: _$_sinclair_typebox0.TObject<{
|
|
4937
|
+
anthropicMessages: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"anthropic-messages">>;
|
|
4938
|
+
openaiCompletions: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-completions">>;
|
|
4939
|
+
openaiResponses: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-responses">>;
|
|
4940
|
+
}>;
|
|
4876
4941
|
const BaseSchema: _$_sinclair_typebox0.TObject<{
|
|
4877
4942
|
id: _$_sinclair_typebox0.TString;
|
|
4878
4943
|
name: _$_sinclair_typebox0.TString;
|
|
4879
4944
|
provider: _$_sinclair_typebox0.TObject<{
|
|
4880
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
4945
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
4881
4946
|
name: _$_sinclair_typebox0.TString;
|
|
4882
4947
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
4883
4948
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -4895,7 +4960,16 @@ declare namespace Model {
|
|
|
4895
4960
|
contextWindow: _$_sinclair_typebox0.TNumber;
|
|
4896
4961
|
maxTokens: _$_sinclair_typebox0.TNumber;
|
|
4897
4962
|
headers: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TString>>;
|
|
4963
|
+
supportedProtocols: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TObject<{
|
|
4964
|
+
anthropicMessages: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"anthropic-messages">>;
|
|
4965
|
+
openaiCompletions: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-completions">>;
|
|
4966
|
+
openaiResponses: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-responses">>;
|
|
4967
|
+
}>>;
|
|
4898
4968
|
}>;
|
|
4969
|
+
/**
|
|
4970
|
+
* Compatibility settings for OpenAI-compatible completions APIs.
|
|
4971
|
+
* Use this to override URL-based auto-detection for custom providers.
|
|
4972
|
+
*/
|
|
4899
4973
|
const OpenAICompletionsCompatSchema: _$_sinclair_typebox0.TObject<{
|
|
4900
4974
|
supportsStore: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>;
|
|
4901
4975
|
supportsDeveloperRole: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>;
|
|
@@ -4921,9 +4995,11 @@ declare namespace Model {
|
|
|
4921
4995
|
only: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>>;
|
|
4922
4996
|
order: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>>;
|
|
4923
4997
|
}>>;
|
|
4998
|
+
zaiToolStream: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>;
|
|
4924
4999
|
supportsStrictMode: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>;
|
|
4925
5000
|
}>;
|
|
4926
5001
|
type OpenAICompletionsCompat = Static<typeof OpenAICompletionsCompatSchema>;
|
|
5002
|
+
/** Compatibility settings for OpenAI Responses APIs. */
|
|
4927
5003
|
const OpenAIResponsesCompatSchema: _$_sinclair_typebox0.TObject<{}>;
|
|
4928
5004
|
type OpenAIResponsesCompat = Static<typeof OpenAIResponsesCompatSchema>;
|
|
4929
5005
|
const OpenAICompatSchema: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TObject<{
|
|
@@ -4951,12 +5027,13 @@ declare namespace Model {
|
|
|
4951
5027
|
only: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>>;
|
|
4952
5028
|
order: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>>;
|
|
4953
5029
|
}>>;
|
|
5030
|
+
zaiToolStream: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>;
|
|
4954
5031
|
supportsStrictMode: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>;
|
|
4955
5032
|
}>, _$_sinclair_typebox0.TObject<{}>]>;
|
|
4956
5033
|
const AnthropicSchema: _$_sinclair_typebox0.TObject<{
|
|
4957
5034
|
name: _$_sinclair_typebox0.TString;
|
|
4958
5035
|
provider: _$_sinclair_typebox0.TObject<{
|
|
4959
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
5036
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
4960
5037
|
name: _$_sinclair_typebox0.TString;
|
|
4961
5038
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
4962
5039
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -4970,17 +5047,22 @@ declare namespace Model {
|
|
|
4970
5047
|
cacheWrite: _$_sinclair_typebox0.TNumber;
|
|
4971
5048
|
}>;
|
|
4972
5049
|
id: _$_sinclair_typebox0.TString;
|
|
5050
|
+
maxTokens: _$_sinclair_typebox0.TNumber;
|
|
4973
5051
|
baseUrl: _$_sinclair_typebox0.TString;
|
|
4974
5052
|
reasoning: _$_sinclair_typebox0.TBoolean;
|
|
4975
5053
|
contextWindow: _$_sinclair_typebox0.TNumber;
|
|
4976
|
-
maxTokens: _$_sinclair_typebox0.TNumber;
|
|
4977
5054
|
headers: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TString>>;
|
|
5055
|
+
supportedProtocols: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TObject<{
|
|
5056
|
+
anthropicMessages: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"anthropic-messages">>;
|
|
5057
|
+
openaiCompletions: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-completions">>;
|
|
5058
|
+
openaiResponses: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-responses">>;
|
|
5059
|
+
}>>;
|
|
4978
5060
|
protocol: _$_sinclair_typebox0.TLiteral<"anthropic-messages">;
|
|
4979
5061
|
}>;
|
|
4980
5062
|
const OpenAICompletionsSchema: _$_sinclair_typebox0.TObject<{
|
|
4981
5063
|
name: _$_sinclair_typebox0.TString;
|
|
4982
5064
|
provider: _$_sinclair_typebox0.TObject<{
|
|
4983
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
5065
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
4984
5066
|
name: _$_sinclair_typebox0.TString;
|
|
4985
5067
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
4986
5068
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -4994,11 +5076,16 @@ declare namespace Model {
|
|
|
4994
5076
|
cacheWrite: _$_sinclair_typebox0.TNumber;
|
|
4995
5077
|
}>;
|
|
4996
5078
|
id: _$_sinclair_typebox0.TString;
|
|
5079
|
+
maxTokens: _$_sinclair_typebox0.TNumber;
|
|
4997
5080
|
baseUrl: _$_sinclair_typebox0.TString;
|
|
4998
5081
|
reasoning: _$_sinclair_typebox0.TBoolean;
|
|
4999
5082
|
contextWindow: _$_sinclair_typebox0.TNumber;
|
|
5000
|
-
maxTokens: _$_sinclair_typebox0.TNumber;
|
|
5001
5083
|
headers: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TString>>;
|
|
5084
|
+
supportedProtocols: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TObject<{
|
|
5085
|
+
anthropicMessages: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"anthropic-messages">>;
|
|
5086
|
+
openaiCompletions: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-completions">>;
|
|
5087
|
+
openaiResponses: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-responses">>;
|
|
5088
|
+
}>>;
|
|
5002
5089
|
protocol: _$_sinclair_typebox0.TLiteral<"openai-completions">;
|
|
5003
5090
|
compat: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TObject<{
|
|
5004
5091
|
supportsStore: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>;
|
|
@@ -5025,13 +5112,14 @@ declare namespace Model {
|
|
|
5025
5112
|
only: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>>;
|
|
5026
5113
|
order: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>>;
|
|
5027
5114
|
}>>;
|
|
5115
|
+
zaiToolStream: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>;
|
|
5028
5116
|
supportsStrictMode: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>;
|
|
5029
5117
|
}>>;
|
|
5030
5118
|
}>;
|
|
5031
5119
|
const OpenAIResponsesSchema: _$_sinclair_typebox0.TObject<{
|
|
5032
5120
|
name: _$_sinclair_typebox0.TString;
|
|
5033
5121
|
provider: _$_sinclair_typebox0.TObject<{
|
|
5034
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
5122
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
5035
5123
|
name: _$_sinclair_typebox0.TString;
|
|
5036
5124
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
5037
5125
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -5045,18 +5133,23 @@ declare namespace Model {
|
|
|
5045
5133
|
cacheWrite: _$_sinclair_typebox0.TNumber;
|
|
5046
5134
|
}>;
|
|
5047
5135
|
id: _$_sinclair_typebox0.TString;
|
|
5136
|
+
maxTokens: _$_sinclair_typebox0.TNumber;
|
|
5048
5137
|
baseUrl: _$_sinclair_typebox0.TString;
|
|
5049
5138
|
reasoning: _$_sinclair_typebox0.TBoolean;
|
|
5050
5139
|
contextWindow: _$_sinclair_typebox0.TNumber;
|
|
5051
|
-
maxTokens: _$_sinclair_typebox0.TNumber;
|
|
5052
5140
|
headers: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TString>>;
|
|
5141
|
+
supportedProtocols: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TObject<{
|
|
5142
|
+
anthropicMessages: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"anthropic-messages">>;
|
|
5143
|
+
openaiCompletions: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-completions">>;
|
|
5144
|
+
openaiResponses: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-responses">>;
|
|
5145
|
+
}>>;
|
|
5053
5146
|
protocol: _$_sinclair_typebox0.TLiteral<"openai-responses">;
|
|
5054
5147
|
compat: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TObject<{}>>;
|
|
5055
5148
|
}>;
|
|
5056
|
-
const
|
|
5149
|
+
const Info: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TObject<{
|
|
5057
5150
|
name: _$_sinclair_typebox0.TString;
|
|
5058
5151
|
provider: _$_sinclair_typebox0.TObject<{
|
|
5059
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
5152
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
5060
5153
|
name: _$_sinclair_typebox0.TString;
|
|
5061
5154
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
5062
5155
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -5070,16 +5163,21 @@ declare namespace Model {
|
|
|
5070
5163
|
cacheWrite: _$_sinclair_typebox0.TNumber;
|
|
5071
5164
|
}>;
|
|
5072
5165
|
id: _$_sinclair_typebox0.TString;
|
|
5166
|
+
maxTokens: _$_sinclair_typebox0.TNumber;
|
|
5073
5167
|
baseUrl: _$_sinclair_typebox0.TString;
|
|
5074
5168
|
reasoning: _$_sinclair_typebox0.TBoolean;
|
|
5075
5169
|
contextWindow: _$_sinclair_typebox0.TNumber;
|
|
5076
|
-
maxTokens: _$_sinclair_typebox0.TNumber;
|
|
5077
5170
|
headers: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TString>>;
|
|
5171
|
+
supportedProtocols: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TObject<{
|
|
5172
|
+
anthropicMessages: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"anthropic-messages">>;
|
|
5173
|
+
openaiCompletions: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-completions">>;
|
|
5174
|
+
openaiResponses: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-responses">>;
|
|
5175
|
+
}>>;
|
|
5078
5176
|
protocol: _$_sinclair_typebox0.TLiteral<"anthropic-messages">;
|
|
5079
5177
|
}>, _$_sinclair_typebox0.TObject<{
|
|
5080
5178
|
name: _$_sinclair_typebox0.TString;
|
|
5081
5179
|
provider: _$_sinclair_typebox0.TObject<{
|
|
5082
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
5180
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
5083
5181
|
name: _$_sinclair_typebox0.TString;
|
|
5084
5182
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
5085
5183
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -5093,11 +5191,16 @@ declare namespace Model {
|
|
|
5093
5191
|
cacheWrite: _$_sinclair_typebox0.TNumber;
|
|
5094
5192
|
}>;
|
|
5095
5193
|
id: _$_sinclair_typebox0.TString;
|
|
5194
|
+
maxTokens: _$_sinclair_typebox0.TNumber;
|
|
5096
5195
|
baseUrl: _$_sinclair_typebox0.TString;
|
|
5097
5196
|
reasoning: _$_sinclair_typebox0.TBoolean;
|
|
5098
5197
|
contextWindow: _$_sinclair_typebox0.TNumber;
|
|
5099
|
-
maxTokens: _$_sinclair_typebox0.TNumber;
|
|
5100
5198
|
headers: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TString>>;
|
|
5199
|
+
supportedProtocols: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TObject<{
|
|
5200
|
+
anthropicMessages: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"anthropic-messages">>;
|
|
5201
|
+
openaiCompletions: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-completions">>;
|
|
5202
|
+
openaiResponses: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-responses">>;
|
|
5203
|
+
}>>;
|
|
5101
5204
|
protocol: _$_sinclair_typebox0.TLiteral<"openai-completions">;
|
|
5102
5205
|
compat: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TObject<{
|
|
5103
5206
|
supportsStore: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>;
|
|
@@ -5124,12 +5227,13 @@ declare namespace Model {
|
|
|
5124
5227
|
only: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>>;
|
|
5125
5228
|
order: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>>;
|
|
5126
5229
|
}>>;
|
|
5230
|
+
zaiToolStream: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>;
|
|
5127
5231
|
supportsStrictMode: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>;
|
|
5128
5232
|
}>>;
|
|
5129
5233
|
}>, _$_sinclair_typebox0.TObject<{
|
|
5130
5234
|
name: _$_sinclair_typebox0.TString;
|
|
5131
5235
|
provider: _$_sinclair_typebox0.TObject<{
|
|
5132
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
5236
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
5133
5237
|
name: _$_sinclair_typebox0.TString;
|
|
5134
5238
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
5135
5239
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -5143,19 +5247,24 @@ declare namespace Model {
|
|
|
5143
5247
|
cacheWrite: _$_sinclair_typebox0.TNumber;
|
|
5144
5248
|
}>;
|
|
5145
5249
|
id: _$_sinclair_typebox0.TString;
|
|
5250
|
+
maxTokens: _$_sinclair_typebox0.TNumber;
|
|
5146
5251
|
baseUrl: _$_sinclair_typebox0.TString;
|
|
5147
5252
|
reasoning: _$_sinclair_typebox0.TBoolean;
|
|
5148
5253
|
contextWindow: _$_sinclair_typebox0.TNumber;
|
|
5149
|
-
maxTokens: _$_sinclair_typebox0.TNumber;
|
|
5150
5254
|
headers: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TString>>;
|
|
5255
|
+
supportedProtocols: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TObject<{
|
|
5256
|
+
anthropicMessages: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"anthropic-messages">>;
|
|
5257
|
+
openaiCompletions: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-completions">>;
|
|
5258
|
+
openaiResponses: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TLiteral<"openai-responses">>;
|
|
5259
|
+
}>>;
|
|
5151
5260
|
protocol: _$_sinclair_typebox0.TLiteral<"openai-responses">;
|
|
5152
5261
|
compat: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TObject<{}>>;
|
|
5153
5262
|
}>]>;
|
|
5154
|
-
type
|
|
5155
|
-
type TModel<TProtocol extends KnownProtocol> = Extract<
|
|
5263
|
+
type Info = Static<typeof Info>;
|
|
5264
|
+
type TModel<TProtocol extends KnownProtocol> = Extract<Info, {
|
|
5156
5265
|
protocol: TProtocol;
|
|
5157
5266
|
}>;
|
|
5158
|
-
function calculateCost(model:
|
|
5267
|
+
function calculateCost(model: Info, usage: {
|
|
5159
5268
|
input: number;
|
|
5160
5269
|
output: number;
|
|
5161
5270
|
cacheRead: number;
|
|
@@ -5168,13 +5277,20 @@ declare namespace Model {
|
|
|
5168
5277
|
total: number;
|
|
5169
5278
|
};
|
|
5170
5279
|
}): void;
|
|
5171
|
-
type BuiltInModels = Partial<Record<Provider.KnownProvider, Record<string,
|
|
5280
|
+
type BuiltInModels = Partial<Record<Provider.KnownProvider, Record<string, Info>>>;
|
|
5281
|
+
function normalizeInput(input?: string[]): Array<"text" | "image">;
|
|
5282
|
+
function toProviderInfo(providerId: Provider.KnownProvider, provider: ModelCatalog.ModelsDevProvider): Provider.Info;
|
|
5172
5283
|
function getBuiltInModels(): Promise<BuiltInModels>;
|
|
5173
5284
|
const registry: {
|
|
5174
|
-
(): Promise<Map<"anthropic" | "openai", Map<string, {
|
|
5285
|
+
(): Promise<Map<"anthropic" | "openai" | "github-copilot" | "openrouter" | "groq" | "xai" | "cerebras" | "zai" | "opencode", Map<string, {
|
|
5175
5286
|
headers?: {
|
|
5176
5287
|
[x: string]: string;
|
|
5177
5288
|
} | undefined;
|
|
5289
|
+
supportedProtocols?: {
|
|
5290
|
+
anthropicMessages?: "anthropic-messages" | undefined;
|
|
5291
|
+
openaiCompletions?: "openai-completions" | undefined;
|
|
5292
|
+
openaiResponses?: "openai-responses" | undefined;
|
|
5293
|
+
} | undefined;
|
|
5178
5294
|
name: string;
|
|
5179
5295
|
input: ("text" | "image")[];
|
|
5180
5296
|
cost: {
|
|
@@ -5191,17 +5307,22 @@ declare namespace Model {
|
|
|
5191
5307
|
[x: string]: any;
|
|
5192
5308
|
} | undefined;
|
|
5193
5309
|
name: string;
|
|
5194
|
-
id: "anthropic" | "openai";
|
|
5310
|
+
id: "anthropic" | "openai" | "github-copilot" | "openrouter" | "groq" | "xai" | "cerebras" | "zai" | "opencode";
|
|
5195
5311
|
env: string[];
|
|
5196
5312
|
};
|
|
5313
|
+
maxTokens: number;
|
|
5197
5314
|
baseUrl: string;
|
|
5198
5315
|
reasoning: boolean;
|
|
5199
5316
|
contextWindow: number;
|
|
5200
|
-
maxTokens: number;
|
|
5201
5317
|
} | {
|
|
5202
5318
|
headers?: {
|
|
5203
5319
|
[x: string]: string;
|
|
5204
5320
|
} | undefined;
|
|
5321
|
+
supportedProtocols?: {
|
|
5322
|
+
anthropicMessages?: "anthropic-messages" | undefined;
|
|
5323
|
+
openaiCompletions?: "openai-completions" | undefined;
|
|
5324
|
+
openaiResponses?: "openai-responses" | undefined;
|
|
5325
|
+
} | undefined;
|
|
5205
5326
|
compat?: {
|
|
5206
5327
|
supportsStore?: boolean | undefined;
|
|
5207
5328
|
supportsDeveloperRole?: boolean | undefined;
|
|
@@ -5227,6 +5348,7 @@ declare namespace Model {
|
|
|
5227
5348
|
only?: string[] | undefined;
|
|
5228
5349
|
order?: string[] | undefined;
|
|
5229
5350
|
} | undefined;
|
|
5351
|
+
zaiToolStream?: boolean | undefined;
|
|
5230
5352
|
supportsStrictMode?: boolean | undefined;
|
|
5231
5353
|
} | undefined;
|
|
5232
5354
|
name: string;
|
|
@@ -5245,17 +5367,22 @@ declare namespace Model {
|
|
|
5245
5367
|
[x: string]: any;
|
|
5246
5368
|
} | undefined;
|
|
5247
5369
|
name: string;
|
|
5248
|
-
id: "anthropic" | "openai";
|
|
5370
|
+
id: "anthropic" | "openai" | "github-copilot" | "openrouter" | "groq" | "xai" | "cerebras" | "zai" | "opencode";
|
|
5249
5371
|
env: string[];
|
|
5250
5372
|
};
|
|
5373
|
+
maxTokens: number;
|
|
5251
5374
|
baseUrl: string;
|
|
5252
5375
|
reasoning: boolean;
|
|
5253
5376
|
contextWindow: number;
|
|
5254
|
-
maxTokens: number;
|
|
5255
5377
|
} | {
|
|
5256
5378
|
headers?: {
|
|
5257
5379
|
[x: string]: string;
|
|
5258
5380
|
} | undefined;
|
|
5381
|
+
supportedProtocols?: {
|
|
5382
|
+
anthropicMessages?: "anthropic-messages" | undefined;
|
|
5383
|
+
openaiCompletions?: "openai-completions" | undefined;
|
|
5384
|
+
openaiResponses?: "openai-responses" | undefined;
|
|
5385
|
+
} | undefined;
|
|
5259
5386
|
compat?: {} | undefined;
|
|
5260
5387
|
name: string;
|
|
5261
5388
|
input: ("text" | "image")[];
|
|
@@ -5273,20 +5400,25 @@ declare namespace Model {
|
|
|
5273
5400
|
[x: string]: any;
|
|
5274
5401
|
} | undefined;
|
|
5275
5402
|
name: string;
|
|
5276
|
-
id: "anthropic" | "openai";
|
|
5403
|
+
id: "anthropic" | "openai" | "github-copilot" | "openrouter" | "groq" | "xai" | "cerebras" | "zai" | "opencode";
|
|
5277
5404
|
env: string[];
|
|
5278
5405
|
};
|
|
5406
|
+
maxTokens: number;
|
|
5279
5407
|
baseUrl: string;
|
|
5280
5408
|
reasoning: boolean;
|
|
5281
5409
|
contextWindow: number;
|
|
5282
|
-
maxTokens: number;
|
|
5283
5410
|
}>>>;
|
|
5284
5411
|
reset(): void;
|
|
5285
5412
|
};
|
|
5286
|
-
function getModel<TProvider extends Provider.KnownProvider, TModel extends
|
|
5413
|
+
function getModel<TProvider extends Provider.KnownProvider, TModel extends Info["id"]>(provider: TProvider, model: TModel, overrides?: Partial<Info>): Promise<{
|
|
5287
5414
|
headers?: {
|
|
5288
5415
|
[x: string]: string;
|
|
5289
5416
|
} | undefined;
|
|
5417
|
+
supportedProtocols?: {
|
|
5418
|
+
anthropicMessages?: "anthropic-messages" | undefined;
|
|
5419
|
+
openaiCompletions?: "openai-completions" | undefined;
|
|
5420
|
+
openaiResponses?: "openai-responses" | undefined;
|
|
5421
|
+
} | undefined;
|
|
5290
5422
|
name: string;
|
|
5291
5423
|
input: ("text" | "image")[];
|
|
5292
5424
|
cost: {
|
|
@@ -5303,17 +5435,22 @@ declare namespace Model {
|
|
|
5303
5435
|
[x: string]: any;
|
|
5304
5436
|
} | undefined;
|
|
5305
5437
|
name: string;
|
|
5306
|
-
id: "anthropic" | "openai";
|
|
5438
|
+
id: "anthropic" | "openai" | "github-copilot" | "openrouter" | "groq" | "xai" | "cerebras" | "zai" | "opencode";
|
|
5307
5439
|
env: string[];
|
|
5308
5440
|
};
|
|
5441
|
+
maxTokens: number;
|
|
5309
5442
|
baseUrl: string;
|
|
5310
5443
|
reasoning: boolean;
|
|
5311
5444
|
contextWindow: number;
|
|
5312
|
-
maxTokens: number;
|
|
5313
5445
|
} | {
|
|
5314
5446
|
headers?: {
|
|
5315
5447
|
[x: string]: string;
|
|
5316
5448
|
} | undefined;
|
|
5449
|
+
supportedProtocols?: {
|
|
5450
|
+
anthropicMessages?: "anthropic-messages" | undefined;
|
|
5451
|
+
openaiCompletions?: "openai-completions" | undefined;
|
|
5452
|
+
openaiResponses?: "openai-responses" | undefined;
|
|
5453
|
+
} | undefined;
|
|
5317
5454
|
compat?: {
|
|
5318
5455
|
supportsStore?: boolean | undefined;
|
|
5319
5456
|
supportsDeveloperRole?: boolean | undefined;
|
|
@@ -5339,6 +5476,7 @@ declare namespace Model {
|
|
|
5339
5476
|
only?: string[] | undefined;
|
|
5340
5477
|
order?: string[] | undefined;
|
|
5341
5478
|
} | undefined;
|
|
5479
|
+
zaiToolStream?: boolean | undefined;
|
|
5342
5480
|
supportsStrictMode?: boolean | undefined;
|
|
5343
5481
|
} | undefined;
|
|
5344
5482
|
name: string;
|
|
@@ -5349,7 +5487,7 @@ declare namespace Model {
|
|
|
5349
5487
|
cacheRead: number;
|
|
5350
5488
|
cacheWrite: number;
|
|
5351
5489
|
};
|
|
5352
|
-
protocol: "openai-completions";
|
|
5490
|
+
protocol: "anthropic-messages" | "openai-completions";
|
|
5353
5491
|
id: string;
|
|
5354
5492
|
provider: {
|
|
5355
5493
|
key?: string | undefined;
|
|
@@ -5357,17 +5495,22 @@ declare namespace Model {
|
|
|
5357
5495
|
[x: string]: any;
|
|
5358
5496
|
} | undefined;
|
|
5359
5497
|
name: string;
|
|
5360
|
-
id: "anthropic" | "openai";
|
|
5498
|
+
id: "anthropic" | "openai" | "github-copilot" | "openrouter" | "groq" | "xai" | "cerebras" | "zai" | "opencode";
|
|
5361
5499
|
env: string[];
|
|
5362
5500
|
};
|
|
5501
|
+
maxTokens: number;
|
|
5363
5502
|
baseUrl: string;
|
|
5364
5503
|
reasoning: boolean;
|
|
5365
5504
|
contextWindow: number;
|
|
5366
|
-
maxTokens: number;
|
|
5367
5505
|
} | {
|
|
5368
5506
|
headers?: {
|
|
5369
5507
|
[x: string]: string;
|
|
5370
5508
|
} | undefined;
|
|
5509
|
+
supportedProtocols?: {
|
|
5510
|
+
anthropicMessages?: "anthropic-messages" | undefined;
|
|
5511
|
+
openaiCompletions?: "openai-completions" | undefined;
|
|
5512
|
+
openaiResponses?: "openai-responses" | undefined;
|
|
5513
|
+
} | undefined;
|
|
5371
5514
|
compat?: {} | undefined;
|
|
5372
5515
|
name: string;
|
|
5373
5516
|
input: ("text" | "image")[];
|
|
@@ -5377,7 +5520,7 @@ declare namespace Model {
|
|
|
5377
5520
|
cacheRead: number;
|
|
5378
5521
|
cacheWrite: number;
|
|
5379
5522
|
};
|
|
5380
|
-
protocol: "openai-responses";
|
|
5523
|
+
protocol: "anthropic-messages" | "openai-responses";
|
|
5381
5524
|
id: string;
|
|
5382
5525
|
provider: {
|
|
5383
5526
|
key?: string | undefined;
|
|
@@ -5385,26 +5528,59 @@ declare namespace Model {
|
|
|
5385
5528
|
[x: string]: any;
|
|
5386
5529
|
} | undefined;
|
|
5387
5530
|
name: string;
|
|
5388
|
-
id: "anthropic" | "openai";
|
|
5531
|
+
id: "anthropic" | "openai" | "github-copilot" | "openrouter" | "groq" | "xai" | "cerebras" | "zai" | "opencode";
|
|
5389
5532
|
env: string[];
|
|
5390
5533
|
};
|
|
5534
|
+
maxTokens: number;
|
|
5391
5535
|
baseUrl: string;
|
|
5392
5536
|
reasoning: boolean;
|
|
5393
5537
|
contextWindow: number;
|
|
5538
|
+
} | {
|
|
5539
|
+
headers?: {
|
|
5540
|
+
[x: string]: string;
|
|
5541
|
+
} | undefined;
|
|
5542
|
+
supportedProtocols?: {
|
|
5543
|
+
anthropicMessages?: "anthropic-messages" | undefined;
|
|
5544
|
+
openaiCompletions?: "openai-completions" | undefined;
|
|
5545
|
+
openaiResponses?: "openai-responses" | undefined;
|
|
5546
|
+
} | undefined;
|
|
5547
|
+
compat?: {} | undefined;
|
|
5548
|
+
name: string;
|
|
5549
|
+
input: ("text" | "image")[];
|
|
5550
|
+
cost: {
|
|
5551
|
+
input: number;
|
|
5552
|
+
output: number;
|
|
5553
|
+
cacheRead: number;
|
|
5554
|
+
cacheWrite: number;
|
|
5555
|
+
};
|
|
5556
|
+
protocol: "openai-completions" | "openai-responses";
|
|
5557
|
+
id: string;
|
|
5558
|
+
provider: {
|
|
5559
|
+
key?: string | undefined;
|
|
5560
|
+
options?: {
|
|
5561
|
+
[x: string]: any;
|
|
5562
|
+
} | undefined;
|
|
5563
|
+
name: string;
|
|
5564
|
+
id: "anthropic" | "openai" | "github-copilot" | "openrouter" | "groq" | "xai" | "cerebras" | "zai" | "opencode";
|
|
5565
|
+
env: string[];
|
|
5566
|
+
};
|
|
5394
5567
|
maxTokens: number;
|
|
5568
|
+
baseUrl: string;
|
|
5569
|
+
reasoning: boolean;
|
|
5570
|
+
contextWindow: number;
|
|
5395
5571
|
} | undefined>;
|
|
5396
5572
|
function getProviders(): Promise<Provider.KnownProvider[]>;
|
|
5397
|
-
function getModels<TProvider extends Provider.KnownProvider>(provider: TProvider): Promise<
|
|
5573
|
+
function getModels<TProvider extends Provider.KnownProvider>(provider: TProvider): Promise<Info[]>;
|
|
5398
5574
|
/**
|
|
5399
5575
|
* Check if a model supports xhigh thinking level.
|
|
5400
5576
|
* Currently only certain OpenAI Codex models support this.
|
|
5401
5577
|
*/
|
|
5402
|
-
function supportsXhigh(model:
|
|
5578
|
+
function supportsXhigh(model: Info): boolean;
|
|
5403
5579
|
/**
|
|
5404
5580
|
* Check if two models are equal by comparing both their id and provider id.
|
|
5405
5581
|
* Returns false if either model is null or undefined.
|
|
5406
5582
|
*/
|
|
5407
|
-
function modelsAreEqual(a:
|
|
5583
|
+
function modelsAreEqual(a: Info | null | undefined, b: Info | null | undefined): boolean;
|
|
5408
5584
|
}
|
|
5409
5585
|
//#endregion
|
|
5410
5586
|
//#region src/message/message.d.ts
|
|
@@ -5829,7 +6005,7 @@ declare namespace Message {
|
|
|
5829
6005
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
5830
6006
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
5831
6007
|
provider: _$_sinclair_typebox0.TObject<{
|
|
5832
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
6008
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
5833
6009
|
name: _$_sinclair_typebox0.TString;
|
|
5834
6010
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
5835
6011
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -6027,7 +6203,7 @@ declare namespace Message {
|
|
|
6027
6203
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
6028
6204
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
6029
6205
|
provider: _$_sinclair_typebox0.TObject<{
|
|
6030
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
6206
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
6031
6207
|
name: _$_sinclair_typebox0.TString;
|
|
6032
6208
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
6033
6209
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -6263,7 +6439,7 @@ declare namespace Message {
|
|
|
6263
6439
|
role: _$_sinclair_typebox0.TLiteral<"assistant">;
|
|
6264
6440
|
protocol: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic-messages">, _$_sinclair_typebox0.TLiteral<"openai-completions">, _$_sinclair_typebox0.TLiteral<"openai-responses">]>;
|
|
6265
6441
|
provider: _$_sinclair_typebox0.TObject<{
|
|
6266
|
-
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
|
|
6442
|
+
id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">, _$_sinclair_typebox0.TLiteral<"github-copilot">, _$_sinclair_typebox0.TLiteral<"openrouter">, _$_sinclair_typebox0.TLiteral<"groq">, _$_sinclair_typebox0.TLiteral<"xai">, _$_sinclair_typebox0.TLiteral<"cerebras">, _$_sinclair_typebox0.TLiteral<"zai">, _$_sinclair_typebox0.TLiteral<"opencode">]>;
|
|
6267
6443
|
name: _$_sinclair_typebox0.TString;
|
|
6268
6444
|
env: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TString>;
|
|
6269
6445
|
key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
|
|
@@ -6730,14 +6906,14 @@ declare namespace Stream {
|
|
|
6730
6906
|
}>;
|
|
6731
6907
|
type SimpleOptions = Static<typeof SimpleOptionsSchema>;
|
|
6732
6908
|
type StreamFunction<TProtocol extends Model.KnownProtocol = Model.KnownProtocol, TOptions extends Options = Options> = (model: Model.TModel<TProtocol>, context: Message.Context, options?: TOptions) => AssistantMessageEventStream;
|
|
6733
|
-
function buildBaseOptions(model: Model.
|
|
6909
|
+
function buildBaseOptions(model: Model.Info, options?: SimpleOptions, apiKey?: string): Options;
|
|
6734
6910
|
function clampReasoning(effort: ThinkingLevel | undefined): Exclude<ThinkingLevel, "xhigh"> | undefined;
|
|
6735
6911
|
function adjustMaxTokensForThinking(baseMaxTokens: number, modelMaxTokens: number, reasoningLevel: ThinkingLevel, customBudgets?: ThinkingBudgets): {
|
|
6736
6912
|
maxTokens: number;
|
|
6737
6913
|
thinkingBudget: number;
|
|
6738
6914
|
};
|
|
6739
|
-
type ProtocolStreamFunction = (model: Model.
|
|
6740
|
-
type ProtocolStreamSimpleFunction = (model: Model.
|
|
6915
|
+
type ProtocolStreamFunction = (model: Model.Info, context: Message.Context, options?: Options) => AssistantMessageEventStream;
|
|
6916
|
+
type ProtocolStreamSimpleFunction = (model: Model.Info, context: Message.Context, options?: SimpleOptions) => AssistantMessageEventStream;
|
|
6741
6917
|
interface ProtocolProvider<TProtocol extends Model.KnownProtocol = Model.KnownProtocol, TOptions extends Options = Options> {
|
|
6742
6918
|
protocol: TProtocol;
|
|
6743
6919
|
stream: StreamFunction<TProtocol, TOptions>;
|
|
@@ -6745,11 +6921,11 @@ declare namespace Stream {
|
|
|
6745
6921
|
}
|
|
6746
6922
|
function registerProtocolProvider<TProtocol extends Model.KnownProtocol, TOptions extends Options>(provider: ProtocolProvider<TProtocol, TOptions>, sourceId?: string): void;
|
|
6747
6923
|
function getProtocolProvider(protocol: Model.KnownProtocol): ProtocolProvider<Model.KnownProtocol, Options> | undefined;
|
|
6748
|
-
function resolveProtocolProvider(model: Model.
|
|
6749
|
-
function stream(model: Model.
|
|
6750
|
-
function complete(model: Model.
|
|
6751
|
-
function streamSimple(model: Model.
|
|
6752
|
-
function completeSimple(model: Model.
|
|
6924
|
+
function resolveProtocolProvider(model: Model.Info): ProtocolProvider<Model.KnownProtocol, Options>;
|
|
6925
|
+
function stream(model: Model.Info, context: Message.Context, options?: Options): AssistantMessageEventStream;
|
|
6926
|
+
function complete(model: Model.Info, context: Message.Context, options?: Options): Promise<Message.AssistantMessage>;
|
|
6927
|
+
function streamSimple(model: Model.Info, context: Message.Context, options?: SimpleOptions): AssistantMessageEventStream;
|
|
6928
|
+
function completeSimple(model: Model.Info, context: Message.Context, options?: SimpleOptions): Promise<Message.AssistantMessage>;
|
|
6753
6929
|
function getApiProviders(): ProtocolProvider<Model.KnownProtocol, Options>[];
|
|
6754
6930
|
function unregisterProtocolProviders(sourceId: string): void;
|
|
6755
6931
|
function clearProtocolProviders(): void;
|
|
@@ -6807,7 +6983,7 @@ declare namespace Loop {
|
|
|
6807
6983
|
}
|
|
6808
6984
|
/** Configuration for the agent loop. */
|
|
6809
6985
|
export interface Config extends Stream.SimpleOptions {
|
|
6810
|
-
model: Model.
|
|
6986
|
+
model: Model.Info;
|
|
6811
6987
|
convertToLlm: (messages: Message.Message[]) => Message.Message[] | Promise<Message.Message[]>;
|
|
6812
6988
|
/**
|
|
6813
6989
|
* Optional transform applied to the context before `convertToLlm`.
|
|
@@ -7162,7 +7338,7 @@ declare namespace Loop {
|
|
|
7162
7338
|
[x: string]: any;
|
|
7163
7339
|
} | undefined;
|
|
7164
7340
|
name: string;
|
|
7165
|
-
id: "anthropic" | "openai";
|
|
7341
|
+
id: "anthropic" | "openai" | "github-copilot" | "openrouter" | "groq" | "xai" | "cerebras" | "zai" | "opencode";
|
|
7166
7342
|
env: string[];
|
|
7167
7343
|
};
|
|
7168
7344
|
model: string;
|
|
@@ -7375,7 +7551,7 @@ declare namespace Loop {
|
|
|
7375
7551
|
[x: string]: any;
|
|
7376
7552
|
} | undefined;
|
|
7377
7553
|
name: string;
|
|
7378
|
-
id: "anthropic" | "openai";
|
|
7554
|
+
id: "anthropic" | "openai" | "github-copilot" | "openrouter" | "groq" | "xai" | "cerebras" | "zai" | "opencode";
|
|
7379
7555
|
env: string[];
|
|
7380
7556
|
};
|
|
7381
7557
|
model: string;
|
|
@@ -7515,7 +7691,7 @@ declare namespace Agent {
|
|
|
7515
7691
|
export interface State {
|
|
7516
7692
|
name: string;
|
|
7517
7693
|
systemPrompt: string;
|
|
7518
|
-
model: Model.
|
|
7694
|
+
model: Model.Info;
|
|
7519
7695
|
thinkingLevel: Stream.ThinkingLevel;
|
|
7520
7696
|
tools: AnyAgentTool[];
|
|
7521
7697
|
messages: Message.Message[];
|
|
@@ -7927,7 +8103,7 @@ declare namespace Agent {
|
|
|
7927
8103
|
private _toolExecution;
|
|
7928
8104
|
private _beforeToolExecution?;
|
|
7929
8105
|
private _afterToolExecution?;
|
|
7930
|
-
constructor(name: string, model: Model.
|
|
8106
|
+
constructor(name: string, model: Model.Info, opts?: AgentOptions);
|
|
7931
8107
|
/**
|
|
7932
8108
|
* Get the current session ID used for provider caching.
|
|
7933
8109
|
*/
|
|
@@ -7969,7 +8145,7 @@ declare namespace Agent {
|
|
|
7969
8145
|
get state(): State;
|
|
7970
8146
|
subscribe(fn: (e: Event.AgentEvent) => void): () => void;
|
|
7971
8147
|
setSystemPrompt(v: string): void;
|
|
7972
|
-
setModel(m: Model.
|
|
8148
|
+
setModel(m: Model.Info): void;
|
|
7973
8149
|
setThinkingLevel(l: Stream.ThinkingLevel): void;
|
|
7974
8150
|
setSteeringMode(mode: "all" | "one-at-a-time"): void;
|
|
7975
8151
|
getSteeringMode(): "all" | "one-at-a-time";
|
|
@@ -8012,13 +8188,13 @@ declare namespace Agent {
|
|
|
8012
8188
|
private _processLoopEvent;
|
|
8013
8189
|
private emit;
|
|
8014
8190
|
}
|
|
8015
|
-
export function create<TProvider extends Provider.KnownProvider, TModel extends Model.
|
|
8191
|
+
export function create<TProvider extends Provider.KnownProvider, TModel extends Model.Info["id"]>(options: AgentOptions & {
|
|
8016
8192
|
provider: TProvider;
|
|
8017
8193
|
model: TModel;
|
|
8018
8194
|
name?: string;
|
|
8019
8195
|
}): Promise<Instance>;
|
|
8020
8196
|
export function create(options: AgentOptions & {
|
|
8021
|
-
model: Model.
|
|
8197
|
+
model: Model.Info;
|
|
8022
8198
|
name?: string;
|
|
8023
8199
|
}): Promise<Instance>;
|
|
8024
8200
|
export {};
|
|
@@ -8231,4 +8407,4 @@ declare namespace CodeMode {
|
|
|
8231
8407
|
}
|
|
8232
8408
|
//#endregion
|
|
8233
8409
|
export { AssistantMessageEventStream as a, Provider as c, Stream as i, Agent as n, Message as o, Loop as r, Model as s, CodeMode as t };
|
|
8234
|
-
//# sourceMappingURL=codemode-
|
|
8410
|
+
//# sourceMappingURL=codemode-SiETGR3z.d.mts.map
|