pub struct ToolOutputDenied {
pub tool_call_id: ToolCallId,
pub tool_name: ToolName,
pub input: JsonValue,
pub reason: Option<String>,
pub provider_executed: bool,
pub dynamic: bool,
pub tool_metadata: Option<JsonObject>,
pub provider_metadata: Option<ProviderMetadata>,
}Expand description
A tool call whose execution was denied.
Fields§
§tool_call_id: ToolCallIdIdentifier of the tool call.
tool_name: ToolNameName of the tool.
input: JsonValueThe input.
reason: Option<String>Why execution was denied.
provider_executed: boolWhether the provider would have executed the tool.
dynamic: boolWhether the tool is dynamic.
tool_metadata: Option<JsonObject>Metadata from the current tool definition when approval was replayed.
provider_metadata: Option<ProviderMetadata>Provider routing metadata from the original tool call.
Trait Implementations§
Source§impl Clone for ToolOutputDenied
impl Clone for ToolOutputDenied
Source§fn clone(&self) -> ToolOutputDenied
fn clone(&self) -> ToolOutputDenied
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolOutputDenied
impl Debug for ToolOutputDenied
Source§impl<'de> Deserialize<'de> for ToolOutputDenied
impl<'de> Deserialize<'de> for ToolOutputDenied
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolOutputDenied
impl PartialEq for ToolOutputDenied
Source§impl Serialize for ToolOutputDenied
impl Serialize for ToolOutputDenied
impl StructuralPartialEq for ToolOutputDenied
Auto Trait Implementations§
impl Freeze for ToolOutputDenied
impl RefUnwindSafe for ToolOutputDenied
impl Send for ToolOutputDenied
impl Sync for ToolOutputDenied
impl Unpin for ToolOutputDenied
impl UnsafeUnpin for ToolOutputDenied
impl UnwindSafe for ToolOutputDenied
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