supermemory/packages/agent-framework-python/tests
vivekvar-dl bd1e767b74 fix(python-sdks): handle pydantic search results in memory dedup helpers
The pipecat, cartesia, and agent-framework packages passed search results
into dedup/format helpers written for plain dicts, but typed SDK results
are pydantic models (snake_case attributes, no dict interface). pipecat
and cartesia crashed with AttributeError — swallowed upstream, so no
memories were ever injected for users with search results — while
agent-framework silently dropped every search-result memory.

Extract memory fields through a tolerant accessor that accepts both the
camelCase dicts returned by the profile endpoint and SDK result models,
so the helpers work regardless of installed SDK version.

The pipecat/cartesia dependency stubs move from test_empty_profile.py
into a shared tests/conftest.py so the new utils tests can reuse them.

Fixes #1266
2026-08-08 12:56:34 +05:30
..
__init__.py Add Supermemory integration for Microsoft Agent Framework (#775) 2026-03-10 01:49:45 +00:00
test_connection.py Add Supermemory integration for Microsoft Agent Framework (#775) 2026-03-10 01:49:45 +00:00
test_context_provider.py Add Supermemory integration for Microsoft Agent Framework (#775) 2026-03-10 01:49:45 +00:00
test_middleware.py Add Supermemory integration for Microsoft Agent Framework (#775) 2026-03-10 01:49:45 +00:00
test_tools.py Add Supermemory integration for Microsoft Agent Framework (#775) 2026-03-10 01:49:45 +00:00
test_utils.py fix(python-sdks): handle pydantic search results in memory dedup helpers 2026-08-08 12:56:34 +05:30