pub struct ToolNode {
pub id: String,
pub python: String,
pub hermes_source: String,
pub lease: Value,
pub receipt_dir: String,
pub timeout_ms: u64,
pub ctx: RunContext,
}Expand description
A graph node that spawns the Hermes tools MCP broker as a child process and invokes tools through MCP JSON-RPC over stdio.
Fields§
§id: String§python: String§hermes_source: String§lease: Value§receipt_dir: String§timeout_ms: u64§ctx: RunContextTrait Implementations§
Source§impl Node for ToolNode
impl Node for ToolNode
Source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 AgentState,
_: &'life2 GraphConfig,
) -> Pin<Box<dyn Future<Output = Result<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 AgentState,
_: &'life2 GraphConfig,
) -> Pin<Box<dyn Future<Output = Result<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute this node
Auto Trait Implementations§
impl Freeze for ToolNode
impl RefUnwindSafe for ToolNode
impl Send for ToolNode
impl Sync for ToolNode
impl Unpin for ToolNode
impl UnsafeUnpin for ToolNode
impl UnwindSafe for ToolNode
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