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: Json,
pub annotation: Option<Json>,
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: Json
Tool result returned to the remaining middleware and application.
annotation: Option<Json>
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: Json) -> Self
Create an outcome without pending marks.
annotated
pub fn annotated(result: Json, annotation: Json) -> Self
Create an outcome with an opaque annotation and no pending marks.
with_annotation
pub fn with_annotation(self, annotation: Json) -> Self
Replace the opaque annotation while preserving the application result and pending marks.
without_annotation
pub fn without_annotation(self) -> Self
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) -> Self
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
impl<'de> Deserialize<'de> for ToolExecutionInterceptOutcome
impl<'de> Deserialize<'de> for ToolExecutionInterceptOutcome
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl From<ToolExecutionResult> for ToolExecutionInterceptOutcome
impl From<ToolExecutionResult> for ToolExecutionInterceptOutcome
from
fn from(result: ToolExecutionResult) -> Self
impl From<Value> for ToolExecutionInterceptOutcome
impl From<Value> for ToolExecutionInterceptOutcome
from
fn from(result: Json) -> Self
impl PartialEq for ToolExecutionInterceptOutcome
impl PartialEq for ToolExecutionInterceptOutcome
eq
fn eq(&self, other: &Self) -> 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::Ok, __S::Error>where
__S: Serializer,