Versions in this module Expand all Collapse all v1 v1.53.0 Apr 28, 2026 Changes in this version + func Run(ctx context.Context, agentFilename string, opts Options, ln net.Listener) error + type ChatCompletionChoice struct + FinishReason string + Index int + Message ChatCompletionMessage + type ChatCompletionMessage struct + Content string + Name string + Parts []ContentPart + Role string + ToolCallID string + ToolCalls []ToolCallReference + func (m *ChatCompletionMessage) UnmarshalJSON(data []byte) error + func (m ChatCompletionMessage) MarshalJSON() ([]byte, error) + type ChatCompletionRequest struct + MaxTokens *int64 + Messages []ChatCompletionMessage + Model string + Stop StopSequences + Stream bool + Temperature *float64 + TopP *float64 + type ChatCompletionResponse struct + Choices []ChatCompletionChoice + Created int64 + ID string + Model string + Object string + Usage *ChatCompletionUsage + type ChatCompletionStreamChoice struct + Delta ChatCompletionStreamDelta + FinishReason string + Index int + type ChatCompletionStreamDelta struct + Content string + Role string + ToolCalls []ToolCallReference + type ChatCompletionStreamResponse struct + Choices []ChatCompletionStreamChoice + Created int64 + ID string + Model string + Object string + type ChatCompletionUsage struct + CompletionTokens int64 + PromptTokens int64 + TotalTokens int64 + type ContentImageURL struct + Detail string + URL string + type ContentPart struct + ImageURL *ContentImageURL + Text string + Type string + type ErrorDetail struct + Code string + Message string + Type string + type ErrorResponse struct + Error ErrorDetail + type ModelsResponse struct + Data []openai.Model + Object string + type Options struct + APIKey string + AgentName string + CORSOrigin string + ConversationTTL time.Duration + ConversationsMaxSessions int + MaxIdleRuntimes int + MaxRequestBytes int64 + RequestTimeout time.Duration + RunConfig *config.RuntimeConfig + type StopSequences []string + func (s *StopSequences) UnmarshalJSON(data []byte) error + type ToolCallFunction struct + Arguments string + Name string + type ToolCallReference struct + Function ToolCallFunction + ID string + Index int + Type string