Add memory management APIs for OpenViking: list, read, write, and delete memories
This commit is contained in:
@ -14,6 +14,8 @@ def test_memory_system_server_exposes_routes():
|
||||
assert {"GET", "POST"} <= context_methods
|
||||
assert "/memory-system/search" in paths
|
||||
assert "/memory-system/resources" in paths
|
||||
assert "/memory-system/memories" in paths
|
||||
assert "/memory-system/memories/content" in paths
|
||||
assert "/memory-system/users/{user_id}/profile" in paths
|
||||
task_methods = {
|
||||
method
|
||||
@ -36,6 +38,20 @@ def test_memory_system_server_exposes_routes():
|
||||
for method in getattr(route, "methods", set())
|
||||
}
|
||||
assert {"DELETE", "POST"} <= resource_methods
|
||||
memory_methods = {
|
||||
method
|
||||
for route in app.routes
|
||||
if getattr(route, "path", "") == "/memory-system/memories"
|
||||
for method in getattr(route, "methods", set())
|
||||
}
|
||||
memory_content_methods = {
|
||||
method
|
||||
for route in app.routes
|
||||
if getattr(route, "path", "") == "/memory-system/memories/content"
|
||||
for method in getattr(route, "methods", set())
|
||||
}
|
||||
assert {"DELETE", "GET", "POST"} <= memory_methods
|
||||
assert {"GET"} <= memory_content_methods
|
||||
|
||||
|
||||
def test_memory_system_messages_does_not_require_account_key_header():
|
||||
|
||||
Reference in New Issue
Block a user