FunctionCallOutputItem

@Serializable
class FunctionCallOutputItem(val callId: String, val output: ResponseContent) : ResponseItem

The result of running a function the model called.

Carries either plain text or a list of ResponseContentParts — an image part lets a tool hand the model a screenshot it produced.

Constructors

Link copied to clipboard
constructor(callId: String, output: ResponseContent)
constructor(callId: String, output: String)

Creates a textual tool result.

constructor(callId: String, output: List<ResponseContentPart>)

Creates a tool result made of content parts.

Properties

Link copied to clipboard

Identifier of the FunctionCallItem this output answers.

Link copied to clipboard

Tool result, as text or as content parts.

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