pub struct LaunchRequest<'a> {
pub path: &'a str,
pub task: Option<&'a str>,
pub stdin_is_terminal: &'a dyn Fn() -> bool,
pub model: Option<String>,
pub workdir: &'a str,
pub yolo: bool,
pub allow: Vec<String>,
pub max_depth: Option<usize>,
pub regions: HashMap<String, String>,
pub no_seed_commands: bool,
pub output_request: Option<OutputSpec>,
}Expand description
What lev run was asked for, before any of it is resolved.
One struct because these are one thing: the command line. Each field is a
flag the user typed, and grouping them keeps the difference between “what was
asked for” and “what that resolves to” visible - resolve_spawn_args turns
this into a SpawnArgs, and the two are deliberately different types.
Fields§
§path: &'a strThe blueprint path or name, as given.
task: Option<&'a str>The task text, if it was given rather than read from stdin or an editor.
stdin_is_terminal: &'a dyn Fn() -> boolWhether stdin is a terminal, injected so the editor path is testable.
model: Option<String>--model, overriding the blueprint’s choice.
workdir: &'a strThe working directory tools run in.
yolo: bool--yolo: run unattended.
allow: Vec<String>--allow: tools permitted outright.
max_depth: Option<usize>--max-depth: sub-agent tree cap.
regions: HashMap<String, String>--<region> seeds, keyed by caller-input region name.
no_seed_commands: bool--no-seed-commands: refuse the blueprint’s command seeds.
output_request: Option<OutputSpec>The output shape the caller asked for, overriding the blueprint’s.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LaunchRequest<'a>
impl<'a> !Send for LaunchRequest<'a>
impl<'a> !Sync for LaunchRequest<'a>
impl<'a> !UnwindSafe for LaunchRequest<'a>
impl<'a> Freeze for LaunchRequest<'a>
impl<'a> Unpin for LaunchRequest<'a>
impl<'a> UnsafeUnpin for LaunchRequest<'a>
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> 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>, which can then be
downcast into Box<dyn 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>, which 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.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more