langchain-ai/langchain-google

400 Bad Request when using Claude Sonnet on GCP

Open

#1,256 opened on Oct 10, 2025

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Python (461 forks)auto 404
anthropic-vertexhelp wantedvertexai

Repository metrics

Stars
 (392 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide