Skip to main content

Module api_sections

Module api_sections 

Expand description

Curated config-section endpoints. Used by the /config page in the web dashboard to navigate the schema by curated section rather than raw prop paths. OpenAPI is authoritative for the exact route set.

Structs§

AgentOptionsResponse
All alias-reference choices an agent form needs, in one round-trip. Channels and model model_providers are returned in dotted form (telegram.default, anthropic.work); the bundle/profile/namespace lists are bare HashMap keys.
ModelsQuery
SectionItemPath
SectionPath
SectionSelectBody

Functions§

build_agent_options
derive_section_status
handle_agent_options
GET /api/config/agent-options — every alias-reference list the agent form needs, derived from the live config. Mirrors the lists the TUI computes locally for its alias pickers.
handle_catalog
GET /api/config/catalog — list every model provider the CLI wizard knows about. The dashboard shows these in the “+ Add model provider” picker so CLI / web stay in sync.
handle_catalog_models
handle_section_picker
handle_section_select
handle_section_status
handle_sections