From 9b92810b83230ed42afcadf2536e4886b57adc2f Mon Sep 17 00:00:00 2001 From: lxobr <122801072+lxobr@users.noreply.github.com> Date: Wed, 23 Apr 2025 00:33:24 +0200 Subject: [PATCH] fix: add default user --- examples/python/simple_node_set_example.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/python/simple_node_set_example.py b/examples/python/simple_node_set_example.py index 167b61df1..801417315 100644 --- a/examples/python/simple_node_set_example.py +++ b/examples/python/simple_node_set_example.py @@ -2,6 +2,7 @@ import asyncio import cognee from cognee.shared.logging_utils import get_logger, ERROR from cognee.api.v1.search import SearchType +from cognee.modules.users.methods import get_default_user from cognee.modules.pipelines import run_tasks, Task from cognee.tasks.experimental_tasks.node_set_edge_association import node_set_edge_association @@ -47,7 +48,8 @@ async def main(): tasks = [Task(node_set_edge_association)] - pipeline = run_tasks(tasks=tasks) + user = await get_default_user() + pipeline = run_tasks(tasks=tasks, user=user) async for pipeline_status in pipeline: print(f"Pipeline run status: {pipeline_status.pipeline_name} - {pipeline_status.status}")