v
0.7.1
Github Link
@google/generative-ai
TextPart
Interface TextPart
Content part interface if the part represents a text string.
interface
TextPart
{
functionCall
?:
never
;
functionResponse
?:
never
;
inlineData
?:
never
;
text
:
string
;
}
Index
Properties
function
Call?
function
Response?
inline
Data?
text
Properties
Optional
function
Call
function
Call
?:
never
Optional
function
Response
function
Response
?:
never
Optional
inline
Data
inline
Data
?:
never
text
text
:
string
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
function
Call
function
Response
inline
Data
text
Preparing search index...
The search index is not available
@google/generative-ai - v0.7.1
Classes
ChatSession
GenerativeModel
GoogleGenerativeAI
Variables
POSSIBLE_ROLES
Type Aliases
Part
Tool
Interfaces
BaseParams
BatchEmbedContentsRequest
BatchEmbedContentsResponse
CitationMetadata
CitationSource
Content
ContentEmbedding
CountTokensRequest
CountTokensResponse
EmbedContentRequest
EmbedContentResponse
EnhancedGenerateContentResponse
FunctionCall
FunctionCallPart
FunctionCallingConfig
FunctionDeclaration
FunctionDeclarationSchema
FunctionDeclarationSchemaProperty
FunctionDeclarationsTool
FunctionResponse
FunctionResponsePart
GenerateContentCandidate
GenerateContentRequest
GenerateContentResponse
GenerateContentResult
GenerateContentStreamResult
GenerationConfig
GenerativeContentBlob
InlineDataPart
ModelParams
PromptFeedback
RequestOptions
SafetyRating
SafetySetting
StartChatParams
TextPart
ToolConfig
Enumerations
BlockReason
FinishReason
FunctionCallingMode
FunctionDeclarationSchemaType
HarmBlockThreshold
HarmCategory
HarmProbability
TaskType
Content part interface if the part represents a text string.