Documentation
¶
Index ¶
- Constants
- Variables
- func NewSecurityManager(cfg SecurityConfig) *security.Manager
- func NewSimpleGuard() *security.SimpleGuard
- type APIError
- type APIKeyInfo
- type ApiCallMetadata
- type BillingPlugin
- type BillingPluginOptions
- type BillingReport
- type BillingReporter
- type ChatOptions
- type ChatRequest
- type ChatResponse
- type ChatResult
- type ChatStreamChunk
- type ChatStreamResult
- type Choice
- type Client
- type ClientEventHandler
- type Config
- type CostSnapshot
- type CostTracker
- type CreditBalance
- type DiskHistoryStore
- type ExternalSecurityPlugin
- type GuardFactory
- type HistoryAnalyzer
- type HistoryEntry
- type HistoryEntryStore
- type HistoryManager
- type HistoryManagerOptions
- type HistoryQueryOptions
- type HistoryStats
- type HistoryStore
- type HistoryTimeSeriesPoint
- type Hook
- type HookFunc
- type LoggingPlugin
- type MemoryHistoryStore
- type Message
- type MessageDelta
- type Metrics
- type MetricsPlugin
- type Middleware
- type MiddlewareContext
- type ModelCost
- type ModelInfo
- type Plugin
- type Price
- type PriceTable
- type Provider
- type Reasoning
- type RedisHistoryPlugin
- type RedisHistoryPluginOptions
- type RedisHistoryStore
- type RedisHistoryStoreClient
- type RedisHistoryStoreOptions
- type ResponseFormat
- type ResponseJSONSchema
- type Role
- type SecurityAuthConfig
- type SecurityAuthType
- type SecurityAuthenticator
- type SecurityConfig
- type SecurityDangerousArgumentsConfig
- type SecurityEventHandler
- type SecurityGuard
- type SecurityManager
- type SecurityRateLimit
- type SecurityRolePolicy
- type SecurityToolCallEvent
- type SecurityToolPolicy
- type SecurityUser
- type StreamCallbacks
- type StreamChoiceChunk
- type StreamEvent
- type Tool
- type ToolCall
- type ToolCallDetail
- type ToolCallError
- type ToolCallFunction
- type ToolCallOutcome
- type ToolCallStatus
- type ToolFunction
- type ToolProvider
- type ToolRegistryMode
- type ToolRegistryOptions
- type ToolRegistryPlugin
- type ToolSecurity
- type Usage
Constants ¶
View Source
const ( RoleSystem = schema.RoleSystem RoleUser = schema.RoleUser RoleAssistant = schema.RoleAssistant RoleTool = schema.RoleTool )
View Source
const ( ToolRegistryOverride = pluginpack.ToolRegistryOverride ToolRegistryMerge = pluginpack.ToolRegistryMerge ToolRegistryIfEmpty = pluginpack.ToolRegistryIfEmpty )
View Source
const ( SecurityAuthTypeAPIKey = security.AuthTypeAPIKey SecurityAuthTypeJWT = security.AuthTypeJWT SecurityAuthTypeCustom = security.AuthTypeCustom )
Variables ¶
View Source
var ErrAccessDenied = security.ErrAccessDenied
View Source
var ErrAuthRequired = security.ErrAuthRequired
View Source
var ErrBadRequest = errs.ErrBadRequest
View Source
var ErrDangerousArgument = security.ErrDangerousArgument
View Source
var ErrDecode = errs.ErrDecode
View Source
var ErrInvalidToken = security.ErrInvalidToken
View Source
var ErrRateLimited = security.ErrRateLimited
Functions ¶
func NewSecurityManager ¶
func NewSecurityManager(cfg SecurityConfig) *security.Manager
func NewSimpleGuard ¶
func NewSimpleGuard() *security.SimpleGuard
Types ¶
type APIKeyInfo ¶
type APIKeyInfo = schema.APIKeyInfo
type ApiCallMetadata ¶
type ApiCallMetadata = history.ApiCallMetadata
type BillingPlugin ¶
type BillingPlugin = pluginpack.BillingPlugin
func NewBillingPlugin ¶
func NewBillingPlugin(opts BillingPluginOptions) *BillingPlugin
type BillingPluginOptions ¶
type BillingPluginOptions = pluginpack.BillingPluginOptions
type BillingReport ¶
type BillingReport = pluginpack.BillingReport
type BillingReporter ¶
type BillingReporter = pluginpack.BillingReporter
type ChatOptions ¶
type ChatOptions = schema.ChatOptions
type ChatRequest ¶
type ChatRequest = schema.ChatRequest
type ChatResponse ¶
type ChatResponse = schema.ChatResponse
type ChatResult ¶
type ChatResult = schema.ChatResult
type ChatStreamChunk ¶
type ChatStreamChunk = schema.ChatStreamChunk
type ChatStreamResult ¶
type ChatStreamResult = schema.ChatStreamResult
type ClientEventHandler ¶
type ClientEventHandler = client.EventHandler
type CostSnapshot ¶
type CostTracker ¶
func NewCostTracker ¶
func NewCostTracker(prices PriceTable) *CostTracker
type CreditBalance ¶
type CreditBalance = schema.CreditBalance
type DiskHistoryStore ¶
type DiskHistoryStore = historydisk.Store
func NewDiskHistoryStore ¶
func NewDiskHistoryStore(dir string) *DiskHistoryStore
type ExternalSecurityPlugin ¶
type ExternalSecurityPlugin = pluginpack.ExternalSecurityPlugin
func NewExternalSecurityPlugin ¶
func NewExternalSecurityPlugin(guard SecurityGuard) *ExternalSecurityPlugin
func NewExternalSecurityPluginWithFactory ¶
func NewExternalSecurityPluginWithFactory(factory GuardFactory) *ExternalSecurityPlugin
type GuardFactory ¶
type GuardFactory = pluginpack.GuardFactory
type HistoryAnalyzer ¶
func NewHistoryAnalyzer ¶
func NewHistoryAnalyzer(manager *HistoryManager) *HistoryAnalyzer
type HistoryEntry ¶
type HistoryEntry = history.HistoryEntry
type HistoryEntryStore ¶
type HistoryEntryStore = history.EntryStore
type HistoryManager ¶
func NewHistoryManager ¶
func NewHistoryManager(store HistoryEntryStore, opts HistoryManagerOptions) *HistoryManager
type HistoryManagerOptions ¶
type HistoryManagerOptions = history.ManagerOptions
type HistoryQueryOptions ¶
type HistoryQueryOptions = history.QueryOptions
type HistoryStats ¶
type HistoryStore ¶
type HistoryTimeSeriesPoint ¶
type HistoryTimeSeriesPoint = history.TimeSeriesPoint
type LoggingPlugin ¶
type LoggingPlugin = pluginpack.LoggingPlugin
func NewLoggingPlugin ¶
func NewLoggingPlugin() *LoggingPlugin
func NewLoggingPluginWithLogger ¶
func NewLoggingPluginWithLogger(logger *log.Logger) *LoggingPlugin
type MemoryHistoryStore ¶
type MemoryHistoryStore = historymemory.Store
func NewMemoryHistoryStore ¶
func NewMemoryHistoryStore() *MemoryHistoryStore
type MessageDelta ¶
type MessageDelta = schema.MessageDelta
type Metrics ¶
type Metrics = pluginpack.Metrics
type MetricsPlugin ¶
type MetricsPlugin = pluginpack.MetricsPlugin
func NewMetricsPlugin ¶
func NewMetricsPlugin() *MetricsPlugin
type Middleware ¶
type Middleware = client.Middleware
type MiddlewareContext ¶
type MiddlewareContext = client.MiddlewareContext
type PriceTable ¶
type PriceTable = cost.PriceTable
type RedisHistoryPlugin ¶
type RedisHistoryPlugin = pluginpack.RedisHistoryPlugin
func NewRedisHistoryPlugin ¶
func NewRedisHistoryPlugin(store HistoryStore) *RedisHistoryPlugin
func NewRedisHistoryPluginFromClient ¶
func NewRedisHistoryPluginFromClient(redisClient RedisHistoryStoreClient, opts RedisHistoryPluginOptions) *RedisHistoryPlugin
type RedisHistoryPluginOptions ¶
type RedisHistoryPluginOptions = pluginpack.RedisHistoryPluginOptions
type RedisHistoryStore ¶
type RedisHistoryStore = historyredis.Store
func NewRedisHistoryStore ¶
func NewRedisHistoryStore(redisClient RedisHistoryStoreClient, opts RedisHistoryStoreOptions) *RedisHistoryStore
type RedisHistoryStoreClient ¶
type RedisHistoryStoreClient = historyredis.Client
type RedisHistoryStoreOptions ¶
type RedisHistoryStoreOptions = historyredis.Options
type ResponseFormat ¶
type ResponseFormat = schema.ResponseFormat
type ResponseJSONSchema ¶
type ResponseJSONSchema = schema.ResponseJSONSchema
type SecurityAuthConfig ¶
type SecurityAuthConfig = security.AuthConfig
type SecurityAuthType ¶
type SecurityAuthenticator ¶
type SecurityAuthenticator = security.Authenticator
type SecurityConfig ¶
type SecurityDangerousArgumentsConfig ¶
type SecurityDangerousArgumentsConfig = security.DangerousArgumentsConfig
type SecurityEventHandler ¶
type SecurityEventHandler = security.EventHandler
type SecurityGuard ¶
type SecurityManager ¶
type SecurityRateLimit ¶
type SecurityRolePolicy ¶
type SecurityRolePolicy = security.RolePolicy
type SecurityToolCallEvent ¶
type SecurityToolCallEvent = security.ToolCallEvent
type SecurityToolPolicy ¶
type SecurityToolPolicy = security.ToolPolicy
type SecurityUser ¶
type StreamCallbacks ¶
type StreamCallbacks = schema.StreamCallbacks
type StreamChoiceChunk ¶
type StreamChoiceChunk = schema.StreamChoiceChunk
type StreamEvent ¶
type StreamEvent = schema.StreamEvent
type ToolCallDetail ¶
type ToolCallDetail = schema.ToolCallDetail
type ToolCallError ¶
type ToolCallError = schema.ToolCallError
type ToolCallFunction ¶
type ToolCallFunction = schema.ToolCallFunction
type ToolCallOutcome ¶
type ToolCallOutcome = schema.ToolCallOutcome
type ToolCallStatus ¶
type ToolCallStatus = schema.ToolCallStatus
type ToolFunction ¶
type ToolFunction = schema.ToolFunction
type ToolProvider ¶
type ToolProvider = pluginpack.ToolProvider
type ToolRegistryMode ¶
type ToolRegistryMode = pluginpack.ToolRegistryMode
type ToolRegistryOptions ¶
type ToolRegistryOptions = pluginpack.ToolRegistryOptions
type ToolRegistryPlugin ¶
type ToolRegistryPlugin = pluginpack.ToolRegistryPlugin
func NewDynamicToolRegistryPlugin ¶
func NewDynamicToolRegistryPlugin(provider ToolProvider, opts ToolRegistryOptions) *ToolRegistryPlugin
func NewToolRegistryPlugin ¶
func NewToolRegistryPlugin(tools []Tool, opts ToolRegistryOptions) *ToolRegistryPlugin
type ToolSecurity ¶
type ToolSecurity = schema.ToolSecurity
Click to show internal directories.
Click to hide internal directories.