Class GenerateContentResponseHandler (1.0.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
Name Description
candidate GenerateContentCandidate

The candidate to extract function calls from.

Returns
Type Description
FunctionCall[]

the array of function calls in a GenerateContentCandidate.