1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//! Tool execution context. /// Context passed to tool executions. /// /// This struct is extensible for future needs like: /// - Cancellation tokens /// - Workspace/environment info /// - Tracing/spans /// - Request metadata #[derive(Clone, Default, Debug)] pub struct ToolContext { // Extensible: add cancellation, workspace, env, tracing, etc. _private: (), } impl ToolContext { /// Create a new default context. pub fn new() -> Self { Self::default() } }