v0.10.5

Message Types

Last updated


Fields of the request message, tool, and response output types.

Types


TypeFields
MessageRole, Content (string or []ContentPart), ReasoningContent, ToolCalls, ToolCallID
ContentPartType (text / image_url), Text, ImageURL
ImageURLURL (accepts a data URI), Detail
Tool / ToolFunctionType, Function{Name, Description, Parameters json.RawMessage}
ToolCallID, Type, Function (ToolCallFunction{Name, Arguments}), ThoughtSignature
OutputChoices, Usage, ServiceTier, Error
OutputChoicesMessage, Delta, FinishReason
UsageInput, Output, CacheCreate, CacheRead; custom UnmarshalJSON


中文