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

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

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[ChatTemplateOptions](index.md)

# ChatTemplateOptions

[common]\
class [ChatTemplateOptions](index.md)(val chatTemplate: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null, val applyPolyfills: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val useBosToken: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val useEosToken: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val defineStrftimeNow: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val polyfillTools: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val polyfillToolCallExamples: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val polyfillToolCalls: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val polyfillToolResponses: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val polyfillSystemRole: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val polyfillObjectArguments: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val polyfillTypedContent: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null)

Per-render overrides of a chat render. Every toggle is tri-state: null keeps the template's standing behavior, a value forces it for this render only. [chatTemplate](chatTemplate.md) swaps the template source for the call; it is parsed per render, so keep the standing template for the hot path.

## Constructors

| | |
|---|---|
| [ChatTemplateOptions](ChatTemplateOptions.md) | [common]<br>constructor(chatTemplate: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null, applyPolyfills: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, useBosToken: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, useEosToken: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, defineStrftimeNow: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, polyfillTools: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, polyfillToolCallExamples: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, polyfillToolCalls: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, polyfillToolResponses: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, polyfillSystemRole: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, polyfillObjectArguments: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, polyfillTypedContent: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null) |

## Properties

| Name | Summary |
|---|---|
| [applyPolyfills](applyPolyfills.md) | [common]<br>val [applyPolyfills](applyPolyfills.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [chatTemplate](chatTemplate.md) | [common]<br>val [chatTemplate](chatTemplate.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null |
| [defineStrftimeNow](defineStrftimeNow.md) | [common]<br>val [defineStrftimeNow](defineStrftimeNow.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [polyfillObjectArguments](polyfillObjectArguments.md) | [common]<br>val [polyfillObjectArguments](polyfillObjectArguments.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [polyfillSystemRole](polyfillSystemRole.md) | [common]<br>val [polyfillSystemRole](polyfillSystemRole.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [polyfillToolCallExamples](polyfillToolCallExamples.md) | [common]<br>val [polyfillToolCallExamples](polyfillToolCallExamples.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [polyfillToolCalls](polyfillToolCalls.md) | [common]<br>val [polyfillToolCalls](polyfillToolCalls.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [polyfillToolResponses](polyfillToolResponses.md) | [common]<br>val [polyfillToolResponses](polyfillToolResponses.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [polyfillTools](polyfillTools.md) | [common]<br>val [polyfillTools](polyfillTools.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [polyfillTypedContent](polyfillTypedContent.md) | [common]<br>val [polyfillTypedContent](polyfillTypedContent.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [useBosToken](useBosToken.md) | [common]<br>val [useBosToken](useBosToken.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [useEosToken](useEosToken.md) | [common]<br>val [useEosToken](useEosToken.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |