Skip to navigation

Struct Tool Execution Intercept Outcome

View as MarkdownOpen in Claude

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct ToolExecutionInterceptOutcome {
pub result: Value,
pub annotation: Option<Value>,
pub pending_marks: Vec<PendingMarkSpec>,
}

Referenced types: Value, Option, Vec, PendingMarkSpec

Canonical result returned by a tool execution intercept.

result and annotation are returned to the remaining middleware and application. pending_marks are Relay-owned lifecycle metadata retained separately and emitted after the tool-end event.

Fields

result: Value

Tool result returned to the remaining middleware and application.

annotation: Option<Value>

Optional opaque metadata associated with the result.

pending_marks: Vec<PendingMarkSpec>

Ordered marks for the managed tool lifecycle owner to emit.

Implementations

impl ToolExecutionInterceptOutcome

impl ToolExecutionInterceptOutcome

Referenced types: ToolExecutionInterceptOutcome

new

pub fn new(result: Value) -> ToolExecutionInterceptOutcome

Referenced types: Value, ToolExecutionInterceptOutcome

Create an outcome without pending marks.

annotated

pub fn annotated(
result: Value,
annotation: Value,
) -> ToolExecutionInterceptOutcome

Referenced types: Value, ToolExecutionInterceptOutcome

Create an outcome with an opaque annotation and no pending marks.

with_annotation

pub fn with_annotation(self, annotation: Value) -> ToolExecutionInterceptOutcome

Referenced types: Value, ToolExecutionInterceptOutcome

Replace the opaque annotation while preserving the application result and pending marks.

without_annotation

pub fn without_annotation(self) -> ToolExecutionInterceptOutcome

Referenced types: ToolExecutionInterceptOutcome

Remove the annotation while preserving the application result and pending marks.

into_execution_result

pub fn into_execution_result(self) -> ToolExecutionResult

Referenced types: ToolExecutionResult

Convert the intercept outcome to its application-visible result.

with_pending_mark

pub fn with_pending_mark(
self,
mark: PendingMarkSpec,
) -> ToolExecutionInterceptOutcome

Referenced types: PendingMarkSpec, ToolExecutionInterceptOutcome

Append one pending mark while preserving callback order.

Trait Implementations

impl Clone for ToolExecutionInterceptOutcome

impl Clone for ToolExecutionInterceptOutcome

Referenced types: Clone, ToolExecutionInterceptOutcome

clone

fn clone(&self) -> ToolExecutionInterceptOutcome

Referenced types: clone, ToolExecutionInterceptOutcome

clone_from

fn clone_from(&mut self, source: &Self)

Referenced types: clone_from

impl Debug for ToolExecutionInterceptOutcome

impl Debug for ToolExecutionInterceptOutcome

Referenced types: Debug, ToolExecutionInterceptOutcome

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Referenced types: fmt, Formatter, Result, (), Error

impl<'de> Deserialize<'de> for ToolExecutionInterceptOutcome

impl<'de> Deserialize<'de> for ToolExecutionInterceptOutcome

Referenced types: Deserialize, ToolExecutionInterceptOutcome

deserialize

fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolExecutionInterceptOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,

Referenced types: deserialize, Result, ToolExecutionInterceptOutcome, Deserializer, Error

impl From<ToolExecutionResult> for ToolExecutionInterceptOutcome

impl From<ToolExecutionResult> for ToolExecutionInterceptOutcome

Referenced types: From, ToolExecutionResult, ToolExecutionInterceptOutcome

from

fn from(result: ToolExecutionResult) -> ToolExecutionInterceptOutcome

Referenced types: from, ToolExecutionResult, ToolExecutionInterceptOutcome

impl From<Value> for ToolExecutionInterceptOutcome

impl From<Value> for ToolExecutionInterceptOutcome

Referenced types: From, Value, ToolExecutionInterceptOutcome

from

fn from(result: Value) -> ToolExecutionInterceptOutcome

Referenced types: from, Value, ToolExecutionInterceptOutcome

impl PartialEq for ToolExecutionInterceptOutcome

impl PartialEq for ToolExecutionInterceptOutcome

Referenced types: PartialEq, ToolExecutionInterceptOutcome

eq

fn eq(&self, other: &ToolExecutionInterceptOutcome) -> bool

Referenced types: eq, ToolExecutionInterceptOutcome, bool

ne

fn ne(&self, other: &Rhs) -> bool

Referenced types: ne, &Rhs, bool

impl Serialize for ToolExecutionInterceptOutcome

impl Serialize for ToolExecutionInterceptOutcome

Referenced types: Serialize, ToolExecutionInterceptOutcome

serialize

fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,

Referenced types: serialize, Result, Serializer, Ok, Error

impl WireValue<ToolExecutionInterceptOutcome> for ToolExecutionInterceptOutcome

impl WireValue<ToolExecutionInterceptOutcome> for ToolExecutionInterceptOutcome

Referenced types: ToolExecutionInterceptOutcome

to_wire

fn to_wire(self) -> Result<ToolExecutionInterceptOutcome, ConversionError>

Referenced types: Result

from_wire

fn from_wire(
value: ToolExecutionInterceptOutcome,
) -> Result<ToolExecutionInterceptOutcome, ConversionError>

Referenced types: Result, ToolExecutionInterceptOutcome