Class GenerateContentResponseHandler (1.1.0)

Helper class to render any extra properties out of GenerateContentResponse or properties of GenerateContentResponse

Package

@google-cloud/vertexai

Methods

getFunctionCallsFromCandidate(candidate)

static getFunctionCallsFromCandidate(candidate?: GenerateContentCandidate): FunctionCall[];

Extracts function calls from a GenerateContentCandidate.

Parameter
NameDescription
candidate GenerateContentCandidate

The candidate to extract function calls from.

Returns
TypeDescription
FunctionCall[]

the array of function calls in a GenerateContentCandidate.