pub trait ToolScope: Send + Sync {
// Required method
fn tools_for(&self, session: SessionId) -> Arc<dyn ToolProvider> ⓘ;
}Expand description
The session-scoped tool resolver a loop may mount.
A tool that binds its authority to the calling session (SELF-EVOLUTION-MODEL
§9.4: the publish tool derives its run, step, attempt and patch from the
committed streams, never from model-supplied coordinates) cannot be a
process-wide ToolProvider: the provider seam carries no caller. The loop
resolves tools_for once per drive — the drain is the one session boundary
— and uses the returned provider for every tool dispatch of that drive.
None (every legacy constructor) leaves the mounted provider untouched and
is byte-identical.
Required Methods§
fn tools_for(&self, session: SessionId) -> Arc<dyn ToolProvider> ⓘ
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".