@agentskit/adapters
Advanced tools
@@ -25,8 +25,29 @@ import { JSONSchema7 } from 'json-schema'; | ||
| cacheWrite?: number; | ||
| tiers?: CatalogModelCostTier[]; | ||
| contextOver200k?: CatalogModelCostTier; | ||
| } | ||
| /** A pricing tier descriptor from models.dev. */ | ||
| interface CatalogModelCostTier { | ||
| input?: number; | ||
| output?: number; | ||
| cacheRead?: number; | ||
| cacheWrite?: number; | ||
| tier?: { | ||
| type: string; | ||
| size?: number; | ||
| }; | ||
| } | ||
| /** Context / output token ceilings. */ | ||
| interface CatalogModelLimit { | ||
| context?: number; | ||
| input?: number; | ||
| output?: number; | ||
| } | ||
| /** A supported reasoning control from models.dev. */ | ||
| interface CatalogReasoningOption { | ||
| type: string; | ||
| values?: string[]; | ||
| min?: number; | ||
| max?: number; | ||
| } | ||
| /** A single model entry within a provider. */ | ||
@@ -40,2 +61,3 @@ interface CatalogModel { | ||
| modalities?: CatalogModalities; | ||
| reasoningOptions?: CatalogReasoningOption[]; | ||
| /** Capability flags — consult these instead of assuming "openai-compatible = works". */ | ||
@@ -47,2 +69,4 @@ toolCall: boolean; | ||
| openWeights: boolean; | ||
| /** Upstream lifecycle status, when models.dev provides one. */ | ||
| status?: string; | ||
| /** ISO-ish knowledge cutoff (e.g. "2024-05"). */ | ||
@@ -60,2 +84,4 @@ knowledge?: string; | ||
| env: string[]; | ||
| /** Provider package identifier from models.dev, when available. */ | ||
| npm?: string; | ||
| /** Default API base URL (when `models.dev` records one). */ | ||
@@ -77,2 +103,6 @@ baseUrl?: string; | ||
| version: string; | ||
| /** Hash of the normalized provider/model payload. */ | ||
| contentHash?: string; | ||
| /** Upstream HTTP validator, when available. */ | ||
| etag?: string; | ||
| } | ||
@@ -167,2 +197,5 @@ /** The committed, schema-validated catalog artifact loaded at runtime. */ | ||
| declare const FIRST_CLASS_PROVIDERS: readonly ["anthropic", "openai", "google"]; | ||
| /** How a catalog provider is expected to reach an AgentsKit adapter. */ | ||
| type CatalogProviderSupport = 'native' | 'openai-compatible' | 'unsupported'; | ||
| declare function classifyCatalogProvider(provider: Pick<CatalogProvider, 'id' | 'openaiCompatible'>): CatalogProviderSupport; | ||
| interface CatalogDriftReport { | ||
@@ -211,2 +244,2 @@ /** Catalog providers that are neither first-class nor OpenAI-compatible — undispatchable. */ | ||
| export { type CatalogDispatchConfig, CatalogDispatchError, type CatalogDriftReport, type CatalogModalities, type CatalogModel, type CatalogModelCost, type CatalogModelLimit, type CatalogOverrides, type CatalogProvider, type CatalogSnapshot, type CatalogSource, FIRST_CLASS_PROVIDERS, type ResolveCostOptions, type ResolvedCost, applyOverrides, catalog, catalogSnapshotSchema, catalogSource, detectCatalogDrift, dispatchFromCatalog, getCachedCost, getModel, getProvider, listOpenAICompatibleProviders, listProviders, resolveCost }; | ||
| export { type CatalogDispatchConfig, CatalogDispatchError, type CatalogDriftReport, type CatalogModalities, type CatalogModel, type CatalogModelCost, type CatalogModelCostTier, type CatalogModelLimit, type CatalogOverrides, type CatalogProvider, type CatalogProviderSupport, type CatalogReasoningOption, type CatalogSnapshot, type CatalogSource, FIRST_CLASS_PROVIDERS, type ResolveCostOptions, type ResolvedCost, applyOverrides, catalog, catalogSnapshotSchema, catalogSource, classifyCatalogProvider, detectCatalogDrift, dispatchFromCatalog, getCachedCost, getModel, getProvider, listOpenAICompatibleProviders, listProviders, resolveCost }; |
@@ -25,8 +25,29 @@ import { JSONSchema7 } from 'json-schema'; | ||
| cacheWrite?: number; | ||
| tiers?: CatalogModelCostTier[]; | ||
| contextOver200k?: CatalogModelCostTier; | ||
| } | ||
| /** A pricing tier descriptor from models.dev. */ | ||
| interface CatalogModelCostTier { | ||
| input?: number; | ||
| output?: number; | ||
| cacheRead?: number; | ||
| cacheWrite?: number; | ||
| tier?: { | ||
| type: string; | ||
| size?: number; | ||
| }; | ||
| } | ||
| /** Context / output token ceilings. */ | ||
| interface CatalogModelLimit { | ||
| context?: number; | ||
| input?: number; | ||
| output?: number; | ||
| } | ||
| /** A supported reasoning control from models.dev. */ | ||
| interface CatalogReasoningOption { | ||
| type: string; | ||
| values?: string[]; | ||
| min?: number; | ||
| max?: number; | ||
| } | ||
| /** A single model entry within a provider. */ | ||
@@ -40,2 +61,3 @@ interface CatalogModel { | ||
| modalities?: CatalogModalities; | ||
| reasoningOptions?: CatalogReasoningOption[]; | ||
| /** Capability flags — consult these instead of assuming "openai-compatible = works". */ | ||
@@ -47,2 +69,4 @@ toolCall: boolean; | ||
| openWeights: boolean; | ||
| /** Upstream lifecycle status, when models.dev provides one. */ | ||
| status?: string; | ||
| /** ISO-ish knowledge cutoff (e.g. "2024-05"). */ | ||
@@ -60,2 +84,4 @@ knowledge?: string; | ||
| env: string[]; | ||
| /** Provider package identifier from models.dev, when available. */ | ||
| npm?: string; | ||
| /** Default API base URL (when `models.dev` records one). */ | ||
@@ -77,2 +103,6 @@ baseUrl?: string; | ||
| version: string; | ||
| /** Hash of the normalized provider/model payload. */ | ||
| contentHash?: string; | ||
| /** Upstream HTTP validator, when available. */ | ||
| etag?: string; | ||
| } | ||
@@ -167,2 +197,5 @@ /** The committed, schema-validated catalog artifact loaded at runtime. */ | ||
| declare const FIRST_CLASS_PROVIDERS: readonly ["anthropic", "openai", "google"]; | ||
| /** How a catalog provider is expected to reach an AgentsKit adapter. */ | ||
| type CatalogProviderSupport = 'native' | 'openai-compatible' | 'unsupported'; | ||
| declare function classifyCatalogProvider(provider: Pick<CatalogProvider, 'id' | 'openaiCompatible'>): CatalogProviderSupport; | ||
| interface CatalogDriftReport { | ||
@@ -211,2 +244,2 @@ /** Catalog providers that are neither first-class nor OpenAI-compatible — undispatchable. */ | ||
| export { type CatalogDispatchConfig, CatalogDispatchError, type CatalogDriftReport, type CatalogModalities, type CatalogModel, type CatalogModelCost, type CatalogModelLimit, type CatalogOverrides, type CatalogProvider, type CatalogSnapshot, type CatalogSource, FIRST_CLASS_PROVIDERS, type ResolveCostOptions, type ResolvedCost, applyOverrides, catalog, catalogSnapshotSchema, catalogSource, detectCatalogDrift, dispatchFromCatalog, getCachedCost, getModel, getProvider, listOpenAICompatibleProviders, listProviders, resolveCost }; | ||
| export { type CatalogDispatchConfig, CatalogDispatchError, type CatalogDriftReport, type CatalogModalities, type CatalogModel, type CatalogModelCost, type CatalogModelCostTier, type CatalogModelLimit, type CatalogOverrides, type CatalogProvider, type CatalogProviderSupport, type CatalogReasoningOption, type CatalogSnapshot, type CatalogSource, FIRST_CLASS_PROVIDERS, type ResolveCostOptions, type ResolvedCost, applyOverrides, catalog, catalogSnapshotSchema, catalogSource, classifyCatalogProvider, detectCatalogDrift, dispatchFromCatalog, getCachedCost, getModel, getProvider, listOpenAICompatibleProviders, listProviders, resolveCost }; |
+4
-4
| { | ||
| "name": "@agentskit/adapters", | ||
| "version": "0.14.3", | ||
| "version": "0.15.0", | ||
| "description": "Provider adapters for AgentsKit.", | ||
@@ -53,3 +53,3 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@agentskit/core": "1.12.7" | ||
| "@agentskit/core": "1.12.8" | ||
| }, | ||
@@ -63,3 +63,3 @@ "devDependencies": { | ||
| "vitest": "^4.1.10", | ||
| "@agentskit/tools": "0.13.3" | ||
| "@agentskit/tools": "0.13.4" | ||
| }, | ||
@@ -87,3 +87,3 @@ "peerDependencies": { | ||
| "license": "MIT", | ||
| "homepage": "https://www.agentskit.io/docs/packages/adapters", | ||
| "homepage": "https://www.agentskit.io/docs/reference/packages/adapters", | ||
| "repository": { | ||
@@ -90,0 +90,0 @@ "type": "git", |
+4
-4
@@ -21,3 +21,3 @@ # @agentskit/adapters | ||
| - Package metadata and tests live under `packages/adapters/`. | ||
| - Package guide: https://www.agentskit.io/docs/packages/adapters | ||
| - Package guide: https://www.agentskit.io/docs/reference/packages/adapters | ||
| - Stability map: [docs/STABILITY.md](../../docs/STABILITY.md) | ||
@@ -34,3 +34,3 @@ | ||
| Docs: [package guide](https://www.agentskit.io/docs/packages/adapters) · [agent handoff](https://github.com/AgentsKit-io/agentskit/blob/main/llms.txt) | ||
| Docs: [package guide](https://www.agentskit.io/docs/reference/packages/adapters) · [agent handoff](https://github.com/AgentsKit-io/agentskit/blob/main/llms.txt) | ||
@@ -40,3 +40,3 @@ ## Why adapters | ||
| - **Vendor independence** — switch from OpenAI to Anthropic to a local Ollama model by changing one line; your hooks, runtime, and tools stay untouched | ||
| - **20+ providers included** — Anthropic, OpenAI, Gemini, Ollama, DeepSeek, Grok, Kimi, Mistral, Cohere, Together, Groq, Fireworks, OpenRouter, Hugging Face, LM Studio, vLLM, llama.cpp, LangChain, Vercel AI SDK, and any raw `ReadableStream` | ||
| - **25 native adapters in the catalog** — Anthropic, OpenAI, Gemini, Ollama, DeepSeek, Grok, Kimi, Mistral, Cohere, Together, Groq, Fireworks, OpenRouter, Hugging Face, LM Studio, vLLM, llama.cpp, LangChain, Vercel AI SDK, and additional compatible providers | ||
| - **Embedder functions built in** — the same adapter pattern covers text embeddings, so you can reuse provider config for both chat and RAG | ||
@@ -116,3 +116,3 @@ - **One-line local AI** — `ollama({ model: 'llama3.1' })` for fully offline agents with no API key required | ||
| See [Adapter router](https://www.agentskit.io/docs/recipes/adapter-router), [Ensemble](https://www.agentskit.io/docs/recipes/adapter-ensemble), and [Fallback chain](https://www.agentskit.io/docs/recipes/fallback-chain). | ||
| See [Adapter router](https://www.agentskit.io/docs/reference/recipes/adapter-router), [Ensemble](https://www.agentskit.io/docs/reference/recipes/adapter-ensemble), and [Fallback chain](https://www.agentskit.io/docs/reference/recipes/fallback-chain). | ||
@@ -119,0 +119,0 @@ ## Ecosystem |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
32824120
45.2%8964
-97.15%+ Added
- Removed
Updated