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

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

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

# ToolChoice

sealed class [ToolChoice](index.md)

How the model may use the tools a request offers.

#### Inheritors

| |
|---|
| [None](None/index.md) |
| [Auto](Auto/index.md) |
| [Required](Required/index.md) |
| [Named](Named/index.md) |

## Types

| Name | Summary |
|---|---|
| [Auto](Auto/index.md) | [common]<br>object [Auto](Auto/index.md) : [ToolChoice](index.md)<br>The model decides whether to call; the default when tools are offered. |
| [Named](Named/index.md) | [common]<br>data class [Named](Named/index.md)(val name: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)) : [ToolChoice](index.md)<br>The model must call the function [name](Named/name.md). |
| [None](None/index.md) | [common]<br>object [None](None/index.md) : [ToolChoice](index.md)<br>The tools are not offered and no call is read; the call syntax stays text. |
| [Required](Required/index.md) | [common]<br>object [Required](Required/index.md) : [ToolChoice](index.md)<br>The model must call a tool. |