formatResolver property

ChatFormat? Function()? formatResolver
final

Optional late-bound format, read per request after the session resolves. This lets a host defer the choice until the model file is actually on disk — e.g. picking the format from the GGUF's embedded chat template during load — instead of guessing from the file name at construction time. Returning null falls back to format.

Implementation

final ChatFormat? Function()? formatResolver;