Versions in this module Expand all Collapse all v0 v0.0.4 Nov 26, 2026 Changes in this version + const ErrCodeCapabilityMismatch + const ErrCodeMCPAuthStatic + const ErrCodeNeedSync + const ErrCodeProviderAuthExpired + const ErrCodeProviderAuthInvalid + const ErrCodeUnknownCommand + const ExecCommandResultType + const ExecHeaderType + const ExecResultCanceled + const ExecResultCompleted + const ExecResultFailed + const ExecResultNeedsInput + const ExecResultType + const ForkDirectionFrom + const ForkDirectionInto + const HeaderCWD + const HeaderSubscriberID + const LargeContextTokens + const MCPAllowPolicyKindPrompt + const MCPAllowPolicyKindResource + const MCPAllowPolicyKindTool + const MCPAuthAPIKey + const MCPAuthBasic + const MCPAuthBearer + const MCPAuthClientCredentials + const MCPAuthEnterprise + const MCPAuthOAuth2 + const MaxExecFrameBytes + const MediaExtraByteSize + const MediaExtraDisplayName + const MediaExtraPages + const MediaExtraSHA256 + const TopicSessions + const TurnStatusCanceled + const TurnStatusDone + const TurnStatusFailed + var ErrExecFrameTooLarge = errors.New("api: exec frame exceeds maximum size") + func CleanMCPError(errText string) string + func MCPSchemeUsesOAuth(scheme string) bool + func MCPServerWarning(server MCPServer) string + func MCPServerWarnings(servers []MCPServer) []string + func SessionStreamTopic(sessionID string) string + func WriteEvent(w io.Writer, ev Event) error + func WriteNDJSON(w io.Writer, v any) error + type APIError struct + Code string + Message string + MissingModalities []string + Model string + StatusCode int + func (e *APIError) Error() string + type ActionType string + const ActionDelete + const ActionExec + const ActionNet + const ActionRead + const ActionUnknown + const ActionWrite + func (a ActionType) Severity() int + func (a ActionType) String() string + type Agent struct + Context ContextBreakdown + Description string + DisplayName string + Models []string + Name string + Thinking *ThinkingSetting + Triggers []string + func (a Agent) CanHumanTrigger() bool + type AgentChange struct + From string + To string + type AliasAssignment struct + Alias string + Duplicate bool + Duplicates []string + Model string + Provider string + WorkspaceDefault bool + type Argument struct + Default string + Description string + Name string + Required bool + type AskQuestionInput struct + Description string + Questions []Question + Title string + type AskQuestionOutput struct + Answers []QuestionAnswer + Canceled bool + type AssignModelAliasesRequest struct + Aliases []string + DefaultHere bool + Model string + Provider string + type AssignModelAliasesResponse struct + Aliases []AliasAssignment + Providers []WorkspaceProvider + type Attachment struct + AllowProhibited bool + EndLine int + Kind AttachmentKind + Media *Media + Ref string + StartLine int + Target string + type AttachmentKind string + const AttachmentFile + const AttachmentMCP + const AttachmentMedia + const AttachmentRule + const AttachmentSkill + const AttachmentSymbol + type BashInput struct + BypassSandbox bool + Command string + Description string + Dir string + RunInBackground bool + WaitMs int + type BashOutput struct + DurationMs int64 + ExitCode int + Output string + Status string + TaskID string + type Block struct + Media *Media + Signature string + Text string + ToolCall *ToolCall + Type BlockType + type BlockType string + const BlockAudio + const BlockDocument + const BlockImage + const BlockReasoning + const BlockText + const BlockToolCall + type CacheBrokenRecord struct + CurrCached int + InputTokens int + PrevCached int + type ChangeKind string + const KindCreated + const KindDeleted + const KindModified + type ChangeSource string + const SourceAgent + const SourceExternal + type Chunk struct + Content []Block + Done bool + ID string + Usage *ChunkUsage + type ChunkEvent struct + Chunk Chunk + SessionID string + func (ChunkEvent) EventType() string + type ChunkUsage struct + Input int + Output int + type Command struct + Agent string + ArgumentHint string + Arguments []Argument + Context string + Description string + DisplayName string + Models []string + Name string + Namespace string + Rules []string + Skills []string + Tools []string + type CommandRecord struct + Command string + DurationMs int64 + ExitCode int + Output string + type CommandStartedEvent struct + Command string + ID string + SessionID string + func (CommandStartedEvent) EventType() string + type CompactRequest struct + Focus string + type CompactedRecord struct + AfterTokens int + BeforeTokens int + DurationMs int64 + Focus string + Summary string + Trigger string + type CompactionStartedEvent struct + Focus string + ID string + SessionID string + Trigger string + func (CompactionStartedEvent) EventType() string + type CompletedEvent struct + SessionID string + func (CompletedEvent) EventType() string + type ConnectedEvent struct + SubscriberID string + Topics []string + func (ConnectedEvent) EventType() string + type ContextBreakdown struct + AgentResponses int + ContextFiles int + CustomTools int + MCPTools int + Rules int + Skills int + Subagents int + Summary int + SystemPrompt int + SystemTools int + ToolCalls int + UserMessages int + type ContextState struct + Breakdown ContextBreakdown + CachedTokens int + Compactions int + FreeTokens int + InputTokens int + LastCompacted time.Time + MaxTokens int + OutputLimit int + OutputTokens int + ReserveTokens int + TriggerTokens int + UsedTokens int + type ContextUpdatedEvent struct + Context ContextState + SessionID string + func (ContextUpdatedEvent) EventType() string + type CreateProviderRequest struct + APIKey string + AuthEnv string + AuthType string + DefaultModel string + Endpoint string + Models []ProviderModelRequest + Name string + Scope string + Type string + type CreateSessionRequest struct + Config SessionConfig + ID string + Title string + type DecisionKind string + const DecisionAllowOnce + const DecisionAllowSession + const DecisionReject + type DiffResponse struct + Diff string + EntryID string + Path string + type DisabledReason string + const DisabledByManifest + const DisabledByWorkspacePolicy + type DownloadInput struct + Force bool + Headers map[string]string + MaxBytes int64 + Path string + TimeoutMs int + URL string + type DownloadOutput struct + AfterHash string + BeforeHash string + BytesWritten int + ContentType string + Created bool + IsBinary bool + Path string + StatusCode int + URL string + type EditInput struct + Force bool + NewText string + OldText string + Path string + ReplaceAll bool + type EditOutput struct + Additions int + AfterHash string + BeforeHash string + Deletions int + Diff string + Path string + Replacements int + type EffortChange struct + From string + To string + type EnterPlanModeInput struct + type EnterPlanModeOutput struct + AlreadyActive bool + Instructions string + Mode string + PlansDir string + type EntryAddedEvent struct + Entry TimelineEntry + SessionID string + func (EntryAddedEvent) EventType() string + type ErrorEvent struct + Code string + Error string + Provider string + SessionID string + func (ErrorEvent) EventType() string + type ErrorResponse struct + Code string + Message string + MissingModalities []string + Model string + type Event struct + ID string + Payload EventPayload + Topic string + Type EventType + func (e *Event) UnmarshalJSON(data []byte) error + type EventPayload interface + EventType func() string + type EventType string + const EventChunk + const EventCommandStarted + const EventCompactionStarted + const EventCompleted + const EventConnected + const EventContextUpdated + const EventEntryAdded + const EventError + const EventPermissionRequested + const EventPlanReviewRequested + const EventQuestionRequested + const EventQueueUpdated + const EventQuotaUpdated + const EventSessionCreated + const EventSessionDeleted + const EventSessionUpdated + const EventStatusChanged + const EventTaskUpdated + const EventTodosUpdated + const EventUsageUpdated + type ExecCommandResultFrame struct + Command string + Data any + Error string + OK bool + Output string + Type string + type ExecFrameReader struct + func NewExecFrameReader(r io.Reader) *ExecFrameReader + func (r *ExecFrameReader) Next(v any) error + func (r *ExecFrameReader) NextEvent() (Event, error) + func (r *ExecFrameReader) NextInputFrame() (ExecInputFrame, error) + type ExecHeaderFrame struct + Config SessionConfig + DaemonVer string + Model *Model + SandboxMode SandboxMode + SessionID string + Type string + Workspace string + type ExecInputFrame struct + Config *UpdateSessionRequest + Content string + Permission *PermissionDecision + PlanReview *PlanReviewDecision + Question *QuestionResponse + Send *SendRequest + SessionID string + Type ExecInputType + func (f ExecInputFrame) SendPayload() *SendRequest + type ExecInputType string + const ExecInputCancel + const ExecInputClose + const ExecInputConfig + const ExecInputPermission + const ExecInputPlanReview + const ExecInputQuestion + const ExecInputSend + type ExecResult struct + Changes []FileChange + Error string + SessionID string + Status string + Text string + Type string + Usage *SessionUsage + type ExecutableConfigSummary struct + CustomTools []string + Decisions []string + HasEnv bool + MCPServers []string + type ExitPlanModeInput struct + Path string + type ExitPlanModeOutput struct + Approved bool + Feedback string + Mode string + PlanPath string + type FileChange struct + Additions int + AfterHash string + BeforeHash string + Deletions int + ID string + Kind ChangeKind + MessageID string + Path string + Source ChangeSource + Timestamp time.Time + Tool string + ToolCallID string + TurnID string + type ForkRecord struct + Direction string + SessionID string + Title string + type ForkSessionRequest struct + Title string + type GlobInput struct + Ignore []string + IncludeHidden bool + Limit int + Path string + Pattern string + type GlobOutput struct + Matches []string + Path string + Pattern string + Truncated bool + type GrepInput struct + CaseInsensitive bool + ContextLines int + Include string + IncludeHidden bool + Limit int + Path string + Pattern string + type GrepMatch struct + After []string + Before []string + Column int + Line int + Path string + Text string + type GrepOutput struct + Matches []GrepMatch + Pattern string + Truncated bool + type HealthResponse struct + PID int + StartedAt time.Time + Version string + Workspaces []string + type InitWorkspaceRequest struct + APIKey string + AuthEnv string + AuthType string + CWD string + DefaultMode PermissionMode + DefaultModels map[string]string + DisabledMCPs []string + DisabledTools []string + Endpoint string + ProjectName string + Provider string + Scope string + type InitWorkspaceResponse struct + SkippedPresetAliases []SkippedPresetAlias + Status string + type InvokeAgentInput struct + Agent string + Model string + Prompt string + Title string + Workspace string + type InvokeAgentOutput struct + Agent string + Message string + Model string + ModelLabel string + SessionID string + Status string + Title string + WorkDir string + type ListFilesRequest struct + IncludeHidden *bool + Limit int + Query string + SessionID string + type LoadRuleInput struct + Rule string + type LoadRuleOutput struct + Instructions string + Path string + Priority int + Rule string + Truncated bool + func (o LoadRuleOutput) TextContent() string + type LoadSkillInput struct + Arguments map[string]string + Skill string + type LoadSkillOutput struct + Instructions string + Path string + Skill string + Tools []string + Truncated bool + func (o LoadSkillOutput) TextContent() string + func (o LoadSkillOutput) ToolContent() message.Content + type LsEntry struct + IsDir bool + Name string + Path string + Size int64 + type LsInput struct + Ignore []string + IncludeHidden bool + Limit int + MaxDepth int + Path string + Recursive bool + type LsOutput struct + Entries []LsEntry + Path string + Truncated bool + type MCPAllowPolicyRequest struct + Kind string + Value string + type MCPAuthCallbackRequest struct + CallbackURL string + type MCPAuthResponse struct + AuthURL string + Status MCPStatus + type MCPPromptArgument struct + Description string + Name string + Required bool + Title string + type MCPPromptMessage struct + Role Role + Text string + type MCPPromptRequest struct + AllowProhibited bool + Args map[string]string + type MCPPromptResponse struct + Description string + Messages []MCPPromptMessage + type MCPPromptSummary struct + Allowed bool + Arguments []MCPPromptArgument + Description string + Name string + Title string + type MCPResourceRequest struct + AllowProhibited bool + URI string + type MCPResourceResponse struct + MIMEType string + Text string + URI string + type MCPResourceSummary struct + Allowed bool + Description string + MIMEType string + Name string + Size int64 + Title string + URI string + type MCPServer struct + AuthType string + AuthURL string + Command []string + Description string + DisabledBy DisabledReason + DisplayName string + Enabled bool + Endpoint string + Error string + Name string + Namespace string + Path string + Prompts []MCPPromptSummary + Resources []MCPResourceSummary + Scope string + Status MCPStatus + Tools []MCPToolSummary + Transport string + type MCPStatus string + const MCPStatusAuthRequired + const MCPStatusConnected + const MCPStatusConnecting + const MCPStatusDisconnected + const MCPStatusError + type MCPToolSummary struct + Allowed bool + Annotations ToolAnnotation + Description string + InputSchema map[string]any + Name string + OutputSchema map[string]any + RawName string + type ManageAgentsAgent struct + Agent string + Error string + SessionID string + Status string + Title string + WorkDir string + type ManageAgentsInput struct + Action string + Agent string + Limit int + Message string + Provider string + Query string + SessionID string + type ManageAgentsModel struct + Aliases []string + Attachment bool + ContextLimit int + Description string + ID string + Name string + Provider string + StructuredOutput bool + Tools bool + type ManageAgentsOutput struct + Agent string + Agents []ManageAgentsAgent + Message string + Models []ManageAgentsModel + Output string + SessionID string + Status string + Title string + WorkDir string + type Media struct + ByteSize int64 + DisplayName string + MIMEType string + Pages string + SHA256 string + type Message struct + Attachments []Attachment + Content []Block + CreatedAt time.Time + ID string + IsError bool + Name string + PermissionReview *PermissionReview + Role Role + StructuredContent json.RawMessage + ToolCallID string + type MetricsAggregate struct + Func string + Metric string + type MetricsFilter struct + Agent string + Attrs map[string]string + IncludeChildren bool + SessionID string + Status []string + TurnIDs []string + WorkspaceRoot string + type MetricsQuery struct + Aggregates []MetricsAggregate + Bucket string + Filter MetricsFilter + GroupBy []string + Kind string + Since time.Time + Until time.Time + type MetricsResult struct + Rows []MetricsRow + type MetricsRow struct + Bucket time.Time + Count int64 + Group map[string]string + Values map[string]int64 + type ModeChange struct + From PermissionMode + To PermissionMode + type Model struct + Aliases []string + Capabilities ModelCapabilities + ContextLimit int + Description string + ID string + Label string + Name string + OutputLimit int + Pricing *ModelPricing + Provider string + QuotaBilled bool + Thinking []ThinkingCapability + ThinkingDefault *ThinkingSetting + type ModelCapabilities struct + Attachment *bool + Completion *bool + Decision *bool + Dimensions []int + Embedding *bool + InputModalities []string + OutputModalities []string + StructuredOutput *bool + Temperature *bool + Tools *bool + func (c ModelCapabilities) SupportsCompletion() bool + type ModelChange struct + Effort string + From string + To string + type ModelPricing struct + CacheRead float64 + CacheWrite float64 + Input float64 + Output float64 + Reasoning float64 + Tiers []ModelPricingTier + type ModelPricingTier struct + CacheRead float64 + CacheWrite float64 + ConditionSize int + ConditionType string + Input float64 + Label string + Output float64 + Reasoning float64 + type ModelQuota struct + Account string + Buckets []QuotaBucket + Model string + Provider string + func (q ModelQuota) Bottleneck() (QuotaBucket, bool) + type PermissionDecision struct + Feedback string + GrantPattern string + Kind DecisionKind + RequestID string + Scope PermissionScope + ToolCallID string + type PermissionEffect string + const EffectAllow + const EffectDeny + type PermissionMode string + const ModeAcceptEdits + const ModeAsk + const ModeAuto + const ModeDefault + const ModePlan + func (m PermissionMode) IsValid() bool + func (m PermissionMode) String() string + type PermissionRecord struct + Decision PermissionDecision + Request PermissionRequest + Review *PermissionReview + type PermissionRequest struct + Action ActionType + BypassSandbox bool + Diff string + GrantPatterns []string + ID string + Safety SafetyLevel + Summary string + Target string + ToolCallID string + ToolName string + Unsandboxed bool + type PermissionRequestedEvent struct + Permissions []PermissionRequest + SessionID string + func (PermissionRequestedEvent) EventType() string + type PermissionReview struct + Confidence float64 + DecisionScope string + LatencyMs int64 + Model string + Probability float64 + RequestID string + RubricDigest string + Source string + Threshold float64 + Verdict string + type PermissionRuleRequest struct + Effect PermissionEffect + Rule string + Scope PermissionScope + type PermissionScope string + const ScopeGlobal + const ScopeProject + const ScopeSession + type Permissions struct + Allow []string + DefaultMode PermissionMode + Deny []string + Schema int + func (p Permissions) Clone() Permissions + type PermissionsResponse struct + Global Permissions + Project Permissions + type PlanReviewDecision struct + Approved bool + Canceled bool + Feedback string + Mode PermissionMode + RequestID string + ToolCallID string + func (d *PlanReviewDecision) Clone() *PlanReviewDecision + type PlanReviewRecord struct + Decision PlanReviewDecision + Request PlanReviewRequest + type PlanReviewRequest struct + Content string + ID string + Path string + ToolCallID string + func (r *PlanReviewRequest) Clone() *PlanReviewRequest + type PlanReviewRequestedEvent struct + PlanReviews []PlanReviewRequest + SessionID string + func (PlanReviewRequestedEvent) EventType() string + type PreviewSessionRequest struct + Config SessionConfig + type ProviderAuthCallbackRequest struct + CallbackURL string + type ProviderAuthRequest struct + Provider string + type ProviderAuthResponse struct + Account string + AuthURL string + Error string + Provider string + Status string + type ProviderCatalogEntry struct + Capabilities ModelCapabilities + ContextLimit int + Description string + ID string + Listed bool + Name string + OutputLimit int + Pricing *ModelPricing + type ProviderModelInfo struct + Aliases []string + Context int + ID string + Label string + Name string + Output int + type ProviderModelRequest struct + Aliases []string + Context int + ID string + Label string + Name string + Output int + type ProviderQuotaSnapshot struct + Account string + Buckets map[string]QuotaBucket + CollectedAt time.Time + Models map[string][]string + Provider string + type ProviderSummary struct + Account string + AuthEnv string + AuthType string + BrowserAuthLabel string + DefaultModel string + DisplayName string + HasKey bool + Models []string + Name string + Scope string + Status string + type Question struct + Description string + Label string + Options []QuestionOption + Question string + Type string + type QuestionAnswer struct + Confirmed *bool + Question string + Selected []string + Text string + type QuestionOption struct + Description string + ID string + Label string + type QuestionRecord struct + Request QuestionRequest + Response QuestionResponse + type QuestionRequest struct + Description string + ID string + Questions []Question + Title string + ToolCallID string + func (r *QuestionRequest) Clone() *QuestionRequest + type QuestionRequestedEvent struct + Questions []QuestionRequest + SessionID string + func (QuestionRequestedEvent) EventType() string + type QuestionResponse struct + Answers []QuestionAnswer + Canceled bool + RequestID string + ToolCallID string + func (r *QuestionResponse) Clone() *QuestionResponse + type QuestionType string + const QuestionTypeConfirm + const QuestionTypeMulti + const QuestionTypeSingle + const QuestionTypeText + type QueueItem struct + Command string + Compact *CompactRequest + CreatedAt time.Time + ID string + Kind QueueKind + Message *Message + type QueueKind string + const QueueKindCommand + const QueueKindCompact + const QueueKindMessage + const QueueKindSubagent + const QueueKindTask + type QueueUpdatedEvent struct + Queue []QueueItem + SessionID string + func (QueueUpdatedEvent) EventType() string + type QuotaBucket struct + ID string + Limit float64 + Overage float64 + RemainingFraction float64 + ResetAt *time.Time + Scope string + Unit QuotaUnit + Unlimited bool + Used float64 + Window time.Duration + func (b QuotaBucket) Exhausted() bool + func (b QuotaBucket) Remaining() float64 + type QuotaSnapshotResponse struct + Providers []ProviderQuotaSnapshot + type QuotaUnit string + const QuotaUnitCredits + const QuotaUnitPercent + const QuotaUnitRequests + const QuotaUnitTokens + type QuotaUpdatedEvent struct + Quota ModelQuota + SessionID string + func (QuotaUpdatedEvent) EventType() string + type ReadMCPResourceInput struct + Server string + URI string + type ReadMCPResourceOutput struct + MimeType string + Server string + Text string + Truncated bool + URI string + type RemoveInput struct + Force bool + Path string + type RemoveOutput struct + BeforeHash string + Deletions int + Diff string + Path string + type RevertRequest struct + Before bool + EntryID string + Force bool + Path string + type Role string + const RoleAssistant + const RoleSystem + const RoleTool + const RoleUser + type Rule struct + Description string + DisplayName string + Instructions string + Name string + Namespace string + Path string + Priority int + Scope string + Tokens int + Triggers RuleTriggers + type RuleRecord struct + Matched string + Path string + Rule string + Trigger string + type RuleTriggers struct + Always bool + Decision string + Globs []string + Keywords []string + Tools []string + UseWhen string + type SafetyLevel string + const SafetyOutside + const SafetySafe + const SafetyUnknown + const SafetyUnsafe + func (s SafetyLevel) Severity() int + func (s SafetyLevel) String() string + type SandboxAvailability struct + Available bool + Backend string + Error string + Remediation string + type SandboxFilesystemSettings struct + AllowRead []string + AllowWrite []string + DenyRead []string + DenyWrite []string + func (s SandboxFilesystemSettings) Clone() SandboxFilesystemSettings + type SandboxMode string + const SandboxLocal + const SandboxNative + func (m SandboxMode) IsValid() bool + func (m SandboxMode) String() string + type SandboxNetworkMode string + const SandboxNetworkAllowlist + const SandboxNetworkDisabled + const SandboxNetworkOpen + func (m SandboxNetworkMode) IsValid() bool + func (m SandboxNetworkMode) String() string + type SandboxNetworkSettings struct + AllowedDomains []string + DeniedDomains []string + Mode SandboxNetworkMode + func (s SandboxNetworkSettings) Clone() SandboxNetworkSettings + type SandboxResolvedPaths struct + AllowRead []string + AllowWrite []string + DenyRead []string + DenyWrite []string + WorkDir string + type SandboxResponse struct + Availability SandboxAvailability + Effective SandboxSettings + Global SandboxSettings + Project SandboxSettings + ResolvedPaths SandboxResolvedPaths + Restricted bool + type SandboxSettings struct + AllowUnsandboxed *bool + AutoAllowBash *bool + ExcludedCommands []string + FailIfUnavailable *bool + Filesystem SandboxFilesystemSettings + Mode SandboxMode + Network SandboxNetworkSettings + Schema int + func (s SandboxSettings) Clone() SandboxSettings + type SendRequest struct + Attachments []Attachment + Blocks []Block + Command string + Compact *CompactRequest + Content string + Decision *PermissionDecision + ID string + PlanReview *PlanReviewDecision + Question *QuestionResponse + type Session struct + Activity string + CommandDelegated bool + Config SessionConfig + Context ContextState + CreatedAt time.Time + Diagnostics []SessionDiagnostic + ForkedFrom string + ID string + Model *Model + ParentID string + PendingPermissions []PermissionRequest + PendingPlanReviews []PlanReviewRequest + PendingQuestions []QuestionRequest + Queue []QueueItem + SandboxMode SandboxMode + Status SessionStatus + Subagents []Session + Tasks []Task + Title string + Todos []TodoItem + UpdatedAt time.Time + WorkDir string + type SessionConfig struct + Agent string + Mode PermissionMode + Model string + Sandbox SandboxMode + Thinking *ThinkingSetting + type SessionCreatedEvent struct + Session Session + Workspace string + func (SessionCreatedEvent) EventType() string + type SessionDeletedEvent struct + SessionID string + Workspace string + func (SessionDeletedEvent) EventType() string + type SessionDiagnostic struct + Code string + Message string + Setting string + type SessionPreview struct + Config SessionConfig + Diagnostics []SessionDiagnostic + Model *Model + type SessionStatus string + const StatusCompacting + const StatusExecuting + const StatusGenerating + const StatusIdle + const StatusThinking + const StatusWaitingPermission + const StatusWaitingPlanReview + const StatusWaitingQuestion + type SessionUpdatedEvent struct + Session Session + Workspace string + func (SessionUpdatedEvent) EventType() string + type SessionUsage struct + Cache UsageCache + Changes UsageChanges + FirstAt time.Time + LastAt time.Time + Models []UsageGroup + Purposes []UsageGroup + Review *UsagePermissionReview + SessionID string + Tiers []UsageGroup + Tools []ToolUsage + Totals UsageGroup + type SetMCPEnabledRequest struct + Enabled bool + type SetProviderEnabledRequest struct + Enabled bool + type SetToolEnabledRequest struct + Enabled bool + type Skill struct + ArgumentHint string + Arguments []Argument + Description string + DisplayName string + Instructions string + Keywords []string + Name string + Namespace string + Scope string + Tokens int + Tools []string + UseWhen string + type SkippedPresetAlias struct + Alias string + ModelID string + Owner string + WorkspaceOverride bool + type StatusChangedEvent struct + SessionID string + Status SessionStatus + func (StatusChangedEvent) EventType() string + type SubscriptionRequest struct + Since string + Topics []string + type SubscriptionResponse struct + Topics []string + type Task struct + Backgrounded bool + Command string + DurationMs int64 + Error string + ExitCode int + FinishedAt time.Time + ID string + Kind string + LogPath string + StartedAt time.Time + Status TaskStatus + Title string + type TaskStatus string + const TaskStatusCanceled + const TaskStatusCompleted + const TaskStatusFailed + const TaskStatusPending + const TaskStatusRunning + type TaskUpdatedEvent struct + SessionID string + Task Task + func (TaskUpdatedEvent) EventType() string + type TasksInput struct + Action string + Input string + Limit int + TaskID string + type TasksOutput struct + ExitCode int + LogPath string + Message string + Output string + Status string + Tasks []TasksTask + type TasksResponse struct + Tasks []Task + type TasksTask struct + Command string + DurationMs int64 + Error string + ExitCode int + ID string + Kind string + LogPath string + Status string + Title string + type ThinkingCapability struct + Default string + IsDefault bool + Max int + Min int + Type string + Values []ThinkingValue + type ThinkingChange struct + From *ThinkingSetting + To *ThinkingSetting + type ThinkingSetting struct + Budget int + Effort string + Enabled bool + Type string + type ThinkingValue struct + Description string + Value string + type TimelineEntry struct + Agent *AgentChange + CacheBroken *CacheBrokenRecord + Command *CommandRecord + Compacted *CompactedRecord + CreatedAt time.Time + Effort *EffortChange + Forked *ForkRecord + ID string + Kind TimelineKind + Message *Message + Mode *ModeChange + Model *ModelChange + Permission *PermissionRecord + PlanReview *PlanReviewRecord + Question *QuestionRecord + Rule *RuleRecord + SessionID string + Thinking *ThinkingChange + TurnCompleted *TurnCompletedRecord + type TimelineKind string + const TimelineKindAgent + const TimelineKindCacheBroken + const TimelineKindCommand + const TimelineKindCompacted + const TimelineKindEffort + const TimelineKindForked + const TimelineKindInterrupted + const TimelineKindMessage + const TimelineKindMode + const TimelineKindModel + const TimelineKindPermission + const TimelineKindPlanReview + const TimelineKindQuestion + const TimelineKindRule + const TimelineKindThinking + const TimelineKindTurnCompleted + type TodoItem struct + ActiveText string + Content string + Status string + type TodoStatus string + const TodoStatusCompleted + const TodoStatusInProgress + const TodoStatusPending + func (s TodoStatus) IsValid() bool + type TodosInput struct + Todos []TodoItem + type TodosOutput struct + Completed int + InProgress int + Message string + Pending int + Todos []TodoItem + Total int + type TodosUpdatedEvent struct + SessionID string + Todos []TodoItem + func (TodosUpdatedEvent) EventType() string + type Tool struct + Annotations ToolAnnotation + Command []string + Description string + DisabledBy DisabledReason + DisplayName string + Enabled bool + InputSchema map[string]any + Name string + Namespace string + OutputSchema map[string]any + Scope string + Status ToolStatus + Tokens int + type ToolAnnotation struct + IsDangerous bool + IsIdempotent bool + IsOpenWorld bool + IsReadOnly bool + UserHint string + type ToolCall struct + Args map[string]any + ID string + Name string + type ToolSearchInput struct + Query string + type ToolSearchOutput struct + Tools []string + func (o ToolSearchOutput) ToolContent() message.Content + type ToolStatus string + const ToolStatusDeferred + const ToolStatusDenied + const ToolStatusDisabled + const ToolStatusEager + const ToolStatusInactive + type ToolUsage struct + Calls int64 + Canceled int64 + Denied int64 + DurationMS int64 + Errors int64 + LinesAdded int64 + LinesRemoved int64 + MaxDurationMS int64 + Tool string + type TrustFolderRequest struct + Path string + Scope string + type TrustStatus struct + Executables ExecutableConfigSummary + FingerprintChanged bool + IsTrusted bool + Path string + type TurnCompletedRecord struct + CostNano int64 + ElapsedMs int64 + InputTokens int64 + OutputTokens int64 + QuotaBilled bool + Status string + TurnID string + Unpriced bool + type UpdateProviderModelsRequest struct + DefaultModel string + DefaultSet bool + Models []ProviderModelRequest + type UpdateSandboxRequest struct + Scope PermissionScope + Settings SandboxSettings + type UpdateSessionRequest struct + Config SessionConfig + Force bool + Title string + type UsageCache struct + CacheReadTokens int64 + InputTokens int64 + LastMissAt time.Time + LastMissGapMS int64 + LastMissRecachedTokens int64 + Misses int64 + Rebuilds int64 + Requests int64 + func (c UsageCache) HitRate() float64 + type UsageChanges struct + Files int64 + LinesAdded int64 + LinesRemoved int64 + type UsageGroup struct + Calls int64 + CostCacheReadNano int64 + CostCacheWriteNano int64 + CostNano int64 + DurationMS int64 + Errors int64 + Key string + LargeContextCostNano int64 + QuotaCalls int64 + Tokens UsageTokens + UnpricedCalls int64 + type UsageGroupBy string + const UsageGroupByAgent + const UsageGroupByDay + const UsageGroupByModel + const UsageGroupByProvider + const UsageGroupByPurpose + const UsageGroupByTier + type UsagePermissionReview struct + Approved int64 + Deferred int64 + DurationMS int64 + Outcomes map[string]int64 + Reviews int64 + type UsageRequest struct + GroupBy UsageGroupBy + Scope UsageScope + Since time.Time + Until time.Time + type UsageScope string + const UsageScopeGlobal + const UsageScopeWorkspace + type UsageSession struct + Calls int64 + CostNano int64 + SessionID string + Title string + Workspace string + type UsageSummary struct + Changes UsageChanges + GroupBy UsageGroupBy + Groups []UsageGroup + Previous *UsageGroup + Scope UsageScope + Sessions int64 + Since time.Time + Tools []ToolUsage + TopSessions []UsageSession + Totals UsageGroup + Until time.Time + Workspaces []UsageGroup + type UsageTokens struct + CacheRead int64 + CacheWrite int64 + Input int64 + Output int64 + Reasoning int64 + func (t UsageTokens) Total() int64 + func (t UsageTokens) Uncached() int64 + type UsageUpdatedEvent struct + SessionID string + Usage SessionUsage + func (UsageUpdatedEvent) EventType() string + type VerifyProviderRequest struct + APIKey string + AuthEnv string + AuthType string + Endpoint string + Provider string + type VerifyProviderResponse struct + ErrorMessage string + ModelsCount int + Valid bool + Warning string + type ViewInput struct + Limit int + Offset int + Pages string + Path string + type ViewOutput struct + ByteSize int64 + Content string + EndLine int + Hash string + MimeType string + Modality string + Omitted bool + Pages string + Path string + StartLine int + TotalLines int + Truncated bool + func (o ViewOutput) ToolContent() message.Content + type WebFetchInput struct + Format string + Headers map[string]string + URL string + type WebFetchOutput struct + ContentType string + StatusCode int + Text string + URL string + type WebSearchInput struct + AllowedDomains []string + BlockedDomains []string + Limit int + Query string + type WebSearchOutput struct + Query string + Results []WebSearchResult + Truncated bool + func (o WebSearchOutput) TextContent() string + type WebSearchResult struct + Snippet string + Title string + URL string + type Workspace struct + CWD string + DefaultAgent string + DefaultModel *Model + IsRestricted bool + Name string + RootDir string + SandboxMode SandboxMode + SandboxWarnings []string + Warnings []string + type WorkspaceFile struct + Allowed bool + Dir string + IsDir bool + Name string + Path string + Recent bool + ShortPath string + type WorkspaceProvider struct + Account string + AuthEnv string + AuthType string + DefaultModel string + DisplayName string + Enabled bool + Endpoint string + HasKey bool + Models []ProviderModelInfo + Name string + Overridable bool + Path string + Scope string + Shadowed bool + SkippedPresetAliases []SkippedPresetAlias + Status string + Type string + Writable bool + type WorkspaceStatus struct + Executables ExecutableConfigSummary + FingerprintChanged bool + GlobalMCPs []string + GlobalProviders []ProviderSummary + HasAgentsMD bool + IsConfigured bool + IsTrusted bool + MissingCredentials []string + NeedsOnboarding bool + Path string + type WriteInput struct + Content string + Force bool + Path string + type WriteOutput struct + Additions int + AfterHash string + BeforeHash string + BytesWritten int + Created bool + Deletions int + Diff string + Path string