Transformers
Transformers for GenAI SDK.
Functions
Link copied to clipboard
Converts a camelCase string to snake_case.
Link copied to clipboard
Transforms a blob to an audio blob, validating its mime type.
Link copied to clipboard
Link copied to clipboard
It validates and extracts the batch job name based on the backend (Vertex AI or MLDev).
Link copied to clipboard
Link copied to clipboard
Transforms an object to a cached content name for the API.
Link copied to clipboard
Transforms a model name to the correct format for the Caches API.
Link copied to clipboard
Transforms a Content to a list of Content for the API.
In other languages, this transformer is used for supporting union types.
Transforms a text string to a list of Content for the API.
Link copied to clipboard
@Nullable()
Transforms an object to a list of Content for the embedding API.
Link copied to clipboard
Extracts the models from the models.list response.
Link copied to clipboard
Transforms a blob to an image blob, validating its mime type.
Link copied to clipboard
Checks if a given model name is a Vertex AI embed content model.
Link copied to clipboard
Transforms a SpeechConfig object for the live API, validating it.
Link copied to clipboard
Determines the appropriate models URL based on the API client type and whether base models are requested.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Updates a JSON node with a new value, handling potential conflicts.