OpenAIStreamToolCall

class OpenAIStreamToolCall(val index: Int, val id: String?, val function: OpenAIStreamFunction?)(source)

Represents a tool call in the OpenAI stream, specifying the function invoked and its related metadata.

Constructors

Link copied to clipboard
constructor(index: Int, id: String?, function: OpenAIStreamFunction?)

Properties

Link copied to clipboard

The function object containing the name and arguments of the function invoked. This value can be null if no function call is associated.

Link copied to clipboard
val id: String?

The unique identifier associated with the tool call. This value can be null.

Link copied to clipboard
val index: Int
Link copied to clipboard

The type of the tool. Currently, only function is supported.