ClikaRT::tokenizer::ChatTemplateInputs
struct
Header: ClikaRT/tokenizer/tokenizer.h
The full per-render inputs for apply_chat_template: the chat turns plus everything a tool-calling or context-aware template consumes. All JSON values are read during the call, not retained.
Data members
messages
json::Json messages
Array of {"role", "content", ...} turn objects. Assistant turns may carry tool_calls; a "tool" role turn carries a tool response (with tool_call_id where the template expects one).
Declared in ClikaRT/tokenizer/tokenizer.h, line 95
tools
json::Json tools
Array of tool/function schemas offered to the model, or null for none. A template that cannot express tools natively gets the standard polyfills.
Declared in ClikaRT/tokenizer/tokenizer.h, line 98
add_generation_prompt
bool add_generation_prompt = true
Append the assistant-turn priming so the model continues as the assistant.
Declared in ClikaRT/tokenizer/tokenizer.h, line 100
extra_context
json::Json extra_context
Object whose keys are injected as additional top-level template variables, or null for none.
Declared in ClikaRT/tokenizer/tokenizer.h, line 103
now_epoch_seconds
std::int64_t now_epoch_seconds = 0
The fixed clock behind the template's strftime_now, formatted as UTC, so a render is reproducible and byte-identical across host timezones. Pass the current Unix time for wall-clock templates; the default renders at epoch 0.
Declared in ClikaRT/tokenizer/tokenizer.h, line 108