Delegate ChatPromptFormatter
Builds the prompt string handed to the tokenizer.
public delegate string ChatPromptFormatter(IReadOnlyList<ChatMessage> messages, ChatOptions? options, IChatPromptContext context)
Parameters
messagesIReadOnlyList<ChatMessage>The reduced history, system prompt already folded in.
optionsChatOptionsThe per-call options, or null.
contextIChatPromptContextWhat the formatter may reach.
Returns
- string
The prompt text.