Versions in this module Expand all Collapse all v0 v0.1.15-preview.0 Jan 20, 2026 v0.1.14 Jan 19, 2026 Changes in this version + type Attachment struct + DisplayName string + Path string + Type AttachmentType + type AttachmentType string + const Directory + const File + type CompactionTokensUsed struct + CachedInput float64 + Input float64 + Output float64 + type Data struct + APICallID *string + AgentDescription *string + AgentDisplayName *string + AgentName *string + Arguments interface{} + Attachments []Attachment + CacheReadTokens *float64 + CacheWriteTokens *float64 + CompactionTokensUsed *CompactionTokensUsed + Content *string + Context *string + CopilotVersion *string + Cost *float64 + CurrentTokens *float64 + DeltaContent *string + Duration *float64 + Error *ErrorUnion + ErrorType *string + EventCount *float64 + HandoffTime *time.Time + HookInvocationID *string + HookType *string + InfoType *string + Initiator *string + Input interface{} + InputTokens *float64 + Intent *string + IsUserRequested *bool + Message *string + MessageID *string + MessagesLength *float64 + MessagesRemoved *float64 + MessagesRemovedDuringTruncation *float64 + Metadata *Metadata + Model *string + Name *string + NewModel *string + Output interface{} + OutputTokens *float64 + ParentToolCallID *string + PartialOutput *string + PerformedBy *string + PostCompactionTokens *float64 + PostTruncationMessagesLength *float64 + PostTruncationTokensInMessages *float64 + PreCompactionMessagesLength *float64 + PreCompactionTokens *float64 + PreTruncationMessagesLength *float64 + PreTruncationTokensInMessages *float64 + PreviousModel *string + Producer *string + ProviderCallID *string + QuotaSnapshots map[string]QuotaSnapshot + Reason *string + ReasoningID *string + RemoteSessionID *string + Repository *Repository + Result *Result + ResumeTime *time.Time + Role *Role + SelectedModel *string + SessionID *string + Source *string + SourceType *SourceType + Stack *string + StartTime *time.Time + Success *bool + Summary *string + SummaryContent *string + TokenLimit *float64 + TokensRemoved *float64 + TokensRemovedDuringTruncation *float64 + ToolCallID *string + ToolName *string + ToolRequests []ToolRequest + ToolTelemetry map[string]interface{} + Tools []string + TotalResponseSizeBytes *float64 + TransformedContent *string + TurnID *string + Version *float64 + type ErrorClass struct + Code *string + Message string + Stack *string + type ErrorUnion struct + ErrorClass *ErrorClass + String *string + func (x *ErrorUnion) MarshalJSON() ([]byte, error) + func (x *ErrorUnion) UnmarshalJSON(data []byte) error + type Metadata struct + PromptVersion *string + Variables map[string]interface{} + type QuotaSnapshot struct + EntitlementRequests float64 + IsUnlimitedEntitlement bool + Overage float64 + OverageAllowedWithExhaustedQuota bool + RemainingPercentage float64 + ResetDate *time.Time + UsageAllowedWithExhaustedQuota bool + UsedRequests float64 + type Repository struct + Branch *string + Name string + Owner string + type Result struct + Content string + type Role string + const Developer + const System + type SessionEvent struct + Data Data + Ephemeral *bool + ID string + ParentID *string + Timestamp time.Time + Type SessionEventType + func UnmarshalSessionEvent(data []byte) (SessionEvent, error) + func (r *SessionEvent) Marshal() ([]byte, error) + type SessionEventType string + const Abort + const AssistantIntent + const AssistantMessage + const AssistantMessageDelta + const AssistantReasoning + const AssistantReasoningDelta + const AssistantTurnEnd + const AssistantTurnStart + const AssistantUsage + const HookEnd + const HookStart + const PendingMessagesModified + const SessionCompactionComplete + const SessionCompactionStart + const SessionError + const SessionHandoff + const SessionIdle + const SessionInfo + const SessionModelChange + const SessionResume + const SessionStart + const SessionTruncation + const SessionUsageInfo + const SubagentCompleted + const SubagentFailed + const SubagentSelected + const SubagentStarted + const SystemMessage + const ToolExecutionComplete + const ToolExecutionPartialResult + const ToolExecutionStart + const ToolUserRequested + const UserMessage + type SourceType string + const Local + const Remote + type ToolRequest struct + Arguments interface{} + Name string + ToolCallID string