pub trait UserToolHandlerFactory:
Send
+ Sync
+ Debug {
// Required method
fn create(
&self,
nats: Client,
js: Context,
session_id: String,
agent_id: String,
budget_remaining_secs: f64,
subject_prefix: String,
) -> Arc<dyn UserToolHandlerTrait> ⓘ;
}Expand description
Factory for creating per-task user tool handlers.
The reference implementation NatsUserToolHandlerFactory
wraps UserToolHandler, which depends on NATS internals.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".