Versions in this module Expand all Collapse all v0 v0.1.0 Sep 26, 2026 Changes in this version + const ConfigVersion + func Migrate(body []byte) ([]byte, error) + func Schema() map[string]any + func SchemaJSON() ([]byte, error) + type Config struct + Experts []ExpertConfig + HTTP HTTPConfig + Models ModelConfig + Ollama OllamaConfig + Runtime RuntimeConfig + Version int + func DefaultConfig() Config + func Load(path string, getenv func(string) string, overrides Overrides) (Config, error) + func Parse(body []byte, getenv func(string) string) (Config, error) + func (c Config) Validate() error + type Duration time.Duration + func (d *Duration) UnmarshalJSON(body []byte) error + func (d *Duration) UnmarshalText(text []byte) error + func (d Duration) MarshalJSON() ([]byte, error) + func (d Duration) MarshalText() ([]byte, error) + type ExpertConfig struct + CanSynthesize bool + DefaultTier string + Description string + ID string + Keywords []string + MaxIterations int + MaxToolCalls int + Name string + NegativeKeywords []string + Priority int + Prompt string + type ExpertView struct + CanSynthesize bool + DefaultTier string + Description string + ID string + Name string + type HTTPConfig struct + Address string + AllowedHosts []string + AllowedOrigins []string + BearerTokenEnv string + MaxBodyBytes int64 + MaxConcurrent int + RequestTimeout Duration + ShutdownGrace Duration + type HealthReport struct + CheckedAt time.Time + Providers []ProviderStatus + Status string + type Manifest struct + Experts []ExpertView + Providers []string + SchemaVersion int + SideEffectsEnabled bool + Transports []string + type ModelConfig struct + Balanced string + Fast string + Strong string + type OllamaConfig struct + AllowRemote bool + BaseURL string + ContextWindow int + Enabled bool + MaxBodyBytes int64 + MaxParallel int + Timeout Duration + type Options struct + ProviderSources []ProviderSource + Skills *skills.Registry + type Overrides struct + HTTPAddress string + type PlanOptions struct + EnableChunking bool + MaxIterations int + MaxToolCalls int + ResponseTokenBudget int + SynthesisModel string + ToolCallModel string + type PlanView struct + CatalogVersion string + ContextDigest string + Expert ExpertView + LoadedSkills []string + OmittedSkills []string + Options PlanOptions + PolicyVersion string + Selection SelectionView + SystemPromptAugmentation string + Tier TierView + ToolNames []string + type ProviderSource interface + Discover func(context.Context) ([]moe.ProviderCandidate, error) + Name func() string + type ProviderStatus struct + CandidateCount int + Error string + Name string + Ready bool + type RoutingInput struct + HasBuildContext bool + HasCodeContext bool + HasIssueContext bool + HasTraceContext bool + HistoryDepth int + Topics []string + type Runtime struct + func New(cfg Config, opts Options) (*Runtime, error) + func (r *Runtime) Close() error + func (r *Runtime) Health(ctx context.Context) HealthReport + func (r *Runtime) Manifest() Manifest + func (r *Runtime) Plan(_ context.Context, query string, routing RoutingInput) (PlanView, error) + func (r *Runtime) PlanForExpert(_ context.Context, id string) (PlanView, error) + func (r *Runtime) Validate() error + type RuntimeConfig struct + MaxInjectedSkillTokens int + MaxIterations int + MaxToolCalls int + ResponseTokenBudget int + type SelectionView struct + Confidences map[string]float64 + Primary string + Reasoning string + Secondary []string + type TierView struct + Reasoning string + Synthesis string + ToolCall string