pub struct ToolProgram { /* private fields */ }Expand description
Captured from the effective executing loop, never from a root registry.
Implementations§
Source§impl ToolProgram
impl ToolProgram
Sourcepub fn resolve_result_reference(
&self,
id: &str,
) -> Result<(AgentToolResult, bool), String>
pub fn resolve_result_reference( &self, id: &str, ) -> Result<(AgentToolResult, bool), String>
Resolve native authority only within this owning program’s active lifetime. Usage/names remain in the receipt for inspection but are merged by host accounting, never by the attachment. No transcript calls are synthesized.
Source§impl ToolProgram
impl ToolProgram
Sourcepub fn resolve_content_parts(
&self,
parts: Vec<ToolProgramContentPart>,
) -> Result<Vec<TextContentOrImage>, String>
pub fn resolve_content_parts( &self, parts: Vec<ToolProgramContentPart>, ) -> Result<Vec<TextContentOrImage>, String>
Resolve from this invocation’s authentic native store. Count each block before cloning it, including repeated selections, to bound expansion. The serialized array limit is not an RSS ceiling or a retained-tree charge.
Source§impl ToolProgram
impl ToolProgram
Sourcepub fn active_tool_names(&self) -> Vec<String>
pub fn active_tool_names(&self) -> Vec<String>
Effective names, including this tool, for the existing names-only action.
Sourcepub fn cancel_all(&self)
pub fn cancel_all(&self)
Cancellation stops admission. Cleanup/poll remain available to the binding.
Sourcepub fn bind_signal(self: &Arc<Self>, signal: CancellationToken)
pub fn bind_signal(self: &Arc<Self>, signal: CancellationToken)
Observe driver-local cancellation, without retaining a finished invocation.
pub fn handle( self: &Arc<Self>, args: Value, ) -> BoxFuture<'static, Result<Value, String>>
Auto Trait Implementations§
impl !Freeze for ToolProgram
impl !RefUnwindSafe for ToolProgram
impl !UnwindSafe for ToolProgram
impl Forget for ToolProgram
impl Send for ToolProgram
impl Sync for ToolProgram
impl Unpin for ToolProgram
impl UnsafeUnpin for ToolProgram
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