@hilbras/sdk 0.26.0 → 0.26.6
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/README.md +1 -1
- package/dist/catalog/provider-catalog.json +92 -57
- package/dist/features/agent/index.d.ts +13 -0
- package/dist/features/agent/index.d.ts.map +1 -0
- package/dist/features/agent/index.js +12 -0
- package/dist/features/agent/index.js.map +1 -0
- package/dist/features/agent/plan-and-execute.d.ts +49 -0
- package/dist/features/agent/plan-and-execute.d.ts.map +1 -0
- package/dist/features/agent/plan-and-execute.js +184 -0
- package/dist/features/agent/plan-and-execute.js.map +1 -0
- package/dist/features/agent/react.d.ts +49 -0
- package/dist/features/agent/react.d.ts.map +1 -0
- package/dist/features/agent/react.js +165 -0
- package/dist/features/agent/react.js.map +1 -0
- package/dist/features/agent/tool-loop.d.ts +58 -0
- package/dist/features/agent/tool-loop.d.ts.map +1 -0
- package/dist/features/agent/tool-loop.js +217 -0
- package/dist/features/agent/tool-loop.js.map +1 -0
- package/dist/features/agent/types.d.ts +136 -0
- package/dist/features/agent/types.d.ts.map +1 -0
- package/dist/features/agent/types.js +7 -0
- package/dist/features/agent/types.js.map +1 -0
- package/dist/features/eval/evaluate.d.ts +39 -0
- package/dist/features/eval/evaluate.d.ts.map +1 -0
- package/dist/features/eval/evaluate.js +153 -0
- package/dist/features/eval/evaluate.js.map +1 -0
- package/dist/features/eval/index.d.ts +9 -0
- package/dist/features/eval/index.d.ts.map +1 -0
- package/dist/features/eval/index.js +8 -0
- package/dist/features/eval/index.js.map +1 -0
- package/dist/features/eval/metrics.d.ts +38 -0
- package/dist/features/eval/metrics.d.ts.map +1 -0
- package/dist/features/eval/metrics.js +133 -0
- package/dist/features/eval/metrics.js.map +1 -0
- package/dist/features/eval/types.d.ts +116 -0
- package/dist/features/eval/types.d.ts.map +1 -0
- package/dist/features/eval/types.js +7 -0
- package/dist/features/eval/types.js.map +1 -0
- package/dist/features/fine-tune/formatters.d.ts +11 -0
- package/dist/features/fine-tune/formatters.d.ts.map +1 -0
- package/dist/features/fine-tune/formatters.js +155 -0
- package/dist/features/fine-tune/formatters.js.map +1 -0
- package/dist/features/fine-tune/index.d.ts +10 -0
- package/dist/features/fine-tune/index.d.ts.map +1 -0
- package/dist/features/fine-tune/index.js +9 -0
- package/dist/features/fine-tune/index.js.map +1 -0
- package/dist/features/fine-tune/quality.d.ts +37 -0
- package/dist/features/fine-tune/quality.d.ts.map +1 -0
- package/dist/features/fine-tune/quality.js +97 -0
- package/dist/features/fine-tune/quality.js.map +1 -0
- package/dist/features/fine-tune/split.d.ts +23 -0
- package/dist/features/fine-tune/split.d.ts.map +1 -0
- package/dist/features/fine-tune/split.js +43 -0
- package/dist/features/fine-tune/split.js.map +1 -0
- package/dist/features/fine-tune/types.d.ts +85 -0
- package/dist/features/fine-tune/types.d.ts.map +1 -0
- package/dist/features/fine-tune/types.js +5 -0
- package/dist/features/fine-tune/types.js.map +1 -0
- package/dist/features/rag/chunker.d.ts +42 -0
- package/dist/features/rag/chunker.d.ts.map +1 -0
- package/dist/features/rag/chunker.js +115 -0
- package/dist/features/rag/chunker.js.map +1 -0
- package/dist/features/rag/in-memory-store.d.ts +21 -0
- package/dist/features/rag/in-memory-store.d.ts.map +1 -0
- package/dist/features/rag/in-memory-store.js +81 -0
- package/dist/features/rag/in-memory-store.js.map +1 -0
- package/dist/features/rag/index.d.ts +15 -0
- package/dist/features/rag/index.d.ts.map +1 -0
- package/dist/features/rag/index.js +14 -0
- package/dist/features/rag/index.js.map +1 -0
- package/dist/features/rag/pipeline.d.ts +92 -0
- package/dist/features/rag/pipeline.d.ts.map +1 -0
- package/dist/features/rag/pipeline.js +102 -0
- package/dist/features/rag/pipeline.js.map +1 -0
- package/dist/features/rag/retriever.d.ts +71 -0
- package/dist/features/rag/retriever.d.ts.map +1 -0
- package/dist/features/rag/retriever.js +99 -0
- package/dist/features/rag/retriever.js.map +1 -0
- package/dist/features/rag/vector-store.d.ts +43 -0
- package/dist/features/rag/vector-store.d.ts.map +1 -0
- package/dist/features/rag/vector-store.js +8 -0
- package/dist/features/rag/vector-store.js.map +1 -0
- package/dist/frameworks/angular/angular-shim.d.ts +19 -0
- package/dist/frameworks/angular/angular-shim.d.ts.map +1 -0
- package/dist/frameworks/angular/angular-shim.js +22 -0
- package/dist/frameworks/angular/angular-shim.js.map +1 -0
- package/dist/frameworks/angular/chat.service.d.ts +53 -0
- package/dist/frameworks/angular/chat.service.d.ts.map +1 -0
- package/dist/frameworks/angular/chat.service.js +154 -0
- package/dist/frameworks/angular/chat.service.js.map +1 -0
- package/dist/frameworks/angular/completion.service.d.ts +34 -0
- package/dist/frameworks/angular/completion.service.d.ts.map +1 -0
- package/dist/frameworks/angular/completion.service.js +114 -0
- package/dist/frameworks/angular/completion.service.js.map +1 -0
- package/dist/frameworks/angular/index.d.ts +12 -0
- package/dist/frameworks/angular/index.d.ts.map +1 -0
- package/dist/frameworks/angular/index.js +9 -0
- package/dist/frameworks/angular/index.js.map +1 -0
- package/dist/frameworks/angular/object.service.d.ts +34 -0
- package/dist/frameworks/angular/object.service.d.ts.map +1 -0
- package/dist/frameworks/angular/object.service.js +119 -0
- package/dist/frameworks/angular/object.service.js.map +1 -0
- package/dist/frameworks/astro/endpoints.d.ts +42 -0
- package/dist/frameworks/astro/endpoints.d.ts.map +1 -0
- package/dist/frameworks/astro/endpoints.js +75 -0
- package/dist/frameworks/astro/endpoints.js.map +1 -0
- package/dist/frameworks/astro/hooks.d.ts +29 -0
- package/dist/frameworks/astro/hooks.d.ts.map +1 -0
- package/dist/frameworks/astro/hooks.js +80 -0
- package/dist/frameworks/astro/hooks.js.map +1 -0
- package/dist/frameworks/astro/index.d.ts +8 -0
- package/dist/frameworks/astro/index.d.ts.map +1 -0
- package/dist/frameworks/astro/index.js +8 -0
- package/dist/frameworks/astro/index.js.map +1 -0
- package/dist/frameworks/nextjs/client.d.ts +13 -0
- package/dist/frameworks/nextjs/client.d.ts.map +1 -0
- package/dist/frameworks/nextjs/client.js +8 -0
- package/dist/frameworks/nextjs/client.js.map +1 -0
- package/dist/frameworks/nextjs/index.d.ts +21 -0
- package/dist/frameworks/nextjs/index.d.ts.map +1 -0
- package/dist/frameworks/nextjs/index.js +20 -0
- package/dist/frameworks/nextjs/index.js.map +1 -0
- package/dist/frameworks/nextjs/route-handlers.d.ts +62 -0
- package/dist/frameworks/nextjs/route-handlers.d.ts.map +1 -0
- package/dist/frameworks/nextjs/route-handlers.js +74 -0
- package/dist/frameworks/nextjs/route-handlers.js.map +1 -0
- package/dist/frameworks/nextjs/server.d.ts +78 -0
- package/dist/frameworks/nextjs/server.d.ts.map +1 -0
- package/dist/frameworks/nextjs/server.js +89 -0
- package/dist/frameworks/nextjs/server.js.map +1 -0
- package/dist/frameworks/nextjs/signal-shim.d.ts +9 -0
- package/dist/frameworks/nextjs/signal-shim.d.ts.map +1 -0
- package/dist/frameworks/nextjs/signal-shim.js +14 -0
- package/dist/frameworks/nextjs/signal-shim.js.map +1 -0
- package/dist/frameworks/nextjs/use-chat.d.ts +22 -0
- package/dist/frameworks/nextjs/use-chat.d.ts.map +1 -0
- package/dist/frameworks/nextjs/use-chat.js +89 -0
- package/dist/frameworks/nextjs/use-chat.js.map +1 -0
- package/dist/frameworks/nextjs/use-completion.d.ts +18 -0
- package/dist/frameworks/nextjs/use-completion.d.ts.map +1 -0
- package/dist/frameworks/nextjs/use-completion.js +67 -0
- package/dist/frameworks/nextjs/use-completion.js.map +1 -0
- package/dist/frameworks/qwik/index.d.ts +11 -0
- package/dist/frameworks/qwik/index.d.ts.map +1 -0
- package/dist/frameworks/qwik/index.js +11 -0
- package/dist/frameworks/qwik/index.js.map +1 -0
- package/dist/frameworks/qwik/signal-shim.d.ts +11 -0
- package/dist/frameworks/qwik/signal-shim.d.ts.map +1 -0
- package/dist/frameworks/qwik/signal-shim.js +15 -0
- package/dist/frameworks/qwik/signal-shim.js.map +1 -0
- package/dist/frameworks/qwik/use-chat.d.ts +28 -0
- package/dist/frameworks/qwik/use-chat.d.ts.map +1 -0
- package/dist/frameworks/qwik/use-chat.js +91 -0
- package/dist/frameworks/qwik/use-chat.js.map +1 -0
- package/dist/frameworks/qwik/use-completion.d.ts +20 -0
- package/dist/frameworks/qwik/use-completion.d.ts.map +1 -0
- package/dist/frameworks/qwik/use-completion.js +69 -0
- package/dist/frameworks/qwik/use-completion.js.map +1 -0
- package/dist/frameworks/react/index.d.ts +14 -0
- package/dist/frameworks/react/index.d.ts.map +1 -0
- package/dist/frameworks/react/index.js +10 -0
- package/dist/frameworks/react/index.js.map +1 -0
- package/dist/frameworks/react/stream-parser.d.ts +8 -0
- package/dist/frameworks/react/stream-parser.d.ts.map +1 -0
- package/dist/frameworks/react/stream-parser.js +42 -0
- package/dist/frameworks/react/stream-parser.js.map +1 -0
- package/dist/frameworks/react/use-chat.d.ts +19 -0
- package/dist/frameworks/react/use-chat.d.ts.map +1 -0
- package/dist/frameworks/react/use-chat.js +173 -0
- package/dist/frameworks/react/use-chat.js.map +1 -0
- package/dist/frameworks/react/use-completion.d.ts +11 -0
- package/dist/frameworks/react/use-completion.d.ts.map +1 -0
- package/dist/frameworks/react/use-completion.js +91 -0
- package/dist/frameworks/react/use-completion.js.map +1 -0
- package/dist/frameworks/react/use-object.d.ts +45 -0
- package/dist/frameworks/react/use-object.d.ts.map +1 -0
- package/dist/frameworks/react/use-object.js +100 -0
- package/dist/frameworks/react/use-object.js.map +1 -0
- package/dist/frameworks/remix/actions.d.ts +38 -0
- package/dist/frameworks/remix/actions.d.ts.map +1 -0
- package/dist/frameworks/remix/actions.js +72 -0
- package/dist/frameworks/remix/actions.js.map +1 -0
- package/dist/frameworks/remix/hooks.d.ts +40 -0
- package/dist/frameworks/remix/hooks.d.ts.map +1 -0
- package/dist/frameworks/remix/hooks.js +97 -0
- package/dist/frameworks/remix/hooks.js.map +1 -0
- package/dist/frameworks/remix/index.d.ts +8 -0
- package/dist/frameworks/remix/index.d.ts.map +1 -0
- package/dist/frameworks/remix/index.js +8 -0
- package/dist/frameworks/remix/index.js.map +1 -0
- package/dist/frameworks/solid/index.d.ts +13 -0
- package/dist/frameworks/solid/index.d.ts.map +1 -0
- package/dist/frameworks/solid/index.js +13 -0
- package/dist/frameworks/solid/index.js.map +1 -0
- package/dist/frameworks/solid/solid-shim.d.ts +13 -0
- package/dist/frameworks/solid/solid-shim.d.ts.map +1 -0
- package/dist/frameworks/solid/solid-shim.js +15 -0
- package/dist/frameworks/solid/solid-shim.js.map +1 -0
- package/dist/frameworks/solid/use-chat.d.ts +28 -0
- package/dist/frameworks/solid/use-chat.d.ts.map +1 -0
- package/dist/frameworks/solid/use-chat.js +91 -0
- package/dist/frameworks/solid/use-chat.js.map +1 -0
- package/dist/frameworks/solid/use-completion.d.ts +20 -0
- package/dist/frameworks/solid/use-completion.d.ts.map +1 -0
- package/dist/frameworks/solid/use-completion.js +66 -0
- package/dist/frameworks/solid/use-completion.js.map +1 -0
- package/dist/frameworks/solid/use-object.d.ts +19 -0
- package/dist/frameworks/solid/use-object.d.ts.map +1 -0
- package/dist/frameworks/solid/use-object.js +70 -0
- package/dist/frameworks/solid/use-object.js.map +1 -0
- package/dist/frameworks/svelte/index.d.ts +15 -0
- package/dist/frameworks/svelte/index.d.ts.map +1 -0
- package/dist/frameworks/svelte/index.js +11 -0
- package/dist/frameworks/svelte/index.js.map +1 -0
- package/dist/frameworks/svelte/stream-parser.d.ts +8 -0
- package/dist/frameworks/svelte/stream-parser.d.ts.map +1 -0
- package/dist/frameworks/svelte/stream-parser.js +42 -0
- package/dist/frameworks/svelte/stream-parser.js.map +1 -0
- package/dist/frameworks/svelte/use-chat.d.ts +31 -0
- package/dist/frameworks/svelte/use-chat.d.ts.map +1 -0
- package/dist/frameworks/svelte/use-chat.js +146 -0
- package/dist/frameworks/svelte/use-chat.js.map +1 -0
- package/dist/frameworks/svelte/use-completion.d.ts +25 -0
- package/dist/frameworks/svelte/use-completion.d.ts.map +1 -0
- package/dist/frameworks/svelte/use-completion.js +108 -0
- package/dist/frameworks/svelte/use-completion.js.map +1 -0
- package/dist/frameworks/svelte/use-object.d.ts +28 -0
- package/dist/frameworks/svelte/use-object.d.ts.map +1 -0
- package/dist/frameworks/svelte/use-object.js +122 -0
- package/dist/frameworks/svelte/use-object.js.map +1 -0
- package/dist/frameworks/vue/index.d.ts +12 -0
- package/dist/frameworks/vue/index.d.ts.map +1 -0
- package/dist/frameworks/vue/index.js +10 -0
- package/dist/frameworks/vue/index.js.map +1 -0
- package/dist/frameworks/vue/stream-parser.d.ts +8 -0
- package/dist/frameworks/vue/stream-parser.d.ts.map +1 -0
- package/dist/frameworks/vue/stream-parser.js +42 -0
- package/dist/frameworks/vue/stream-parser.js.map +1 -0
- package/dist/frameworks/vue/use-chat.d.ts +64 -0
- package/dist/frameworks/vue/use-chat.d.ts.map +1 -0
- package/dist/frameworks/vue/use-chat.js +119 -0
- package/dist/frameworks/vue/use-chat.js.map +1 -0
- package/dist/frameworks/vue/use-completion.d.ts +18 -0
- package/dist/frameworks/vue/use-completion.d.ts.map +1 -0
- package/dist/frameworks/vue/use-completion.js +87 -0
- package/dist/frameworks/vue/use-completion.js.map +1 -0
- package/dist/frameworks/vue/use-object.d.ts +22 -0
- package/dist/frameworks/vue/use-object.d.ts.map +1 -0
- package/dist/frameworks/vue/use-object.js +101 -0
- package/dist/frameworks/vue/use-object.js.map +1 -0
- package/package.json +97 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://img.shields.io/badge/version-0.26.
|
|
2
|
+
<img src="https://img.shields.io/badge/version-0.26.6-blue" alt="version">
|
|
3
3
|
<img src="https://img.shields.io/badge/license-MIT-green" alt="license">
|
|
4
4
|
<img src="https://img.shields.io/badge/node-%3E%3D18-brightgreen" alt="node">
|
|
5
5
|
<img src="https://img.shields.io/badge/types-strict-blueviolet" alt="types">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
3
|
-
"generated": "2026-09-
|
|
2
|
+
"version": "0.26.6",
|
|
3
|
+
"generated": "2026-09-19",
|
|
4
4
|
"providers": {
|
|
5
5
|
"openai": {
|
|
6
6
|
"name": "OpenAI",
|
|
@@ -8,21 +8,23 @@
|
|
|
8
8
|
"adapters": ["openai"],
|
|
9
9
|
"envKey": "OPENAI_API_KEY",
|
|
10
10
|
"models": [
|
|
11
|
-
{ "id": "gpt-
|
|
12
|
-
{ "id": "gpt-5.6-
|
|
13
|
-
{ "id": "gpt-5.6-
|
|
14
|
-
{ "id": "
|
|
15
|
-
{ "id": "
|
|
16
|
-
{ "id": "
|
|
11
|
+
{ "id": "gpt-6-astra", "name": "GPT-6 Astra", "contextWindow": 1050000, "maxOutput": 128000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
12
|
+
{ "id": "gpt-5.6-sol", "name": "GPT-5.6 Sol", "contextWindow": 1050000, "maxOutput": 128000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
13
|
+
{ "id": "gpt-5.6-terra", "name": "GPT-5.6 Terra", "contextWindow": 1050000, "maxOutput": 128000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
14
|
+
{ "id": "gpt-5.6-luna", "name": "GPT-5.6 Luna", "contextWindow": 1050000, "maxOutput": 128000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
15
|
+
{ "id": "gpt-5.5", "name": "GPT-5.5", "contextWindow": 200000, "maxOutput": 65536, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
16
|
+
{ "id": "gpt-5.4-pro", "name": "GPT-5.4 Pro", "contextWindow": 200000, "maxOutput": 65536, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
17
|
+
{ "id": "gpt-4.5", "name": "GPT-4.5", "contextWindow": 128000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "structuredOutput", "parallelTools"] },
|
|
17
18
|
{ "id": "gpt-4o", "name": "GPT-4o", "contextWindow": 128000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "structuredOutput", "parallelTools"] },
|
|
18
19
|
{ "id": "gpt-4o-mini", "name": "GPT-4o Mini", "contextWindow": 128000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "structuredOutput"] },
|
|
20
|
+
{ "id": "o1", "name": "o1", "contextWindow": 200000, "maxOutput": 100000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
21
|
+
{ "id": "o1-mini", "name": "o1 Mini", "contextWindow": 200000, "maxOutput": 100000, "capabilities": ["streaming", "tools", "reasoning", "structuredOutput"] },
|
|
22
|
+
{ "id": "o3", "name": "o3", "contextWindow": 200000, "maxOutput": 100000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
23
|
+
{ "id": "o4-mini", "name": "o4 Mini", "contextWindow": 200000, "maxOutput": 100000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
19
24
|
{ "id": "text-embedding-3-small", "name": "Embedding 3 Small", "contextWindow": 8191, "maxOutput": 0, "capabilities": ["embeddings"] },
|
|
20
25
|
{ "id": "text-embedding-3-large", "name": "Embedding 3 Large", "contextWindow": 8191, "maxOutput": 0, "capabilities": ["embeddings"] },
|
|
21
|
-
{ "id": "text-embedding-ada-002", "name": "Embedding Ada 002", "contextWindow": 8191, "maxOutput": 0, "capabilities": ["embeddings"] },
|
|
22
26
|
{ "id": "dall-e-3", "name": "DALL-E 3", "contextWindow": 4096, "maxOutput": 0, "capabilities": ["imageGeneration"] },
|
|
23
|
-
{ "id": "dall-e-2", "name": "DALL-E 2", "contextWindow": 4096, "maxOutput": 0, "capabilities": ["imageGeneration"] },
|
|
24
27
|
{ "id": "tts-1", "name": "TTS-1", "contextWindow": 4096, "maxOutput": 0, "capabilities": ["speech"] },
|
|
25
|
-
{ "id": "tts-1-hd", "name": "TTS-1 HD", "contextWindow": 4096, "maxOutput": 0, "capabilities": ["speech"] },
|
|
26
28
|
{ "id": "whisper-1", "name": "Whisper v1", "contextWindow": 0, "maxOutput": 0, "capabilities": ["transcription"] }
|
|
27
29
|
]
|
|
28
30
|
},
|
|
@@ -32,10 +34,12 @@
|
|
|
32
34
|
"adapters": ["anthropic"],
|
|
33
35
|
"envKey": "ANTHROPIC_API_KEY",
|
|
34
36
|
"models": [
|
|
35
|
-
{ "id": "claude-fable-5", "name": "Claude Fable 5", "contextWindow": 1000000, "maxOutput":
|
|
36
|
-
{ "id": "claude-opus-5", "name": "Claude Opus 5", "contextWindow": 1000000, "maxOutput":
|
|
37
|
-
{ "id": "claude-sonnet-5", "name": "Claude Sonnet 5", "contextWindow": 1000000, "maxOutput":
|
|
38
|
-
{ "id": "claude-haiku-4-5", "name": "Claude Haiku 4.5", "contextWindow": 200000, "maxOutput":
|
|
37
|
+
{ "id": "claude-fable-5-1", "name": "Claude Fable 5.1", "contextWindow": 1000000, "maxOutput": 128000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
38
|
+
{ "id": "claude-opus-5", "name": "Claude Opus 5", "contextWindow": 1000000, "maxOutput": 128000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
39
|
+
{ "id": "claude-sonnet-5", "name": "Claude Sonnet 5", "contextWindow": 1000000, "maxOutput": 128000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
40
|
+
{ "id": "claude-haiku-4-5", "name": "Claude Haiku 4.5", "contextWindow": 200000, "maxOutput": 64000, "capabilities": ["streaming", "tools", "vision", "structuredOutput"] },
|
|
41
|
+
{ "id": "claude-3-5-sonnet-20241022", "name": "Claude 3.5 Sonnet", "contextWindow": 200000, "maxOutput": 8192, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
42
|
+
{ "id": "claude-3-5-haiku-20241022", "name": "Claude 3.5 Haiku", "contextWindow": 200000, "maxOutput": 8192, "capabilities": ["streaming", "tools", "vision"] }
|
|
39
43
|
]
|
|
40
44
|
},
|
|
41
45
|
"google-genai": {
|
|
@@ -44,12 +48,14 @@
|
|
|
44
48
|
"adapters": ["google-genai"],
|
|
45
49
|
"envKey": "GOOGLE_API_KEY",
|
|
46
50
|
"models": [
|
|
47
|
-
{ "id": "gemini-3.
|
|
48
|
-
{ "id": "gemini-3.
|
|
49
|
-
{ "id": "gemini-3.
|
|
50
|
-
{ "id": "gemini-3.
|
|
51
|
-
{ "id": "gemini-
|
|
52
|
-
{ "id": "gemini-
|
|
51
|
+
{ "id": "gemini-3.8-flash", "name": "Gemini 3.8 Flash", "contextWindow": 1048576, "maxOutput": 65536, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
52
|
+
{ "id": "gemini-3.7-flash", "name": "Gemini 3.7 Flash", "contextWindow": 1048576, "maxOutput": 65536, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
53
|
+
{ "id": "gemini-3.6-flash", "name": "Gemini 3.6 Flash", "contextWindow": 1048576, "maxOutput": 65536, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
54
|
+
{ "id": "gemini-3.5-flash", "name": "Gemini 3.5 Flash", "contextWindow": 1048576, "maxOutput": 65536, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
55
|
+
{ "id": "gemini-3.1-pro-preview", "name": "Gemini 3.1 Pro", "contextWindow": 1048576, "maxOutput": 65536, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
56
|
+
{ "id": "gemini-3-flash-preview", "name": "Gemini 3 Flash", "contextWindow": 1048576, "maxOutput": 65536, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
57
|
+
{ "id": "gemini-2.5-pro", "name": "Gemini 2.5 Pro", "contextWindow": 1048576, "maxOutput": 65536, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
58
|
+
{ "id": "gemini-2.5-flash", "name": "Gemini 2.5 Flash", "contextWindow": 1048576, "maxOutput": 65536, "capabilities": ["streaming", "tools", "vision"] }
|
|
53
59
|
]
|
|
54
60
|
},
|
|
55
61
|
"azure": {
|
|
@@ -58,9 +64,11 @@
|
|
|
58
64
|
"adapters": ["azure"],
|
|
59
65
|
"envKey": "AZURE_OPENAI_API_KEY",
|
|
60
66
|
"models": [
|
|
61
|
-
{ "id": "gpt-
|
|
62
|
-
{ "id": "gpt-5.6-
|
|
63
|
-
{ "id": "
|
|
67
|
+
{ "id": "gpt-6-astra", "name": "GPT-6 Astra (Azure)", "contextWindow": 1050000, "maxOutput": 128000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
68
|
+
{ "id": "gpt-5.6-sol", "name": "GPT-5.6 Sol (Azure)", "contextWindow": 1050000, "maxOutput": 128000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
69
|
+
{ "id": "gpt-5.6-terra", "name": "GPT-5.6 Terra (Azure)", "contextWindow": 1050000, "maxOutput": 128000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
70
|
+
{ "id": "o3", "name": "o3 (Azure)", "contextWindow": 200000, "maxOutput": 100000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
71
|
+
{ "id": "gpt-4o", "name": "GPT-4o (Azure)", "contextWindow": 128000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "structuredOutput", "parallelTools"] }
|
|
64
72
|
]
|
|
65
73
|
},
|
|
66
74
|
"groq": {
|
|
@@ -69,10 +77,12 @@
|
|
|
69
77
|
"adapters": ["groq"],
|
|
70
78
|
"envKey": "GROQ_API_KEY",
|
|
71
79
|
"models": [
|
|
72
|
-
{ "id": "
|
|
73
|
-
{ "id": "
|
|
74
|
-
{ "id": "
|
|
75
|
-
{ "id": "
|
|
80
|
+
{ "id": "llama-3.3-70b-versatile", "name": "Llama 3.3 70B", "contextWindow": 131072, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
81
|
+
{ "id": "llama-3.2-90b-vision", "name": "Llama 3.2 90B Vision", "contextWindow": 131072, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput"] },
|
|
82
|
+
{ "id": "llama-3.2-11b-vision", "name": "Llama 3.2 11B Vision", "contextWindow": 131072, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision"] },
|
|
83
|
+
{ "id": "llama-3.2-3b", "name": "Llama 3.2 3B", "contextWindow": 131072, "maxOutput": 16384, "capabilities": ["streaming", "tools", "reasoning"] },
|
|
84
|
+
{ "id": "qwen-2.5-coder-32b", "name": "Qwen 2.5 Coder 32B", "contextWindow": 32768, "maxOutput": 16384, "capabilities": ["streaming", "tools", "reasoning", "structuredOutput", "parallelTools"] },
|
|
85
|
+
{ "id": "qwen-2.5-72b-instruct", "name": "Qwen 2.5 72B", "contextWindow": 131072, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] }
|
|
76
86
|
]
|
|
77
87
|
},
|
|
78
88
|
"bedrock": {
|
|
@@ -81,10 +91,15 @@
|
|
|
81
91
|
"adapters": ["bedrock"],
|
|
82
92
|
"envKey": "AWS_BEARER_TOKEN_BEDROCK",
|
|
83
93
|
"models": [
|
|
84
|
-
{ "id": "anthropic.claude-
|
|
85
|
-
{ "id": "anthropic.claude-
|
|
86
|
-
{ "id": "
|
|
87
|
-
{ "id": "
|
|
94
|
+
{ "id": "anthropic.claude-fable-5-1", "name": "Claude Fable 5.1 (Bedrock)", "contextWindow": 1000000, "maxOutput": 128000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
95
|
+
{ "id": "anthropic.claude-opus-5", "name": "Claude Opus 5 (Bedrock)", "contextWindow": 1000000, "maxOutput": 128000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
96
|
+
{ "id": "anthropic.claude-sonnet-5", "name": "Claude Sonnet 5 (Bedrock)", "contextWindow": 1000000, "maxOutput": 128000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
97
|
+
{ "id": "anthropic.claude-haiku-4-5", "name": "Claude Haiku 4.5 (Bedrock)", "contextWindow": 200000, "maxOutput": 64000, "capabilities": ["streaming", "tools", "vision", "structuredOutput"] },
|
|
98
|
+
{ "id": "meta.llama3-3-70b-instruct", "name": "Llama 3.3 70B (Bedrock)", "contextWindow": 131072, "maxOutput": 4096, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
99
|
+
{ "id": "meta.llama3-1-405b-instruct-v1:0", "name": "Llama 3.1 405B (Bedrock)", "contextWindow": 131072, "maxOutput": 4096, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
100
|
+
{ "id": "mistral.mistral-large-2407-v1:0", "name": "Mistral Large 2 (Bedrock)", "contextWindow": 128000, "maxOutput": 8192, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
101
|
+
{ "id": "amazon.nova-pro-v1:0", "name": "Nova Pro (Bedrock)", "contextWindow": 300000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput"] },
|
|
102
|
+
{ "id": "amazon.nova-lite-v1:0", "name": "Nova Lite (Bedrock)", "contextWindow": 300000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision"] }
|
|
88
103
|
]
|
|
89
104
|
},
|
|
90
105
|
"google-vertex": {
|
|
@@ -93,10 +108,12 @@
|
|
|
93
108
|
"adapters": ["google-vertex"],
|
|
94
109
|
"envKey": "GOOGLE_APPLICATION_CREDENTIALS",
|
|
95
110
|
"models": [
|
|
96
|
-
{ "id": "google/gemini-
|
|
111
|
+
{ "id": "google/gemini-3.8-flash", "name": "Gemini 3.8 Flash (Vertex)", "contextWindow": 1048576, "maxOutput": 65536, "capabilities": ["streaming", "tools", "vision", "reasoning"] },
|
|
112
|
+
{ "id": "google/gemini-3.7-flash", "name": "Gemini 3.7 Flash (Vertex)", "contextWindow": 1048576, "maxOutput": 65536, "capabilities": ["streaming", "tools", "vision", "reasoning"] },
|
|
113
|
+
{ "id": "google/gemini-3.1-pro-preview", "name": "Gemini 3.1 Pro (Vertex)", "contextWindow": 1048576, "maxOutput": 65536, "capabilities": ["streaming", "tools", "vision", "reasoning"] },
|
|
97
114
|
{ "id": "google/gemini-2.5-pro", "name": "Gemini 2.5 Pro (Vertex)", "contextWindow": 1048576, "maxOutput": 65536, "capabilities": ["streaming", "tools", "vision", "reasoning"] },
|
|
98
|
-
{ "id": "anthropic/claude-
|
|
99
|
-
{ "id": "meta/llama-
|
|
115
|
+
{ "id": "anthropic/claude-fable-5-1@20260901", "name": "Claude Fable 5.1 (Vertex)", "contextWindow": 1000000, "maxOutput": 128000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
116
|
+
{ "id": "meta/llama-4-maverick", "name": "Llama 4 Maverick (Vertex)", "contextWindow": 1000000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] }
|
|
100
117
|
]
|
|
101
118
|
},
|
|
102
119
|
"huggingface": {
|
|
@@ -105,9 +122,13 @@
|
|
|
105
122
|
"adapters": ["huggingface"],
|
|
106
123
|
"envKey": "HF_TOKEN",
|
|
107
124
|
"models": [
|
|
125
|
+
{ "id": "meta-llama/Llama-4-Maverick", "name": "Llama 4 Maverick (HF)", "contextWindow": 1000000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
126
|
+
{ "id": "meta-llama/Llama-4-Scout", "name": "Llama 4 Scout (HF)", "contextWindow": 10000000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
108
127
|
{ "id": "meta-llama/Llama-3.3-70B-Instruct", "name": "Llama 3.3 70B (HF)", "contextWindow": 131072, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
128
|
+
{ "id": "Qwen/Qwen3.8-Max", "name": "Qwen 3.8 Max (HF)", "contextWindow": 1000000, "maxOutput": 131072, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
109
129
|
{ "id": "Qwen/Qwen2.5-72B-Instruct", "name": "Qwen 2.5 72B (HF)", "contextWindow": 131072, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
110
|
-
{ "id": "deepseek-ai/DeepSeek-
|
|
130
|
+
{ "id": "deepseek-ai/DeepSeek-V4-Pro", "name": "DeepSeek V4 Pro (HF)", "contextWindow": 1000000, "maxOutput": 384000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
131
|
+
{ "id": "deepseek-ai/DeepSeek-V4-Flash", "name": "DeepSeek V4 Flash (HF)", "contextWindow": 1000000, "maxOutput": 384000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] }
|
|
111
132
|
]
|
|
112
133
|
},
|
|
113
134
|
"deepseek": {
|
|
@@ -116,8 +137,9 @@
|
|
|
116
137
|
"adapters": ["deepseek"],
|
|
117
138
|
"envKey": "DEEPSEEK_API_KEY",
|
|
118
139
|
"models": [
|
|
119
|
-
{ "id": "deepseek-
|
|
120
|
-
{ "id": "deepseek-
|
|
140
|
+
{ "id": "deepseek-v4-pro", "name": "DeepSeek V4 Pro", "contextWindow": 1000000, "maxOutput": 384000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
141
|
+
{ "id": "deepseek-flash", "name": "DeepSeek V4.1 Flash", "contextWindow": 1000000, "maxOutput": 384000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
142
|
+
{ "id": "deepseek-chat", "name": "DeepSeek Chat (legacy)", "contextWindow": 1000000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] }
|
|
121
143
|
]
|
|
122
144
|
},
|
|
123
145
|
"xai": {
|
|
@@ -126,9 +148,10 @@
|
|
|
126
148
|
"adapters": ["xai"],
|
|
127
149
|
"envKey": "XAI_API_KEY",
|
|
128
150
|
"models": [
|
|
129
|
-
{ "id": "grok-
|
|
130
|
-
{ "id": "grok-
|
|
131
|
-
{ "id": "grok-3
|
|
151
|
+
{ "id": "grok-4.6", "name": "Grok 4.6", "contextWindow": 500000, "maxOutput": 32768, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
152
|
+
{ "id": "grok-4.5", "name": "Grok 4.5", "contextWindow": 500000, "maxOutput": 32768, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
153
|
+
{ "id": "grok-4.3", "name": "Grok 4.3", "contextWindow": 1000000, "maxOutput": 32768, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
154
|
+
{ "id": "grok-4.20-0309-reasoning", "name": "Grok 4.20 Reasoning", "contextWindow": 1000000, "maxOutput": 32768, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] }
|
|
132
155
|
]
|
|
133
156
|
},
|
|
134
157
|
"together": {
|
|
@@ -137,8 +160,11 @@
|
|
|
137
160
|
"adapters": ["together"],
|
|
138
161
|
"envKey": "TOGETHER_API_KEY",
|
|
139
162
|
"models": [
|
|
163
|
+
{ "id": "meta-llama/Llama-4-Maverick-17B-128E-Instruct", "name": "Llama 4 Maverick (Together)", "contextWindow": 1000000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
164
|
+
{ "id": "meta-llama/Llama-4-Scout-17B-16E-Instruct", "name": "Llama 4 Scout (Together)", "contextWindow": 10000000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
140
165
|
{ "id": "meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo", "name": "Llama 3.1 405B Turbo", "contextWindow": 131072, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
141
|
-
{ "id": "deepseek-ai/DeepSeek-
|
|
166
|
+
{ "id": "deepseek-ai/DeepSeek-V4-Pro", "name": "DeepSeek V4 Pro", "contextWindow": 1000000, "maxOutput": 384000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
167
|
+
{ "id": "deepseek-ai/DeepSeek-V4-Flash", "name": "DeepSeek V4 Flash", "contextWindow": 1000000, "maxOutput": 384000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] }
|
|
142
168
|
]
|
|
143
169
|
},
|
|
144
170
|
"fireworks": {
|
|
@@ -147,7 +173,9 @@
|
|
|
147
173
|
"adapters": ["fireworks"],
|
|
148
174
|
"envKey": "FIREWORKS_API_KEY",
|
|
149
175
|
"models": [
|
|
150
|
-
{ "id": "accounts/fireworks/models/
|
|
176
|
+
{ "id": "accounts/fireworks/models/llama4-maverick-instruct-basic", "name": "Llama 4 Maverick (Fireworks)", "contextWindow": 1000000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
177
|
+
{ "id": "accounts/fireworks/models/llama4-scout-instruct-basic", "name": "Llama 4 Scout (Fireworks)", "contextWindow": 10000000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
178
|
+
{ "id": "accounts/fireworks/models/deepseek-v4-pro", "name": "DeepSeek V4 Pro (Fireworks)", "contextWindow": 1000000, "maxOutput": 384000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] }
|
|
151
179
|
]
|
|
152
180
|
},
|
|
153
181
|
"cohere": {
|
|
@@ -156,22 +184,27 @@
|
|
|
156
184
|
"adapters": ["cohere"],
|
|
157
185
|
"envKey": "COHERE_API_KEY",
|
|
158
186
|
"models": [
|
|
159
|
-
{ "id": "command-
|
|
160
|
-
{ "id": "command-
|
|
161
|
-
{ "id": "
|
|
162
|
-
{ "id": "rerank-
|
|
163
|
-
{ "id": "
|
|
187
|
+
{ "id": "command-a-plus-05-2026", "name": "Command A+", "contextWindow": 128000, "maxOutput": 64000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
188
|
+
{ "id": "command-a-03-2025", "name": "Command A", "contextWindow": 256000, "maxOutput": 8000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
189
|
+
{ "id": "command-r-plus", "name": "Command R+", "contextWindow": 128000, "maxOutput": 4096, "capabilities": ["streaming", "tools", "reasoning", "structuredOutput"] },
|
|
190
|
+
{ "id": "rerank-english-v3.0", "name": "Rerank English v3", "contextWindow": 512, "maxOutput": 0, "capabilities": ["rerank"] },
|
|
191
|
+
{ "id": "rerank-multilingual-v3.0", "name": "Rerank Multilingual v3", "contextWindow": 512, "maxOutput": 0, "capabilities": ["rerank"] },
|
|
192
|
+
{ "id": "embed-english-v3.0", "name": "Embed English v3", "contextWindow": 512, "maxOutput": 0, "capabilities": ["embeddings"] },
|
|
193
|
+
{ "id": "embed-multilingual-v3.0", "name": "Embed Multilingual v3", "contextWindow": 512, "maxOutput": 0, "capabilities": ["embeddings"] }
|
|
164
194
|
]
|
|
165
195
|
},
|
|
166
196
|
"ollama": {
|
|
167
197
|
"name": "Ollama (Local)",
|
|
168
|
-
"baseUrl": "http://localhost:11434",
|
|
198
|
+
"baseUrl": "http://localhost:11434/v1",
|
|
169
199
|
"adapters": ["ollama"],
|
|
170
200
|
"envKey": null,
|
|
171
201
|
"models": [
|
|
172
|
-
{ "id": "llama4", "name": "Llama 4
|
|
173
|
-
{ "id": "
|
|
174
|
-
{ "id": "
|
|
202
|
+
{ "id": "llama4:maverick", "name": "Llama 4 Maverick", "contextWindow": 1000000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
203
|
+
{ "id": "llama4:scout", "name": "Llama 4 Scout", "contextWindow": 10000000, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
204
|
+
{ "id": "llama3.3:70b", "name": "Llama 3.3 70B", "contextWindow": 131072, "maxOutput": 16384, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
205
|
+
{ "id": "qwen3.8-max:latest", "name": "Qwen 3.8 Max", "contextWindow": 1000000, "maxOutput": 131072, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
206
|
+
{ "id": "deepseek-v4-pro:latest", "name": "DeepSeek V4 Pro", "contextWindow": 1000000, "maxOutput": 384000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] },
|
|
207
|
+
{ "id": "deepseek-v4-flash:latest", "name": "DeepSeek V4 Flash", "contextWindow": 1000000, "maxOutput": 384000, "capabilities": ["streaming", "tools", "vision", "reasoning", "structuredOutput", "parallelTools"] }
|
|
175
208
|
]
|
|
176
209
|
},
|
|
177
210
|
"voyageai": {
|
|
@@ -180,9 +213,10 @@
|
|
|
180
213
|
"adapters": ["voyageai"],
|
|
181
214
|
"envKey": "VOYAGE_API_KEY",
|
|
182
215
|
"models": [
|
|
216
|
+
{ "id": "voyage-3-large", "name": "Voyage 3 Large", "contextWindow": 32000, "maxOutput": 0, "capabilities": ["embeddings"] },
|
|
217
|
+
{ "id": "voyage-code-3", "name": "Voyage Code 3", "contextWindow": 32000, "maxOutput": 0, "capabilities": ["embeddings"] },
|
|
183
218
|
{ "id": "voyage-3", "name": "Voyage 3", "contextWindow": 32000, "maxOutput": 0, "capabilities": ["embeddings"] },
|
|
184
|
-
{ "id": "voyage-3-lite", "name": "Voyage 3 Lite", "contextWindow": 32000, "maxOutput": 0, "capabilities": ["embeddings"] }
|
|
185
|
-
{ "id": "voyage-code-3", "name": "Voyage Code 3", "contextWindow": 32000, "maxOutput": 0, "capabilities": ["embeddings"] }
|
|
219
|
+
{ "id": "voyage-3-lite", "name": "Voyage 3 Lite", "contextWindow": 32000, "maxOutput": 0, "capabilities": ["embeddings"] }
|
|
186
220
|
]
|
|
187
221
|
},
|
|
188
222
|
"deepgram": {
|
|
@@ -202,9 +236,10 @@
|
|
|
202
236
|
"adapters": ["elevenlabs"],
|
|
203
237
|
"envKey": "ELEVENLABS_API_KEY",
|
|
204
238
|
"models": [
|
|
205
|
-
{ "id": "
|
|
206
|
-
{ "id": "
|
|
207
|
-
{ "id": "
|
|
239
|
+
{ "id": "eleven_flash_v2_5", "name": "Eleven Flash v2.5", "contextWindow": 0, "maxOutput": 0, "capabilities": ["speech"] },
|
|
240
|
+
{ "id": "eleven_flash_v2", "name": "Eleven Flash v2", "contextWindow": 0, "maxOutput": 0, "capabilities": ["speech"] },
|
|
241
|
+
{ "id": "eleven_multilingual_v2", "name": "Eleven Multilingual v2", "contextWindow": 0, "maxOutput": 0, "capabilities": ["speech"] },
|
|
242
|
+
{ "id": "eleven_monolingual_v1", "name": "Eleven Monolingual v1", "contextWindow": 0, "maxOutput": 0, "capabilities": ["speech"] }
|
|
208
243
|
]
|
|
209
244
|
}
|
|
210
245
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hilbras/agent — Agent Framework
|
|
3
|
+
*
|
|
4
|
+
* Building blocks for multi-step AI agents:
|
|
5
|
+
* - ToolLoopAgent: Multi-step tool execution with approval, budget, cost tracking
|
|
6
|
+
* - ReActAgent: Reasoning + Acting pattern
|
|
7
|
+
* - PlanAndExecuteAgent: Two-phase planning and execution
|
|
8
|
+
*/
|
|
9
|
+
export { ToolLoopAgent, type ToolLoopAgentConfig } from "./tool-loop.js";
|
|
10
|
+
export { ReActAgent, type ReActAgentConfig } from "./react.js";
|
|
11
|
+
export { PlanAndExecuteAgent, type PlanAndExecuteAgentConfig } from "./plan-and-execute.js";
|
|
12
|
+
export type { AgentTool, AgentConfig, AgentResult, AgentStep, ToolCallRecord, StepUsage, ToolContext, ApprovalRequest, AgentEvent, } from "./types.js";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/agent/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,KAAK,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAC5F,YAAY,EACV,SAAS,EACT,WAAW,EACX,WAAW,EACX,SAAS,EACT,cAAc,EACd,SAAS,EACT,WAAW,EACX,eAAe,EACf,UAAU,GACX,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hilbras/agent — Agent Framework
|
|
3
|
+
*
|
|
4
|
+
* Building blocks for multi-step AI agents:
|
|
5
|
+
* - ToolLoopAgent: Multi-step tool execution with approval, budget, cost tracking
|
|
6
|
+
* - ReActAgent: Reasoning + Acting pattern
|
|
7
|
+
* - PlanAndExecuteAgent: Two-phase planning and execution
|
|
8
|
+
*/
|
|
9
|
+
export { ToolLoopAgent } from "./tool-loop.js";
|
|
10
|
+
export { ReActAgent } from "./react.js";
|
|
11
|
+
export { PlanAndExecuteAgent } from "./plan-and-execute.js";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/agent/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,aAAa,EAA4B,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAyB,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAkC,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hilbras/agent — PlanAndExecuteAgent
|
|
3
|
+
*
|
|
4
|
+
* Two-phase agent:
|
|
5
|
+
* 1. Planning phase: LLM creates a step-by-step plan
|
|
6
|
+
* 2. Execution phase: Execute each step, optionally re-planning if a step fails
|
|
7
|
+
*
|
|
8
|
+
* Good for complex tasks that benefit from explicit planning upfront.
|
|
9
|
+
*/
|
|
10
|
+
import type { AgentTool, AgentConfig, AgentResult, AgentEvent } from "./types.js";
|
|
11
|
+
export interface PlanAndExecuteAgentConfig extends AgentConfig {
|
|
12
|
+
/** Tools available to the agent */
|
|
13
|
+
tools: AgentTool[];
|
|
14
|
+
/** Custom LLM function */
|
|
15
|
+
llm?: (messages: Array<{
|
|
16
|
+
role: string;
|
|
17
|
+
content: string;
|
|
18
|
+
}>) => Promise<{
|
|
19
|
+
content: string;
|
|
20
|
+
toolCalls?: Array<{
|
|
21
|
+
name: string;
|
|
22
|
+
arguments: Record<string, unknown>;
|
|
23
|
+
}>;
|
|
24
|
+
usage?: {
|
|
25
|
+
promptTokens: number;
|
|
26
|
+
completionTokens: number;
|
|
27
|
+
};
|
|
28
|
+
}>;
|
|
29
|
+
/** Function to estimate cost from usage */
|
|
30
|
+
costEstimator?: (usage: {
|
|
31
|
+
promptTokens: number;
|
|
32
|
+
completionTokens: number;
|
|
33
|
+
}, model: string) => number;
|
|
34
|
+
/** Approval handler */
|
|
35
|
+
onApproval?: (step: number, tool: string, args: Record<string, unknown>) => boolean | Promise<boolean>;
|
|
36
|
+
/** Event listener */
|
|
37
|
+
onEvent?: (event: AgentEvent) => void;
|
|
38
|
+
/** Whether to re-plan after a failed step (default: true) */
|
|
39
|
+
replanOnFailure?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare class PlanAndExecuteAgent {
|
|
42
|
+
private _config;
|
|
43
|
+
constructor(config: PlanAndExecuteAgentConfig);
|
|
44
|
+
/**
|
|
45
|
+
* Run the plan-and-execute agent.
|
|
46
|
+
*/
|
|
47
|
+
run(initialPrompt: string): Promise<AgentResult>;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=plan-and-execute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-and-execute.d.ts","sourceRoot":"","sources":["../../../src/features/agent/plan-and-execute.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,SAAS,EACT,WAAW,EACX,WAAW,EAKX,UAAU,EACX,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC5D,mCAAmC;IACnC,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,0BAA0B;IAC1B,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,KAAK,OAAO,CAAC;QACpE,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;SAAE,CAAC,CAAC;QACxE,KAAK,CAAC,EAAE;YAAE,YAAY,EAAE,MAAM,CAAC;YAAC,gBAAgB,EAAE,MAAM,CAAA;SAAE,CAAC;KAC5D,CAAC,CAAC;IACH,2CAA2C;IAC3C,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,gBAAgB,EAAE,MAAM,CAAA;KAAE,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACrG,uBAAuB;IACvB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACvG,qBAAqB;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC,6DAA6D;IAC7D,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAoBD,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,OAAO,CAA4B;IAE3C,YAAY,MAAM,EAAE,yBAAyB,EAE5C;IAED;;OAEG;IACG,GAAG,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAgLrD;CAEF"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hilbras/agent — PlanAndExecuteAgent
|
|
3
|
+
*
|
|
4
|
+
* Two-phase agent:
|
|
5
|
+
* 1. Planning phase: LLM creates a step-by-step plan
|
|
6
|
+
* 2. Execution phase: Execute each step, optionally re-planning if a step fails
|
|
7
|
+
*
|
|
8
|
+
* Good for complex tasks that benefit from explicit planning upfront.
|
|
9
|
+
*/
|
|
10
|
+
const PLAN_SYSTEM_PROMPT = `You are a planning agent. Given a task and available tools, create a step-by-step plan.
|
|
11
|
+
|
|
12
|
+
Respond with a JSON array of steps. Each step should be:
|
|
13
|
+
{
|
|
14
|
+
"step": <step_number>,
|
|
15
|
+
"action": "<description of what to do>",
|
|
16
|
+
"tool": "<tool_name or null if just thinking>",
|
|
17
|
+
"args": { <tool arguments> }
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
Example:
|
|
21
|
+
[
|
|
22
|
+
{ "step": 1, "action": "Search for relevant documents", "tool": "search", "args": { "query": "climate change" } },
|
|
23
|
+
{ "step": 2, "action": "Summarize the findings", "tool": null, "args": {} }
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
Respond ONLY with the JSON array. No other text.`;
|
|
27
|
+
export class PlanAndExecuteAgent {
|
|
28
|
+
_config;
|
|
29
|
+
constructor(config) {
|
|
30
|
+
this._config = config;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Run the plan-and-execute agent.
|
|
34
|
+
*/
|
|
35
|
+
async run(initialPrompt) {
|
|
36
|
+
const { tools, maxSteps = 10, budget = null, systemPrompt = PLAN_SYSTEM_PROMPT, temperature = 0, signal, llm, costEstimator, onApproval, onEvent, replanOnFailure = true, } = this._config;
|
|
37
|
+
const effectiveLLM = llm ?? (() => { throw new Error("No LLM function provided. Pass llm() in PlanAndExecuteAgentConfig."); });
|
|
38
|
+
const effectiveCost = costEstimator ?? (() => 0);
|
|
39
|
+
const steps = [];
|
|
40
|
+
let totalCost = 0;
|
|
41
|
+
let totalUsage = { promptTokens: 0, completionTokens: 0, totalTokens: 0, estimatedCost: 0 };
|
|
42
|
+
let interrupted = false;
|
|
43
|
+
// Phase 1: Planning
|
|
44
|
+
onEvent?.({ type: "step_start", step: 0 });
|
|
45
|
+
const planMessages = [
|
|
46
|
+
{ role: "system", content: systemPrompt },
|
|
47
|
+
{ role: "user", content: `Task: ${initialPrompt}\n\nAvailable tools: ${tools.map((t) => `${t.name}: ${t.description}`).join("\n")}` },
|
|
48
|
+
];
|
|
49
|
+
let plan;
|
|
50
|
+
try {
|
|
51
|
+
const planResponse = await effectiveLLM(planMessages);
|
|
52
|
+
const planUsage = planResponse.usage ?? { promptTokens: 0, completionTokens: 0 };
|
|
53
|
+
const planCost = effectiveCost(planUsage, this._config.model);
|
|
54
|
+
totalUsage.promptTokens += planUsage.promptTokens;
|
|
55
|
+
totalUsage.completionTokens += planUsage.completionTokens;
|
|
56
|
+
totalUsage.totalTokens += planUsage.promptTokens + planUsage.completionTokens;
|
|
57
|
+
totalUsage.estimatedCost += planCost;
|
|
58
|
+
totalCost += planCost;
|
|
59
|
+
// Parse plan from response
|
|
60
|
+
const jsonMatch = planResponse.content.match(/\[[\s\S]*\]/);
|
|
61
|
+
if (!jsonMatch) {
|
|
62
|
+
throw new Error("Failed to parse plan from LLM response");
|
|
63
|
+
}
|
|
64
|
+
plan = JSON.parse(jsonMatch[0]);
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
onEvent?.({ type: "error", error: error });
|
|
68
|
+
throw error;
|
|
69
|
+
}
|
|
70
|
+
// Phase 2: Execution
|
|
71
|
+
const execMessages = [
|
|
72
|
+
{ role: "system", content: "You are an execution agent. Follow the plan and execute each step. When you encounter a tool, call it. When all steps are done, provide a final summary." },
|
|
73
|
+
{ role: "user", content: `Plan:\n${JSON.stringify(plan, null, 2)}\n\nExecute this plan step by step.` },
|
|
74
|
+
];
|
|
75
|
+
for (let i = 0; i < Math.min(plan.length, maxSteps); i++) {
|
|
76
|
+
if (signal?.aborted) {
|
|
77
|
+
interrupted = true;
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
if (budget !== null && totalCost >= budget)
|
|
81
|
+
break;
|
|
82
|
+
const planStep = plan[i];
|
|
83
|
+
onEvent?.({ type: "step_start", step: i });
|
|
84
|
+
if (planStep.tool) {
|
|
85
|
+
const tool = tools.find((t) => t.name === planStep.tool);
|
|
86
|
+
if (!tool) {
|
|
87
|
+
steps.push({
|
|
88
|
+
step: i,
|
|
89
|
+
content: `Planned step: ${planStep.action}`,
|
|
90
|
+
toolCalls: [{ name: planStep.tool, args: planStep.args, result: null, error: `Tool "${planStep.tool}" not found` }],
|
|
91
|
+
done: false,
|
|
92
|
+
usage: { promptTokens: 0, completionTokens: 0, totalTokens: 0, estimatedCost: 0 },
|
|
93
|
+
});
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
// Approval
|
|
97
|
+
let approved = true;
|
|
98
|
+
if (onApproval) {
|
|
99
|
+
onEvent?.({ type: "approval_needed", step: i, tool: planStep.tool, args: planStep.args });
|
|
100
|
+
approved = await onApproval(i, planStep.tool, planStep.args);
|
|
101
|
+
if (!approved) {
|
|
102
|
+
onEvent?.({ type: "approval_rejected", step: i, tool: planStep.tool });
|
|
103
|
+
interrupted = true;
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
onEvent?.({ type: "approval_granted", step: i, tool: planStep.tool });
|
|
107
|
+
}
|
|
108
|
+
onEvent?.({ type: "tool_call", step: i, tool: planStep.tool, args: planStep.args });
|
|
109
|
+
const ctx = { step: i, maxSteps, totalCost, budget, needsApproval: false, signal };
|
|
110
|
+
let toolResult;
|
|
111
|
+
let toolError;
|
|
112
|
+
try {
|
|
113
|
+
toolResult = await tool.execute(planStep.args, ctx);
|
|
114
|
+
onEvent?.({ type: "tool_result", step: i, tool: planStep.tool, result: toolResult });
|
|
115
|
+
}
|
|
116
|
+
catch (error) {
|
|
117
|
+
toolError = error.message;
|
|
118
|
+
}
|
|
119
|
+
const toolCall = {
|
|
120
|
+
name: planStep.tool,
|
|
121
|
+
args: planStep.args,
|
|
122
|
+
result: toolResult,
|
|
123
|
+
error: toolError,
|
|
124
|
+
approved,
|
|
125
|
+
};
|
|
126
|
+
steps.push({
|
|
127
|
+
step: i,
|
|
128
|
+
content: planStep.action,
|
|
129
|
+
toolCalls: [toolCall],
|
|
130
|
+
done: false,
|
|
131
|
+
usage: { promptTokens: 0, completionTokens: 0, totalTokens: 0, estimatedCost: 0 },
|
|
132
|
+
});
|
|
133
|
+
// Re-plan on failure if enabled
|
|
134
|
+
if (toolError && replanOnFailure && i < plan.length - 1) {
|
|
135
|
+
execMessages.push({
|
|
136
|
+
role: "user",
|
|
137
|
+
content: `Step ${i + 1} failed: ${toolError}. Please adjust the remaining plan.`,
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
// Thinking step — no tool needed
|
|
143
|
+
steps.push({
|
|
144
|
+
step: i,
|
|
145
|
+
content: planStep.action,
|
|
146
|
+
toolCalls: [],
|
|
147
|
+
done: false,
|
|
148
|
+
usage: { promptTokens: 0, completionTokens: 0, totalTokens: 0, estimatedCost: 0 },
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
// Final summary
|
|
153
|
+
let answer;
|
|
154
|
+
try {
|
|
155
|
+
const summaryResponse = await effectiveLLM([
|
|
156
|
+
...execMessages,
|
|
157
|
+
{ role: "user", content: "All steps completed. Provide a final summary of the results." },
|
|
158
|
+
]);
|
|
159
|
+
answer = summaryResponse.content;
|
|
160
|
+
const summaryUsage = summaryResponse.usage ?? { promptTokens: 0, completionTokens: 0 };
|
|
161
|
+
const summaryCost = effectiveCost(summaryUsage, this._config.model);
|
|
162
|
+
totalUsage.promptTokens += summaryUsage.promptTokens;
|
|
163
|
+
totalUsage.completionTokens += summaryUsage.completionTokens;
|
|
164
|
+
totalUsage.totalTokens += summaryUsage.promptTokens + summaryUsage.completionTokens;
|
|
165
|
+
totalUsage.estimatedCost += summaryCost;
|
|
166
|
+
totalCost += summaryCost;
|
|
167
|
+
}
|
|
168
|
+
catch {
|
|
169
|
+
answer = steps.map((s) => s.content).join("\n");
|
|
170
|
+
}
|
|
171
|
+
const result = {
|
|
172
|
+
answer,
|
|
173
|
+
steps,
|
|
174
|
+
totalSteps: steps.length,
|
|
175
|
+
withinBudget: budget === null || totalCost < budget,
|
|
176
|
+
totalCost,
|
|
177
|
+
usage: totalUsage,
|
|
178
|
+
interrupted,
|
|
179
|
+
};
|
|
180
|
+
onEvent?.({ type: "done", result });
|
|
181
|
+
return result;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
//# sourceMappingURL=plan-and-execute.js.map
|