functionCallOutput

fun functionCallOutput(callId: String, output: String)

Appends the result of running a function the model called.

Parameters

callId

Identifier of the call this output answers

output

Tool result, typically JSON-encoded


Appends the result of running a function, as content parts — which lets a tool hand the model an image it produced.

Parameters

callId

Identifier of the call this output answers

block

Builder block that appends the result's content parts