pub struct InvokeToolCall {
pub source: String,
pub correlation_id: Option<String>,
pub context: CurrentContext,
pub thought: String,
pub action: NextAction,
pub tool: Arc<dyn LlmTool>,
pub tool_arguments: HashMap<String, Value>,
}Expand description
Event to trigger a tool invocation.
This event carries the information needed to execute a specific tool
with given arguments, along with the reasoning behind the decision.
Note: Cannot be cloned/serialized due to Arc
Fields§
§source: String§correlation_id: Option<String>§context: CurrentContextThe current context as we work through our response.
thought: StringThe reasoning behind the decision.
action: NextActionThe next action type.
tool: Arc<dyn LlmTool>The tool instance to invoke.
tool_arguments: HashMap<String, Value>Arguments to pass to the tool.
Trait Implementations§
Source§impl Debug for InvokeToolCall
impl Debug for InvokeToolCall
Source§impl Event for InvokeToolCall
impl Event for InvokeToolCall
Source§fn correlation_id(&self) -> Option<&str>
fn correlation_id(&self) -> Option<&str>
Returns the correlation ID if set
Source§fn set_correlation_id(&mut self, id: String)
fn set_correlation_id(&mut self, id: String)
Sets the correlation ID
Auto Trait Implementations§
impl Freeze for InvokeToolCall
impl !RefUnwindSafe for InvokeToolCall
impl Send for InvokeToolCall
impl Sync for InvokeToolCall
impl Unpin for InvokeToolCall
impl !UnwindSafe for InvokeToolCall
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