Skip to main content

ToolRuntime

Trait ToolRuntime 

Source
pub trait ToolRuntime: Send + Sync {
    // Required methods
    fn invocation(&self) -> &InvocationContext;
    fn emit_progress(&self, message: &str);
    fn emit_observer(&self, source: Option<&str>, content: &str);
}
Expand description

Runtime bridge presented to tools during execution.

This allows plugins to consume stable runtime context and emit bounded execution signals without depending on Cortex internals.

Required Methods§

Source

fn invocation(&self) -> &InvocationContext

Stable invocation metadata.

Source

fn emit_progress(&self, message: &str)

Emit an intermediate progress update for the current tool.

Source

fn emit_observer(&self, source: Option<&str>, content: &str)

Emit observer text for the parent turn. This never speaks directly to the user-facing channel.

Implementors§