v
0.7.1
Github Link
@google/generative-ai
FinishReason
Enumeration FinishReason
Reason that a candidate finished.
Index
Enumeration Members
FINISH_
REASON_
UNSPECIFIED
MAX_
TOKENS
OTHER
RECITATION
SAFETY
STOP
Enumeration Members
FINISH_
REASON_
UNSPECIFIED
FINISH_
REASON_
UNSPECIFIED
:
"FINISH_REASON_UNSPECIFIED"
MAX_
TOKENS
MAX_
TOKENS
:
"MAX_TOKENS"
OTHER
OTHER
:
"OTHER"
RECITATION
RECITATION
:
"RECITATION"
SAFETY
SAFETY
:
"SAFETY"
STOP
STOP
:
"STOP"
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
FINISH_
REASON_
UNSPECIFIED
MAX_
TOKENS
OTHER
RECITATION
SAFETY
STOP
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
Reason that a candidate finished.