pub struct Layer {Show 13 fields
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§
§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.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Layer
impl<'de> Deserialize<'de> for Layer
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Layer, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Layer, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Layer
Source§impl Serialize for Layer
impl Serialize for Layer
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Forget for Layer
impl Freeze for Layer
impl Move for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more