pub struct FixedSamplingHandlerFactory { /* private fields */ }Expand description
Trivial factory that ignores the agent and always returns the same
handler. Preserves the pre-R1 behaviour of “one fixed handler for all
agents”. New runtime wiring should provide a registry-driven factory
that resolves the agent’s model_id → provider → LlmExecutor and
wraps it in DefaultSamplingHandler — that’s the per-agent fix the
MCP audit identified.
Implementations§
Source§impl FixedSamplingHandlerFactory
impl FixedSamplingHandlerFactory
pub fn new(handler: Arc<dyn SamplingHandler>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FixedSamplingHandlerFactory
impl !UnwindSafe for FixedSamplingHandlerFactory
impl Freeze for FixedSamplingHandlerFactory
impl Send for FixedSamplingHandlerFactory
impl Sync for FixedSamplingHandlerFactory
impl Unpin for FixedSamplingHandlerFactory
impl UnsafeUnpin for FixedSamplingHandlerFactory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more