LittleLittleCloud / code-interpreter-workflow

MIT License
4 stars 1 forks source link

Human-in-the-loop Code Interpreter workflow

demo

Get start

Pre-requisite

Run the workflow

The recommended way to run the workflow is to use the Agent Chatroom, which provides a chatroom UI to interact with the agents in the workflow.

To run the chatroom, cd to the cloned repo and run the following command:

dotnet run

A chatroom UI will be started at http://localhost:50001, and you can interact with the agents in dotnet-interactive-chatroom channel.

Workflow State Transition Diagram

stateDiagram
[*] --> create_task@user
create_task@user--> write_code@coder
create_task@user  --> not_code_task@assistant
write_code@coder --> review_code@user
 review_code@user --> run_code@runner
review_code@user --> fix_comment@coder
fix_comment@coder --> review_code@user
run_code@runner --> succeed@assistant
run_code@runner --> fail@assistant
run_code@runner --> fix_code@coder
fix_code@coder --> review_code@user
fail@assistant --> [*]
succeed@assistant --> [*]
not_code_task@assistant --> [*]