pub struct ToolPrepareContext { /* private fields */ }Implementations§
Source§impl ToolPrepareContext
impl ToolPrepareContext
pub fn session_id(&self) -> &str
pub fn tool_call_id(&self) -> Option<&str>
pub fn turn_context(&self) -> &TurnContext
pub fn plugin_input<T>(&self, plugin_id: &'static str) -> Option<&T>where
T: 'static,
pub async fn session_snapshot(&self) -> Result<SessionSnapshot, PluginError>
pub async fn tool_catalog(&self) -> Result<Vec<Value>, PluginError>
Trait Implementations§
Source§impl Clone for ToolPrepareContext
impl Clone for ToolPrepareContext
Source§fn clone(&self) -> ToolPrepareContext
fn clone(&self) -> ToolPrepareContext
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ToolPrepareContext
impl !UnwindSafe for ToolPrepareContext
impl Freeze for ToolPrepareContext
impl Send for ToolPrepareContext
impl Sync for ToolPrepareContext
impl Unpin for ToolPrepareContext
impl UnsafeUnpin for ToolPrepareContext
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