pub struct AwaitingToolCall {
pub pending_calls: Vec<ToolCall>,
pub call_ids: Vec<Option<String>>,
}Expand description
Agent has requested tool calls and is waiting for results.
This state holds the pending tool calls that need to be executed. Valid transitions:
provide_tool_results()→Ready(continue execution)require_approval()→AwaitingApproval(human-in-the-loop)cancel()→Finished(abort execution)
Fields§
§pending_calls: Vec<ToolCall>Pending tool calls requested by the LLM.
call_ids: Vec<Option<String>>Native tool call IDs (if using provider-native tool calling).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AwaitingToolCall
impl RefUnwindSafe for AwaitingToolCall
impl Send for AwaitingToolCall
impl Sync for AwaitingToolCall
impl Unpin for AwaitingToolCall
impl UnsafeUnpin for AwaitingToolCall
impl UnwindSafe for AwaitingToolCall
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