Kory
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Kory
openai
/
io.kory.openai.completions.message.content
/
OpenAIChatCompletionContentPart
/
Text
Text
@
SerialName
(
value
=
"text"
)
@
Serializable
data
class
Text
(
val
text
:
String
)
:
OpenAIChatCompletionContentPart
,
Mapper
<
ContentPart
>
A text content part.
Members
Constructors
Text
Link copied to clipboard
constructor
(
text
:
String
)
Properties
text
Link copied to clipboard
val
text
:
String
The text content.
Functions
map
Link copied to clipboard
open
override
fun
map
(
)
:
ContentPart
to
Content
Part
Link copied to clipboard
open
override
fun
toContentPart
(
)
:
ContentPart
Converts this to a core
ContentPart
.