pub trait ContextAwareTool: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
fn call_with_context<'life0, 'async_trait>(
&'life0 self,
args: Value,
ctx: ToolContext,
) -> Pin<Box<dyn Future<Output = Result<Value, SynapticError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
A tool that receives execution context from the graph.
This extends the basic Tool trait with graph-level context
(current state, store, tool call ID). Implement this for tools
that need to read or modify graph state.