Documentation
¶
Overview ¶
Package boot initializes and assembles all components of the OK agent: config, providers, tools, plugins, permissions, hooks, memory, semantic search, and the controller. It is the composition root: every other package is wired together here so the frontends (CLI, HTTP, Desktop) only need one call to Build().
Package boot wires the i18n translation resolver chain into the application.
The resolver chain is:
- PrecompiledResolver — compiled-in Messages catalogs (30+ languages)
- LiveResolver — runtime LLM translation for any other language
- English fallback — always works
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(e *config.ProviderEntry) (provider.Provider, error)
func PluginSpecs ¶
func PluginSpecs(entries []config.PluginEntry) []plugin.Spec
Types ¶
type Options ¶
Options carries the per-run knobs a frontend chooses; everything else is read from configuration. Model "" falls back to the configured default_model; MaxSteps 0 uses the config/default. RequireKey forces the executor's API key to be present (run/serve pass true so a missing key fails fast; chat/desktop pass false so the UI is reachable before a key is set). Sink receives the agent's typed event stream.