Skip to navigation

Struct Tool Call Execute Params

View as Markdown

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 ToolCallExecuteParams {
    pub name: String,
    pub args: Value,
    pub func: Arc<dyn Fn(Value) -> Pin<Box<dyn Future<Output = Result<ToolExecutionResult, FlowError>> + Send>> + Sync + Send>,
    pub parent: Option<ScopeHandle>,
    pub attributes: ToolAttributes,
    pub data: Option<Value>,
    pub metadata: Option<Value>,
    pub tool_call_id: Option<String>,
}

Builder parameters for tool_call_execute.

Fields

name: String

Tool name recorded on emitted lifecycle events.

args: Value

Raw tool arguments passed into the managed pipeline.

func: Arc<dyn Fn(Value) -> Pin<Box<dyn Future<Output = Result<ToolExecutionResult, FlowError>> + Send>> + Sync + Send>

Tool callback or execution continuation.

parent: Option<ScopeHandle>

Optional explicit parent scope for the emitted tool span.

attributes: ToolAttributes

Tool attribute bitflags applied to the managed span.

data: Option<Value>

Optional application payload stored on the handle but not emitted as Agent Trajectory Observability Format (ATOF) data.

metadata: Option<Value>

Optional JSON metadata recorded on emitted events.

tool_call_id: Option<String>

Optional provider-specific correlation identifier.

Implementations

impl ToolCallExecuteParams

impl ToolCallExecuteParams

builder

pub fn builder() -> ToolCallExecuteParamsBuilder

Create a builder for building ToolCallExecuteParams. On the builder, call .name(...), .args(...), .func(...), .parent(...)(optional), .attributes(...)(optional), .data(...)(optional), .metadata(...)(optional), .tool_call_id(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of ToolCallExecuteParams.