mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
ca3a20a710
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>