toggle menu
openai-kotlin
common
switch theme
search in API
openai-core
/
com.aallam.openai.api.conversation
/
Conversation
Conversation
@
Serializable
data
class
Conversation
(
val
id
:
ConversationId
,
val
createdAt
:
Long
,
val
metadata
:
Map
<
String
,
String
>
?
=
null
,
val
objectType
:
String
=
"conversation"
)
A persisted conversation. Items are accessed separately through the Conversations API.
Members
Constructors
Conversation
Link copied to clipboard
constructor
(
id
:
ConversationId
,
createdAt
:
Long
,
metadata
:
Map
<
String
,
String
>
?
=
null
,
objectType
:
String
=
"conversation"
)
Properties
created
At
Link copied to clipboard
@
SerialName
(
value
=
"created_at"
)
val
createdAt
:
Long
id
Link copied to clipboard
@
SerialName
(
value
=
"id"
)
val
id
:
ConversationId
metadata
Link copied to clipboard
@
SerialName
(
value
=
"metadata"
)
val
metadata
:
Map
<
String
,
String
>
?
=
null
object
Type
Link copied to clipboard
@
SerialName
(
value
=
"object"
)
val
objectType
:
String