pub enum InvocationOrigin {
ToolCallIntercepted {
backend_call_id: String,
backend_tool_name: String,
backend_arguments: Value,
},
PluginInitiated {
plugin_id: String,
},
}Expand description
Where a frontend tool invocation originated from.
Variants§
ToolCallIntercepted
A backend tool call was intercepted (e.g. permission check).
Fields
PluginInitiated
A plugin directly initiated the frontend tool call (no backend tool context).
Trait Implementations§
Source§impl Clone for InvocationOrigin
impl Clone for InvocationOrigin
Source§fn clone(&self) -> InvocationOrigin
fn clone(&self) -> InvocationOrigin
Returns a duplicate of the value. Read more
1.0.0 · 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 InvocationOrigin
impl Debug for InvocationOrigin
Source§impl<'de> Deserialize<'de> for InvocationOrigin
impl<'de> Deserialize<'de> for InvocationOrigin
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 InvocationOrigin
impl PartialEq for InvocationOrigin
Source§impl Serialize for InvocationOrigin
impl Serialize for InvocationOrigin
impl StructuralPartialEq for InvocationOrigin
Auto Trait Implementations§
impl Freeze for InvocationOrigin
impl RefUnwindSafe for InvocationOrigin
impl Send for InvocationOrigin
impl Sync for InvocationOrigin
impl Unpin for InvocationOrigin
impl UnsafeUnpin for InvocationOrigin
impl UnwindSafe for InvocationOrigin
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