memmachine-client 0.3.6__tar.gz → 0.3.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/PKG-INFO +1 -1
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/client_tests/test_integration_complete.py +6 -3
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/client_tests/test_memory.py +2 -2
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/PKG-INFO +1 -1
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/LICENSE +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/README.md +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/client_tests/__init__.py +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/client_tests/test_client.py +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/client_tests/test_config.py +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/client_tests/test_format.py +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/client_tests/test_langgraph.py +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/pyproject.toml +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/setup.cfg +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client/__init__.py +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client/client.py +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client/config.py +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client/format.py +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client/langgraph.py +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client/memory.py +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client/project.py +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/SOURCES.txt +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/dependency_links.txt +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/requires.txt +0 -0
- {memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/top_level.txt +0 -0
{memmachine_client-0.3.6 → memmachine_client-0.3.7}/client_tests/test_integration_complete.py
RENAMED
|
@@ -353,7 +353,7 @@ class TestMemMachineIntegration:
|
|
|
353
353
|
try:
|
|
354
354
|
results = memory.search(
|
|
355
355
|
"What do I like to drink?",
|
|
356
|
-
filter_dict={"time": "morning"},
|
|
356
|
+
filter_dict={"m.time": "morning"},
|
|
357
357
|
limit=10,
|
|
358
358
|
)
|
|
359
359
|
assert isinstance(results, SearchResult)
|
|
@@ -488,7 +488,7 @@ class TestMemMachineIntegration:
|
|
|
488
488
|
)
|
|
489
489
|
|
|
490
490
|
# Search with custom filters only - built-in filters are automatically merged
|
|
491
|
-
custom_filters = {"category": "profession"}
|
|
491
|
+
custom_filters = {"m.category": "profession"}
|
|
492
492
|
try:
|
|
493
493
|
results = memory.search(
|
|
494
494
|
"What is my profession?",
|
|
@@ -1586,8 +1586,11 @@ class TestMemMachineToolsIntegration:
|
|
|
1586
1586
|
@pytest.fixture
|
|
1587
1587
|
def tools(self, unique_test_ids):
|
|
1588
1588
|
"""Create a MemMachineTools instance."""
|
|
1589
|
+
client = MemMachineClient(
|
|
1590
|
+
base_url=TEST_BASE_URL, timeout=CLIENT_TIMEOUT_SECONDS
|
|
1591
|
+
)
|
|
1589
1592
|
t = MemMachineTools(
|
|
1590
|
-
|
|
1593
|
+
client=client,
|
|
1591
1594
|
org_id=unique_test_ids["org_id"],
|
|
1592
1595
|
project_id=unique_test_ids["project_id"],
|
|
1593
1596
|
user_id=unique_test_ids["user_id"],
|
|
@@ -62,12 +62,12 @@ class TestMemory:
|
|
|
62
62
|
def test_init_missing_org_id_raises_error(self, mock_client):
|
|
63
63
|
"""Test that missing org_id raises TypeError."""
|
|
64
64
|
with pytest.raises(TypeError, match=r"missing.*required.*argument.*org_id"):
|
|
65
|
-
Memory(client=mock_client, project_id="test_project") # type: ignore[call-arg]
|
|
65
|
+
Memory(client=mock_client, project_id="test_project") # type: ignore[call-arg] # ty: ignore[missing-argument]
|
|
66
66
|
|
|
67
67
|
def test_init_missing_project_id_raises_error(self, mock_client):
|
|
68
68
|
"""Test that missing project_id raises TypeError."""
|
|
69
69
|
with pytest.raises(TypeError, match=r"missing.*required.*argument.*project_id"):
|
|
70
|
-
Memory(client=mock_client, org_id="test_org") # type: ignore[call-arg]
|
|
70
|
+
Memory(client=mock_client, org_id="test_org") # type: ignore[call-arg] # ty: ignore[missing-argument]
|
|
71
71
|
|
|
72
72
|
def test_init_with_string_ids(self, mock_client):
|
|
73
73
|
"""Test Memory initialization with string IDs."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/requires.txt
RENAMED
|
File without changes
|
{memmachine_client-0.3.6 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/top_level.txt
RENAMED
|
File without changes
|