pub struct AgentNode { /* private fields */ }Expand description
The agent node.
Implementations§
Trait Implementations§
Source§impl Node for AgentNode
impl Node for AgentNode
Source§fn tracks_turns(&self) -> bool
fn tracks_turns(&self) -> bool
The loop charges the budget per model turn and keeps a checkpoint per turn.
Source§fn run(&self, ctx: NodeContext) -> BoxFuture<'_, NodeResult>
fn run(&self, ctx: NodeContext) -> BoxFuture<'_, NodeResult>
Execute the node. Dropping the returned future cancels the node.
Source§fn inputs(&self) -> Vec<Selector>
fn inputs(&self) -> Vec<Selector>
Selectors this node reads.
crate::graph::Graph::build rejects selectors
whose namespace is neither a node id nor sys / env / conversation
(catching typos at load time) and warns about references into other
container bodies. Return every selector the node may read, including
placeholders inside templates.Source§fn branch_handles(&self) -> Option<Vec<String>>
fn branch_handles(&self) -> Option<Vec<String>>
Every handle a
NodeRole::Branch node may select, when known from its
configuration (if-else case ids, classifier class ids…). Graph building
rejects edges with other handles. None (the default) falls back to the
kind’s catalog descriptor: Fixed handles are checked, Dynamic ones are
not, and non-branch nodes have the single handle source.Auto Trait Implementations§
impl Forget for AgentNode
impl Freeze for AgentNodewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
PhantomData<Part>: Freeze,
PhantomData<ToolRef>: Freeze,
*const ArcInner<[Arc<str>]> is !null: Freeze,
PhantomData<ArcInner<[Arc<str>]>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<(String, Vec<(String, Template)>)>: Freeze,
impl Move for AgentNode
impl RefUnwindSafe for AgentNode
impl Send for AgentNode
impl Sync for AgentNode
impl Unpin for AgentNode
impl UnsafeUnpin for AgentNodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
PhantomData<Part>: UnsafeUnpin,
PhantomData<ToolRef>: UnsafeUnpin,
*const ArcInner<[Arc<str>]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[Arc<str>]>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<(String, Vec<(String, Template)>)>: UnsafeUnpin,
impl UnwindSafe for AgentNode
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