Class AgentToolInvocationContext

Assembly: redb.Route.Llm.dll

Tool invocation outcome.

public sealed class AgentToolInvocationContext

Inheritance

Object→AgentToolInvocationContext

Properties

Duration

Wall-clock duration of the tool execution.

public required TimeSpan Duration { get; init; }

Exception

Exception thrown by the tool, if any.

public Exception? Exception { get; init; }

InputJson

Tool input JSON.

public required string InputJson { get; init; }

OutputJson

Tool output JSON (null when the call raised an exception).

public string? OutputJson { get; init; }

Run

Identifiers shared with the rest of the run.

public required AgentRunContext Run { get; init; }

Skipped

True when the call was skipped instead of executed: an idempotency hit, an approval denial, an

public bool Skipped { get; init; }

SkipReason

Reason for skipping (when is true). Engine-emitted values are the

public string? SkipReason { get; init; }

Tool

Tool that was invoked (or attempted).

public required LlmToolCapability Tool { get; init; }

ToolUseId

Tool-use id from the model response.

public required string ToolUseId { get; init; }