Helper class to render any extra properties out of GenerateContentResponse or properties of GenerateContentResponse
Package
@google-cloud/vertexaiMethods
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. |