Table of Contents

Delegate ChatPromptFormatter

Namespace
Qavren.Edge.Chat
Assembly
Qavren.Edge.Chat.Onnx.dll

Builds the prompt string handed to the tokenizer.

public delegate string ChatPromptFormatter(IReadOnlyList<ChatMessage> messages, ChatOptions? options, IChatPromptContext context)

Parameters

messages IReadOnlyList<ChatMessage>

The reduced history, system prompt already folded in.

options ChatOptions

The per-call options, or null.

context IChatPromptContext

What the formatter may reach.

Returns

string

The prompt text.