Skip to content

Commit 219cf76

Browse files
committed
Use Agent.run instead of Agent.initiate_chat
1 parent 74433e1 commit 219cf76

File tree

1 file changed

+2
-2
lines changed
  • {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}

1 file changed

+2
-2
lines changed

{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/workflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ def simple_workflow(ui: UI, params: dict[str, Any]) -> str:
3737
llm_config=llm_config,
3838
)
3939

40-
chat_result = student_agent.initiate_chat(
40+
response = student_agent.run(
4141
teacher_agent,
4242
message=initial_message,
4343
summary_method="reflection_with_llm",
4444
max_turns=3,
4545
)
4646

47-
return str(chat_result.summary)
47+
return ui.process(response)

0 commit comments

Comments
 (0)