Closed lucasjinreal closed 5 months ago
@lucasjinreal Can you provide a complete example in English only?
For summay, the code can not be executed when LLM produces code in markdown format with py
code mark.
@sonichi
Let's add "py" to line 1119 of conversable_agent.py
@rickyloynd-microsoft @sonichi is it solved or there is something to be worked on to solve it ?, If yes , I am interested in working on this issue ,
It's not solved. You can assign yourself and work on it.
Let's add "py" to line 1119 of conversable_agent.py
@sonichi can you please elaborate what does this mean, I have briefly gone through the conversable_agent.py present at autogen/agentchat/conversable_agent.py and also the line number 1119
It was an else statement. Maybe I am missing a few more details , I am not quite sure of how to proceed
Let's add "py" to line 1119 of conversable_agent.py
suggestions are appreciated :)
I'm currently encountering difficulty in assigning myself.
It's not solved. You can assign yourself and work on it.
I'm currently encountering difficulty in assigning myself.
It's not solved. You can assign yourself and work on it.
I just assigned you.
Let's add "py" to line 1119 of conversable_agent.py
@sonichi can you please elaborate what does this mean, I have briefly gone through the conversable_agent.py present at autogen/agentchat/conversable_agent.py and also the line number 1119
It was an else statement. Maybe I am missing a few more details , I am not quite sure of how to proceed
Let's add "py" to line 1119 of conversable_agent.py
suggestions are appreciated :)
The file is updated. The new line is: https://github.com/microsoft/autogen/blob/44260934f34b2e237fbf6d3da0cedd514642e294/autogen/agentchat/conversable_agent.py#L1395
Oh alright, in that case , I believe that the issue has been solved ? @sonichi @rickyloynd-microsoft
or the same line has to be added even at line 1119 as mentioned in the below
Let's add "py" to line 1119 of conversable_agent.py
It hasn't been solved. Just the line number has changed.
can you also add support for language type "yaml" for which a file has to be created ? just guide me so i can change
can you also add support for language type "yaml" for which a file has to be created ? just guide me so i can change
Two places need to be modified to add an "elif" branch: https://github.com/microsoft/autogen/blob/44260934f34b2e237fbf6d3da0cedd514642e294/autogen/code_utils.py#L224 https://github.com/microsoft/autogen/blob/44260934f34b2e237fbf6d3da0cedd514642e294/autogen/agentchat/conversable_agent.py#L1406
In that case, I think , adding "py" along with python and all other languages mentioned over there completes this issue , is that all ?
在您的计算机上创建一个名为
news_report.py
的新文件,并将此代码粘贴到其中。 然后,请替换<your_api_key>
为您的News API密钥。 如果您没有密钥,请访问News API注册并获取一个免费的API密钥。 保存文件后,在命令行中运行以下命令以执行脚本:当脚本成功执行时,它将显示新闻标题列表。 请注意,由于API限制和网络延迟,结果可能有所不同。
exitcode: 1 (execution failed) Code output: unknown language py