Kory
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Kory
openai
/
io.kory.openai.responses.dsl
/
OpenAIResponseContentBuilder
Open
AIResponse
Content
Builder
class
OpenAIResponseContentBuilder
Members
Constructors
Open
AIResponse
Content
Builder
Link copied to clipboard
constructor
(
)
Functions
file
Link copied to clipboard
fun
file
(
fileData
:
String
?
=
null
,
fileUrl
:
String
?
=
null
,
fileName
:
String
?
=
null
,
fileId
:
String
?
=
null
,
detail
:
OpenAIDetail
?
=
null
)
file
Data
Link copied to clipboard
fun
fileData
(
data
:
String
,
fileName
:
String
?
=
null
)
file
Id
Link copied to clipboard
fun
fileId
(
id
:
String
,
detail
:
OpenAIDetail
=
OpenAIDetail.Responses.File.Auto
)
file
Url
Link copied to clipboard
fun
fileUrl
(
url
:
String
,
detail
:
OpenAIDetail
=
OpenAIDetail.Responses.File.Auto
)
image
Link copied to clipboard
fun
image
(
imageUrl
:
String
?
=
null
,
fileId
:
String
?
=
null
,
detail
:
OpenAIDetail
?
=
null
)
image
Id
Link copied to clipboard
fun
imageId
(
id
:
String
)
image
Url
Link copied to clipboard
fun
imageUrl
(
url
:
String
,
detail
:
OpenAIDetail
=
OpenAIDetail.Responses.Image.Auto
)
text
Link copied to clipboard
fun
text
(
text
:
String
)