Class LlmMessage

Assembly: redb.Route.Llm.dll

Single message in the conversation transcript sent to the provider.

public sealed class LlmMessage

Inheritance

Object→LlmMessage

Properties

CacheBreakpoint

Ask the provider to place a prompt-cache breakpoint after this message: everything

public bool CacheBreakpoint { get; init; }

Content

Ordered content blocks for this message.

public IReadOnlyList<LlmContentBlock> Content { get; init; }

Role

"user", "assistant", "system", or "tool".

public required string Role { get; init; }

Methods

Assistant(string)

Convenience constructor for plain-text assistant messages.

public static LlmMessage Assistant(string text)

User(string)

Convenience constructor for plain-text user messages.

public static LlmMessage User(string text)