pub struct ToolCallContext {
pub call_block_id: BlockId,
pub input: ToolCallPayload,
pub result_notes: Vec<TextPayload>,
}Expand description
Identity of one tool dispatch, handed to Tool::execute.
Fields§
§call_block_id: BlockIdThe declaration block whose result this dispatch produces.
input: ToolCallPayloadThe effective input after any pre-processing edits.
result_notes: Vec<TextPayload>Notes added before execution. ToolBatch::resolve_at prepends these
to the returned result’s notes; tool implementations should return
only notes they add and must not copy this field into the result.
Implementations§
Source§impl ToolCallContext
impl ToolCallContext
Sourcepub fn from_declaration(
call_block_id: BlockId,
declaration: &ToolCallPayload,
) -> Self
pub fn from_declaration( call_block_id: BlockId, declaration: &ToolCallPayload, ) -> Self
Builds execution material from a committed declaration.
Trait Implementations§
Source§impl Clone for ToolCallContext
impl Clone for ToolCallContext
Auto Trait Implementations§
impl Freeze for ToolCallContext
impl RefUnwindSafe for ToolCallContext
impl Send for ToolCallContext
impl Sync for ToolCallContext
impl Unpin for ToolCallContext
impl UnsafeUnpin for ToolCallContext
impl UnwindSafe for ToolCallContext
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