---
title: "render"
sidebar_label: "render"
description: "Kotlin binding reference: render."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[GenerativeModel](index.md)/[render](render.md)

# render

[common]\
fun [render](render.md)(messages: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[ChatMessage](../ChatMessage/index.md)&gt;, tools: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[ToolDef](../ToolDef/index.md)&gt; = emptyList()): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)

The prompt the chat template writes for [messages](render.md) with [tools](render.md) offered, as a request would send it (the generation prompt appended); a model without a template answers the turns' text joined by newlines.