Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc update to code executor agent to mention PythonCodeExecutionTool #5782

Closed
ekzhu opened this issue Mar 2, 2025 · 0 comments · Fixed by #5809
Closed

Doc update to code executor agent to mention PythonCodeExecutionTool #5782

ekzhu opened this issue Mar 2, 2025 · 0 comments · Fixed by #5809
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@ekzhu
Copy link
Collaborator

ekzhu commented Mar 2, 2025

The assistant agent always outputs TERMINATE after generating code

You can customize the system message of AssistantAgent.

Is there a way to ensure that the snippet to be part of a markdown block.

Have you tried PythonCodeExecutionTool? It will run the code in the same agent rather than requiring the code to be inside markdown format.

https://microsoft.github.io/autogen/stable/reference/python/autogen_ext.tools.code_execution.html#autogen_ext.tools.code_execution.PythonCodeExecutionTool

The two-agent chat with assistant and code executor is a legacy pattern from v0.2. It's not a top recommended way to do code execution now.

Originally posted by @ekzhu in #5767 (reply in thread)

@ekzhu ekzhu added the documentation Improvements or additions to documentation label Mar 2, 2025
@ekzhu ekzhu modified the milestones: 0.4.x-dotnet, 0.4.x-python Mar 2, 2025
@ekzhu ekzhu assigned ekzhu and unassigned ekzhu Mar 2, 2025
@rysweet rysweet closed this as completed in 39bfa35 Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
1 participant