Struct Tool Execution Intercept Outcome
Generated from cargo doc --no-deps -p nemo-relay -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>,
}
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
new
pub fn new(result: Value) -> ToolExecutionInterceptOutcome
Create an outcome without pending marks.
annotated
pub fn annotated(
result: Value,
annotation: Value,
) -> ToolExecutionInterceptOutcome
Create an outcome with an opaque annotation and no pending marks.
with_annotation
pub fn with_annotation(self, annotation: Value) -> ToolExecutionInterceptOutcome
Replace the opaque annotation while preserving the application result and pending marks.
without_annotation
pub fn without_annotation(self) -> ToolExecutionInterceptOutcome
Remove the annotation while preserving the application result and pending marks.
into_execution_result
pub fn into_execution_result(self) -> ToolExecutionResult
Convert the intercept outcome to its application-visible result.
with_pending_mark
pub fn with_pending_mark(
self,
mark: PendingMarkSpec,
) -> ToolExecutionInterceptOutcome
Append one pending mark while preserving callback order.
Trait Implementations
impl Clone for ToolExecutionInterceptOutcome
impl Clone for ToolExecutionInterceptOutcome
clone
fn clone(&self) -> ToolExecutionInterceptOutcome
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for ToolExecutionInterceptOutcome
impl Debug for ToolExecutionInterceptOutcome
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl<'de> Deserialize<'de> for ToolExecutionInterceptOutcome
impl<'de> Deserialize<'de> for ToolExecutionInterceptOutcome
deserialize
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolExecutionInterceptOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl From<ToolExecutionResult> for ToolExecutionInterceptOutcome
impl From<ToolExecutionResult> for ToolExecutionInterceptOutcome
from
fn from(result: ToolExecutionResult) -> ToolExecutionInterceptOutcome
impl From<Value> for ToolExecutionInterceptOutcome
impl From<Value> for ToolExecutionInterceptOutcome
from
fn from(result: Value) -> ToolExecutionInterceptOutcome
impl PartialEq for ToolExecutionInterceptOutcome
impl PartialEq for ToolExecutionInterceptOutcome
eq
fn eq(&self, other: &ToolExecutionInterceptOutcome) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for ToolExecutionInterceptOutcome
impl Serialize for ToolExecutionInterceptOutcome
serialize
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,