From f8fb7cd9e29f1166cf9d819769629faf6fafc2cb Mon Sep 17 00:00:00 2001 From: Dewmal Date: Wed, 5 Feb 2025 23:34:33 +0530 Subject: [PATCH] Create LLM with tools --- bindings/ceylon/examples/llm/task_llm_app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bindings/ceylon/examples/llm/task_llm_app.py b/bindings/ceylon/examples/llm/task_llm_app.py index c8ff697..b366685 100644 --- a/bindings/ceylon/examples/llm/task_llm_app.py +++ b/bindings/ceylon/examples/llm/task_llm_app.py @@ -72,7 +72,7 @@ async def main(): ] for question in test_questions: - response:TaskResult = await active_playground.add_and_execute_task( + response: TaskResult = await active_playground.add_and_execute_task( Task( name="Calculate", processor="math_assistant", @@ -82,6 +82,8 @@ async def main(): print(f"\nQuestion: {question}") print(f"Response: {response.output}") + await active_playground.finish() + if __name__ == "__main__": asyncio.run(main())