pub struct TrackedTool {
pub id: String,
pub block: Value,
pub is_concurrency_safe: bool,
pub status: ToolStatus,
pub pending_progress: Vec<AgentEvent>,
pub has_errored: bool,
pub context_modifiers: Vec<fn(ToolContext) -> ToolContext>,
}Expand description
A tool being tracked by the streaming executor.
Fields§
§id: StringUnique tool ID
block: ValueThe tool_use block from the API
is_concurrency_safe: boolWhether this tool is concurrency-safe
status: ToolStatusCurrent status
pending_progress: Vec<AgentEvent>Pending progress messages to be yielded
has_errored: boolWhether this tool has errored
context_modifiers: Vec<fn(ToolContext) -> ToolContext>Context modifiers collected during tool execution (for contextModifier support)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrackedTool
impl RefUnwindSafe for TrackedTool
impl Send for TrackedTool
impl Sync for TrackedTool
impl Unpin for TrackedTool
impl UnsafeUnpin for TrackedTool
impl UnwindSafe for TrackedTool
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