pub struct Effective {Show 16 fields
pub base_url: Sourced<String>,
pub model: Sourced<String>,
pub key_from: Option<Level>,
pub tool_mode: Sourced<ToolMode>,
pub approvals: Sourced<Approvals>,
pub auto_compact: Sourced<bool>,
pub compact_percent: Sourced<u8>,
pub subagents: Sourced<bool>,
pub subagent_profile: Option<Sourced<String>>,
pub image_quality: Sourced<u8>,
pub max_tool_calls: Sourced<u32>,
pub instructions: Vec<(Level, String)>,
pub env: Sourced<EnvKind>,
pub load_project: Option<bool>,
pub image: Option<String>,
pub plugins: BTreeMap<String, Sourced<bool>>,
}Expand description
What a chat (or a workspace’s new chats) actually uses.
Fields§
§base_url: Sourced<String>§model: Sourced<String>§key_from: Option<Level>The level whose API key is used, if any (keys never leave the engine).
tool_mode: Sourced<ToolMode>§approvals: Sourced<Approvals>§auto_compact: Sourced<bool>§compact_percent: Sourced<u8>§subagents: Sourced<bool>§subagent_profile: Option<Sourced<String>>The saved model (profile id) subagents use by default, and the level that picked it;
None: the chat’s own model. resolve takes the most specific level’s;
crate::profile::resolve_with skips ones that don’t exist.
image_quality: Sourced<u8>JPEG quality for images sent to the model; 0: as they are.
max_tool_calls: Sourced<u32>Most tool calls in one turn; 0: no limit.
instructions: Vec<(Level, String)>Every level’s instructions, least specific first; all of them apply.
env: Sourced<EnvKind>§load_project: Option<bool>Load the folder’s project environment without asking (Some(true): the workspace
is Nix), or ask as usual (None). Follows the workspace even when a chat moves its
commands to this machine.
image: Option<String>The workspace’s own image, if it set one.
plugins: BTreeMap<String, Sourced<bool>>Plugins some level turned on or off, by id, with the level that decided. Plugins not listed are on.
Implementations§
Source§impl Effective
impl Effective
Sourcepub fn container(&self) -> Option<bool>
pub fn container(&self) -> Option<bool>
Commands in a container (Some(true)), on this machine (Some(false)), or as the
workspace’s answers say (None, asked once).
Sourcepub fn plugin_on(&self, id: &str) -> Sourced<bool>
pub fn plugin_on(&self, id: &str) -> Sourced<bool>
Is plugin id on (and which level says so; Level::Default: nobody switched it)?
Sourcepub fn instructions_text(&self) -> String
pub fn instructions_text(&self) -> String
The instructions as one block for the system prompt (empty if there are none).