Skip to content

Commit

Permalink
execute_plan_stream: yields also command and not only thought
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninoLorenzo committed Jul 1, 2024
1 parent 810bb99 commit efb37f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def execute_plan_stream(sid: int):
execution = agent.execute_plan(sid)
for iteration in execution:
for i, task in enumerate(iteration):
task_str = f'{i + 1}. {task.thought}\n'
task_str = f'{i + 1}. {task.thought}\n\t{task.command}\n'
if task.status == TaskStatus.DONE:
task_str += f'ai-ops:~$ {task.command}\n{task.output}\n'
yield task_str
Expand Down

0 comments on commit efb37f6

Please sign in to comment.