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§
Sourcefn invocation(&self) -> &InvocationContext
fn invocation(&self) -> &InvocationContext
Stable invocation metadata.
Sourcefn emit_progress(&self, message: &str)
fn emit_progress(&self, message: &str)
Emit an intermediate progress update for the current tool.
Sourcefn emit_observer(&self, source: Option<&str>, content: &str)
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.