AssistantTool

@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.

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "code_interpreter")
data object CodeInterpreter : AssistantTool

The type of tool being defined: code_interpreter

Link copied to clipboard
@Serializable
@SerialName(value = "file_search")
data object FileSearch : AssistantTool

The type of tool being defined: file_search

Link copied to clipboard
@Serializable
@SerialName(value = "function")
data class FunctionTool(val function: Function) : AssistantTool

The type of tool being defined: function