Package-level declarations
Types
Identifies the source of an attribution, which can be either a grounding passage or a chunk retrieved by a semantic retriever. This class allows for specifying the origin of content or data used in processing or analysis.
Represents a batch request for embedding content.
Represents the response for a batch embedding request.
Represents a candidate entity with associated content and metadata.
Contains metadata about citations within a document, including references to the sources of these citations.
Represents a source of citation, detailing the location within the text and providing reference information such as a URI and license.
Represents a request to count the number of tokens in a list of content items. This is typically used to ensure that input does not exceed model or system limits for processing.
Represents a request to embed content using a specified model, optionally including additional parameters such as task type and title.
Represents the response from an embedding operation, containing the computed embedding values.
Represents a call to a function, specifying the function's name and the arguments to be passed to it.
Configures how function calls are handled within a certain context, specifying the mode of operation and restrictions on which functions can be called.
Describes a function, including its name, a description of its purpose or behavior, and a schema defining its parameters.
Represents the response from a function call, including the function's name and the arguments or values returned by the function.
Represents a request to generate content, specifying the inputs, tools, and configurations required for content generation.
Represents the response structure for a content generation or analysis request.
Configures the parameters for content generation, including conditions for stopping generation, creativity controls, output limits, and the format of the generated content.
Represents the attribution of grounding, linking content to its source.
Represents an identifier for a grounding passage, including its unique ID and the index of the part within the passage.
Enumerates categories of harm that content may be classified under, providing a structured way to identify and categorize potentially harmful or sensitive content.
Enum class representing different categories of harmful content.
Represents inline data that can be included in a request or response, typically for media content.
Represents a model with its metadata and configuration parameters, providing detailed information about its capabilities and restrictions.
Represents a collection of models, encapsulating them in a list structure for easy management and access.
Represents a part of content, which can be one of several types such as text, inline data, function call, function response, or file data.
Represents feedback on the safety of a prompt, including ratings across various harm categories.
Represents a safety assessment for a specific category of potential harm.
Defines a safety setting for filtering or evaluating content based on a specific harm category.
Represents the schema definition for a data model, detailing its structure, type, and various constraints.
Represents a chunk of data retrieved by a semantic retriever, containing both the source from which the chunk was extracted and the chunk content itself.
Represents a tool that encapsulates function declarations, providing a structured way to access the functionalities declared.
Represents a tool that encapsulates function declarations, providing a structured way to access the functionalities declared.
Represents the total count of tokens, typically used to summarize the amount of processed or generated content in terms of tokens.