Skip to main content

agentic_tools_core/
context.rs

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