Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
Response object wrapped with helper methods.
Signature:
export interface EnhancedGenerateContentResponse extends GenerateContentResponse
Extends: GenerateContentResponse
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. |
Signature:
functionCalls: () => FunctionCall[] | undefined;
Returns the text string from the response, if available. Throws if the prompt or candidate was blocked.
Signature:
text: () => string;