Skip to main content

Module template_engine

Module template_engine 

Source
Expand description

Jinja2 template engine for chat templates using minijinja

Structsยง

ChatMessage
Chat message structure for template rendering.
TemplatToolCall
Tool call representation for template rendering.
TemplateConfig
Template configuration loaded from tokenizer_config.json
TemplateEngine
Template engine for rendering chat templates
TemplateToolCallFunction
Tool call function with parsed arguments.