Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
ollama
command
|
|
|
ollama-structured-outputs
command
|
|
|
config
module
|
|
|
pkg
|
|
|
auth
Package auth provides authentication and authorization utilities for AI providers.
|
Package auth provides authentication and authorization utilities for AI providers. |
|
backend
Package backend provides HTTP server infrastructure for building AI-powered backend services.
|
Package backend provides HTTP server infrastructure for building AI-powered backend services. |
|
backend/extensions
Package extensions provides a plugin system for extending backend functionality.
|
Package extensions provides a plugin system for extending backend functionality. |
|
backend/handlers
Package handlers provides HTTP request handlers for the AI Provider Kit backend.
|
Package handlers provides HTTP request handlers for the AI Provider Kit backend. |
|
backend/middleware
Package middleware provides HTTP middleware components for the backend server.
|
Package middleware provides HTTP middleware components for the backend server. |
|
backendtypes
Package backendtypes defines types for backend server configuration and API communication.
|
Package backendtypes defines types for backend server configuration and API communication. |
|
factory
Package factory provides the provider factory pattern for creating and managing AI provider instances.
|
Package factory provides the provider factory pattern for creating and managing AI provider instances. |
|
http
Package http provides HTTP client utilities and helpers for AI providers.
|
Package http provides HTTP client utilities and helpers for AI providers. |
|
keymanager
Package keymanager provides API key management with load balancing and failover capabilities.
|
Package keymanager provides API key management with load balancing and failover capabilities. |
|
metrics
Package metrics provides a centralized metrics collection system for ai-provider-kit.
|
Package metrics provides a centralized metrics collection system for ai-provider-kit. |
|
oauthmanager
Package oauthmanager provides OAuth credential management and rotation for AI providers.
|
Package oauthmanager provides OAuth credential management and rotation for AI providers. |
|
providers/anthropic
Package anthropic provides an Anthropic Claude AI provider implementation.
|
Package anthropic provides an Anthropic Claude AI provider implementation. |
|
providers/anthropic/bedrock
Package bedrock provides AWS Bedrock integration middleware for the Anthropic provider.
|
Package bedrock provides AWS Bedrock integration middleware for the Anthropic provider. |
|
providers/anthropic/vertex
Package vertex provides Google Vertex AI integration for Anthropic Claude models.
|
Package vertex provides Google Vertex AI integration for Anthropic Claude models. |
|
providers/base
Package base provides common functionality and utilities for AI providers.
|
Package base provides common functionality and utilities for AI providers. |
|
providers/cerebras
Package cerebras provides a Cerebras AI provider implementation.
|
Package cerebras provides a Cerebras AI provider implementation. |
|
providers/common
Package common provides shared utilities and infrastructure for AI provider implementations.
|
Package common provides shared utilities and infrastructure for AI provider implementations. |
|
providers/common/auth
Package auth provides authentication utilities and helper functions for AI provider implementations
|
Package auth provides authentication utilities and helper functions for AI provider implementations |
|
providers/common/config
Package config provides configuration utilities for AI provider implementations
|
Package config provides configuration utilities for AI provider implementations |
|
providers/common/errors
Package errors provides rich error context for AI provider operations.
|
Package errors provides rich error context for AI provider operations. |
|
providers/common/middleware
Package middleware provides a flexible middleware infrastructure for AI provider requests and responses.
|
Package middleware provides a flexible middleware infrastructure for AI provider requests and responses. |
|
providers/common/models
Package models provides model metadata, caching, and registry functionality for AI providers, including capability tracking and discovery.
|
Package models provides model metadata, caching, and registry functionality for AI providers, including capability tracking and discovery. |
|
providers/common/retry
Package retry provides retry infrastructure for AI provider implementations.
|
Package retry provides retry infrastructure for AI provider implementations. |
|
providers/common/streaming
Package streaming provides streaming utilities for AI provider implementations.
|
Package streaming provides streaming utilities for AI provider implementations. |
|
providers/common/streaming/decoders
Package decoders provides pluggable stream decoders for various streaming formats including Server-Sent Events (SSE), NDJSON, and EventStream.
|
Package decoders provides pluggable stream decoders for various streaming formats including Server-Sent Events (SSE), NDJSON, and EventStream. |
|
providers/gemini
Package gemini provides extension implementation for Google Gemini AI provider.
|
Package gemini provides extension implementation for Google Gemini AI provider. |
|
providers/ollama
Package ollama provides an Ollama AI provider implementation.
|
Package ollama provides an Ollama AI provider implementation. |
|
providers/openai
Package openai provides integration with OpenAI's GPT models including chat completions, streaming, tool calling, and authentication support.
|
Package openai provides integration with OpenAI's GPT models including chat completions, streaming, tool calling, and authentication support. |
|
providers/openrouter
Package openrouter provides an OpenRouter AI provider implementation.
|
Package openrouter provides an OpenRouter AI provider implementation. |
|
providers/qwen
Package qwen provides integration with Qwen (Alibaba Cloud) AI models supporting both API key and OAuth authentication, streaming, and tool calling.
|
Package qwen provides integration with Qwen (Alibaba Cloud) AI models supporting both API key and OAuth authentication, streaming, and tool calling. |
|
providers/virtual
Package virtual provides composite provider implementations that combine multiple underlying providers.
|
Package virtual provides composite provider implementations that combine multiple underlying providers. |
|
providers/virtual/fallback
Package fallback provides a virtual provider that implements fallback logic.
|
Package fallback provides a virtual provider that implements fallback logic. |
|
providers/virtual/loadbalance
Package loadbalance provides a virtual provider that distributes requests across multiple providers.
|
Package loadbalance provides a virtual provider that distributes requests across multiple providers. |
|
providers/virtual/racing
Package racing provides a virtual provider that races multiple providers concurrently.
|
Package racing provides a virtual provider that races multiple providers concurrently. |
|
ratelimit
Package ratelimit provides rate limiting functionality for AI provider API requests.
|
Package ratelimit provides rate limiting functionality for AI provider API requests. |
|
testutil
Package testutil provides shared testing utilities, mocks, and fixtures for use across the ai-provider-kit test suite.
|
Package testutil provides shared testing utilities, mocks, and fixtures for use across the ai-provider-kit test suite. |
|
toolvalidator
Package toolvalidator provides validation utilities for tool definitions and tool calls.
|
Package toolvalidator provides validation utilities for tool definitions and tool calls. |
|
types
Package types defines the core types and interfaces for the AI provider kit.
|
Package types defines the core types and interfaces for the AI provider kit. |
|
utils
Package utils provides utility functions for token estimation, tool call validation, and embedded error detection.
|
Package utils provides utility functions for token estimation, tool call validation, and embedded error detection. |
Click to show internal directories.
Click to hide internal directories.