ChatConfig
ChatConfig is the configuration interface accepted by provideChat(). The object is stored under CHAT_CONFIG for application code that wants shared chat defaults, and provideChat() uses the license token to start the package license check.
Import:
#Interface Definition
#Properties
#avatarLabel
A short string (typically one or two characters) for wrappers or components that choose to read CHAT_CONFIG.
Default: "A"
Example:
There is no avatar-specific CSS token. Use the shared --ngaf-chat-* tokens such as --ngaf-chat-surface, --ngaf-chat-text, and --ngaf-chat-text-muted to align chat surfaces with your app theme.
#assistantName
The display name for wrappers or components that choose to read CHAT_CONFIG.
Default: "Assistant"
Example:
#renderRegistry
A shared render registry value for consumers that inject CHAT_CONFIG. ChatComponent does not read this value directly; pass a ViewRegistry to the <chat [views]="..."> input for built-in generative UI rendering.
Example:
#license
A signed license token from threadplane.ai. It is optional in development and should be provided from your production configuration.
Example:
#Accessing ChatConfig at Runtime
Inject CHAT_CONFIG to read configuration values in your own components:
#Gotcha: Inputs Still Win
provideChat() is not a replacement for component inputs. For generative UI, configure the chat surface directly:
Use CHAT_CONFIG when you are building your own wrappers or want route-level defaults that your code reads explicitly.
#Type Location
The canonical ChatConfig interface is defined alongside provideChat():
libs/chat/src/lib/provide-chat.ts-- The canonical definition with JSDoc comments, alongside theprovideChat()function andCHAT_CONFIGtoken
The public API exports ChatConfig as a type-only export: