CustomToolCallOutputItem

constructor(callId: String, output: ResponseContent)


constructor(callId: String, output: String)

Creates a textual custom tool result.

Parameters

callId

Identifier of the CustomToolCallItem this output answers

output

Tool result


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

Creates a custom tool result made of content parts.

Parameters

callId

Identifier of the CustomToolCallItem this output answers

output

Tool result parts, in the order the model should see them