Versions in this module Expand all Collapse all v0 v0.3.1 Sep 21, 2026 Changes in this version + type Client struct + HTTP *http.Client + Model string + ReportUsage bool + ToolChoice any + URL string + func (m *Client) Chat(ctx context.Context, messages []Message, tools []map[string]any) (Message, error) + type Message struct + Content *string + Role string + ToolCallID string + ToolCalls []ToolCall + Usage *Usage + type ToolCall struct + Function struct{ ... } + ID string + Type string + type Usage struct + CompletionTokens int + PromptTokens int