Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
dewmal committed Aug 16, 2024
1 parent c390ffc commit f924a17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bindings/ceylon/tests/tasks/llm_software_agency.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f924a17

Please sign in to comment.