ValueError: Cannot get the Candidate text.
Response candidate content part has no text.
가능한 원인:
이 오류는 google-cloud-aiplatform와 호환되지 않는 langchain-google-vertexai 버전을 사용하여 발생할 수 있습니다. langchain-google-vertexai 버전 1.0.2 이상이 필요합니다. 사용 중인 버전을 확인하려면 터미널에서 다음 명령어를 실행합니다.
pipshowlangchain-google-vertexai
추천 솔루션:
langchain-google-vertexai의 1.0.2 버전을 설치합니다. 이 버전에는 google-cloud-aiplatform 작업에 필요한 LangChain 도구 호출 업데이트가 포함되어 있습니다. langchain-google-vertexai 버전을 업데이트하려면 터미널에서 다음 명령어를 실행합니다.
pipinstalllangchain-google-vertexai--upgrade
업데이트 명령어를 실행한 후 터미널에서 다음 명령어를 실행하여 1.0.2 이상 버전을 사용 중인지 확인합니다.
pipshowlangchain-google-vertexai
노트북 인스턴스(예: Jupyter, Colab 또는 Workbench)를 사용하는 경우 런타임을 다시 시작하여 업데이트된 패키지를 사용해야 할 수 있습니다.
[[["이해하기 쉬움","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(UTC)"],[],[],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."]]