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

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

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

# onToolCall

[common]\
open fun [onToolCall](onToolCall.md)(call: [ToolCall](../ToolCall/index.md))

One call the reply made, after its text and before [onDone](onDone.md); the same calls ride [GenerationReport.toolCalls](../GenerationReport/toolCalls.md). Never called when the request offered no tools.