Path: redb/redb.Templates/templates/redb-chat/RedbChat.Module/ChatNames.cs
Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb
Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Templates/templates/redb-chat/RedbChat.Module/ChatNames.cs
----
namespace RedbChat.Module;
/// Names shared by the routes and the hosts.
public static class ChatNames
{
/// The chat itself: a message in, the model's answer out. The console and HTTP both call it.
public const string ChatUri = "direct:chat";
/// The registry name of the LLM connection factory.
public const string LlmFactory = "chat-llm";
///
/// The conversation a message belongs to. Messages with the same id share their history, which
/// RedBase keeps between restarts. HTTP callers send it as X-Chat-Id.
///
public const string ChatIdHeader = "X-Chat-Id";
/// Who is talking. HTTP callers send it as X-User-Id; the console uses the OS user name.
public const string UserIdHeader = "X-User-Id";
}