Files
basicmachines-co-basic-memory/src/basic_memory
claude[bot] ca3a20a710 fix: Accept JSON strings for entity_types and types in search_notes
Resolves #392 - ChatGPT and other clients serialize array parameters
as JSON strings (e.g., '["observation"]'), which were rejected by the
schema validation that expected Optional[List[str]].

Changes:
- Added _normalize_list_param() helper to parse JSON strings or pass through lists
- Updated search_notes signature to accept Union[str, List[str]] for types/entity_types
- Added 4 integration tests for JSON string parameter formats
- Updated docstring to document both accepted formats

This allows clients that serialize arrays as strings to successfully
filter search results by entity_types and types.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Paul Hernandez <phernandez@users.noreply.github.com>
2025-10-22 02:34:09 +00:00
..