EnhancedGenerateContentResponse interface

Response object wrapped with helper methods.

Signature:

export interface EnhancedGenerateContentResponse extends GenerateContentResponse 

Extends: GenerateContentResponse

Properties

Property Type Description
functionCalls () => FunctionCall[] | undefined
text () => string Returns the text string from the response, if available. Throws if the prompt or candidate was blocked.

EnhancedGenerateContentResponse.functionCalls

Signature:

functionCalls: () => FunctionCall[] | undefined;

EnhancedGenerateContentResponse.text

Returns the text string from the response, if available. Throws if the prompt or candidate was blocked.

Signature:

text: () => string;