Skip to content

How to implement regenerate-code #942

Closed Answered by rickyloynd-microsoft
KyrieCui asked this question in Q&A
Discussion options

You must be logged in to vote

I think you're on the right track. For instance, if a user asks chatgpt to write some code, it's expected that the user will then run the code themselves. And if an error message is produced, the user can paste that error message into the chat window. Then chatgpt will often rewrite the code to resolve the error. Similarly, in autogen, the UserProxyAgent has the ability to execute code and send error messages back to the AssistantAgent that wrote the code, so that the assistant can reply with a (hopefully) corrected version of the code to be tried next. Does that answer your question, or is there some part of it that you would like to understand better?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@KyrieCui
Comment options

@rickyloynd-microsoft
Comment options

Answer selected by KyrieCui
@KyrieCui
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants