Class LlmConversationContext

Assembly: redb.Route.Llm.dll

Snapshot of the current conversation visible to the
${conversation.*} expression family. Set by
on the parent exchange under
the well-known key .

public sealed class LlmConversationContext

Inheritance

Object→LlmConversationContext

Properties

Id

Conversation identifier (matches AgentRequest.ConversationId).

public string? Id { get; init; }

Iterations

Number of completed tool-loop iterations.

public int Iterations { get; init; }

LastMessage

Latest assistant message in the transcript (null before the first model response).

public LlmMessage? LastMessage { get; init; }

MessageCount

Number of messages in the transcript so far (includes the seeding user message).

public int MessageCount { get; init; }

Tokens

Aggregate token usage across the current run.

public LlmUsage Tokens { get; init; }