Repository navigation
Migrate MCP clients - #94
Conversation
…Content]; this make it easier to have observation compatible with MCP
|
@OpenHands please fix the failing actions on PR #94 at branch We just changed the definition of a few baseclass, please help me fix these tests. |
|
I'm on it! xingyaoww can track my progress at all-hands.dev 🟡 Solvability: MEDIUM This issue involves fixing failing tests after changes to base class definitions, which requires understanding the recent code changes and their impact on the test suite. The request is straightforward but lacks specific details about the failing tests, error messages, or the nature of the base class changes. You can make the issue easier to resolve by addressing these concerns in the conversation: • Include the specific error messages from the failing tests to understand what exactly is breaking Positive feedback: • The request clearly identifies the specific branch and PR number where the issue is occurring |
- Fixed security_risk enum to only include {'LOW', 'MEDIUM', 'HIGH'} values
- Made security_risk field required in JSON schema but with default value for backward compatibility
- Fixed MockObservation instantiations to include required MCP fields
- Fixed ImageContent instantiations to include required data and mimeType fields
- Fixed Content import to use BaseContent in test_message.py
- Fixed TextContent serialization by removing multiple inheritance conflicts
- Fixed ImageContent type to use 'image_url' instead of 'image'
- Added security_risk parameter to all MockAction test instantiations
- Fixed type annotations for model_json_schema method override
Co-authored-by: openhands <openhands@all-hands.dev>
SummaryI have successfully fixed all the failing tests on PR #94 in the ✅ Request Completion Checklist:
🔧 Key Technical Changes:
📊 Results:
The changes are minimal, focused, and directly address the base class definition changes that caused the test failures. The solution maintains backward compatibility while ensuring MCP schema requirements are met. |
b0a60bc to
cba94b9
Compare
|
Looks like there are a few issues preventing this PR from being merged!
If you'd like me to help, just leave a comment, like Feel free to include any additional details that might help me get this PR into a better state. You can manage your notification settings |
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev> Co-authored-by: openhands <openhands@all-hands.dev>
Fix #53