Skip to main content

Module backend

Module backend 

Source

Structs§

BackendCtx
Per-call context passed to each AiBackend::invoke. Holds the effective config and a verbosity level for logging.
Registry
Registry of available backends. Built-in backends are registered at engine startup; the cmd backend is materialized on demand from [ai.backends.<name>] config entries.
Response
Successful backend response.

Traits§

AiBackend
A backend dispatches a Request to an underlying CLI / API and returns a Response. Implementations live in backends/<name>.rs.

Functions§

dispatch
Resolves the named backend (built-in or config-defined cmd) and invokes it. Returns the Response or a tagged error string.