pub struct BoundTools<'a> { /* private fields */ }Expand description
One invocation’s fixed descriptions, concrete targets, and parent control.
The binding borrows the executor configuration without holding locks. It cannot be cloned, and processing consumes it. It does not prevent a caller from creating a new binding or independently replaying a declaration.
Implementations§
Source§impl BoundTools<'_>
impl BoundTools<'_>
Sourcepub fn surface(&self) -> &ToolSurface
pub fn surface(&self) -> &ToolSurface
Borrows the ordered, immutable model-facing catalog fixed by this bind.
Source§impl BoundTools<'_>
impl BoundTools<'_>
Sourcepub async fn process(
self,
batch: &mut ToolBatch,
) -> Result<(), ToolProcessingError>
pub async fn process( self, batch: &mut ToolBatch, ) -> Result<(), ToolProcessingError>
Processes a new, entirely pending batch using only this binding’s fixed targets. The caller retains the batch on every return path.
On controlled interruption, accepted results remain, started calls with no accepted result become unknown, and unstarted calls remain pending. Ordinary failed, rejected, or unknown results do not make this method fail. It does not commit material or cancel the caller’s parent token.