toggle menu
openai-kotlin
common
switch theme
search in API
openai-core
/
com.aallam.openai.api.chat
/
CustomTool
Custom
Tool
@
Serializable
data
class
CustomTool
(
val
custom
:
CustomToolDefinition
,
val
type
:
String
=
"custom"
)
:
ChatTool
A tool accepting free-form or grammar-constrained text.
Members
Constructors
Custom
Tool
Link copied to clipboard
constructor
(
custom
:
CustomToolDefinition
,
type
:
String
=
"custom"
)
Properties
custom
Link copied to clipboard
@
SerialName
(
value
=
"custom"
)
val
custom
:
CustomToolDefinition
Custom tool definition.
type
Link copied to clipboard
@
EncodeDefault
@
SerialName
(
value
=
"type"
)
val
type
:
String
Tool kind.