Skip to main content

Module chat

Module chat 

Source
Expand description

Chat-template engine for RLX runners.

The implementation moved into the published rlx-text crate so downstream tools (servers, web playground, training scripts) can depend on the chat plumbing without pulling in this CLI helper crate. This module is now a re-export shim — use rlx_cli::ChatTemplate and use rlx_text::ChatTemplate resolve to the same type.

Structs§

ChatMessage
One chat turn. role is conventionally one of system, user, assistant, tool — but templates can accept anything.
ChatTemplate
Compiled Jinja chat template + BOS/EOS strings.

Enums§

ChatTemplateSource
Where a ChatTemplate was loaded from. Useful for diagnostics and for letting a caller round-trip the source string into config.

Functions§

auto_chat_template
Convenience for the M3 auto-dispatch family: load the chat template