Directories
¶
| Path | Synopsis |
|---|---|
|
Example demonstrating how to use native Anthropic tools like web_search
|
Example demonstrating how to use native Anthropic tools like web_search |
|
interface-segregation
Package examples provides code examples demonstrating how to use the AI Provider Kit's segregated provider interfaces following the Interface Segregation Principle (ISP).
|
Package examples provides code examples demonstrating how to use the AI Provider Kit's segregated provider interfaces following the Interface Segregation Principle (ISP). |
|
ollama
command
|
|
|
ollama-structured-outputs
command
|
|
|
config
module
|
|
|
internal
|
|
|
clientpool
Package clientpool provides a shared HTTP client pool keyed by base URL This enables HTTP/2 connection sharing across providers targeting the same base URL
|
Package clientpool provides a shared HTTP client pool keyed by base URL This enables HTTP/2 connection sharing across providers targeting the same base URL |
|
common
Package common provides shared utilities and helper functions for AI providers.
|
Package common provides shared utilities and helper functions for AI 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 |
|
common/config
Package config provides configuration utilities for AI provider implementations
|
Package config provides configuration utilities for AI provider implementations |
|
common/connectivity
Package connectivity provides shared connectivity testing utilities for AI providers.
|
Package connectivity provides shared connectivity testing utilities for AI providers. |
|
common/errors
Package errors provides rich error context for AI provider operations.
|
Package errors provides rich error context for AI provider operations. |
|
common/http
Package http provides common HTTP utilities for provider implementations.
|
Package http provides common HTTP utilities for provider implementations. |
|
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. |
|
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. |
|
common/retry
Package retry provides retry infrastructure for AI provider implementations.
|
Package retry provides retry infrastructure for AI provider implementations. |
|
common/streaming
Package streaming provides a shared streaming request executor for AI providers.
|
Package streaming provides a shared streaming request executor for AI 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. |
|
common/telemetry
Package telemetry provides telemetry utilities for AI provider tracking and monitoring.
|
Package telemetry provides telemetry utilities for AI provider tracking and monitoring. |
|
common/tools
Package tools provides Anthropic-specific tool conversion utilities.
|
Package tools provides Anthropic-specific tool conversion utilities. |
|
http
Package http provides HTTP client utilities and helpers for AI providers.
|
Package http provides HTTP client utilities and helpers for AI providers. |
|
streaming
Package streaming provides utilities for streaming responses from AI providers.
|
Package streaming provides utilities for streaming responses from AI providers. |
|
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. |
|
tokenizer
Package tokenizer provides a unified interface for token counting with optional Rust-backed high-performance implementation via CGO.
|
Package tokenizer provides a unified interface for token counting with optional Rust-backed high-performance implementation via CGO. |
|
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. |
|
errors
Package errors provides rich error handling with context for AI provider operations.
|
Package errors provides rich error handling with context for AI provider operations. |
|
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. |
|
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. |
|
middleware
Package middleware provides HTTP middleware chain for request and response processing.
|
Package middleware provides HTTP middleware chain for request and response processing. |
|
models
Package models provides model metadata, registry, and discovery functionality for AI provider operations.
|
Package models provides model metadata, registry, and discovery functionality for AI provider operations. |
|
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/azure
Package azure provides integration with Azure OpenAI Service
|
Package azure provides integration with Azure OpenAI Service |
|
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 streaming functionality for Cerebras AI provider.
|
Package cerebras provides streaming functionality for Cerebras AI provider. |
|
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/copilot
Package copilot provides chat completion logic for GitHub Copilot AI provider.
|
Package copilot provides chat completion logic for GitHub Copilot AI provider. |
|
providers/gemini
Package gemini provides backend routing and schema conversion for Gemini API vs Vertex AI.
|
Package gemini provides backend routing and schema conversion for Gemini API vs Vertex AI. |
|
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/common
Package common provides shared utilities for virtual provider implementations.
|
Package common provides shared utilities for virtual provider implementations. |
|
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. |
|
quota
Package quota provides a provider-agnostic quota management API for AI providers.
|
Package quota provides a provider-agnostic quota management API for AI providers. |
|
ratelimit
Package ratelimit provides rate limiting functionality for AI provider API requests.
|
Package ratelimit provides rate limiting functionality for AI provider API requests. |
|
retry
Package retry provides retry policies with configurable backoff strategies for resilient operations.
|
Package retry provides retry policies with configurable backoff strategies for resilient operations. |
|
streaming
Package streaming provides utilities for SSE (Server-Sent Events) and streaming operations.
|
Package streaming provides utilities for SSE (Server-Sent Events) and streaming operations. |
|
testutil
Package testutil provides shared testing utilities for HTTP-related tests.
|
Package testutil provides shared testing utilities for HTTP-related tests. |
|
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.