Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Assistant(val id: AssistantId, val createdAt: Long, val name: String? = null, val description: String? = null, val model: ModelId, val instructions: String? = null, val tools: List<AssistantTool>, val toolResources: ToolResources? = null, val metadata: Map<String, String>, val temperature: Double? = null, val topP: Double? = null, val responseFormat: AssistantResponseFormat? = null)
Link copied to clipboard
@Serializable
value class AssistantId(val id: String)

ID of an assistant.

Link copied to clipboard
@Serializable
data class AssistantRequest(val model: ModelId? = null, val name: String? = null, val description: String? = null, val instructions: String? = null, val tools: List<AssistantTool>? = null, val toolResources: ToolResources? = null, val metadata: Map<String, String>? = null, val temperature: Double? = null, val topP: Double? = null, val responseFormat: AssistantResponseFormat? = null)
Link copied to clipboard
Link copied to clipboard

Represents the format of the response from the assistant.

Link copied to clipboard
@Serializable
sealed interface AssistantTool

A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types code_interpreter, file_search, or function.

Link copied to clipboard
@Serializable
data class CodeInterpreterResources(val fileIds: List<FileId>? = null)
Link copied to clipboard
@Serializable
data class FileSearchResources(val vectorStoreIds: List<VectorStoreId>? = null)
Link copied to clipboard
@Serializable
data class Function(val name: String, val description: String, val parameters: Parameters)
Link copied to clipboard

Builder of Function instances.

Link copied to clipboard
@Serializable
data class ToolResources(val fileSearch: FileSearchResources? = null, val codeInterpreter: CodeInterpreterResources? = null)

Functions

Link copied to clipboard
Link copied to clipboard
fun JsonObject.Companion.buildJsonObject(block: JsonObjectBuilder.() -> Unit): JsonObject
Link copied to clipboard

Creates Function instance.