Namespace GenerativeAI.Core
Core abstractions shared by the SDK: the ApiBase HTTP layer, IPlatformAdapter and IGoogleAuthenticator,
function tool interfaces (IFunctionTool, GoogleFunctionTool), FunctionCallingBehaviour and credential types.
Classes
- ApiBase
Base class for handling API requests and responses.
- AuthTokens
Represents authentication tokens used to access secure APIs or resources.
- BaseParams
Base parameters for a number of methods.
- ClientSecrets
Defines the OAuth 2.0 client details, often sourced from a configuration file or similar resource.
- CodeBlock
Represents a segment of source code with details about its programming language and line number.
- CredentialConfiguration
Provides credentials required for API authentication, supporting both user and service account scenarios.
- FileValidator
Provides methods to validate files for inline use based on size and MIME type constraints.
- FunctionCallingBehaviour
Represents the behavior and capability configuration for function-calling mechanisms within the system.
- GoogleFunctionTool
Interface for defining tools that support function calls within the model's execution context. A tool is a component that can perform external actions or provide additional functionality beyond the intrinsic scope of the model.
- JsonBlock
Represents a block of JSON data with associated metadata.
- MimeTypeMap
Class MimeTypeMap.
- ModelParams
Params passed to {@link GoogleGenerativeAI.getGenerativeModel}.
- ProgressStreamContent
A custom StreamContent implementation to track and report progress during upload.
- RequestUrl
Represents a request URL for interacting with a generative AI service.
Interfaces
- ICredentials
Defines a contract for credential validation. Implementing classes must provide a mechanism to validate credentials required for API usage or authentication.
- IFunctionTool
Interface for defining tools that support function calls within the model's execution context. A tool is a component that can perform external actions or provide additional functionality beyond the intrinsic scope of the model.
- IGoogleAuthenticator
Defines the contract for an authenticator to manage authentication processes for Google services.
- IPlatformAdapter
Defines an interface for platform-specific operations required to integrate with external APIs.