pub struct BeforeToolCallContext<'a> {
pub assistant_message: &'a AssistantMessage,
pub tool_call: &'a ToolCall,
pub args: &'a Value,
pub context: &'a AgentContext,
}Expand description
Context passed to before_tool_call. Mirrors TS BeforeToolCallContext.
Fields§
§assistant_message: &'a AssistantMessage§tool_call: &'a ToolCall§args: &'a Value§context: &'a AgentContextAuto Trait Implementations§
impl<'a> !RefUnwindSafe for BeforeToolCallContext<'a>
impl<'a> !UnwindSafe for BeforeToolCallContext<'a>
impl<'a> Freeze for BeforeToolCallContext<'a>
impl<'a> Send for BeforeToolCallContext<'a>
impl<'a> Sync for BeforeToolCallContext<'a>
impl<'a> Unpin for BeforeToolCallContext<'a>
impl<'a> UnsafeUnpin for BeforeToolCallContext<'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