nemo_relay.tools

View as Markdown

Generated from python/nemo_relay/tools.py.

Module nemo_relay.tools.

Tool lifecycle helpers.

Functions

call

1def 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

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

Finish a manual tool span started by call().

execute

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

Run a tool through the managed middleware pipeline.

request_intercepts

1def request_intercepts(name, args)

Apply global tool request intercepts to args.

conditional_execution

1def conditional_execution(name, args)

Run tool conditional-execution guardrails for args.