langchain-ai/langchain-google

400 Bad Request when using Claude Sonnet on GCP

开放

#1,256 创建于 2025年10月10日

 (6 条评论) (0 个反应) (0 位负责人)Python (461 个派生)auto 404
anthropic-vertexhelp wantedvertexai

仓库指标

星标
 (392 个星标)
PR 合并指标
 (平均合并 2天 14小时) (30 天内合并 25 个 PR)

描述

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'}

贡献者指南