OpenAIToolCall

@Serializable
data class OpenAIToolCall(val index: Int, val id: String? = null, val type: String? = null, val function: OpenAIFunctionCall)

A tool call in an OpenAI chat completion response.

Constructors

Link copied to clipboard
constructor(index: Int, id: String? = null, type: String? = null, function: OpenAIFunctionCall)

Properties

Link copied to clipboard

The function call details.

Link copied to clipboard
val id: String?

Unique identifier for this tool call.

Link copied to clipboard
val index: Int

The index of this tool call (for multiple concurrent calls).

Link copied to clipboard
val type: String?

The tool type (always "function").