WebSearchCallItem

@Serializable
class WebSearchCallItem(val action: JsonObject? = null, val id: String? = null, val status: ResponseStatus? = null) : ResponseItem

A web search the API ran on its own, server side.

Appears in ModelResponse.output once the web_search tool fires. Pass it back as-is in the next turn's input — the server restores the search results behind it.

Constructors

Link copied to clipboard
constructor(action: JsonObject? = null, id: String? = null, status: ResponseStatus? = null)

Properties

Link copied to clipboard
val action: JsonObject?

Description of the action performed (search, open_page or find_in_page), kept as raw JSON since the API documents no fixed shape for it.

Link copied to clipboard
val id: String?

Identifier the API assigned to the item.

Link copied to clipboard

Generation state of the item.

Link copied to clipboard
open override val type: String

Raw type discriminator of the item.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String