langchain-ai/langchain-google

400 Bad Request when using Claude Sonnet on GCP

オープン

#1,256 opened on 2025/10/10

 (6 件のコメント) (0 件のリアクション) (0 人の担当者)Python (461 件のフォーク)auto 404
anthropic-vertexhelp wantedvertexai

Repository metrics

Stars
 (392 個のスター)
PR merge metrics
 (平均マージ 2d 14h) (30d で 25 merged PRs)

説明

Using Claude Sonnet 4 on GCP

And using ChatAnthropicVertex from package langchain_google_vertexai

Immediately after the first subagent responds, the graph fails with following the error

Anyone know how to fix it?

anthropic.BadRequestError: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'messages.6.content.0.tool_result.content.0.text.index: Extra inputs are not permitted'}, 'request_id': 'req_vrtx_011CTzH5cU85qEobDpNtgbp7'}

コントリビューターガイド