Documentation
¶
Index ¶
- type ChatCompletionRequest
- type ChatCompletionResponse
- type ChatStream
- type Client
- type Config
- type ContentPart
- type CreateResponseRequest
- type Embedding
- type EmbeddingRequest
- type EmbeddingResponse
- type ImageURL
- type Message
- type Model
- type ModelsResponse
- type Provider
- type ProviderCapability
- type ResponseObject
- type Tool
- type ToolCall
- type ToolFunction
- type Usage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatCompletionRequest ¶
type ChatCompletionRequest = openai.ChatCompletionRequest
type ChatCompletionResponse ¶
type ChatCompletionResponse = openai.ChatCompletionResponse
type ChatStream ¶
type ChatStream = openai.ChatStream
type Client ¶
type Client interface {
// Provider information
Provider() string
// Provider capabilities (client-level features)
SupportsCapability(cap string) bool
// Model management
GetModels(ctx context.Context) (*ModelsResponse, error)
// Chat completions
ChatCompletion(ctx context.Context, req ChatCompletionRequest) (*ChatCompletionResponse, error)
StreamChatCompletion(ctx context.Context, req ChatCompletionRequest) *ChatStream
// Embeddings
CreateEmbedding(ctx context.Context, req EmbeddingRequest) (*EmbeddingResponse, error)
// OpenAI Responses API
CreateResponse(ctx context.Context, req CreateResponseRequest) (*ResponseObject, error)
GetResponse(ctx context.Context, id string) (*ResponseObject, error)
CancelResponse(ctx context.Context, id string) (*ResponseObject, error)
DeleteResponse(ctx context.Context, id string) error
CompactResponse(ctx context.Context, id string) (*ResponseObject, error)
// Close/cleanup
Close() error
}
Client is the universal LLM client interface
type ContentPart ¶
type ContentPart = openai.ContentPart
type CreateResponseRequest ¶
type CreateResponseRequest = openai.CreateResponseRequest
type EmbeddingRequest ¶
type EmbeddingRequest = openai.EmbeddingRequest
type EmbeddingResponse ¶
type EmbeddingResponse = openai.EmbeddingResponse
type ModelsResponse ¶
type ModelsResponse = openai.ModelsResponse
type ProviderCapability ¶
type ProviderCapability string
ProviderCapability represents provider-level features
const ( ProviderCapabilityEmbedding ProviderCapability = "embeddings" ProviderCapabilityResponses ProviderCapability = "responses" )
type ResponseObject ¶
type ResponseObject = openai.ResponseObject
type ToolFunction ¶
type ToolFunction = openai.ToolFunction
Click to show internal directories.
Click to hide internal directories.