Documentation
¶
Index ¶
- Constants
- Variables
- func CheckProvider(p ProviderConfig) error
- func DaemonEnvironmentFilePath(setupPath string) string
- func DefaultConfigPath() (string, error)
- func DefaultDBPath() string
- func ImportDaemonEnvironmentFile(setupPath string, cfg Config) error
- func MCPConfigStatus(cfg MCPConfig) string
- func MaskSecret(value string) string
- func NormalizeMCPTransport(value string) string
- func NormalizeSupertonicLanguage(language string) string
- func NormalizeVoiceLanguage(language string) string
- func VoiceProviderIDs(moduleID string) []string
- type ApplyResult
- type AssistantConfig
- type AssistantSummary
- type BrowserConfig
- type BrowserModuleDescriptor
- type BrowserProviderActionIDs
- type BrowserProviderActionRequest
- type BrowserProviderConfig
- type BrowserProviderOption
- type ClientsConfig
- type CompactModelConfig
- type Config
- type DaemonConfig
- type DaemonSummary
- type ExternalAgentConfig
- type FileStore
- type Language
- type MCPConfig
- type MCPConfigResponse
- type MCPConfigUpdate
- type MCPServerConfig
- type MCPServerCreateRequest
- type MCPServerUpdate
- type ModulesConfig
- type ProviderConfig
- type ProviderModelsResponse
- type ProviderSetupItem
- type ProviderSetupListResponse
- type ProviderSetupOKResponse
- type ProviderSetupResponse
- type ProviderSetupUpdate
- type ProviderSummary
- type RunBudgetConfig
- type RunBudgetsConfig
- type Service
- func (s *Service) AllowProviderSetupForClient(client string) (bool, error)
- func (s *Service) Apply(ctx context.Context, edited Config) (ApplyResult, error)
- func (s *Service) ConfigureProvider(providerID string, update ProviderSetupUpdate) (ProviderSetupItem, error)
- func (s *Service) CreateMCPServer(server MCPServerConfig) (MCPConfig, error)
- func (s *Service) DeleteMCPServer(serverID string) (MCPConfig, error)
- func (s *Service) DeleteProvider(providerID string) error
- func (s *Service) EditableConfig() (cfg Config, existing bool, err error)
- func (s *Service) EnsureDaemonAPIToken() (Config, error)
- func (s *Service) EnsureDaemonContext(ctx context.Context) (DaemonSummary, error)
- func (s *Service) ExternalAgentConfig(id string) ExternalAgentConfig
- func (s *Service) GetMCPConfig() (MCPConfig, error)
- func (s *Service) IsConfigured() (bool, error)
- func (s *Service) Load() (Config, error)
- func (s *Service) Path() string
- func (s *Service) ProviderItems() ([]ProviderSetupItem, error)
- func (s *Service) ProviderModelCatalogFor(ctx context.Context, providerID string, update ProviderSetupUpdate) (ProviderModelsResponse, error)
- func (s *Service) RestartDaemonContext(ctx context.Context) (DaemonSummary, error)
- func (s *Service) StopDaemonContext(ctx context.Context) (DaemonSummary, error)
- func (s *Service) Summary() (Summary, error)
- func (s *Service) SummaryContext(ctx context.Context) (Summary, error)
- func (s *Service) Update(change func(*Config) error) (Config, error)
- func (s *Service) UpdateExternalAgent(id string, update ExternalAgentConfig) (Config, error)
- func (s *Service) UpdateMCPConfig(update MCPConfigUpdate) (MCPConfig, error)
- func (s *Service) UpdateMCPServer(serverID string, update MCPServerUpdate) (MCPConfig, error)
- type SkillsConfig
- type Summary
- type TelegramConfig
- type TelegramSummary
- type TelephonyConfig
- type TimezoneOption
- type VoiceModuleConfig
- type VoiceProviderConfig
- type WebSearchConfig
Constants ¶
const ( BrowserModuleBrowser = "browser" BrowserProviderPlaywright = "playwright" )
const ( WebSearchProviderDDG = "ddg" WebSearchProviderTavily = "tavily" WebSearchProviderSerper = "serper" WebSearchProviderSearXNG = "searxng" )
const ( ProviderModelStatusOK = "ok" ProviderModelStatusRequiresKey = "requires_key" ProviderModelStatusAuthError = "auth_error" ProviderModelStatusUnsupported = "unsupported" ProviderModelSourceLiveCatalog = "live_catalog" ProviderModelSourcePublicCatalog = "public_catalog" ProviderModelSourceConfiguredKey = "configured_key" ProviderModelSourceManual = "manual" )
const ( VoiceModuleTTS = "tts" VoiceModuleSTT = "stt" )
const CurrentVersion = 3
const DaemonUnitName = "matrixclawd.service"
const DefaultAssistantName = "matrixclaw"
DefaultAssistantName is the assistant's name unless the user picks another.
const DefaultAssistantSystemPrompt = "" /* 800-byte string literal not displayed */
DefaultAssistantSystemPrompt is the built-in system prompt, used whenever the user has not set their own.
const TelephonyModuleID = "telephony"
Variables ¶
var ErrConfigNotFound = errors.New("setup config not found")
var ErrUnsupportedConfigVersion = errors.New("unsupported setup config version")
var SupertonicLanguages = []Language{
{"auto", "Auto"}, {"na", "Fallback"}, {"ar", "Arabic"}, {"bg", "Bulgarian"}, {"cs", "Czech"},
{"da", "Danish"}, {"de", "German"}, {"el", "Greek"}, {"en", "English"}, {"es", "Spanish"},
{"et", "Estonian"}, {"fi", "Finnish"}, {"fr", "French"}, {"hi", "Hindi"}, {"hr", "Croatian"},
{"hu", "Hungarian"}, {"id", "Indonesian"}, {"it", "Italian"}, {"ja", "Japanese"}, {"ko", "Korean"},
{"lt", "Lithuanian"}, {"lv", "Latvian"}, {"nl", "Dutch"}, {"pl", "Polish"}, {"pt", "Portuguese"},
{"ro", "Romanian"}, {"ru", "Russian"}, {"sk", "Slovak"}, {"sl", "Slovenian"}, {"sv", "Swedish"},
{"tr", "Turkish"}, {"uk", "Ukrainian"}, {"vi", "Vietnamese"},
}
SupertonicLanguages are the languages Supertonic speaks.
var WhisperLanguages = []Language{}/* 101 elements not displayed */
WhisperLanguages are the languages whisper.cpp transcribes.
Functions ¶
func CheckProvider ¶ added in v0.2.0
func CheckProvider(p ProviderConfig) error
CheckProvider reports whether p can be saved and used: a valid entry with its API key available.
func DefaultConfigPath ¶
func DefaultDBPath ¶
func DefaultDBPath() string
func MCPConfigStatus ¶ added in v0.1.11
func MaskSecret ¶
func NormalizeMCPTransport ¶ added in v0.2.0
NormalizeMCPTransport is "http" for the streamable HTTP transport and "stdio" for anything else.
func NormalizeSupertonicLanguage ¶ added in v0.2.0
NormalizeSupertonicLanguage is a Supertonic language code; "auto" detects.
func NormalizeVoiceLanguage ¶ added in v0.2.0
NormalizeVoiceLanguage is a Piper language code such as en_US; "" is any.
func VoiceProviderIDs ¶ added in v0.2.0
VoiceProviderIDs are the local providers of the TTS or STT module, the default first.
Types ¶
type ApplyResult ¶
type AssistantConfig ¶
type AssistantConfig struct {
Name string `json:"name,omitempty"`
SystemPrompt string `json:"system_prompt,omitempty"`
CustomInstructions string `json:"custom_instructions,omitempty"`
}
func (AssistantConfig) NameOrDefault ¶ added in v0.2.0
func (a AssistantConfig) NameOrDefault() string
NameOrDefault is the user's assistant name, or the built-in one.
func (AssistantConfig) SystemPromptOrDefault ¶ added in v0.2.0
func (a AssistantConfig) SystemPromptOrDefault() string
SystemPromptOrDefault is the user's own system prompt, or the built-in one.
type AssistantSummary ¶
type BrowserConfig ¶ added in v0.1.15
type BrowserConfig struct {
Enabled bool `json:"enabled,omitempty"`
ProviderID string `json:"provider_id,omitempty"`
ProviderConfig BrowserProviderConfig `json:"provider_config,omitempty"`
}
type BrowserModuleDescriptor ¶ added in v0.1.15
type BrowserModuleDescriptor struct {
ID string `json:"id"`
Title string `json:"title"`
Enabled bool `json:"enabled"`
ProviderID string `json:"provider_id"`
ProviderName string `json:"provider_name"`
Local bool `json:"local"`
Status string `json:"status"`
Config BrowserProviderConfig `json:"config,omitempty"`
Providers []BrowserProviderOption `json:"providers,omitempty"`
}
func BrowserModuleFromConfig ¶ added in v0.1.15
func BrowserModuleFromConfig(modules ModulesConfig) BrowserModuleDescriptor
type BrowserProviderActionIDs ¶ added in v0.1.15
type BrowserProviderActionRequest ¶ added in v0.1.15
type BrowserProviderActionRequest struct {
Action string `json:"action"`
}
type BrowserProviderConfig ¶ added in v0.1.15
type BrowserProviderOption ¶ added in v0.1.15
type BrowserProviderOption struct {
ID string `json:"id"`
Name string `json:"name"`
Local bool `json:"local,omitempty"`
Status string `json:"status"`
RuntimeState string `json:"runtime_state,omitempty"`
RuntimeDetail string `json:"runtime_detail,omitempty"`
RuntimePath string `json:"runtime_path,omitempty"`
RuntimeInstalled bool `json:"runtime_installed,omitempty"`
BrowserInstalled bool `json:"browser_installed,omitempty"`
BrowserPath string `json:"browser_path,omitempty"`
BrowserCachePath string `json:"browser_cache_path,omitempty"`
RuntimeRSS uint64 `json:"runtime_rss_bytes,omitempty"`
ActionIDs BrowserProviderActionIDs `json:"action_ids,omitempty"`
Config BrowserProviderConfig `json:"config,omitempty"`
}
type ClientsConfig ¶
type ClientsConfig struct {
Telegram TelegramConfig `json:"telegram"`
}
type CompactModelConfig ¶ added in v0.2.0
type CompactModelConfig struct {
Provider string `json:"provider,omitempty"`
Model string `json:"model,omitempty"`
}
CompactModelConfig names the provider and model that write context summaries instead of each run's own model; empty keeps the run's model.
type Config ¶
type Config struct {
Version int `json:"version"`
ActiveProviderID string `json:"active_provider_id,omitempty"`
Assistant AssistantConfig `json:"assistant,omitempty"`
Providers []ProviderConfig `json:"providers,omitempty"`
Daemon DaemonConfig `json:"daemon"`
Clients ClientsConfig `json:"clients"`
Modules ModulesConfig `json:"modules,omitempty"`
}
func NewConfig ¶ added in v0.2.0
func NewConfig() Config
NewConfig is a first-run config with this machine's defaults.
func (Config) ActiveProvider ¶ added in v0.2.0
func (cfg Config) ActiveProvider() (ProviderConfig, bool)
ActiveProvider returns the stored active provider.
func (Config) ExternalAgentConfig ¶ added in v0.1.6
func (cfg Config) ExternalAgentConfig(id string) ExternalAgentConfig
func (Config) Provider ¶ added in v0.2.0
func (cfg Config) Provider(id string) (ProviderConfig, bool)
Provider returns the stored provider with id.
func (*Config) SetProvider ¶ added in v0.2.0
func (cfg *Config) SetProvider(p ProviderConfig)
SetProvider adds p or replaces the stored provider with its id.
type DaemonConfig ¶
type DaemonConfig struct {
HTTPAddr string `json:"http_addr"`
DBPath string `json:"db_path"`
Timezone string `json:"timezone,omitempty"`
APIToken string `json:"api_token,omitempty"`
AutostartOnBoot bool `json:"autostart_on_boot"`
Budgets RunBudgetsConfig `json:"budgets,omitzero"`
CompactModel CompactModelConfig `json:"compact_model,omitzero"`
// ContextWindowCap bounds every model's context window in tokens; 0 keeps
// the default of 200000. Set it to the model's window to disable the cap.
ContextWindowCap int `json:"context_window_cap,omitempty"`
// ModelConcurrency bounds the model requests all runs make at once; 0
// keeps the default of 4.
ModelConcurrency int `json:"model_concurrency,omitempty"`
// BackgroundTasks bounds the background commands one session runs at
// once; 0 keeps the default of 8.
BackgroundTasks int `json:"background_tasks,omitempty"`
// BackgroundAgents bounds the background subagents one session runs at
// once; 0 keeps the default of 4.
BackgroundAgents int `json:"background_agents,omitempty"`
}
type DaemonSummary ¶
type ExternalAgentConfig ¶ added in v0.1.6
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
func NewFileStore ¶
type Language ¶ added in v0.2.0
type Language struct{ Code, Name string }
Language is a language a voice engine speaks or understands.
type MCPConfig ¶ added in v0.1.11
type MCPConfig struct {
Enabled bool `json:"enabled,omitempty"`
Servers []MCPServerConfig `json:"servers,omitempty"`
}
type MCPConfigResponse ¶ added in v0.1.11
type MCPConfigUpdate ¶ added in v0.1.11
type MCPConfigUpdate struct {
Enabled *bool `json:"enabled,omitempty"`
}
type MCPServerConfig ¶ added in v0.1.11
type MCPServerConfig struct {
ID string `json:"id"`
Name string `json:"name,omitempty"`
Enabled bool `json:"enabled,omitempty"`
Transport string `json:"transport,omitempty"`
Command string `json:"command,omitempty"`
Args []string `json:"args,omitempty"`
Env map[string]string `json:"env,omitempty"`
Endpoint string `json:"endpoint,omitempty"`
ToolPrefix string `json:"tool_prefix,omitempty"`
ReadOnly bool `json:"read_only,omitempty"`
TimeoutSeconds int `json:"timeout_seconds,omitempty"`
}
type MCPServerCreateRequest ¶ added in v0.1.15
type MCPServerCreateRequest struct {
Server MCPServerConfig `json:"server"`
}
type MCPServerUpdate ¶ added in v0.1.11
type MCPServerUpdate struct {
Name *string `json:"name,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Transport *string `json:"transport,omitempty"`
Command *string `json:"command,omitempty"`
Args []string `json:"args,omitempty"`
Endpoint *string `json:"endpoint,omitempty"`
ToolPrefix *string `json:"tool_prefix,omitempty"`
ReadOnly *bool `json:"read_only,omitempty"`
TimeoutSeconds *int `json:"timeout_seconds,omitempty"`
}
type ModulesConfig ¶ added in v0.1.6
type ModulesConfig struct {
ExternalAgents map[string]ExternalAgentConfig `json:"external_agents,omitempty"`
TextToSpeech VoiceModuleConfig `json:"tts,omitempty"`
SpeechToText VoiceModuleConfig `json:"stt,omitempty"`
RealtimeVoice VoiceModuleConfig `json:"realtime_voice,omitempty"`
Telephony TelephonyConfig `json:"telephony,omitempty"`
Browser BrowserConfig `json:"browser,omitempty"`
WebSearch WebSearchConfig `json:"web_search,omitempty"`
MCP MCPConfig `json:"mcp,omitempty"`
Skills SkillsConfig `json:"skills,omitempty"`
}
type ProviderConfig ¶
type ProviderConfig struct {
ID string `json:"id"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
APIKey string `json:"api_key,omitempty"`
APIKeyEnv string `json:"api_key_env,omitempty"`
BaseURL string `json:"base_url,omitempty"`
Model string `json:"model,omitempty"`
ContextWindow int `json:"context_window,omitempty"`
MaxOutputTokens int64 `json:"max_output_tokens,omitempty"`
ReasoningEffort string `json:"reasoning_effort,omitempty"`
ToolUseMode providers.ToolUseMode `json:"tool_use_mode,omitempty"`
}
ProviderConfig is a configured provider as stored: for a built-in provider the fields the catalog defines are left empty (see Effective).
func NewProviderConfig ¶ added in v0.2.0
func NewProviderConfig(providerID string, providerType string, name string) (ProviderConfig, error)
NewProviderConfig starts a provider that is not saved yet: a built-in one by catalog id, otherwise a custom one of providerType.
func (ProviderConfig) APIKeyPreview ¶ added in v0.2.0
func (p ProviderConfig) APIKeyPreview() string
APIKeyPreview shows where the provider's key comes from without the key.
func (ProviderConfig) Effective ¶ added in v0.2.0
func (p ProviderConfig) Effective() ProviderConfig
Effective fills the catalog defaults the stored config leaves out: name, type, key env name, base URL, model, and the model's reasoning effort.
func (ProviderConfig) Runtime ¶ added in v0.2.0
func (p ProviderConfig) Runtime() (ProviderConfig, bool)
Runtime is the effective provider with its API key taken from the file or the environment; ok is false when a required key is missing.
type ProviderModelsResponse ¶ added in v0.1.1
type ProviderModelsResponse struct {
Models []string `json:"models"`
Metadata []providers.ModelMetadata `json:"metadata,omitempty"`
Status string `json:"status,omitempty"`
Source string `json:"source,omitempty"`
Message string `json:"message,omitempty"`
RequiresAPIKey bool `json:"requires_api_key,omitempty"`
ManualInput bool `json:"manual_input,omitempty"`
}
func ProviderModelCatalog ¶ added in v0.2.0
func ProviderModelCatalog(ctx context.Context, provider ProviderConfig) ProviderModelsResponse
ProviderModelCatalog asks the provider for its models with its stored or environment API key.
type ProviderSetupItem ¶
type ProviderSetupItem struct {
ID string `json:"id"`
CatalogID string `json:"catalog_id,omitempty"`
Name string `json:"name"`
Type string `json:"type"`
Status string `json:"status"`
Configured bool `json:"configured"`
Active bool `json:"active"`
Implemented bool `json:"implemented"`
RequiresBaseURL bool `json:"requires_base_url,omitempty"`
Capabilities providers.Capabilities `json:"capabilities,omitempty"`
BaseURL string `json:"base_url,omitempty"`
BaseURLOptions []providers.BaseURLOption `json:"base_url_options,omitempty"`
Model string `json:"model,omitempty"`
ContextWindow int `json:"context_window,omitempty"`
ReasoningEffort string `json:"reasoning_effort,omitempty"`
ToolUseMode providers.ToolUseMode `json:"tool_use_mode,omitempty"`
DefaultModel string `json:"default_model,omitempty"`
APIKeyPreview string `json:"api_key_preview,omitempty"`
Notes string `json:"notes,omitempty"`
}
func ProviderItems ¶ added in v0.2.0
func ProviderItems(cfg Config) []ProviderSetupItem
ProviderItems lists the configured providers, the active one first, then the built-in providers that are not configured yet.
type ProviderSetupListResponse ¶
type ProviderSetupListResponse struct {
Providers []ProviderSetupItem `json:"providers"`
}
type ProviderSetupOKResponse ¶
type ProviderSetupOKResponse struct {
OK bool `json:"ok"`
}
type ProviderSetupResponse ¶
type ProviderSetupResponse struct {
Provider ProviderSetupItem `json:"provider"`
}
type ProviderSetupUpdate ¶
type ProviderSetupUpdate struct {
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
APIKey *string `json:"api_key,omitempty"`
BaseURL *string `json:"base_url,omitempty"`
Model *string `json:"model,omitempty"`
ContextWindow *int `json:"context_window,omitempty"`
ReasoningEffort *string `json:"reasoning_effort,omitempty"`
ToolUseMode *providers.ToolUseMode `json:"tool_use_mode,omitempty"`
Active bool `json:"active,omitempty"`
}
ProviderSetupUpdate changes the fields that are present; an empty value resets a field to its built-in default (or clears the key).
type ProviderSummary ¶
type RunBudgetConfig ¶ added in v0.2.0
type RunBudgetConfig struct {
Steps int `json:"steps,omitempty"`
ActiveTime string `json:"active_time,omitempty"`
Tokens int64 `json:"tokens,omitempty"`
}
RunBudgetConfig: zero fields keep the default; ActiveTime is a Go duration such as "4h". Tokens 0 means unlimited.
type RunBudgetsConfig ¶ added in v0.2.0
type RunBudgetsConfig struct {
User RunBudgetConfig `json:"user,omitzero"`
Subagent RunBudgetConfig `json:"subagent,omitzero"`
Automation RunBudgetConfig `json:"automation,omitzero"`
}
RunBudgetsConfig overrides the built-in run budget per trigger.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewDefaultService ¶
func NewService ¶
func (*Service) AllowProviderSetupForClient ¶
func (*Service) Apply ¶
Apply saves the sections the setup wizard edits (assistant, providers, daemon address, paths, timezone and autostart, clients) over the current file, after checking the Telegram token, and installs and starts the daemon.
func (*Service) ConfigureProvider ¶ added in v0.2.0
func (s *Service) ConfigureProvider(providerID string, update ProviderSetupUpdate) (ProviderSetupItem, error)
ConfigureProvider applies update to the provider, adding it when it is not configured yet; a new provider, or update.Active, makes it the active one.
func (*Service) CreateMCPServer ¶ added in v0.1.15
func (s *Service) CreateMCPServer(server MCPServerConfig) (MCPConfig, error)
func (*Service) DeleteMCPServer ¶ added in v0.1.15
func (*Service) DeleteProvider ¶ added in v0.2.0
DeleteProvider removes a custom provider; built-in ones stay.
func (*Service) EditableConfig ¶ added in v0.2.0
EditableConfig is the saved config, or a new one with local defaults when none is saved yet; existing reports which.
func (*Service) EnsureDaemonAPIToken ¶
func (*Service) EnsureDaemonContext ¶
func (s *Service) EnsureDaemonContext(ctx context.Context) (DaemonSummary, error)
func (*Service) ExternalAgentConfig ¶ added in v0.1.6
func (s *Service) ExternalAgentConfig(id string) ExternalAgentConfig
func (*Service) GetMCPConfig ¶ added in v0.1.11
func (*Service) IsConfigured ¶
func (*Service) ProviderItems ¶ added in v0.2.0
func (s *Service) ProviderItems() ([]ProviderSetupItem, error)
func (*Service) ProviderModelCatalogFor ¶ added in v0.2.0
func (s *Service) ProviderModelCatalogFor(ctx context.Context, providerID string, update ProviderSetupUpdate) (ProviderModelsResponse, error)
ProviderModelCatalogFor lists the models of a provider as update would leave it, without saving anything.
func (*Service) RestartDaemonContext ¶
func (s *Service) RestartDaemonContext(ctx context.Context) (DaemonSummary, error)
func (*Service) StopDaemonContext ¶ added in v0.1.10
func (s *Service) StopDaemonContext(ctx context.Context) (DaemonSummary, error)
func (*Service) SummaryContext ¶
func (*Service) Update ¶ added in v0.2.0
Update applies change to the saved config, validates the result and saves it under the service lock, so concurrent edits don't overwrite each other.
func (*Service) UpdateExternalAgent ¶ added in v0.1.6
func (s *Service) UpdateExternalAgent(id string, update ExternalAgentConfig) (Config, error)
func (*Service) UpdateMCPConfig ¶ added in v0.1.11
func (s *Service) UpdateMCPConfig(update MCPConfigUpdate) (MCPConfig, error)
func (*Service) UpdateMCPServer ¶ added in v0.1.11
func (s *Service) UpdateMCPServer(serverID string, update MCPServerUpdate) (MCPConfig, error)
type SkillsConfig ¶ added in v0.1.11
type SkillsConfig struct {
Enabled *bool `json:"enabled,omitempty"`
AutoInvoke *bool `json:"auto_invoke,omitempty"`
TrustPolicy string `json:"trust_policy,omitempty"`
}
SkillsConfig leaves Enabled and AutoInvoke unset unless the user turned them off; unset means on.
func (SkillsConfig) IsAutoInvoke ¶ added in v0.2.0
func (c SkillsConfig) IsAutoInvoke() bool
func (SkillsConfig) IsEnabled ¶ added in v0.2.0
func (c SkillsConfig) IsEnabled() bool
type Summary ¶
type Summary struct {
Assistant AssistantSummary
Provider ProviderSummary
Daemon DaemonSummary
Telegram TelegramSummary
}
func SummaryFromConfig ¶
type TelegramConfig ¶
type TelegramSummary ¶
type TelephonyConfig ¶ added in v0.1.16
type TimezoneOption ¶
func TimezoneOptions ¶
func TimezoneOptions(now time.Time) []TimezoneOption
type VoiceModuleConfig ¶ added in v0.1.9
type VoiceModuleConfig struct {
Enabled bool `json:"enabled,omitempty"`
ProviderID string `json:"provider_id,omitempty"`
Providers map[string]VoiceProviderConfig `json:"providers,omitempty"`
}
type VoiceProviderConfig ¶ added in v0.1.9
type VoiceProviderConfig struct {
APIKey string `json:"api_key,omitempty"`
APIKeyEnv string `json:"api_key_env,omitempty"`
ModelID string `json:"model_id,omitempty"`
VoiceID string `json:"voice_id,omitempty"`
Language string `json:"language,omitempty"`
Autostart bool `json:"autostart,omitempty"`
RuntimeMode string `json:"runtime_mode,omitempty"`
BinaryPath string `json:"binary_path,omitempty"`
Endpoint string `json:"endpoint,omitempty"`
Threads int `json:"threads,omitempty"`
}
func EffectiveVoiceConfig ¶ added in v0.2.0
func EffectiveVoiceConfig(moduleID string, providerID string, cfg VoiceProviderConfig) VoiceProviderConfig
EffectiveVoiceConfig is a local voice provider's settings with its defaults filled and its language normalized.
type WebSearchConfig ¶ added in v0.1.11
type WebSearchConfig struct {
Provider string `json:"provider,omitempty"`
APIKey string `json:"api_key,omitempty"` // legacy field, migrated on read
TavilyKey string `json:"tavily_key,omitempty"`
SerperKey string `json:"serper_key,omitempty"`
BaseURL string `json:"base_url,omitempty"`
}
WebSearchConfig stores the web search provider choice and credentials.
Source Files
¶
- assistant.go
- browser.go
- external_agents.go
- mcp.go
- provider_config.go
- providers.go
- runtime.go
- runtime_env.go
- runtime_health.go
- runtime_process.go
- runtime_restart.go
- runtime_stop.go
- runtime_systemd.go
- runtime_telegram.go
- runtime_user.go
- service.go
- service_config.go
- status.go
- store.go
- telephony.go
- timezones.go
- types.go
- voice_modules.go
- web_search.go