toggle menu
openai-kotlin
common
switch theme
search in API
openai-core
/
com.aallam.openai.api.chat
/
ToolChoice
/
Named
Named
@
Serializable
data
class
Named
(
val
type
:
ToolType
?
=
null
,
val
function
:
FunctionToolChoice
?
=
null
)
:
ToolChoice
Specifies a tool the model should use.
Members
Constructors
Named
Link copied to clipboard
constructor
(
type
:
ToolType
?
=
null
,
function
:
FunctionToolChoice
?
=
null
)
Properties
function
Link copied to clipboard
@
SerialName
(
value
=
"function"
)
val
function
:
FunctionToolChoice
?
=
null
type
Link copied to clipboard
@
SerialName
(
value
=
"type"
)
val
type
:
ToolType
?
=
null