Struct Tool Execution Result
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 ToolExecutionResult {
pub result: Value,
pub annotation: Option<Value>,
}
Canonical application-visible result of tool execution.
Relay transports result and annotation without interpreting either value. The annotation is an adjacent metadata channel and does not impose a schema on the application-owned result.
Fields
result: Value
Application-owned tool result.
annotation: Option<Value>
Optional opaque metadata associated with the result.
Implementations
impl ToolExecutionResult
impl ToolExecutionResult
new
pub fn new(result: Value) -> ToolExecutionResult
Create a result without an annotation.
annotated
pub fn annotated(result: Value, annotation: Value) -> ToolExecutionResult
Create a result with an opaque annotation.
with_annotation
pub fn with_annotation(self, annotation: Value) -> ToolExecutionResult
Replace the opaque annotation while preserving the application result.
without_annotation
pub fn without_annotation(self) -> ToolExecutionResult
Remove the annotation while preserving the application result.
Trait Implementations
impl Clone for ToolExecutionResult
impl Clone for ToolExecutionResult
clone
fn clone(&self) -> ToolExecutionResult
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for ToolExecutionResult
impl Debug for ToolExecutionResult
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl<'de> Deserialize<'de> for ToolExecutionResult
impl<'de> Deserialize<'de> for ToolExecutionResult
deserialize
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolExecutionResult, <__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 ToolExecutionResult
impl From<Value> for ToolExecutionResult
from
fn from(result: Value) -> ToolExecutionResult
impl PartialEq for ToolExecutionResult
impl PartialEq for ToolExecutionResult
eq
fn eq(&self, other: &ToolExecutionResult) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for ToolExecutionResult
impl Serialize for ToolExecutionResult
serialize
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,