v
0.7.1
Github Link
@google/generative-ai
ModelParams
Interface ModelParams
Params passed to
GoogleGenerativeAI.getGenerativeModel
.
interface
ModelParams
{
generationConfig
?:
GenerationConfig
;
model
:
string
;
safetySettings
?:
SafetySetting
[]
;
systemInstruction
?:
Content
;
toolConfig
?:
ToolConfig
;
tools
?:
FunctionDeclarationsTool
[]
;
}
Hierarchy
BaseParams
ModelParams
Index
Properties
generation
Config?
model
safety
Settings?
system
Instruction?
tool
Config?
tools?
Properties
Optional
generation
Config
generation
Config
?:
GenerationConfig
model
model
:
string
Optional
safety
Settings
safety
Settings
?:
SafetySetting
[]
Optional
system
Instruction
system
Instruction
?:
Content
Optional
tool
Config
tool
Config
?:
ToolConfig
Optional
tools
tools
?:
FunctionDeclarationsTool
[]
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
generation
Config
model
safety
Settings
system
Instruction
tool
Config
tools
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
Params passed to GoogleGenerativeAI.getGenerativeModel.