nemo_relay.tools

View as Markdown

Generated from python/nemo_relay/tools.py.

Module nemo_relay.tools.

Tool lifecycle helpers.

Functions

call

def call(name, args, *, handle = None, attributes = None, data = None, metadata = None, tool_call_id = None, timestamp: datetime | None = None)

Start a manual tool span and return its ToolHandle.

call_end

def call_end(handle, result, *, data = None, metadata = None, timestamp: datetime | None = None)

Finish a manual tool span started by call().

execute

def execute(name, args, func, *, handle = None, attributes = None, data = None, metadata = None)

Run a tool through the managed middleware pipeline.

request_intercepts

def request_intercepts(name, args)

Apply global tool request intercepts to args.

conditional_execution

def conditional_execution(name, args)

Run tool conditional-execution guardrails for args.