Struct Tool Execution Context
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 ToolExecutionContext {
pub tool_name: String,
pub args: Value,
pub tool_call_id: Option<String>,
}
Transport-independent input supplied to a plugin tool execution interceptor.
Native and worker SDKs share this owned value. Continuation capabilities and transport credentials remain in their backend adapters.
Fields
tool_name: String
Tool name associated with the execution.
args: Value
JSON argument payload entering this intercept.
tool_call_id: Option<String>
Provider-issued tool-call correlation identifier, when supplied.
Implementations
impl ToolExecutionContext
impl ToolExecutionContext
tool_name
pub fn tool_name(&self) -> &str
Returns the tool name associated with the execution.
args
pub fn args(&self) -> &Value
Returns the argument payload entering this intercept.
into_args
pub fn into_args(self) -> Value
Consumes the context and returns its argument payload.
tool_call_id
pub fn tool_call_id(&self) -> Option<&str>
Returns the provider-issued tool-call correlation identifier.
Trait Implementations
impl Clone for ToolExecutionContext
impl Clone for ToolExecutionContext
clone
fn clone(&self) -> ToolExecutionContext
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for ToolExecutionContext
impl Debug for ToolExecutionContext
fmt
fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>
impl<'de> Deserialize<'de> for ToolExecutionContext
impl<'de> Deserialize<'de> for ToolExecutionContext
deserialize
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolExecutionContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Serialize for ToolExecutionContext
impl Serialize for ToolExecutionContext
serialize
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,