pkg/

directory
v1.0.65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2025 License: MIT

Directories

Path Synopsis
Package auth provides authentication and authorization utilities for AI providers.
Package auth provides authentication and authorization utilities for AI providers.
Package backend provides HTTP server infrastructure for building AI-powered backend services.
Package backend provides HTTP server infrastructure for building AI-powered backend services.
extensions
Package extensions provides a plugin system for extending backend functionality.
Package extensions provides a plugin system for extending backend functionality.
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.
middleware
Package middleware provides HTTP middleware components for the backend server.
Package middleware provides HTTP middleware components for the backend server.
Package backendtypes defines types for backend server configuration and API communication.
Package backendtypes defines types for backend server configuration and API communication.
Package errors provides rich error handling with context for AI provider operations.
Package errors provides rich error handling with context for AI provider operations.
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.
Package metrics provides a centralized metrics collection system for ai-provider-kit.
Package metrics provides a centralized metrics collection system for ai-provider-kit.
Package middleware provides HTTP middleware chain for request and response processing.
Package middleware provides HTTP middleware chain for request and response processing.
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.
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.
anthropic/bedrock
Package bedrock provides AWS Bedrock integration middleware for the Anthropic provider.
Package bedrock provides AWS Bedrock integration middleware for the Anthropic provider.
anthropic/vertex
Package vertex provides Google Vertex AI integration for Anthropic Claude models.
Package vertex provides Google Vertex AI integration for Anthropic Claude models.
azure
Package azure provides integration with Azure OpenAI Service
Package azure provides integration with Azure OpenAI Service
base
Package base provides common functionality and utilities for AI providers.
Package base provides common functionality and utilities for AI providers.
cerebras
Package cerebras provides streaming functionality for Cerebras AI provider.
Package cerebras provides streaming functionality for Cerebras AI provider.
common
Package common provides shared utilities and infrastructure for AI provider implementations.
Package common provides shared utilities and infrastructure for AI provider implementations.
copilot
Package copilot provides chat completion logic for GitHub Copilot AI provider.
Package copilot provides chat completion logic for GitHub Copilot AI provider.
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.
ollama
Package ollama provides an Ollama AI provider implementation.
Package ollama provides an Ollama AI provider implementation.
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.
openrouter
Package openrouter provides an OpenRouter AI provider implementation.
Package openrouter provides an OpenRouter AI provider implementation.
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.
virtual
Package virtual provides composite provider implementations that combine multiple underlying providers.
Package virtual provides composite provider implementations that combine multiple underlying providers.
virtual/common
Package common provides shared utilities for virtual provider implementations.
Package common provides shared utilities for virtual provider implementations.
virtual/fallback
Package fallback provides a virtual provider that implements fallback logic.
Package fallback provides a virtual provider that implements fallback logic.
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.
virtual/racing
Package racing provides a virtual provider that races multiple providers concurrently.
Package racing provides a virtual provider that races multiple providers concurrently.
Package quota provides a provider-agnostic quota management API for AI providers.
Package quota provides a provider-agnostic quota management API for AI providers.
Package ratelimit provides rate limiting functionality for AI provider API requests.
Package ratelimit provides rate limiting functionality for AI provider API requests.
Package retry provides retry policies with configurable backoff strategies for resilient operations.
Package retry provides retry policies with configurable backoff strategies for resilient operations.
Package streaming provides utilities for SSE (Server-Sent Events) and streaming operations.
Package streaming provides utilities for SSE (Server-Sent Events) and streaming operations.
Package testutil provides shared testing utilities for HTTP-related tests.
Package testutil provides shared testing utilities for HTTP-related tests.
Package toolvalidator provides validation utilities for tool definitions and tool calls.
Package toolvalidator provides validation utilities for tool definitions and tool calls.
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.
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL