firebase_vertexai library
Classes
- BatchEmbedContentsResponse
- Response for Embed Content in batch.
- Candidate
- Response candidate generated from a GenerativeModel.
- ChatSession
- A back-and-forth chat with a generative model.
- CitationMetadata
- Source attributions for a piece of content.
- CitationSource
- Citation to a source for a portion of a specific response.
- Content
- The base structured datatype containing multi-part content of a message.
- ContentEmbedding
- An embedding, as defined by a list of values.
- CountTokensResponse
- Response for Count Tokens
- DataPart
- A Part with the byte content of a file.
- EmbedContentRequest
- Request for Embed Content.
- EmbedContentResponse
- Response for Embed Content.
- FileData
- A Part with Firebase Storage uri as prompt content
- FirebaseVertexAI
- The entrypoint for FirebaseVertexAI.
- FunctionCall
-
A predicted
FunctionCall
returned from the model that contains a string representing theFunctionDeclaration.name
with the arguments and their values. - FunctionCallingConfig
- Configuration specifying how the model should use the functions provided as tools.
- FunctionDeclaration
- Structured representation of a function declaration as defined by the OpenAPI 3.03 specification.
- FunctionResponse
- The response class for FunctionCall
- GenerateContentResponse
- Response from the model; supports multiple candidates.
- GenerationConfig
- Configuration options for model generation and outputs.
- GenerativeModel
- A multimodel generative model (like Gemini).
- Part
- A datatype containing media that is part of a multi-part Content message.
- PromptFeedback
- Feedback metadata of a prompt specified in a GenerativeModel request.
- RequestOptions
- Options for request to backend.
- SafetyRating
- Safety rating for a piece of content.
- SafetySetting
- Safety setting, affecting the safety-blocking behavior.
- Schema
- The definition of an input or output data types.
- TextPart
- A Part with the text content.
- Tool
- Tool details that the model may use to generate a response.
- ToolConfig
- Config for tools to use with model.
Enums
- BlockReason
- The reason why a prompt was blocked.
- FinishReason
- Reason why a model stopped generating tokens.
- FunctionCallingMode
- The mode in which the model should use the functions provided as tools.
- HarmBlockThreshold
- Probability of harm which causes content to be blocked.
- HarmCategory
- The category of a rating.
- HarmProbability
- The probability that a piece of content is harmful.
- SchemaType
- The value type of a Schema.
- TaskType
- Type of task for which the embedding will be used.
Extensions
- CountTokensResponseFields on CountTokensResponse
-
Extension on
google_ai.CountTokensResponse
to access extra fields - StartChatExtension on GenerativeModel
- StartChatExtension on GenerativeModel
Constants
- defaultTimeout → const int
- Default timeout duration, 30 minutes in millisecond
Functions
-
parseContent(
Object jsonObject) → Content - Parse the Content from json object.
-
parseCountTokensResponse(
Object jsonObject) → CountTokensResponse - Parse to CountTokensResponse from json object.
-
parseEmbedContentResponse(
Object jsonObject) → EmbedContentResponse - Parse to EmbedContentResponse from json object.
-
parseGenerateContentResponse(
Object jsonObject) → GenerateContentResponse - Parse to GenerateContentResponse from json object.