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

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

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

# chatSession

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

A conversation over this model, opened with [system](chatSession.md) as its system turn when given and [tools](chatSession.md) offered on every turn (a turn may offer its own).