pub struct ToolsConfig {
pub always_load: Vec<String>,
pub plugin_dir: Option<String>,
pub overrides: Option<HashMap<String, ToolOverride>>,
pub user_input_max_questions: Option<u32>,
pub user_input_max_options: Option<u32>,
pub user_input_timeout_seconds: Option<u64>,
pub task_human_wait_cap_seconds: Option<u64>,
pub max_parallel_shell_exec: Option<usize>,
}Expand description
Model-visible tool catalog controls ([tools] table in config.toml).
Fields§
§always_load: Vec<String>Native tool names to keep loaded even when they are outside the small default core catalog. Unknown names are harmless and simply never match.
plugin_dir: Option<String>Optional directory to scan for plugin tool scripts. Scripts with a
frontmatter header (# name:, # description:, # schema:) are
auto-discovered and registered as tools.
Defaults to ~/.codewhale/tools/ when None.
overrides: Option<HashMap<String, ToolOverride>>Per-tool overrides keyed by tool name. disabled turns any tool off,
built-ins included; script / command adds a tool under a name no
built-in owns (or replaces a drop-in script of that name). A script /
command entry keyed by a built-in is refused and the built-in stays
active (D4; see ToolRegistry::apply_overrides).
user_input_max_questions: Option<u32>Ceiling on how many questions one request_user_input call may ask
(#5949). None uses
DEFAULT_MAX_QUESTIONS (6). Values outside
1..=10 are clamped with a warning rather than failing the load.
user_input_max_options: Option<u32>Ceiling on how many options each request_user_input question may
offer. None uses DEFAULT_MAX_OPTIONS
(4). Values outside 2..=10 are clamped with a warning.
user_input_timeout_seconds: Option<u64>Seconds Codewhale waits for a request_user_input answer before
cancelling it (#6003). Absent, or an explicit 0, waits until the
person answers or cancels — the same as an approval. A positive
value bounds that one wait. Values above 86,400 (24h) are clamped
with a warning.
task_human_wait_cap_seconds: Option<u64>Seconds a durable task may stay parked on an unanswered approval or
user-input prompt before it fails with human_wait_timeout. Absent,
or an explicit 0, uses the 1,800-second (30 minute) default. Values
are clamped to 1..=86_400 (24h) with a warning.
max_parallel_shell_exec: Option<usize>Trait Implementations§
Source§impl Clone for ToolsConfig
impl Clone for ToolsConfig
Source§impl Debug for ToolsConfig
impl Debug for ToolsConfig
Source§impl Default for ToolsConfig
impl Default for ToolsConfig
Source§impl<'de> Deserialize<'de> for ToolsConfig
impl<'de> Deserialize<'de> for ToolsConfig
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>,
Auto Trait Implementations§
impl Forget for ToolsConfig
impl Freeze for ToolsConfig
impl Move for ToolsConfig
impl RefUnwindSafe for ToolsConfig
impl Send for ToolsConfig
impl Sync for ToolsConfig
impl Unpin for ToolsConfig
impl UnsafeUnpin for ToolsConfig
impl UnwindSafe for ToolsConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.