# VertexAI

> **Class** in `@langchain/google-vertexai`

📖 [View in docs](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI)

Integration with a Google Vertex AI LLM using
the "@langchain/google-gauth" package for auth.

## Signature

```javascript
class VertexAI
```

## Extends

- `GoogleLLM`

## Constructors

- [`constructor()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/constructor)

## Properties

- `cache`
- `callbacks`
- `caller`
- `connection`
- `lc_kwargs`
- `lc_namespace`
- `lc_runnable`
- `lc_serializable`
- `maxOutputTokens`
- `metadata`
- `model`
- `modelName`
- `name`
- `originalFields`
- `ParsedCallOptions`
- `responseMimeType`
- `safetyHandler`
- `safetySettings`
- `stopSequences`
- `streamedConnection`
- `tags`
- `temperature`
- `topK`
- `topP`
- `verbose`
- `callKeys`
- `lc_aliases`
- `lc_attributes`
- `lc_id`
- `lc_secrets`
- `lc_serializable_keys`
- `platform`
- `profile`

## Methods

- [`_addVersion()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_addVersion)
- [`_batchWithConfig()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_batchWithConfig)
- [`_call()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_call)
- [`_callWithConfig()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_callWithConfig)
- [`_filterInvocationParamsForTracing()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_filterInvocationParamsForTracing)
- [`_flattenLLMResult()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_flattenLLMResult)
- [`_generate()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_generate)
- [`_generateCached()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_generateCached)
- [`_getOptionsList()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_getOptionsList)
- [`_getSerializedCacheKeyParametersForCall()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_getSerializedCacheKeyParametersForCall)
- [`_identifyingParams()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_identifyingParams)
- [`_llmType()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_llmType)
- [`_modelType()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_modelType)
- [`_separateRunnableConfigFromCallOptions()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_separateRunnableConfigFromCallOptions)
- [`_separateRunnableConfigFromCallOptionsCompat()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_separateRunnableConfigFromCallOptionsCompat)
- [`_streamIterator()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_streamIterator)
- [`_streamLog()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_streamLog)
- [`_streamResponseChunks()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_streamResponseChunks)
- [`_transformStreamWithConfig()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_transformStreamWithConfig)
- [`assign()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/assign)
- [`asTool()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/asTool)
- [`batch()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/batch)
- [`buildAbstractedClient()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/buildAbstractedClient)
- [`buildApiKey()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/buildApiKey)
- [`buildApiKeyClient()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/buildApiKeyClient)
- [`buildClient()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/buildClient)
- [`buildConnection()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/buildConnection)
- [`createProxyChat()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/createProxyChat)
- [`formatPrompt()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/formatPrompt)
- [`generate()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/generate)
- [`generatePrompt()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/generatePrompt)
- [`getGraph()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/getGraph)
- [`getName()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/getName)
- [`getNumTokens()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/getNumTokens)
- [`invocationParams()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/invocationParams)
- [`invoke()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/invoke)
- [`pick()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/pick)
- [`pipe()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/pipe)
- [`predictMessages()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/predictMessages)
- [`serialize()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/serialize)
- [`stream()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/stream)
- [`streamEvents()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/streamEvents)
- [`streamLog()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/streamLog)
- [`toJSON()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/toJSON)
- [`toJSONNotImplemented()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/toJSONNotImplemented)
- [`transform()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/transform)
- [`withConfig()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/withConfig)
- [`withFallbacks()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/withFallbacks)
- [`withListeners()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/withListeners)
- [`withRetry()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/withRetry)
- [`withStructuredOutput()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/withStructuredOutput)
- [`_convertInputToPromptValue()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/_convertInputToPromptValue)
- [`deserialize()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/deserialize)
- [`isRunnable()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/isRunnable)
- [`lc_name()`](https://reference.langchain.com/javascript/langchain-google-vertexai/index/VertexAI/lc_name)

---

[View source on GitHub](https://github.com/langchain-ai/langchainjs/blob/c5e896270207fcd3bdf1d1877e80b94c72d35f1e/libs/providers/langchain-google-vertexai/src/llms.ts#L12)