From f924a1733214f120a4d5450a7ef553e7ce8974e9 Mon Sep 17 00:00:00 2001 From: dewmal Date: Fri, 16 Aug 2024 07:16:28 +0530 Subject: [PATCH] Update example --- bindings/ceylon/tests/tasks/llm_software_agency.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bindings/ceylon/tests/tasks/llm_software_agency.py b/bindings/ceylon/tests/tasks/llm_software_agency.py index 6d12310..756d53c 100644 --- a/bindings/ceylon/tests/tasks/llm_software_agency.py +++ b/bindings/ceylon/tests/tasks/llm_software_agency.py @@ -1,6 +1,7 @@ +import asyncio + from langchain_openai import ChatOpenAI -from ceylon.ceylon import enable_log from ceylon.llm import LLMTaskOperator, LLMTaskCoordinator from ceylon.task import Task from ceylon.utils.agent_monitor import AgentMonitor @@ -57,7 +58,7 @@ task_manager = LLMTaskCoordinator(tasks, agents, tool_llm=tool_llm, llm=llm) # Execute tasks -completed_tasks = task_manager.do(inputs=b"") +completed_tasks = asyncio.run(task_manager.async_do(inputs=b"")) # Print results for task in completed_tasks: