Back to Firebase Js Sdk

TextPart interface

docs-devsite/ai.textpart.md

12.12.11.6 KB
Original Source

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

TextPart interface

Content part interface if the part represents a text string.

<b>Signature:</b>

typescript
export interface TextPart 

Properties

PropertyTypeDescription
codeExecutionResultnever
executableCodenever
functionCallnever
functionResponsenever
inlineDatanever
textstring
thoughtboolean

TextPart.codeExecutionResult

<b>Signature:</b>

typescript
codeExecutionResult?: never;

TextPart.executableCode

<b>Signature:</b>

typescript
executableCode?: never;

TextPart.functionCall

<b>Signature:</b>

typescript
functionCall?: never;

TextPart.functionResponse

<b>Signature:</b>

typescript
functionResponse?: never;

TextPart.inlineData

<b>Signature:</b>

typescript
inlineData?: never;

TextPart.text

<b>Signature:</b>

typescript
text: string;

TextPart.thought

<b>Signature:</b>

typescript
thought?: boolean;