Optional
fields: GoogleVertexAITextInputProtected
connectionProtected
streamedFormats the input instance for the Google Vertex AI model based on the model type (text or code).
Prompt to be formatted as an instance.
A GoogleVertexAILLMInstance object representing the formatted instance.
Formats the input instance as a code instance for the Google Vertex AI model.
Prompt to be formatted as a code instance.
A GoogleVertexAILLMInstance object representing the formatted code instance.
Formats the input instance as a text instance for the Google Vertex AI model.
Prompt to be formatted as a text instance.
A GoogleVertexAILLMInstance object representing the formatted text instance.
Generated using TypeDoc
Enables calls to the Google Cloud's Vertex AI API to access Large Language Models.
To use, you will need to have one of the following authentication methods in place:
GOOGLE_APPLICATION_CREDENTIALS
environment variable is set to the path of a credentials file for a service account permitted to the Google Cloud project using Vertex AI.Example