Update with correct message types (#5789)

Correcting an error: If CodeReviewResult is not approved, the coder
agents sends a CodeReviewTask back to the reviewer agent, not a
CodeWritingTask.

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
This commit is contained in:
laurentran 2025-03-03 18:46:53 -05:00 committed by GitHub
parent 1b51e69602
commit 3d5e4c8d7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,8 +76,8 @@
"- The application sends a `CodeWritingTask` message to the coder agent\n",
"- The coder agent generates a `CodeReviewTask` message, which is sent to the reviewer agent\n",
"- The reviewer agent generates a `CodeReviewResult` message, which is sent back to the coder agent\n",
"- Depending on the `CodeReview` message, if the code is approved, the coder agent sends a `CodeWritingResult` message\n",
"back to the application, otherwise, the coder agent sends another `CodeWritingTask` message to the reviewer agent,\n",
"- Depending on the `CodeReviewResult` message, if the code is approved, the coder agent sends a `CodeWritingResult` message\n",
"back to the application, otherwise, the coder agent sends another `CodeReviewTask` message to the reviewer agent,\n",
"and the process continues.\n",
"\n",
"We can visualize the message protocol using a data flow diagram:\n",