v
0.7.1
Github Link
@google/generative-ai
GoogleGenerativeAI
Class GoogleGenerativeAI
Top-level class for this SDK
Index
Constructors
constructor
Methods
get
Generative
Model
Properties
api
Key
Constructors
constructor
new
Google
GenerativeAI
(
apiKey
)
:
GoogleGenerativeAI
Parameters
apiKey
:
string
Returns
GoogleGenerativeAI
Methods
get
Generative
Model
get
Generative
Model
(
modelParams
,
requestOptions
?
)
:
GenerativeModel
Gets a
GenerativeModel
instance for the provided model name.
Parameters
modelParams
:
ModelParams
Optional
requestOptions
:
RequestOptions
Returns
GenerativeModel
Properties
api
Key
api
Key
:
string
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
get
Generative
Model
api
Key
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
Top-level class for this SDK