Struct Tool Call Execute Params

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub struct ToolCallExecuteParams {
    pub name: String,
    pub args: Json,
    pub func: ToolExecutionNextFn,
    pub parent: Option<ScopeHandle>,
    pub attributes: ToolAttributes,
    pub data: Option<Json>,
    pub metadata: Option<Json>,
}

Builder parameters for tool_call_execute.

Fields

name: String

Tool name recorded on emitted lifecycle events.

args: Json

Raw tool arguments passed into the managed pipeline.

func: ToolExecutionNextFn

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<Json>

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

metadata: Option<Json>

Optional JSON metadata recorded on emitted events.

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) to set the values of the fields. Finally, call .build() to create the instance of ToolCallExecuteParams.