pub struct Spec {
pub name: String,
pub description: String,
pub model: ModelRef,
pub data_policy: DataPolicy,
pub read_roots: Vec<PathBuf>,
pub nodes: NodeGraph,
pub branches: Branches,
}Expand description
A parsed spec.
Fields§
§name: StringJob name, used to submit against it.
description: StringTrigger conditions for a calling agent — when to use this, never how it works. A description that summarises the workflow invites an agent to act on the summary instead of reading the real contract.
model: ModelRefWhich model serves this job’s inference.
data_policy: DataPolicyData-handling policy; see DataPolicy.
read_roots: Vec<PathBuf>Directories this job may read beneath. Empty means none.
nodes: NodeGraphThe proc-blocks implementing the job, as a graph of nodes.
Each node’s declared input is typechecked against the nodes feeding
it before anything runs. block = "..."; is sugar for a one-node
graph — see crate::graph::NodeGraph::single.
branches: BranchesConditional dispatch: which branch target fires for each labeled route a branching node produces. Empty when the spec has none.
Trait Implementations§
impl StructuralPartialEq for Spec
Auto Trait Implementations§
impl Freeze for Spec
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnsafeUnpin for Spec
impl UnwindSafe for Spec
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