AssistantTool

@Serializable
interface AssistantTool

Tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types code_interpreter, retrieval, or function.

Inheritors

Types

Link copied to clipboard
@Serializable
data object CodeInterpreter : AssistantTool

The type of tool being defined: code_interpreter

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

The type of tool being defined: function

Link copied to clipboard
@Serializable
data object RetrievalTool : AssistantTool

The type of tool being defined: retrieval