ResponseTool

@Serializable(with = ResponseToolSerializer::class)
sealed interface ResponseTool

A tool the model may use while producing a response.

Unlike /chat/completions, which only takes functions, the Responses API also serves the server-side WebSearchTool — the model searches the web itself and the results never pass through the caller.

See also

Inheritors

Properties

Link copied to clipboard
abstract val type: String

Raw type discriminator of the tool.