pub struct SessionToolRelay<S: SessionSource> { /* private fields */ }Expand description
A ToolRelay over a SessionSource + the run id/token — the generic glue
that lets BrainProcessor stay session-agnostic (the embedder’s concrete
SessionSource plugs in here).
Trait Implementations§
Source§impl<S: SessionSource> ToolRelay for SessionToolRelay<S>
impl<S: SessionSource> ToolRelay for SessionToolRelay<S>
Source§fn node_tools<'life0, 'life1, 'async_trait>(
&'life0 self,
node_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Vec<ToolDecl>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn node_tools<'life0, 'life1, 'async_trait>(
&'life0 self,
node_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Vec<ToolDecl>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The current node’s MCP/HTTP workflow tools (degrades to empty on error).
Source§fn relay<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
node_id: &'life1 str,
tool_name: &'life2 str,
args: &'life3 Value,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn relay<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
node_id: &'life1 str,
tool_name: &'life2 str,
args: &'life3 Value,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Relay a workflow tool call → the control plane runs the egress; returns the
content string to feed back to the model verbatim.
Auto Trait Implementations§
impl<S> Freeze for SessionToolRelay<S>
impl<S> RefUnwindSafe for SessionToolRelay<S>where
Arc<S>: RefUnwindSafe,
impl<S> Send for SessionToolRelay<S>
impl<S> Sync for SessionToolRelay<S>
impl<S> Unpin for SessionToolRelay<S>
impl<S> UnsafeUnpin for SessionToolRelay<S>where
Arc<S>: UnsafeUnpin,
impl<S> UnwindSafe for SessionToolRelay<S>where
Arc<S>: UnwindSafe,
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