Versions in this module Expand all Collapse all v0 v0.1.0 Aug 9, 2026 Changes in this version + const ContentTypeInputFile + const ContentTypeInputImage + const ContentTypeInputText + const ContentTypeOutputText + const ContentTypeRefusal + func DataURL(mime, data string) string + func IsTextMIME(mime string) bool + func MIMEFromDataURL(u string) string + func NormalizeMIME(mime string) string + type Annotation struct + FileID string + Text string + Type string + URL *URLAnnotation + type ContentPart struct + Annotations []Annotation + FileData *FileData + ImageURL *ImageURL + Refusal string + Text string + Type string + type FileData struct + Data string + FileID string + Filename string + MIMEType string + URL string + type ImageURL struct + Detail string + URL string + type ItemStatus string + const StatusCompleted + const StatusInProgress + const StatusIncomplete + type LLMResponseChunk struct + Content string + Error error + InputTokens int + IsComplete bool + MessageId string + OutputTokens int + ReasoningTokens int + ToolCalls []ToolCall + TurnId string + Type StreamEventType + type Message struct + Content string + ContentParts []ContentPart + MessageID string + Role MessageRole + StructuredOutput any + ToolCallID string + ToolCalls []ToolCall + func (m *Message) MIMETypes() []string + type MessageRole string + const RoleAssistant + const RoleDeveloper + const RoleReasoning + const RoleSystem + const RoleTool + const RoleUser + type StreamEvent struct + Content string + Data []byte + Error error + MessageID string + ToolCalls []ToolCall + TurnID string + Type StreamEventType + type StreamEventType string + const StreamEventComplete + const StreamEventError + const StreamEventFunctionCall + const StreamEventInterrupt + const StreamEventMessage + const StreamEventPlanUpdate + const StreamEventReasoning + const StreamEventToolResult + const StreamEventToolUpdate + type Todo struct + Description string + Status TodoStatus + Title string + type TodoStatus string + const TodoStatusCompleted + const TodoStatusInProgress + const TodoStatusPending + type ToolCall struct + Arguments string + CallID string + Category ToolCategory + ID string + Name string + Namespace string + Status string + Title string + Type string + func (tc ToolCall) Key() string + func (tc ToolCall) WireID() string + type ToolCategory string + const ToolCategoryDelete + const ToolCategoryEdit + const ToolCategoryExecute + const ToolCategoryFetch + const ToolCategoryMove + const ToolCategoryRead + const ToolCategorySearch + const ToolCategoryThink + type URLAnnotation struct + Title string + URL string