pub struct StatusTool { /* private fields */ }Implementations§
Source§impl StatusTool
impl StatusTool
Sourcepub const NAME: &'static str = "status"
pub const NAME: &'static str = "status"
The name this tool answers to, read by its registration and by
mode::core_tools.
Sourcepub fn new(snapshot: StatusSnapshot) -> Result<StatusTool, AxError>
pub fn new(snapshot: StatusSnapshot) -> Result<StatusTool, AxError>
Sourcepub fn watching(
snapshot: StatusSnapshot,
children: Box<dyn Fn() -> Vec<ChildStatus> + Send + Sync>,
) -> Result<StatusTool, AxError>
pub fn watching( snapshot: StatusSnapshot, children: Box<dyn Fn() -> Vec<ChildStatus> + Send + Sync>, ) -> Result<StatusTool, AxError>
A run whose delegate desk is asked every time the model calls
status.
A closure rather than a field, because delegation happens after
this tool is built: a snapshot taken before the run started is
empty for the whole run. A closure rather than a seam, because
the desk lives in collab and this crate may not depend on it -
the assembly layer owns both ends and hands one to the other.
§Errors
Propagates a malformed parameter schema.
Sourcepub fn metering(self, context: ContextReading) -> StatusTool
pub fn metering(self, context: ContextReading) -> StatusTool
The reading the run records the provider’s count into, which the
ctx line reports (crates/runtime/spec/Tools.lean §8-14, status).
Sourcepub fn clocked(self, clock: ClockReading) -> StatusTool
pub fn clocked(self, clock: ClockReading) -> StatusTool
The reading the run’s clock hook keeps, which the now line
reports (crates/runtime/spec/Clock.lean §8-53). It reports the time whatever the
run’s stamp granularity: now is a field of this tool’s answer,
not an envelope attachment, and a city that turned stamps off
has not asked its model to stop knowing the time.
Sourcepub fn reporting(self, backlog: Backlog) -> StatusTool
pub fn reporting(self, backlog: Backlog) -> StatusTool
The table whose members at this run’s address the thirteenth
line reports (crates/runtime/spec/Backlog.lean §8-28-2).
Trait Implementations§
Source§impl Tool for StatusTool
impl Tool for StatusTool
fn meta(&self) -> &ToolMeta
Source§fn invoke(&self, call: &ToolCall) -> Result<ToolOutcome, AxError>
fn invoke(&self, call: &ToolCall) -> Result<ToolOutcome, AxError>
meta().name
must return E_INVALID_ARGS, never route silently.