Versions in this module Expand all Collapse all v1 v1.0.2 Jun 1, 2026 v1.0.1 May 29, 2026 Changes in this version + type ChatRequest struct + FileIDs []string + ImageIDs []string + ImageURLs []string + Input Input + Model string + Options *Options + PreviousResponseID string + ResponseFormat *ResponseFormat + SystemPrompt string + Tools []Tool + type ChatResponse struct + Citations []Citation + ResponseID string + Text string + TokensUsed int + ToolCallRequests []ToolCallRequest + type Citation struct + EndIdx *int + Snippet *string + StartIdx *int + Title *string + Url string + type ContentType string + const Applicationjson + const Applicationpdf + const Applicationzip + const Imagejpeg + const Imagepng + const Textcsv + const Textplain + func (e ContentType) Valid() bool + type ExternalTool struct + Description string + Name string + Parameters map[string]interface{} + Type ExternalToolType + type ExternalToolType string + const External + func (e ExternalToolType) Valid() bool + type FileUpload struct + FileID string + FileName string + type FileUploadRequest struct + File openapi_types.File + FileName string + FileType ContentType + ProviderID string + Purpose *string + type Input struct + func (t *Input) FromInput1(v Input1) error + func (t *Input) FromInputString(v InputString) error + func (t *Input) MergeInput1(v Input1) error + func (t *Input) MergeInputString(v InputString) error + func (t *Input) UnmarshalJSON(b []byte) error + func (t Input) AsInput1() (Input1, error) + func (t Input) AsInputString() (InputString, error) + func (t Input) MarshalJSON() ([]byte, error) + type Input1 = []Input_1_Item + type InputString struct + Value string + type Input_1_Item struct + func (t *Input_1_Item) FromInputString(v InputString) error + func (t *Input_1_Item) FromToolCallRequest(v ToolCallRequest) error + func (t *Input_1_Item) FromToolResult(v ToolResult) error + func (t *Input_1_Item) MergeInputString(v InputString) error + func (t *Input_1_Item) MergeToolCallRequest(v ToolCallRequest) error + func (t *Input_1_Item) MergeToolResult(v ToolResult) error + func (t *Input_1_Item) UnmarshalJSON(b []byte) error + func (t Input_1_Item) AsInputString() (InputString, error) + func (t Input_1_Item) AsToolCallRequest() (ToolCallRequest, error) + func (t Input_1_Item) AsToolResult() (ToolResult, error) + func (t Input_1_Item) MarshalJSON() ([]byte, error) + type ModelCapability string + const Chat + const Classification + const Code + const Embedding + const FineTuning + const FunctionCall + const Reasoning + const Vision + func (e ModelCapability) Valid() bool + type ModelInfo struct + Capabilities []ModelCapability + EmbeddingDimension *int + Id string + Label string + MaxTokens *int + Provider string + TokenModifier float32 + type Options struct + FrequencyPenalty *float32 + MaxTokens *int + PresencePenalty *float32 + Seed *int + Temperature *float32 + TopK *int + TopP *float32 + type ProviderInfo struct + Id string + Models []ModelInfo + type ResponseFormat struct + Description *string + Name string + Schema map[string]interface{} + type Tool struct + func (t *Tool) FromExternalTool(v ExternalTool) error + func (t *Tool) FromWebSearchTool(v WebSearchTool) error + func (t *Tool) MergeExternalTool(v ExternalTool) error + func (t *Tool) MergeWebSearchTool(v WebSearchTool) error + func (t *Tool) UnmarshalJSON(b []byte) error + func (t Tool) AsExternalTool() (ExternalTool, error) + func (t Tool) AsWebSearchTool() (WebSearchTool, error) + func (t Tool) Discriminator() (string, error) + func (t Tool) MarshalJSON() ([]byte, error) + func (t Tool) ValueByDiscriminator() (interface{}, error) + type ToolCallRequest struct + Arguments json.RawMessage + CallId string + Name string + type ToolResult struct + CallId string + Name string + Output map[string]interface{} + type WebSearchTool struct + Type WebSearchToolType + type WebSearchToolType string + const WebSearch + func (e WebSearchToolType) Valid() bool