Prompt Conversion
Resolves a prompt for a specific model — the port of upstream's convertToLanguageModelPrompt. Grouped as object members because top-level loose functions are disallowed in this codebase; behavior is identical to the prior free-function form.
Since
0.3.0-beta01
Functions
Link copied to clipboard
suspend fun convertToLanguageModelPrompt(messages: List<ModelMessage>, supportedUrls: Map<String, List<String>> = emptyMap(), download: DownloadFunction? = null): List<ModelMessage>
Resolve a prompt for a specific model — the port of upstream's convertToLanguageModelPrompt: