Skip to content

feat: add keyword filters to md.search (fixes #54) - #234

Open
H-2006 wants to merge 3 commits into
OpenAgentHQ:mainfrom
H-2006:feature-search-filters
Open

H-2006 wants to merge 3 commits into
OpenAgentHQ:mainfrom
H-2006:feature-search-filters

Conversation

@H-2006

@H-2006 H-2006 commented Sep 21, 2026

Copy link
Copy Markdown

Summary

This PR adds keyword filter support to md.search while maintaining backward compatibility with the existing string query format. Fixes #54.

Changes

  • Updated md.search in src/modeldock/__init__.py to accept category, capability, and min_ram arguments.
  • Updated RegistryService.search in src/modeldock/core/registry.py to apply these filters to the result set.
  • Added unit tests in tests/unit/test_search_filters.py.

Testing

  • Verified backward compatibility with string-only queries.
  • Verified filtering logic for category, capability, and min_ram.
  • All tests passed locally via pytest tests/unit/test_search_filters.py.

Checklist

  • Branch named per Git Workflow
  • Not developed on main
  • Code follows AGENT.md coding standards
  • Quality gates pass locally: pytest

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SDK: md.search should accept filters

1 participant