pub struct ToolCtx {
pub run_id: String,
pub call_id: String,
pub idempotency_key: String,
}Expand description
Passed to every tool invocation.
Fields§
§run_id: String§call_id: String§idempotency_key: StringStable across retries and crash-recovery re-executions of the same call. Forward it to downstream APIs to get exactly-once effects.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolCtx
impl RefUnwindSafe for ToolCtx
impl Send for ToolCtx
impl Sync for ToolCtx
impl Unpin for ToolCtx
impl UnsafeUnpin for ToolCtx
impl UnwindSafe for ToolCtx
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