FunctionCallOutputItem

constructor(callId: String, output: ResponseContent)


constructor(callId: String, output: String)

Creates a textual tool result.

Parameters

callId

Identifier of the FunctionCallItem this output answers

output

Tool result, typically JSON-encoded


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

Creates a tool result made of content parts.

Parameters

callId

Identifier of the FunctionCallItem this output answers

output

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