Skip to main content

Module agent

Module agent 

Source
Expand description

The declarative agent model.

An agent is one agents/<name>.toml file. It names a configured AI chat surface — prompt, access policy and whether its history is persisted. When storage is enabled the app gets two generated resources, one for threads and one for messages, so migrations and read-only history browsing use the same machinery as every other table.

Structs§

Agent
One configured chat agent.
AgentAiOverride
Optional per-agent AI client overrides, from a top-level [ai] table in the agent file.
AgentMeta
The [agent] section.
AgentPermissions
Per-agent access policy.
AgentStorage
Optional persisted history for an agent.
AgentTool
One function-backed tool an agent may ask the model to call.