toggle menu
openai-kotlin
common
switch theme
search in API
openai-core
/
com.aallam.openai.api.chat
/
ChatMessage
/
Companion
Companion
object
Companion
Members
Functions
Assistant
Link copied to clipboard
fun
Assistant
(
content
:
String
?
=
null
,
name
:
String
?
=
null
,
toolCalls
:
List
<
ToolCall
>
?
=
null
)
:
ChatMessage
Create an assistant chat message.
System
Link copied to clipboard
fun
System
(
content
:
String
?
=
null
,
name
:
String
?
=
null
)
:
ChatMessage
Create a system chat message.
Tool
Link copied to clipboard
fun
Tool
(
content
:
String
?
=
null
,
toolCallId
:
ToolId
)
:
ChatMessage
Create a tool chat message.
User
Link copied to clipboard
fun
User
(
content
:
String
,
name
:
String
?
=
null
)
:
ChatMessage
fun
User
(
content
:
List
<
ContentPart
>
,
name
:
String
?
=
null
)
:
ChatMessage
Create a system chat message.