Documentation
¶
Index ¶
- func IsAPIStatus(err error, statusCode int) bool
- type APIError
- type Client
- func (c *Client) AcknowledgeClientDelivery(ctx context.Context, deliveryID string) error
- func (c *Client) AddPlanItem(ctx context.Context, sessionID string, text string) (core.SessionPlan, error)
- func (c *Client) AddPlanItemWithParent(ctx context.Context, sessionID string, text string, parentID string) (core.SessionPlan, error)
- func (c *Client) BindSessionPlanRunStep(ctx context.Context, sessionID string, runID string) (core.PlanRun, core.SessionPlan, error)
- func (c *Client) CancelRun(ctx context.Context, runID string) (core.Run, error)
- func (c *Client) CleanupTemporaryStorageFiles(ctx context.Context) (localstorage.CleanupResult, error)
- func (c *Client) ClearSessionPlan(ctx context.Context, sessionID string) (core.SessionPlan, error)
- func (c *Client) CompactSession(ctx context.Context, sessionID string) (core.CompactSessionResult, error)
- func (c *Client) CompleteAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
- func (c *Client) ConfigureSetupProvider(ctx context.Context, providerID string, update setup.ProviderSetupUpdate) (setup.ProviderSetupItem, error)
- func (c *Client) CreateAutomationJob(ctx context.Context, input automation.CreateJobInput) (automation.Job, error)
- func (c *Client) CreateSession(ctx context.Context, title string, workingDir string) (core.Session, error)
- func (c *Client) CreateSessionWithRequest(ctx context.Context, request core.CreateSessionRequest) (core.Session, error)
- func (c *Client) CreateSkillDraft(ctx context.Context, name string, description string, tags []string, ...) (skills.Skill, error)
- func (c *Client) CreateSystemMessage(ctx context.Context, sessionID string, content string) (core.Message, error)
- func (c *Client) CurrentBinding(ctx context.Context) (core.ClientBinding, error)
- func (c *Client) DeleteAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
- func (c *Client) DeleteSession(ctx context.Context, sessionID string) error
- func (c *Client) DeleteSetupProvider(ctx context.Context, providerID string) error
- func (c *Client) DeleteStorageFile(ctx context.Context, storagePath string) (localstorage.Entry, error)
- func (c *Client) DeleteTemporaryStorageFile(ctx context.Context, tempPath string) (localstorage.TempEntry, error)
- func (c *Client) ExecuteTool(ctx context.Context, input core.ExecuteToolInput) (core.ExecuteToolResult, error)
- func (c *Client) GetRun(ctx context.Context, runID string) (core.Run, error)
- func (c *Client) GetSkill(ctx context.Context, id string) (skills.SkillDetail, error)
- func (c *Client) GetWebSearchConfig(ctx context.Context) (setup.WebSearchConfigResponse, error)
- func (c *Client) Health(ctx context.Context) (Health, error)
- func (c *Client) InstallSkill(ctx context.Context, path string) ([]skills.Skill, error)
- func (c *Client) ListAutomationJobs(ctx context.Context) ([]automation.Job, error)
- func (c *Client) ListClientDeliveries(ctx context.Context, filter core.ClientDeliveryFilter) ([]core.ClientDelivery, error)
- func (c *Client) ListExternalAgents(ctx context.Context) ([]core.ExternalAgentDescriptor, error)
- func (c *Client) ListSessionProviders(ctx context.Context) ([]core.SessionProviderOption, error)
- func (c *Client) ListSessions(ctx context.Context) ([]core.Session, error)
- func (c *Client) ListSetupProviders(ctx context.Context) ([]setup.ProviderSetupItem, error)
- func (c *Client) ListSkills(ctx context.Context, opts skills.SearchOptions) ([]skills.Skill, error)
- func (c *Client) ListStorageFiles(ctx context.Context, filter localstorage.ListFilter) (localstorage.ListResult, error)
- func (c *Client) ListTemporaryStorageFiles(ctx context.Context, limit int) (localstorage.TempListResult, error)
- func (c *Client) LoadSnapshot(ctx context.Context) (core.ClientSnapshot, error)
- func (c *Client) MCPConfig(ctx context.Context) (setup.MCPConfigResponse, error)
- func (c *Client) PauseAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
- func (c *Client) PromoteTemporaryStorageFile(ctx context.Context, tempPath string, destPath string) (localstorage.Entry, error)
- func (c *Client) ProviderModelCatalog(ctx context.Context, providerID string, update setup.ProviderSetupUpdate) (setup.ProviderModelsResponse, error)
- func (c *Client) ProviderModels(ctx context.Context, providerID string, update setup.ProviderSetupUpdate) ([]string, error)
- func (c *Client) ReadStorageFile(ctx context.Context, storagePath string) (localstorage.ReadResult, error)
- func (c *Client) RenameSession(ctx context.Context, sessionID string, title string) (core.Session, error)
- func (c *Client) ResolveApproval(ctx context.Context, approvalID string, approved bool) (core.Approval, error)
- func (c *Client) RestartDaemon(ctx context.Context) error
- func (c *Client) RestartDaemonWithNotification(ctx context.Context, notification core.ClientDeliveryTarget) error
- func (c *Client) ResumeAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
- func (c *Client) RunAutomationJobNow(ctx context.Context, jobID string) (automation.Fire, error)
- func (c *Client) SaveStorageFile(ctx context.Context, storagePath string, content []byte, title string, ...) (localstorage.Entry, error)
- func (c *Client) SaveTemporaryStorageFile(ctx context.Context, storagePath string, content []byte, title string, ...) (localstorage.TempEntry, error)
- func (c *Client) Search(ctx context.Context, filter core.SearchFilter) (core.SearchReport, error)
- func (c *Client) SearchSkills(ctx context.Context, query string, opts skills.SearchOptions) ([]skills.Skill, error)
- func (c *Client) SendMessage(ctx context.Context, sessionID string, text string, workingDir string) (core.AcceptRunResult, error)
- func (c *Client) SendMessageParts(ctx context.Context, sessionID string, text string, parts []core.MessagePart, ...) (core.AcceptRunResult, error)
- func (c *Client) ServerStatus(ctx context.Context) (core.ServerStatus, error)
- func (c *Client) SessionContext(ctx context.Context, sessionID string) (core.ContextReport, error)
- func (c *Client) SessionPlan(ctx context.Context, sessionID string) (core.SessionPlan, error)
- func (c *Client) SessionPlanRun(ctx context.Context, sessionID string) (core.PlanRun, core.SessionPlan, error)
- func (c *Client) SessionSkills(ctx context.Context, sessionID string) ([]skills.Skill, error)
- func (c *Client) SessionUsage(ctx context.Context, sessionID string) (core.UsageReport, error)
- func (c *Client) SetSessionGoal(ctx context.Context, sessionID string, goal string) (core.SessionPlan, error)
- func (c *Client) SetSkillEnabled(ctx context.Context, id string, enabled bool) error
- func (c *Client) SkillAction(ctx context.Context, id string, action string) error
- func (c *Client) SpeechToText(ctx context.Context, request voicemodule.SpeechToTextRequest) (voicemodule.SpeechToTextResponse, error)
- func (c *Client) StartSessionPlanRun(ctx context.Context, sessionID string, reset bool) (core.PlanRun, core.SessionPlan, error)
- func (c *Client) StopDaemon(ctx context.Context) error
- func (c *Client) SubscribeEvents(ctx context.Context, sessionID string, afterID uint64) (<-chan LiveEvent, <-chan error, error)
- func (c *Client) TextToSpeech(ctx context.Context, request voicemodule.TextToSpeechRequest) (voicemodule.TextToSpeechResponse, error)
- func (c *Client) Tools(ctx context.Context) ([]tools.Spec, error)
- func (c *Client) UnloadSkill(ctx context.Context, sessionID string, skillID string) error
- func (c *Client) UpdateExternalAgent(ctx context.Context, agentID string, update core.UpdateExternalAgentRequest) ([]core.ExternalAgentDescriptor, error)
- func (c *Client) UpdateMCPConfig(ctx context.Context, update setup.MCPConfigUpdate) (setup.MCPConfigResponse, error)
- func (c *Client) UpdateMCPServer(ctx context.Context, serverID string, update setup.MCPServerUpdate) (setup.MCPConfigResponse, error)
- func (c *Client) UpdatePlanItem(ctx context.Context, sessionID string, itemID string, ...) (core.SessionPlan, error)
- func (c *Client) UpdateSessionPermissionMode(ctx context.Context, sessionID string, mode core.PermissionMode) (core.Session, error)
- func (c *Client) UpdateSessionProvider(ctx context.Context, sessionID string, providerID string) (core.Session, error)
- func (c *Client) UpdateSkillBody(ctx context.Context, id string, body string) error
- func (c *Client) UpdateSkillMetadata(ctx context.Context, id string, update skills.MetadataUpdate) (skills.Skill, error)
- func (c *Client) UpdateTemporaryStorageSettings(ctx context.Context, autoCleanup *bool, ttlDays int64, maxGB float64) (localstorage.TempSettings, error)
- func (c *Client) UpdateVoiceModule(ctx context.Context, moduleID string, update setup.VoiceModuleUpdate) ([]setup.VoiceModuleDescriptor, error)
- func (c *Client) UpdateWebSearchConfig(ctx context.Context, update setup.WebSearchConfig) (setup.WebSearchConfigResponse, error)
- func (c *Client) UseSession(ctx context.Context, sessionID string) (core.ClientBinding, error)
- func (c *Client) UseSkill(ctx context.Context, sessionID string, skillID string) (skills.SkillDetail, error)
- func (c *Client) VoiceModules(ctx context.Context) ([]setup.VoiceModuleDescriptor, error)
- func (c *Client) VoiceProviderAction(ctx context.Context, moduleID string, providerID string, ...) (setup.VoiceProviderOption, error)
- func (c *Client) WithAPIToken(token string) *Client
- type Health
- type LiveEvent
- func (e LiveEvent) DecodeApproval() (core.Approval, error)
- func (e LiveEvent) DecodeFileSnapshot() (core.FileSnapshot, error)
- func (e LiveEvent) DecodeMessage() (core.Message, error)
- func (e LiveEvent) DecodePermissionNotification() (core.PermissionNotification, error)
- func (e LiveEvent) DecodePermissionRequest() (core.PermissionRequest, error)
- func (e LiveEvent) DecodeRun() (core.Run, error)
- func (e LiveEvent) DecodeSessionPlan() (core.SessionPlan, error)
- func (e LiveEvent) DecodeToolUpdate() (core.ToolUpdate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAPIStatus ¶
Types ¶
type Client ¶
type Client struct {
BaseURL string
ClientName string
ExternalKey string
APIToken string
HTTPClient *http.Client
// EventHTTPClient is intentionally separate from HTTPClient because SSE
// subscriptions must not inherit the short JSON request timeout.
EventHTTPClient *http.Client
}
func (*Client) AcknowledgeClientDelivery ¶
func (*Client) AddPlanItem ¶ added in v0.1.7
func (*Client) AddPlanItemWithParent ¶ added in v0.1.7
func (*Client) BindSessionPlanRunStep ¶ added in v0.1.7
func (*Client) CleanupTemporaryStorageFiles ¶
func (c *Client) CleanupTemporaryStorageFiles(ctx context.Context) (localstorage.CleanupResult, error)
func (*Client) ClearSessionPlan ¶ added in v0.1.7
func (*Client) CompactSession ¶
func (*Client) CompleteAutomationJob ¶
func (*Client) ConfigureSetupProvider ¶
func (c *Client) ConfigureSetupProvider(ctx context.Context, providerID string, update setup.ProviderSetupUpdate) (setup.ProviderSetupItem, error)
func (*Client) CreateAutomationJob ¶
func (c *Client) CreateAutomationJob(ctx context.Context, input automation.CreateJobInput) (automation.Job, error)
func (*Client) CreateSession ¶
func (*Client) CreateSessionWithRequest ¶ added in v0.1.4
func (*Client) CreateSkillDraft ¶ added in v0.1.11
func (*Client) CreateSystemMessage ¶
func (*Client) CurrentBinding ¶
func (*Client) DeleteAutomationJob ¶
func (*Client) DeleteSession ¶
func (*Client) DeleteSetupProvider ¶
func (*Client) DeleteStorageFile ¶
func (*Client) DeleteTemporaryStorageFile ¶
func (*Client) ExecuteTool ¶ added in v0.1.11
func (c *Client) ExecuteTool(ctx context.Context, input core.ExecuteToolInput) (core.ExecuteToolResult, error)
func (*Client) GetWebSearchConfig ¶ added in v0.1.11
func (*Client) InstallSkill ¶ added in v0.1.11
func (*Client) ListAutomationJobs ¶
func (*Client) ListClientDeliveries ¶
func (c *Client) ListClientDeliveries(ctx context.Context, filter core.ClientDeliveryFilter) ([]core.ClientDelivery, error)
func (*Client) ListExternalAgents ¶ added in v0.1.4
func (*Client) ListSessionProviders ¶
func (*Client) ListSessions ¶
func (*Client) ListSetupProviders ¶
func (*Client) ListSkills ¶ added in v0.1.11
func (*Client) ListStorageFiles ¶
func (c *Client) ListStorageFiles(ctx context.Context, filter localstorage.ListFilter) (localstorage.ListResult, error)
func (*Client) ListTemporaryStorageFiles ¶
func (c *Client) ListTemporaryStorageFiles(ctx context.Context, limit int) (localstorage.TempListResult, error)
func (*Client) LoadSnapshot ¶
func (*Client) PauseAutomationJob ¶
func (*Client) PromoteTemporaryStorageFile ¶
func (*Client) ProviderModelCatalog ¶ added in v0.1.11
func (c *Client) ProviderModelCatalog(ctx context.Context, providerID string, update setup.ProviderSetupUpdate) (setup.ProviderModelsResponse, error)
func (*Client) ProviderModels ¶ added in v0.1.1
func (*Client) ReadStorageFile ¶
func (c *Client) ReadStorageFile(ctx context.Context, storagePath string) (localstorage.ReadResult, error)
func (*Client) RenameSession ¶
func (*Client) ResolveApproval ¶
func (*Client) RestartDaemonWithNotification ¶
func (*Client) ResumeAutomationJob ¶
func (*Client) RunAutomationJobNow ¶
func (*Client) SaveStorageFile ¶
func (*Client) SaveTemporaryStorageFile ¶
func (*Client) Search ¶ added in v0.1.7
func (c *Client) Search(ctx context.Context, filter core.SearchFilter) (core.SearchReport, error)
func (*Client) SearchSkills ¶ added in v0.1.11
func (*Client) SendMessage ¶
func (*Client) SendMessageParts ¶
func (*Client) ServerStatus ¶
func (*Client) SessionContext ¶
func (*Client) SessionPlan ¶ added in v0.1.7
func (*Client) SessionPlanRun ¶ added in v0.1.7
func (*Client) SessionSkills ¶ added in v0.1.11
func (*Client) SessionUsage ¶ added in v0.1.7
func (*Client) SetSessionGoal ¶ added in v0.1.7
func (*Client) SetSkillEnabled ¶ added in v0.1.11
func (*Client) SkillAction ¶ added in v0.1.11
func (*Client) SpeechToText ¶ added in v0.1.9
func (c *Client) SpeechToText(ctx context.Context, request voicemodule.SpeechToTextRequest) (voicemodule.SpeechToTextResponse, error)
func (*Client) StartSessionPlanRun ¶ added in v0.1.7
func (*Client) SubscribeEvents ¶
func (*Client) TextToSpeech ¶ added in v0.1.9
func (c *Client) TextToSpeech(ctx context.Context, request voicemodule.TextToSpeechRequest) (voicemodule.TextToSpeechResponse, error)
func (*Client) UnloadSkill ¶ added in v0.1.11
func (*Client) UpdateExternalAgent ¶ added in v0.1.6
func (c *Client) UpdateExternalAgent(ctx context.Context, agentID string, update core.UpdateExternalAgentRequest) ([]core.ExternalAgentDescriptor, error)
func (*Client) UpdateMCPConfig ¶ added in v0.1.11
func (c *Client) UpdateMCPConfig(ctx context.Context, update setup.MCPConfigUpdate) (setup.MCPConfigResponse, error)
func (*Client) UpdateMCPServer ¶ added in v0.1.11
func (c *Client) UpdateMCPServer(ctx context.Context, serverID string, update setup.MCPServerUpdate) (setup.MCPConfigResponse, error)
func (*Client) UpdatePlanItem ¶ added in v0.1.7
func (*Client) UpdateSessionPermissionMode ¶
func (*Client) UpdateSessionProvider ¶
func (*Client) UpdateSkillBody ¶ added in v0.1.11
func (*Client) UpdateSkillMetadata ¶ added in v0.1.11
func (*Client) UpdateTemporaryStorageSettings ¶
func (c *Client) UpdateTemporaryStorageSettings(ctx context.Context, autoCleanup *bool, ttlDays int64, maxGB float64) (localstorage.TempSettings, error)
func (*Client) UpdateVoiceModule ¶ added in v0.1.9
func (c *Client) UpdateVoiceModule(ctx context.Context, moduleID string, update setup.VoiceModuleUpdate) ([]setup.VoiceModuleDescriptor, error)
func (*Client) UpdateWebSearchConfig ¶ added in v0.1.11
func (c *Client) UpdateWebSearchConfig(ctx context.Context, update setup.WebSearchConfig) (setup.WebSearchConfigResponse, error)
func (*Client) UseSession ¶
func (*Client) VoiceModules ¶ added in v0.1.9
func (*Client) VoiceProviderAction ¶ added in v0.1.9
func (c *Client) VoiceProviderAction(ctx context.Context, moduleID string, providerID string, request setup.VoiceProviderActionRequest) (setup.VoiceProviderOption, error)
func (*Client) WithAPIToken ¶
type Health ¶
type Health = core.HealthResponse
type LiveEvent ¶
type LiveEvent struct {
ID uint64 `json:"id,omitempty"`
Type core.EventType `json:"type"`
SessionID string `json:"session_id"`
RunID string `json:"run_id,omitempty"`
Payload json.RawMessage `json:"payload,omitempty"`
At time.Time `json:"at,omitempty"`
}
func (LiveEvent) DecodeFileSnapshot ¶
func (e LiveEvent) DecodeFileSnapshot() (core.FileSnapshot, error)
func (LiveEvent) DecodePermissionNotification ¶
func (e LiveEvent) DecodePermissionNotification() (core.PermissionNotification, error)
func (LiveEvent) DecodePermissionRequest ¶
func (e LiveEvent) DecodePermissionRequest() (core.PermissionRequest, error)
func (LiveEvent) DecodeSessionPlan ¶ added in v0.1.7
func (e LiveEvent) DecodeSessionPlan() (core.SessionPlan, error)
func (LiveEvent) DecodeToolUpdate ¶
func (e LiveEvent) DecodeToolUpdate() (core.ToolUpdate, error)
Click to show internal directories.
Click to hide internal directories.