toggle menu
openai-kotlin
common
switch theme
search in API
openai-core
/
com.aallam.openai.api.chat
/
ToolCall
/
Function
Function
@
Serializable
@
SerialName
(
value
=
"function"
)
data
class
Function
(
val
id
:
ToolId
,
val
function
:
FunctionCall
)
:
ToolCall
Tool call.
Members
Constructors
Function
Link copied to clipboard
constructor
(
id
:
ToolId
,
function
:
FunctionCall
)
Properties
function
Link copied to clipboard
@
SerialName
(
value
=
"function"
)
val
function
:
FunctionCall
The function that the model called.
id
Link copied to clipboard
@
SerialName
(
value
=
"id"
)
val
id
:
ToolId
The ID of the tool call.