pub trait ToolContext: Send + Sync {
// Required methods
fn key_value_store(&self) -> &dyn KeyValueStore;
fn plugin_id(&self) -> &str;
fn agent_id(&self) -> &str;
}Expand description
Execution context passed to Tool::execute() and Skill::execute_tool().
Provides access to the key-value store, plugin identity, and agent identity. This is the plugin’s window into the host.
Required Methods§
Sourcefn key_value_store(&self) -> &dyn KeyValueStore
fn key_value_store(&self) -> &dyn KeyValueStore
Access the key-value store for plugin state.