Documentation
¶
Index ¶
- Constants
- func LoadConfiguredCLIPath(settingsPath string, settingKey string) string
- func LoadConfiguredStringMapSetting(settingsPath string, settingKey string) map[string]string
- func LoadConfiguredStringSetting(settingsPath string, settingKey string) string
- func ResolveConfiguredCLIPath(settingsPath string, settingKey string, defaultPath string, ...) (string, error)
- type Agent
- type AgentProvider
- type AgentProviderInfo
- type AgentProviderRegistry
- type AskOptions
- type DeltaCallback
- type FileChange
- type ModelInfo
- type Settings
- type ToolCallCallback
- type ToolCallEvent
Constants ¶
View Source
const ( CursorCLIPathSettingKey = "cursor_cli_path" CodexCLIPathSettingKey = "codex_cli_path" OpencodeCLIPathSettingKey = "opencode_cli_path" CodexAPIKeySettingKey = "codex_api_key" ProviderIDSettingKey = "provider_id" KBDefaultProviderIDSettingKey = "kb_default_provider_id" ModelSettingKey = "model" ModelsByProviderSettingKey = "models_by_provider" )
Variables ¶
This section is empty.
Functions ¶
func LoadConfiguredCLIPath ¶
Types ¶
type AgentProvider ¶
type AgentProviderInfo ¶
type AgentProviderRegistry ¶
type AgentProviderRegistry struct {
// contains filtered or unexported fields
}
func NewAgentProviderRegistry ¶
func NewAgentProviderRegistry(defaultID string, providers []AgentProvider) (*AgentProviderRegistry, error)
func (*AgentProviderRegistry) DefaultID ¶
func (r *AgentProviderRegistry) DefaultID() string
func (*AgentProviderRegistry) List ¶
func (r *AgentProviderRegistry) List() []AgentProviderInfo
func (*AgentProviderRegistry) Resolve ¶
func (r *AgentProviderRegistry) Resolve(id string) (AgentProvider, error)
type AskOptions ¶
type DeltaCallback ¶
type DeltaCallback func(delta string)
type FileChange ¶
type Settings ¶
type Settings struct {
Model string `json:"model,omitempty"`
AgentID string `json:"agent_id,omitempty"`
ProviderID string `json:"provider_id,omitempty"`
KBDefaultProviderID string `json:"kb_default_provider_id,omitempty"`
CursorCLIPath string `json:"cursor_cli_path,omitempty"`
CodexCLIPath string `json:"codex_cli_path,omitempty"`
OpencodeCLIPath string `json:"opencode_cli_path,omitempty"`
CodexAPIKey string `json:"codex_api_key,omitempty"`
DisableSubAgents bool `json:"disable_sub_agents,omitempty"`
ModelsByProvider map[string]string `json:"models_by_provider,omitempty"`
}
func LoadSettingsMap ¶
type ToolCallCallback ¶
type ToolCallCallback func(event ToolCallEvent)
type ToolCallEvent ¶
type ToolCallEvent struct {
Subtype string `json:"subtype"`
CallID string `json:"call_id,omitempty"`
ToolName string `json:"tool_name"`
Summary string `json:"summary"`
Kind string `json:"kind,omitempty"`
Status string `json:"status,omitempty"`
FileChanges []FileChange `json:"file_changes,omitempty"`
ReplaceSummary bool `json:"replace_summary,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.