Class LlmToolContext

Assembly: redb.Route.Llm.dll

Snapshot of the tool currently being dispatched, visible to the
${tool.*} expression family. Set by
on the parent exchange under
the well-known key .

public sealed class LlmToolContext

Inheritance

Object→LlmToolContext

Properties

Duration

Wall-clock execution duration. while in flight.

public TimeSpan Duration { get; init; }

InputJson

Raw JSON input passed to the tool.

public string InputJson { get; init; }

Name

Tool name as declared in the tool_use block.

public string Name { get; init; }

ResultJson

Raw JSON output produced by the tool. Null while the tool is in flight.

public string? ResultJson { get; init; }

ToolUseId

Provider-issued tool use id (correlates the call to its result block).

public string ToolUseId { get; init; }