langchain-ai/langchain-google
View on GitHub400 Bad Request when using Claude Sonnet on GCP
Open
#1,256 opened on Oct 10, 2025
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'}