pub struct Plan {
pub agent: AgentName,
pub runner: Runner,
pub model: Option<String>,
pub payload: String,
pub hangar: PathBuf,
pub work_dir: PathBuf,
pub env: BTreeMap<String, String>,
pub mcp_config: Option<PathBuf>,
}Expand description
Everything needed to start one run.
Assembled by the caller from a factory definition and a flight; this module does not read configuration or decide anything about routing.
Fields§
§agent: AgentNameWhich agent is running.
runner: RunnerHow to invoke its CLI.
model: Option<String>The model to pass, when the agent declared one.
payload: StringThe composed payload, from layover_core::payload::compose.
hangar: PathBufWhere this run’s files go: the payload, the transcript, the state record.
work_dir: PathBufThe directory the child runs in.
env: BTreeMap<String, String>Variables to pass, already resolved from the supervisor’s own environment.
mcp_config: Option<PathBuf>The MCP configuration written for this run, when the factory is serving one.
Held as a path rather than as content because the flag a CLI takes names a file, and the file has to outlive this struct — it is read by the child, after the spawn.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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