pub struct HiddenToolContext<'a> {
pub requested_tool: &'a str,
pub allowlist: &'a HashSet<String>,
pub messages: &'a [AgentMessage],
}Expand description
Context for ProtocolPolicy::hidden_tool_error.
Describes a tool call the model made for a tool that wasn’t in the
turn’s advertised allowlist. The policy renders a model-recoverable
error. Only consulted when no crate::plugin::ToolGate attributed
the denial via crate::plugin::ToolGate::denial_reason.
Fields§
§requested_tool: &'a strThe tool the model tried to call.
allowlist: &'a HashSet<String>The intersected per-turn allowlist that excluded it.
messages: &'a [AgentMessage]Full message history for context-aware messaging.
Auto Trait Implementations§
impl<'a> Freeze for HiddenToolContext<'a>
impl<'a> RefUnwindSafe for HiddenToolContext<'a>
impl<'a> Send for HiddenToolContext<'a>
impl<'a> Sync for HiddenToolContext<'a>
impl<'a> Unpin for HiddenToolContext<'a>
impl<'a> UnsafeUnpin for HiddenToolContext<'a>
impl<'a> UnwindSafe for HiddenToolContext<'a>
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