v0.10.5

訊息型別

最後更新


請求訊息、工具與回應輸出型別的欄位。

型別


型別欄位
MessageRole、Content(string 或 []ContentPart)、ReasoningContent、ToolCalls、ToolCallID
ContentPartType(text / image_url)、Text、ImageURL
ImageURLURL(接受 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;自訂 UnmarshalJSON

相關頁面


EN