Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.46 KB

vertexai.enhancedgeneratecontentresponse.md

File metadata and controls

45 lines (32 loc) · 1.46 KB

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 %}

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;