You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description="Software Coder, writes Python code as required and reiterates with feedback from the Code Reviewer.",
38
+
system_message="You are a senior Python developer, a specialist in writing succinct Python functions.",
39
+
llm_config=llm_config,
40
+
)
41
+
42
+
# Code Reviewer agent
43
+
reviewer=autogen.AssistantAgent(
44
+
name="codeReviewer",
45
+
description="Code Reviewer, reviews written code for correctness, efficiency, and security. Asks the Software Coder to address issues.",
46
+
system_message="You are a Code Reviewer, experienced in checking code for correctness, efficiency, and security. Review and provide feedback to the Software Coder until you are satisfied, then return the word TERMINATE",
# Start the chat with a request to write a function
58
+
user_proxy.initiate_chat(
59
+
manager,
60
+
message="Write a Python function for the Fibonacci sequence, the function will have one parameter for the number in the sequence, which the function will return the Fibonacci number for."
description="Software Coder, writes Python code as required and reiterates with feedback from the Code Reviewer.",
34
+
system_message="You are a senior Python developer, a specialist in writing succinct Python functions.",
35
+
llm_config=llm_config,
36
+
)
37
+
38
+
# Code Reviewer agent
39
+
reviewer=autogen.AssistantAgent(
40
+
name="codeReviewer",
41
+
description="Code Reviewer, reviews written code for correctness, efficiency, and security. Asks the Software Coder to address issues.",
42
+
system_message="You are a Code Reviewer, experienced in checking code for correctness, efficiency, and security. Review and provide feedback to the Software Coder until you are satisfied, then return the word TERMINATE",
# Start the chat with a request to write a function
54
+
user_proxy.initiate_chat(
55
+
manager,
56
+
message="Write a Python function for the Fibonacci sequence, the function will have one parameter for the number in the sequence, which the function will return the Fibonacci number for."
0 commit comments