[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["This document describes how to resolve errors that you might encounter when\n[developing an agent](/vertex-ai/generative-ai/docs/agent-engine/develop/overview).\n\nContent generation errors\n\n**Issue**:\n\nYou receive an error message similar to the following: \n\n ValueError: Cannot get the Candidate text.\n Response candidate content part has no text.\n\n**Possible cause**:\n\nThis error might be caused by using a version of `langchain-google-vertexai`\nthat's not compatible with `google-cloud-aiplatform`. Version `1.0.2` or later\nof `langchain-google-vertexai` is required. To check which version you're using,\nrun the following command in your terminal: \n\n pip show langchain-google-vertexai\n\n**Recommended solution**:\n\nInstall version `1.0.2` of `langchain-google-vertexai`. This version includes\nthe [LangChain tool-calling](https://github.com/langchain-ai/langchain-google/pull/166)\nupdates that are required to work with `google-cloud-aiplatform`. To update your\nversion of `langchain-google-vertexai`, run the following command in your\nterminal: \n\n pip install langchain-google-vertexai --upgrade\n\nAfter running the update command, verify that you're using version `1.0.2` or\nlater by running the following command in your terminal: \n\n pip show langchain-google-vertexai\n\nIf you're in a notebook instance (for example, Jupyter or Colab or Workbench),\nyou might need to restart your runtime to use the updated packages."]]