# Module: google.generativeai.types
A collection of type definitions used throughout the library.
## Classes
[`class AsyncGenerateContentResponse`](../../google/generativeai/types/AsyncGenerateContentResponse.md): This is the async version of `genai.GenerateContentResponse`.
[`class BlobDict`](../../google/generativeai/types/BlobDict.md)
[`class BlockedPromptException`](../../google/generativeai/types/BlockedPromptException.md): Common base class for all non-exit exceptions.
[`class BlockedReason`](../../google/generativeai/types/BlockedReason.md): A list of reasons why content may have been blocked.
[`class BrokenResponseError`](../../google/generativeai/types/BrokenResponseError.md): Common base class for all non-exit exceptions.
[`class CallableFunctionDeclaration`](../../google/generativeai/types/CallableFunctionDeclaration.md): An extension of `FunctionDeclaration` that can be built from a python function, and is callable.
[`class CitationMetadataDict`](../../google/generativeai/types/CitationMetadataDict.md): A collection of source attributions for a piece of content.
[`class CitationSourceDict`](../../google/generativeai/types/CitationSourceDict.md): A citation to a source for a portion of a specific response.
[`class ContentDict`](../../google/generativeai/types/ContentDict.md)
[`class ContentFilterDict`](../../google/generativeai/types/ContentFilterDict.md): Content filtering metadata associated with processing a single request.
[`class File`](../../google/generativeai/types/File.md)
[`class FileDataDict`](../../google/generativeai/types/FileDataDict.md)
[`class FunctionDeclaration`](../../google/generativeai/types/FunctionDeclaration.md)
[`class FunctionLibrary`](../../google/generativeai/types/FunctionLibrary.md): A container for a set of `Tool` objects, manages lookup and execution of their functions.
[`class GenerateContentResponse`](../../google/generativeai/types/GenerateContentResponse.md): Instances of this class manage the response of the `generate_content` method.
[`class GenerationConfig`](../../google/generativeai/types/GenerationConfig.md): A simple dataclass used to configure the generation parameters of GenerativeModel.generate_content
.
[`class GenerationConfigDict`](../../google/generativeai/types/GenerationConfigDict.md)
[`class HarmBlockThreshold`](../../google/generativeai/types/HarmBlockThreshold.md): Block at and beyond a specified harm probability.
[`class HarmCategory`](../../google/generativeai/types/HarmCategory.md): Harm Categories supported by the gemini-family model
[`class HarmProbability`](../../google/generativeai/types/HarmProbability.md): The probability that a piece of content is harmful.
[`class IncompleteIterationError`](../../google/generativeai/types/IncompleteIterationError.md): Common base class for all non-exit exceptions.
[`class Model`](../../google/generativeai/types/Model.md): A dataclass representation of a protos.Model
.
[`class PartDict`](../../google/generativeai/types/PartDict.md)
[`class Permission`](../../google/generativeai/types/Permission.md): A permission to access a resource.
[`class Permissions`](../../google/generativeai/types/Permissions.md)
[`class RequestOptions`](../../google/generativeai/types/RequestOptions.md): Request options
[`class SafetyFeedbackDict`](../../google/generativeai/types/SafetyFeedbackDict.md): Safety feedback for an entire request.
[`class SafetyRatingDict`](../../google/generativeai/types/SafetyRatingDict.md): Safety rating for a piece of content.
[`class SafetySettingDict`](../../google/generativeai/types/SafetySettingDict.md): Safety setting, affecting the safety-blocking behavior.
[`class Status`](../../google/generativeai/types/Status.md): A ProtocolMessage
[`class StopCandidateException`](../../google/generativeai/types/StopCandidateException.md): Common base class for all non-exit exceptions.
[`class Tool`](../../google/generativeai/types/Tool.md): A wrapper for protos.Tool
, Contains a collection of related `FunctionDeclaration` objects, protos.CodeExecution object, and protos.GoogleSearchRetrieval object.
[`class ToolDict`](../../google/generativeai/types/ToolDict.md)
[`class TunedModel`](../../google/generativeai/types/TunedModel.md): A dataclass representation of a protos.TunedModel
.
[`class TunedModelState`](../../google/generativeai/types/TunedModelState.md): The state of the tuned model.
## Functions
[`TypedDict(...)`](../../google/generativeai/types/TypedDict.md): A simple typed namespace. At runtime it is equivalent to a plain dict.
[`get_default_file_client(...)`](../../google/generativeai/types/get_default_file_client.md)
[`to_file_data(...)`](../../google/generativeai/types/to_file_data.md)
## Type Aliases
[`AnyModelNameOptions`](../../google/generativeai/types/AnyModelNameOptions.md)
[`BaseModelNameOptions`](../../google/generativeai/types/BaseModelNameOptions.md)
[`BlobType`](../../google/generativeai/types/BlobType.md)
[`ContentType`](../../google/generativeai/types/ContentType.md)
[`ContentsType`](../../google/generativeai/types/ContentsType.md)
[`FileDataType`](../../google/generativeai/types/FileDataType.md)
[`FunctionDeclarationType`](../../google/generativeai/types/FunctionDeclarationType.md)
[`FunctionLibraryType`](../../google/generativeai/types/FunctionLibraryType.md)
[`GenerationConfigType`](../../google/generativeai/types/GenerationConfigType.md)
[`ModelNameOptions`](../../google/generativeai/types/AnyModelNameOptions.md)
[`ModelsIterable`](../../google/generativeai/types/ModelsIterable.md)
[`PartType`](../../google/generativeai/types/PartType.md)
[`RequestOptionsType`](../../google/generativeai/types/RequestOptionsType.md)
[`StrictContentType`](../../google/generativeai/types/StrictContentType.md)
[`ToolsType`](../../google/generativeai/types/ToolsType.md)
[`TunedModelNameOptions`](../../google/generativeai/types/TunedModelNameOptions.md)
Other Members |
annotations
|
Instance of `__future__._Feature`
|