pub struct FleetExecConfig {
pub allowed_tools: Vec<String>,
pub disallowed_tools: Vec<String>,
pub max_turns: u32,
pub max_spawn_depth: u32,
pub append_system_prompt: String,
pub output_format: String,
}Expand description
Headless worker execution constraints (#3027).
These limits apply to all fleet workers and sub-agents spawned through the headless worker runtime. Task specs can tighten but not loosen them.
Fields§
§allowed_tools: Vec<String>Tools that are always allowed regardless of role or task spec.
disallowed_tools: Vec<String>Tools that are always disallowed, overriding role and task spec.
max_turns: u32Hard ceiling on sub-agent steps (tool calls + model turns). Workers that exceed this are terminated. Default: unbounded (u32::MAX).
max_spawn_depth: u32Recursive child-agent budget for headless fleet workers.
Defaults to DEFAULT_SPAWN_DEPTH (3) so a fleet worker has the SAME
recursion budget as a standalone sub-agent — fleet and sub-agents are one
substrate, not two. Set 0 to block child agent calls (the root worker
still runs); the value is clamped to MAX_SPAWN_DEPTH_CEILING.
append_system_prompt: StringExtra system prompt text appended to every headless worker. Useful for injecting org-wide policy or behavior constraints.
output_format: StringOutput format for fleet worker results.
"text" (default) or "stream-json" for newline-delimited JSON events.
Trait Implementations§
Source§impl Clone for FleetExecConfig
impl Clone for FleetExecConfig
Source§fn clone(&self) -> FleetExecConfig
fn clone(&self) -> FleetExecConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more