pub struct CodeModeConfig {
pub enabled: bool,
}Expand description
Code Mode pilot configuration.
Experimental: lets the agent compose many tool calls inside one sandboxed Python 3 / Node.js snippet instead of one model round trip per call. Direct tool calls remain the default path.
Fields§
§enabled: boolOpt the workspace in to experimental agent-written snippet
execution. Default false (or the env var when the config key is
absent). The session-effective flag additionally ORs the env var at
ToolRegistry::apply_config_policies, so env wins over explicit
config at runtime.
Trait Implementations§
Source§impl Clone for CodeModeConfig
impl Clone for CodeModeConfig
Source§impl Debug for CodeModeConfig
impl Debug for CodeModeConfig
Source§impl Default for CodeModeConfig
impl Default for CodeModeConfig
Source§impl<'de> Deserialize<'de> for CodeModeConfig
impl<'de> Deserialize<'de> for CodeModeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for CodeModeConfig
impl JsonSchema for CodeModeConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for CodeModeConfig
impl Freeze for CodeModeConfig
impl Move for CodeModeConfig
impl RefUnwindSafe for CodeModeConfig
impl Send for CodeModeConfig
impl Sync for CodeModeConfig
impl Unpin for CodeModeConfig
impl UnsafeUnpin for CodeModeConfig
impl UnwindSafe for CodeModeConfig
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