Versions in this module Expand all Collapse all v0 v0.2.0 Oct 16, 2026 v0.1.2 Oct 14, 2026 v0.1.1 Oct 14, 2026 v0.1.0 Oct 14, 2026retracted Changes in this version + const DefaultTimeout + const FrameAborted + const FrameApprovalRequest + const FrameChunk + const FrameConnected + const FrameDone + const FrameError + const FrameSessionStart + const FrameThinking + const FrameToolCall + const FrameToolResult + const Version + var ErrCircuitOpen = errors.New("circuit breaker is open") + var ErrDecode = errors.New("unexpected gateway response") + var ErrInvalidURL = errors.New("invalid gateway URL") + var ErrRateLimited = errors.New("client rate limit exceeded") + var ErrTimeout = errors.New("the gateway did not answer in time") + var ErrWebSocket = errors.New("websocket error") + func IsNotFound(err error) bool + func IsRateLimited(err error) bool + func IsTransient(err error) bool + func IsUnauthorized(err error) bool + func StatusCode(err error) int + type APIError struct + Body json.RawMessage + Message string + Status int + func (e *APIError) Error() string + type AdminResponse struct + Message string + Success bool + type AgentAPI struct + func (a AgentAPI) ListFiles(ctx context.Context, path string) (*FileListing, error) + func (a AgentAPI) MakeDir(ctx context.Context, path string) error + func (a AgentAPI) MovePath(ctx context.Context, from, to string) error + func (a AgentAPI) Personality(ctx context.Context, filename string) (*PersonalityFile, error) + func (a AgentAPI) PersonalityFiles(ctx context.Context) (*PersonalityFiles, error) + func (a AgentAPI) PersonalityTemplates(ctx context.Context, pc PersonalityContext) (*PersonalityTemplates, error) + func (a AgentAPI) ReadFile(ctx context.Context, path string) (*FileContent, error) + func (a AgentAPI) RemovePath(ctx context.Context, path string) error + func (a AgentAPI) Skills(ctx context.Context) (*AgentSkills, error) + func (a AgentAPI) WritePersonality(ctx context.Context, filename, content string, expectedMtimeMs *int64) (*PersonalityWritten, error) + type AgentCostStats struct + AgentAlias string + CachedInputTokens uint64 + CostUSD float64 + InputTokens uint64 + OutputTokens uint64 + RequestCount int + TotalTokens uint64 + type AgentOptions struct + Agents []string + ChannelTypes []string + Channels []string + KnowledgeBundles []string + MCPBundles []string + ModelProviders []string + RiskProfiles []string + RuntimeProfiles []string + SkillBundles []string + type AgentReply struct + Model string + Response string + type AgentSkills struct + Agent string + Dropped []json.RawMessage + Skills []json.RawMessage + type AliasSource string + const AliasAgents + const AliasChannels + const AliasKnowledgeBundles + const AliasMCPBundles + const AliasModelProviders + const AliasRiskProfiles + const AliasRuntimeProfiles + const AliasSkillBundles + const AliasTTSProviders + const AliasTranscriptionProviders + type Bound struct + AlreadyBound bool + Channel string + Group string + Saved bool + type CLITool struct + Category string + Name string + Path string + Version *string + type CanvasAPI struct + func (a CanvasAPI) Clear(ctx context.Context, id string) error + func (a CanvasAPI) Current(ctx context.Context, id string) (*CanvasFrame, error) + func (a CanvasAPI) History(ctx context.Context, id string) ([]CanvasFrame, error) + func (a CanvasAPI) List(ctx context.Context) ([]string, error) + func (a CanvasAPI) Publish(ctx context.Context, id, contentType, content string) (*CanvasFrame, error) + func (a CanvasAPI) Watch(ctx context.Context, id string) (*Feed, error) + type CanvasFrame struct + Content string + ContentType string + FrameID string + Timestamp string + type CatalogModelProvider struct + DisplayName string + Local bool + Name string + type CatalogModels struct + Live bool + Local bool + ModelProvider string + Models []string + Pricing map[string]ModelPricing + type Channel struct + Alias string + Compiled bool + Enabled bool + Health string + LastMessageAt *string + MessageCount int + Name string + OwningAgent *string + Readiness json.RawMessage + Status string + Type string + type ChannelsAPI struct + func (a ChannelsAPI) Bind(ctx context.Context, channelType, alias, identity string) (*Bound, error) + func (a ChannelsAPI) CreateRoom(ctx context.Context, channel, name, topic string, invites []string) (*CreatedRoom, error) + func (a ChannelsAPI) Invite(ctx context.Context, channel, room, user string) (*Participant, error) + func (a ChannelsAPI) List(ctx context.Context) ([]Channel, error) + func (a ChannelsAPI) Relink(ctx context.Context, channel string) (*Relinked, error) + func (a ChannelsAPI) RemoveMember(ctx context.Context, channel, room, user string) error + func (a ChannelsAPI) RoomMembers(ctx context.Context, channel, room string) ([]RoomMember, error) + func (a ChannelsAPI) Rooms(ctx context.Context, channel string) ([]RoomSummary, error) + func (a ChannelsAPI) Send(ctx context.Context, channel, to, content, threadID string) error + type ChatFrame struct + Args json.RawMessage + ArgumentsSummary string + Code string + Content string + Done *TurnResult + ID string + Message string + MessageCount int + Name string + Output json.RawMessage + Raw json.RawMessage + RequestID string + Resumed bool + SessionID string + TimeoutSecs uint64 + Tool string + Type string + type ChatOptions struct + Cwd string + Name string + SessionID string + type ChatSession struct + func (s *ChatSession) AnswerApproval(ctx context.Context, requestID, decision string) error + func (s *ChatSession) Ask(ctx context.Context, content string) (*TurnResult, error) + func (s *ChatSession) Close() error + func (s *ChatSession) MessageCount() int + func (s *ChatSession) NextFrame(ctx context.Context) (ChatFrame, error) + func (s *ChatSession) Resumed() bool + func (s *ChatSession) Send(ctx context.Context, content string) error + func (s *ChatSession) SessionID() string + type Client struct + func New(baseURL string, opts ...Option) (*Client, error) + func (c *Client) Agent(alias string) AgentAPI + func (c *Client) BaseURL() *url.URL + func (c *Client) Canvas() CanvasAPI + func (c *Client) Channels() ChannelsAPI + func (c *Client) Chat(ctx context.Context, alias string, opts ChatOptions) (*ChatSession, error) + func (c *Client) Config() ConfigAPI + func (c *Client) Cost() CostAPI + func (c *Client) Cron() CronAPI + func (c *Client) Events() EventsAPI + func (c *Client) Files() FilesAPI + func (c *Client) GoString() string + func (c *Client) Memory() MemoryAPI + func (c *Client) Pairing() PairingAPI + func (c *Client) Quickstart() QuickstartAPI + func (c *Client) Sessions() SessionsAPI + func (c *Client) Skills() SkillsAPI + func (c *Client) Sops() SopsAPI + func (c *Client) String() string + func (c *Client) System() SystemAPI + func (c *Client) WebAuthn() WebAuthnAPI + func (c *Client) Webhook() WebhookAPI + func (c *Client) WithToken(token string) *Client + type ComponentHealth struct + LastError *string + LastOK *string + RestartCount uint64 + Status string + UpdatedAt string + type ConfigAPI struct + func (a ConfigAPI) AgentOptions(ctx context.Context) (*AgentOptions, error) + func (a ConfigAPI) AliasValues(ctx context.Context, source AliasSource) ([]string, error) + func (a ConfigAPI) Catalog(ctx context.Context) ([]CatalogModelProvider, error) + func (a ConfigAPI) CatalogModels(ctx context.Context, modelProvider string) (*CatalogModels, error) + func (a ConfigAPI) CreateMapKey(ctx context.Context, path, key string) (*MapKeyResponse, error) + func (a ConfigAPI) DeleteMapKey(ctx context.Context, path, key string) (*MapKeyResponse, error) + func (a ConfigAPI) DeletePlan(ctx context.Context, path, key string) (*DeletePlan, error) + func (a ConfigAPI) Drift(ctx context.Context) ([]DriftEntry, error) + func (a ConfigAPI) Get(ctx context.Context, path string) (*PropValue, error) + func (a ConfigAPI) Init(ctx context.Context, section string) ([]string, error) + func (a ConfigAPI) List(ctx context.Context, prefix string) (*ConfigList, error) + func (a ConfigAPI) MapKeys(ctx context.Context, path string) ([]string, error) + func (a ConfigAPI) Migrate(ctx context.Context) (*MigrateResponse, error) + func (a ConfigAPI) Patch(ctx context.Context, ops []PatchOp, overrideDrift bool) (*PatchResponse, error) + func (a ConfigAPI) PendingReload(ctx context.Context) (bool, error) + func (a ConfigAPI) PropSchema(ctx context.Context, path string) (json.RawMessage, error) + func (a ConfigAPI) RefreshContextWindow(ctx context.Context, providerType, alias string) (uint64, error) + func (a ConfigAPI) RenameMapKey(ctx context.Context, path, from, to string) (*RenameResponse, error) + func (a ConfigAPI) Reset(ctx context.Context, path string) (*PropValue, error) + func (a ConfigAPI) Schema(ctx context.Context) (json.RawMessage, error) + func (a ConfigAPI) SectionItems(ctx context.Context, section string) (*SectionItems, error) + func (a ConfigAPI) Sections(ctx context.Context) ([]ConfigSection, error) + func (a ConfigAPI) SelectSectionItem(ctx context.Context, section, key, alias string) (*SelectedItem, error) + func (a ConfigAPI) Set(ctx context.Context, path string, value any, comment string) (*PropValue, error) + func (a ConfigAPI) Snapshot(ctx context.Context) (json.RawMessage, error) + func (a ConfigAPI) Status(ctx context.Context) (*ConfigStatus, error) + func (a ConfigAPI) Templates(ctx context.Context) ([]TemplateEntry, error) + type ConfigEntry struct + Category string + EnumVariants []string + IsEnvOverridden bool + IsSecret bool + Kind string + Multiline bool + Path string + Populated bool + Section *string + Tab string + TypeHint string + Value json.RawMessage + type ConfigList struct + Drifted []DriftEntry + Entries []ConfigEntry + type ConfigSection struct + Completed bool + CostCategory string + Group string + HasPicker bool + Help string + IsQuickstart bool + Key string + Label string + Ready bool + Shape *string + type ConfigStatus struct + HasPartialState bool + Missing []string + NeedsQuickstart bool + Reason string + type CostAPI struct + func (a CostAPI) Agent(ctx context.Context, agent string) (*CostSummary, error) + func (a CostAPI) Summary(ctx context.Context, from, to string) (*CostSummary, error) + type CostSummary struct + ByAgent map[string]AgentCostStats + ByModel map[string]ModelStats + DailyCostUSD float64 + MonthlyCostUSD float64 + RequestCount int + SessionCostUSD float64 + TotalTokens uint64 + type CreatedRoom struct + Channel string + Outcome string + Participants []Participant + Room string + type CronAPI struct + func (a CronAPI) Create(ctx context.Context, job *NewCronJob) (*CronJob, error) + func (a CronAPI) Delete(ctx context.Context, id string) error + func (a CronAPI) List(ctx context.Context) ([]CronJob, error) + func (a CronAPI) Run(ctx context.Context, id string) (*CronRunResult, error) + func (a CronAPI) Runs(ctx context.Context, id string, limit int) ([]CronRun, error) + func (a CronAPI) Settings(ctx context.Context) (*CronSettings, error) + func (a CronAPI) Update(ctx context.Context, id string, patch *CronJobPatch) (*CronJob, error) + func (a CronAPI) UpdateSettings(ctx context.Context, settings *CronSettingsPatch) (*CronSettings, error) + type CronJob struct + AgentAlias string + AllowedTools []string + Command string + CreatedAt string + DeleteAfterRun bool + Delivery Delivery + Enabled bool + Expression string + ID string + JobType string + LastOutput *string + LastRun *string + LastStatus *string + Model *string + Name *string + NextRun string + Prompt *string + Schedule Schedule + SessionTarget string + ShellOutputFormat *string + Source string + UsesMemory bool + type CronJobPatch struct + Agent *string + ClearTz *bool + Command *string + Enabled *bool + Name *string + Prompt *string + Schedule *string + ShellOutputFormat *string + Tz *string + UsesMemory *bool + type CronRun struct + DurationMs *int64 + FinishedAt string + ID int64 + JobID string + Output *string + StartedAt string + Status string + type CronRunResult struct + DurationMs int64 + FinishedAt string + JobID string + Output string + StartedAt string + Status string + Success bool + type CronSettings struct + CatchUpOnStartup bool + Enabled bool + MaxRunHistory uint32 + type CronSettingsPatch struct + CatchUpOnStartup *bool + Enabled *bool + MaxRunHistory *uint32 + type Decision struct + Guidance string + Kind string + Reason string + Text string + func AmendDecision(text string) Decision + func ApproveDecision() Decision + func DenyDecision(reason string) Decision + func ReviseDecision(guidance string) Decision + func (d Decision) MarshalJSON() ([]byte, error) + type DeletePlan struct + Allowed bool + Blockers []ReferenceSite + CascadesOwnedState bool + Key string + LiveACPSessions *int + Path string + Scrubs []ReferenceSite + type Delivery struct + BestEffort bool + Channel *string + Mode string + ThreadID *string + To *string + func AnnounceDelivery(channel, to string) Delivery + func (d *Delivery) UnmarshalJSON(b []byte) error + type Device struct + Capabilities []string + DeviceType *string + ID string + IPAddress *string + LastSeen string + Name *string + PairedAt string + type Diagnostic struct + Category string + Message string + Severity string + type DoctorReport struct + Results []Diagnostic + Summary DoctorSummary + type DoctorSummary struct + Errors int + OK int + Warnings int + type DriftEntry struct + Drifted bool + InMemoryValue json.RawMessage + OnDiskValue json.RawMessage + Path string + Secret bool + type Event map[string]json.RawMessage + func (e Event) Decode(field string, out any) error + func (e Event) IsLog() bool + func (e Event) Kind() string + type EventStream struct + func (s *EventStream) Close() error + func (s *EventStream) Next() (Event, error) + type EventsAPI struct + func (a EventsAPI) History(ctx context.Context) ([]Event, error) + func (a EventsAPI) Subscribe(ctx context.Context) (*EventStream, error) + type Feed struct + func (f *Feed) Close() error + func (f *Feed) Next(ctx context.Context) (json.RawMessage, error) + type FileContent struct + Content string + Encoding string + IsText bool + Path string + Size uint64 + type FileEntry struct + Kind string + Name string + Protected bool + Size *uint64 + type FileListing struct + Entries []FileEntry + Path string + type FilesAPI struct + func (a FilesAPI) List(ctx context.Context, path string) (*FileListing, error) + func (a FilesAPI) MakeDir(ctx context.Context, path string) error + func (a FilesAPI) RemoveDir(ctx context.Context, path string) error + func (a FilesAPI) UploadImage(ctx context.Context, agent string, image []byte) (*Upload, error) + type Health struct + Paired bool + RequirePairing bool + Runtime json.RawMessage + Status string + type HealthSnapshot struct + Components map[string]ComponentHealth + PID uint32 + UpdatedAt string + UptimeSeconds uint64 + type Integration struct + Category string + CategoryLabel string + Description string + Name string + Status string + type IntegrationSetting struct + Category string + Enabled bool + Status string + type LogPage struct + AtEnd bool + AttributionKeys []string + DaemonStartedAt string + Events []json.RawMessage + NextCursorLineOffset *uint64 + type LogQuery struct + Action string + Attributes map[string]string + Category string + HideInternal bool + Limit int + Outcome string + Q string + SeverityMin int + SinceTS string + TraceID string + UntilLineOffset *uint64 + UntilTS string + type MapKeyResponse struct + Created bool + Key string + Path string + Warnings []string + type MemoryAPI struct + func (a MemoryAPI) Forget(ctx context.Context, key, agent string) (bool, error) + func (a MemoryAPI) Search(ctx context.Context, filter MemoryQuery) ([]MemoryEntry, error) + func (a MemoryAPI) Store(ctx context.Context, key, content, category, agent string) error + type MemoryEntry struct + AgentAlias *string + Category string + Content string + ID string + Importance *float64 + Key string + Kind json.RawMessage + Namespace *string + Pinned bool + Score *float64 + SessionID *string + SupersededBy *string + Timestamp string + type MemoryQuery struct + Agent string + Category string + Query string + Since string + Until string + type Middleware func(next http.RoundTripper) http.RoundTripper + type MigrateResponse struct + BackupPath *string + Migrated bool + SchemaVersion int + type ModelPricing struct + Completion *string + InputCacheRead *string + InputCacheWrite *string + Prompt *string + type ModelStats struct + CachedInputTokens uint64 + CostUSD float64 + InputTokens uint64 + Model string + OutputTokens uint64 + RequestCount int + TotalTokens uint64 + type NewCronJob struct + Agent string + AllowedTools *[]string + Command string + DeleteAfterRun *bool + Delivery *Delivery + JobType string + Model string + Name string + Prompt string + Schedule string + SessionTarget string + ShellOutputFormat string + Tz string + UsesMemory *bool + type Option func(*settings) + func WithCircuitBreaker(st gobreaker.Settings) Option + func WithConcurrencyLimit(max int) Option + func WithMiddleware(m ...Middleware) Option + func WithRateLimit(r rate.Limit, burst int) Option + func WithRetry(p RetryPolicy) Option + func WithTimeout(d time.Duration) Option + func WithToken(token string) Option + func WithTransport(rt http.RoundTripper) Option + type Paired struct + Message *string + Paired bool + Persisted bool + Token string + func (p Paired) GoString() string + func (p Paired) String() string + type PairingAPI struct + func (a PairingAPI) AdminCode(ctx context.Context) (*PairingCode, error) + func (a PairingAPI) AdminNewCode(ctx context.Context, rotate string) (*PairingCode, error) + func (a PairingAPI) Devices(ctx context.Context) ([]Device, error) + func (a PairingAPI) InitialCode(ctx context.Context) (*PairingCode, error) + func (a PairingAPI) NewCode(ctx context.Context) (string, error) + func (a PairingAPI) Pair(ctx context.Context, code, deviceName, deviceType string) (*Paired, error) + func (a PairingAPI) PairLegacy(ctx context.Context, code string) (*Paired, error) + func (a PairingAPI) RevokeDevice(ctx context.Context, id string) error + func (a PairingAPI) RotateDeviceToken(ctx context.Context, id string) (string, error) + func (a PairingAPI) SetCapabilities(ctx context.Context, capabilities []string) ([]string, error) + type PairingCode struct + Message *string + PairingCode *string + PairingRequired bool + Success bool + type Participant struct + Detail *string + Outcome string + User string + type PatchOp struct + Comment string + Op string + Path string + Value any + func AddOp(path string, value any) PatchOp + func CommentOp(path, comment string) PatchOp + func RemoveOp(path string) PatchOp + func ReplaceOp(path string, value any) PatchOp + func TestOp(path string, value any) PatchOp + type PatchOpResult struct + Comment *string + Op string + Path string + Populated *bool + Value json.RawMessage + type PatchResponse struct + Results []PatchOpResult + Saved bool + Warnings []ValidationWarning + type PendingApproval struct + Kind string + RunID string + SopName string + Step uint32 + TotalSteps uint32 + WaitingSince *string + type PersonalityContext struct + AgentName string + CommunicationStyle string + IncludeMemory *bool + Timezone string + UserName string + type PersonalityFile struct + Content *string + Exists bool + Filename string + MtimeMs *int64 + Truncated bool + type PersonalityFileEntry struct + Exists bool + Filename string + MtimeMs *int64 + Size uint64 + type PersonalityFiles struct + Files []PersonalityFileEntry + MaxChars int + type PersonalityTemplates struct + Files []json.RawMessage + Preset string + type PersonalityWritten struct + BytesWritten uint64 + MtimeMs *int64 + type ProcessStats struct + CPUPercent *float64 + NumCPUs uint32 + RSSBytes uint64 + SystemRAMTotalBytes uint64 + type PropValue struct + Path string + Populated *bool + Value json.RawMessage + Warnings []ValidationWarning + func (p *PropValue) IsSecret() bool + type QuickstartAPI struct + func (a QuickstartAPI) Apply(ctx context.Context, submission any) (json.RawMessage, error) + func (a QuickstartAPI) Dismiss(ctx context.Context, runID, surface, lastStep string) error + func (a QuickstartAPI) Fields(ctx context.Context, section, typeKey string) (json.RawMessage, error) + func (a QuickstartAPI) State(ctx context.Context) (json.RawMessage, error) + func (a QuickstartAPI) Validate(ctx context.Context, submission any) (json.RawMessage, error) + type ReferenceSite struct + Path string + RawValue string + type Relinked struct + Channel string + Note *string + Outcome string + Removed []string + RestartRequired bool + type RenameResponse struct + From string + Path string + Renamed bool + To string + Warnings []string + type RetryPolicy struct + BaseDelay time.Duration + Jitter bool + MaxDelay time.Duration + MaxRetries int + func DefaultRetryPolicy() RetryPolicy + func NoRetries() RetryPolicy + func (p RetryPolicy) Delay(attempt int) time.Duration + type RoomMember struct + Admin bool + ID string + type RoomSummary struct + ID string + Name string + Participants int + type RoundTripperFunc func(*http.Request) (*http.Response, error) + func (f RoundTripperFunc) RoundTrip(r *http.Request) (*http.Response, error) + type Schedule struct + At string + EveryMs uint64 + Expr string + Kind string + Tz *string + func AtSchedule(at string) Schedule + func CronSchedule(expr, tz string) Schedule + func EverySchedule(ms uint64) Schedule + func (s *Schedule) UnmarshalJSON(b []byte) error + func (s Schedule) MarshalJSON() ([]byte, error) + type SectionItem struct + Badge *string + Description *string + Key string + Label string + type SectionItems struct + Help string + Items []SectionItem + Section string + type SelectedItem struct + Created bool + FieldsPrefix string + type Session struct + AgentAlias *string + ChannelID *string + CreatedAt string + LastActivity string + MessageCount int + Name *string + SessionID string + SessionKey *string + type SessionMessage struct + Content string + CreatedAt *string + Role string + type SessionState struct + SessionID string + State string + TurnID *string + TurnStartedAt *string + type SessionsAPI struct + func (a SessionsAPI) Abort(ctx context.Context, id string) (bool, error) + func (a SessionsAPI) AddMessage(ctx context.Context, id, content string) error + func (a SessionsAPI) Delete(ctx context.Context, id string) error + func (a SessionsAPI) List(ctx context.Context) ([]Session, error) + func (a SessionsAPI) Messages(ctx context.Context, id string) ([]SessionMessage, error) + func (a SessionsAPI) Rename(ctx context.Context, id, name string) error + func (a SessionsAPI) Running(ctx context.Context) ([]Session, error) + func (a SessionsAPI) State(ctx context.Context, id string) (*SessionState, error) + type Skill struct + Body string + Bundle string + Frontmatter json.RawMessage + Name string + type SkillBundle struct + Alias string + Directory string + Exclude []string + Include []string + type SkillSummary struct + Bundle string + Directory string + Frontmatter json.RawMessage + Name string + type SkillsAPI struct + func (a SkillsAPI) Bundles(ctx context.Context) ([]SkillBundle, error) + func (a SkillsAPI) Create(ctx context.Context, bundle, name string, frontmatter any, body string, ...) error + func (a SkillsAPI) Delete(ctx context.Context, bundle, name string, purge bool) error + func (a SkillsAPI) List(ctx context.Context, bundle string) ([]SkillSummary, error) + func (a SkillsAPI) Read(ctx context.Context, bundle, name string) (*Skill, error) + func (a SkillsAPI) SlashOptionKinds(ctx context.Context) ([]json.RawMessage, error) + func (a SkillsAPI) Write(ctx context.Context, bundle, name string, frontmatter any, body string) error + type SopRun struct + Active bool + CompletedAt *string + CurrentStep uint32 + RunID string + SopName string + StartedAt string + Status string + TotalSteps uint32 + TriggerSource string + type SopsAPI struct + func (a SopsAPI) Approve(ctx context.Context, runID string) (string, error) + func (a SopsAPI) Cancel(ctx context.Context, name, runID, reason string) (json.RawMessage, error) + func (a SopsAPI) Create(ctx context.Context, sop any) error + func (a SopsAPI) Decide(ctx context.Context, name, runID string, decision Decision) (json.RawMessage, error) + func (a SopsAPI) Delete(ctx context.Context, name string) error + func (a SopsAPI) Deny(ctx context.Context, runID, reason string) (string, error) + func (a SopsAPI) Get(ctx context.Context, name string) (json.RawMessage, error) + func (a SopsAPI) Graph(ctx context.Context, name string) (json.RawMessage, error) + func (a SopsAPI) GraphDraft(ctx context.Context, sop any) (json.RawMessage, error) + func (a SopsAPI) GraphLegend(ctx context.Context) (json.RawMessage, error) + func (a SopsAPI) List(ctx context.Context) ([]json.RawMessage, error) + func (a SopsAPI) Pending(ctx context.Context) ([]PendingApproval, error) + func (a SopsAPI) Run(ctx context.Context, name, payload string) (string, error) + func (a SopsAPI) RunOverlay(ctx context.Context, name, runID string) (json.RawMessage, error) + func (a SopsAPI) Runs(ctx context.Context, sop string) ([]SopRun, error) + func (a SopsAPI) Save(ctx context.Context, name string, sop any) error + func (a SopsAPI) TriggerSources(ctx context.Context) (json.RawMessage, error) + func (a SopsAPI) WatchRuns(ctx context.Context) (*Feed, error) + func (a SopsAPI) WireDraft(ctx context.Context, sop, edit any) (json.RawMessage, error) + type Status struct + AgentAlias *string + AllowSelfUpgrade bool + Channels map[string]bool + CheckUpdates bool + DaemonStartedAt string + GatewayPort uint16 + Health HealthSnapshot + LiveChannelConfig []string + Locale string + MemoryBackend string + Model string + ModelProvider *string + Nodes json.RawMessage + Paired bool + Process *ProcessStats + RestartHint *string + RestartMode *string + Temperature *float64 + UptimeSeconds uint64 + Version string + type SystemAPI struct + func (a SystemAPI) CLITools(ctx context.Context) ([]CLITool, error) + func (a SystemAPI) Doctor(ctx context.Context) (*DoctorReport, error) + func (a SystemAPI) Health(ctx context.Context) (*Health, error) + func (a SystemAPI) IntegrationSettings(ctx context.Context) (map[string]IntegrationSetting, error) + func (a SystemAPI) Integrations(ctx context.Context) ([]Integration, error) + func (a SystemAPI) Logs(ctx context.Context, filter LogQuery) (*LogPage, error) + func (a SystemAPI) Metrics(ctx context.Context) (string, error) + func (a SystemAPI) OpenAPI(ctx context.Context) (json.RawMessage, error) + func (a SystemAPI) Reload(ctx context.Context) (*AdminResponse, error) + func (a SystemAPI) RuntimeHealth(ctx context.Context) (*HealthSnapshot, error) + func (a SystemAPI) Shutdown(ctx context.Context) (*AdminResponse, error) + func (a SystemAPI) Status(ctx context.Context, agent string) (*Status, error) + func (a SystemAPI) ToolParamOptions(ctx context.Context, domain, agent string, args json.RawMessage) ([]ToolOption, error) + func (a SystemAPI) Tools(ctx context.Context, agent string) ([]ToolSpec, error) + func (a SystemAPI) Tuis(ctx context.Context) ([]Tui, error) + func (a SystemAPI) Upgrade(ctx context.Context, version string, autoRestart bool) (string, error) + func (a SystemAPI) UpgradeStatus(ctx context.Context, handoffID string) (*UpgradeStatus, error) + func (a SystemAPI) VersionCheck(ctx context.Context, force bool, version string) (*VersionCheck, error) + type TemplateEntry struct + Description string + Kind string + Path string + ValueType string + type ToolOption struct + Hint *string + Label *string + Value string + type ToolSpec struct + Description string + Name string + Output json.RawMessage + ParamDomains map[string]string + Parameters json.RawMessage + type Tui struct + ConnectedAt string + PeerLabel string + Transport string + TuiID string + type TurnError struct + Code string + Message string + func (e *TurnError) Error() string + type TurnResult struct + CostUSD *float64 + FullResponse string + InputTokens *uint64 + LastInputTokens *uint64 + MaxContextTokens *uint64 + Model string + OutputTokens *uint64 + Provider string + TokensUsed *uint64 + type UpgradeStatus struct + Error *string + HandoffID *string + LogTail []string + Phase *uint8 + PreviousVersion *string + RestartHint *string + RestartMode *string + State string + TargetVersion *string + type Upload struct + Marker string + Path string + type ValidationWarning struct + Code string + Message string + Path string + type VersionCheck struct + CurrentVersion string + Error *string + IsNewer bool + LatestVersion *string + PublishedAt *string + ReleaseNotes *string + ReleaseURL *string + type WebAuthnAPI struct + func (a WebAuthnAPI) AuthFinish(ctx context.Context, assertion any) (json.RawMessage, error) + func (a WebAuthnAPI) AuthStart(ctx context.Context, userID string) (json.RawMessage, error) + func (a WebAuthnAPI) Credentials(ctx context.Context, userID string) (json.RawMessage, error) + func (a WebAuthnAPI) DeleteCredential(ctx context.Context, userID, credentialID string) error + func (a WebAuthnAPI) RegisterFinish(ctx context.Context, credential any) (json.RawMessage, error) + func (a WebAuthnAPI) RegisterStart(ctx context.Context, userID, userName string) (json.RawMessage, error) + type WebhookAPI struct + func (a WebhookAPI) A2ASend(ctx context.Context, alias, text string) (string, error) + func (a WebhookAPI) AgentCard(ctx context.Context, alias string) (json.RawMessage, error) + func (a WebhookAPI) Send(ctx context.Context, message string, opts WebhookOptions) (*WebhookReply, error) + type WebhookOptions struct + Agent string + IdempotencyKey string + Secret string + SessionID string + type WebhookReply struct + Duplicate bool + Reply *AgentReply