You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am using the AWS Bedrock Proxy to integrate a custom AWS Bedrock API key into the Cursor IDE. Since the Cursor IDE does not directly support AWS Bedrock API keys, I configured the AWS Bedrock Access Gateway URL as an OpenAI-compatible server URL within the IDE.
This setup works well for most features in Cursor IDE. However, I encounter a persistent issue with the Agent Composer feature. Specifically, after the agent completes its second request, the following error occurs:
0:41,678 [INFO] Using Bedrock model: us.anthropic.claude-3-5-sonnet-20241022-v2:02024-12-20 08:40:41,679 [INFO] Request completed: Path: /api/v1/chat/completions | Method: POST | Status: 200 | Processing time: 0.002sINFO: 10.250.0.111:10756 - "POST /api/v1/chat/completions HTTP/1.1" 200 OK2024-12-20 08:40:41,738 [ERROR] Validation Error: An error occurred (ValidationException) when calling the ConverseStream operation: The number of toolResult blocks at messages.2.content exceeds the number of toolUse blocks of the previous turn.ERROR: Exception in ASGI application...
The error appears to stem from a mismatch between the toolResult blocks in the agent’s response and the toolUse blocks from the previous turn. This discrepancy seems to disrupt the interaction flow within the Agent Composer.
Please complete the following information:
Which API you used: /chat/completions
Which model you used: us.anthropic.claude-3-5-sonnet-20241022-v2:0
To Reproduce
Configure Cursor IDE to use the AWS Bedrock Access Gateway URL as an OpenAI-compatible endpoint.
Use the Agent Composer feature.
Observe that the first request is processed successfully.
Notice the error after the second request.
Expected behavior
The Agent Composer should process requests and responses seamlessly without encountering validation errors.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am using the AWS Bedrock Proxy to integrate a custom AWS Bedrock API key into the Cursor IDE. Since the Cursor IDE does not directly support AWS Bedrock API keys, I configured the AWS Bedrock Access Gateway URL as an OpenAI-compatible server URL within the IDE.
This setup works well for most features in Cursor IDE. However, I encounter a persistent issue with the Agent Composer feature. Specifically, after the agent completes its second request, the following error occurs:
The error appears to stem from a mismatch between the toolResult blocks in the agent’s response and the toolUse blocks from the previous turn. This discrepancy seems to disrupt the interaction flow within the Agent Composer.
Please complete the following information:
To Reproduce
Expected behavior
The Agent Composer should process requests and responses seamlessly without encountering validation errors.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: