pub struct Layer {Show 15 fields
pub profile: Option<String>,
pub subagent_profile: Option<String>,
pub base_url: Option<String>,
pub model: Option<String>,
pub tool_mode: Option<ToolMode>,
pub approvals: Option<Approvals>,
pub auto_compact: Option<bool>,
pub compact_percent: Option<u8>,
pub subagents: Option<bool>,
pub image_quality: Option<u8>,
pub max_tool_calls: Option<u32>,
pub instructions: Option<String>,
pub env: Option<EnvKind>,
pub image: Option<String>,
pub plugins: Option<BTreeMap<String, bool>>,
}Expand description
One level’s own settings; None means “inherit”.
Fields§
§profile: Option<String>A saved model (crate::profile::Profile, by id). When it exists it beats this
level’s base_url/model, which are kept as a copy of it for older builds; when it
doesn’t (deleted), the level inherits the endpoint.
subagent_profile: Option<String>The saved model this level’s subagents run on unless the delegate call or the
agent’s model: names one (by id). A workspace or chat sets it here; the global one is
the subagents role (crate::profile::ROLE_SUBAGENTS), which the engine shows in
the global layer it builds. One that doesn’t exist (deleted) is skipped.
base_url: Option<String>§model: Option<String>§tool_mode: Option<ToolMode>§approvals: Option<Approvals>§auto_compact: Option<bool>§compact_percent: Option<u8>Compact when a request passes this percentage of the context window (10..=95).
subagents: Option<bool>Offer the delegate tool.
image_quality: Option<u8>Images sent to the model are re-encoded as JPEG at this quality (1..=100) when that makes them smaller; 0 sends them as they are (downscaled only).
max_tool_calls: Option<u32>Most tool calls in one turn; 0: no limit.
instructions: Option<String>Appended to the system prompt after the less specific levels’ instructions.
env: Option<EnvKind>§image: Option<String>The container image (workspace only). None: the folder’s devcontainer.json if it
has one, else the global default image.
plugins: Option<BTreeMap<String, bool>>Plugins turned on (true) or off (false) at this level, by plugin id; plugins not
named inherit (on by default). Every level has it; it changes through its own message
(SetPluginEnabled), not the settings form.