pkg/

directory
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 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 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 http provides HTTP client utilities and helpers for AI providers.
Package http provides HTTP client utilities and helpers for AI providers.
Package keymanager provides API key management with load balancing and failover capabilities.
Package keymanager provides API key management with load balancing and failover capabilities.
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 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.
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 a Cerebras AI provider implementation.
Package cerebras provides a Cerebras AI provider implementation.
common
Package common provides shared utilities and infrastructure for AI provider implementations.
Package common provides shared utilities and infrastructure for AI provider implementations.
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/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/streaming
Package streaming provides streaming utilities for AI provider implementations.
Package streaming provides streaming utilities for AI provider implementations.
gemini
Package gemini provides extension implementation for Google Gemini AI provider.
Package gemini provides extension implementation for Google Gemini AI provider.
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/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 ratelimit provides rate limiting functionality for AI provider API requests.
Package ratelimit provides rate limiting functionality for AI provider API requests.
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.
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