Class GenerateContentResponseHandler (1.4.1)

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.