OpenAIMessageParamsBuilder

Functions

Link copied to clipboard
fun assistant(content: OpenAIChatCompletionContent? = null, name: String? = null, refusal: String? = null, audio: OpenAIAssistantAudioParam? = null, functionCall: OpenAIFunctionCall? = null, toolCalls: List<OpenAIToolCall>? = null)
fun assistant(text: String, name: String? = null, refusal: String? = null, audio: OpenAIAssistantAudioParam? = null, functionCall: OpenAIFunctionCall? = null, toolCalls: List<OpenAIToolCall>? = null)
fun assistant(name: String? = null, refusal: String? = null, audio: OpenAIAssistantAudioParam? = null, functionCall: OpenAIFunctionCall? = null, toolCalls: List<OpenAIToolCall>? = null, contentBuilder: OpenAIChatCompletionContentBuilder.() -> Unit? = null)
Link copied to clipboard
fun developer(content: OpenAIChatCompletionContent, name: String? = null)
fun developer(text: String, name: String? = null)
fun developer(name: String? = null, content: OpenAIChatCompletionContentBuilder.() -> Unit)
Link copied to clipboard
fun system(content: OpenAIChatCompletionContent, name: String? = null)
fun system(text: String, name: String? = null)
fun system(name: String? = null, content: OpenAIChatCompletionContentBuilder.() -> Unit)
Link copied to clipboard
fun tool(content: OpenAIChatCompletionContent, toolCallId: String, name: String? = null)
fun tool(toolCallId: String, name: String? = null, content: OpenAIChatCompletionContentBuilder.() -> Unit)
Link copied to clipboard
fun user(content: OpenAIChatCompletionContent, name: String? = null)
fun user(text: String, name: String? = null)
fun user(name: String? = null, content: OpenAIChatCompletionContentBuilder.() -> Unit)