Hello. On this short course MCP: Build Rich-Context AI Apps with Anthropic i have the following error in L5 Creating MCP client.
when launching the mcp_chatbot.py given in L5 I have the following error message when asking to extract_info for 2 papers on a subject. Info for the first paper will be displayed but after I have the following error message: Error: Error code: 400 - {‘type’: ‘error’, ‘error’: {‘type’: ‘invalid_request_error’, ‘message’: ‘messages.2: tool_use ids were found without tool_result blocks immediately after: toolu_01Sj12tubWuB8JRf8A6n2FDs. Each tool_use block must have a corresponding tool_result block in the next message.’}, ‘request_id’: ‘req_011CYeeV2XLXSuJwx5GyhtSz’} can someone help me on this issue please?
Remember, when running the code cell for the new terminal, you need to add some commands (in the same terminal) such as cd L5/mcp_project, source .venv/bin/activate, etc before running the mcp server.
If the issue you encountered keeps persistent, could you please add a screenshot to help you figure out the issue?