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

[Issue]: vertify Simple Coding Agent Not code save the disk #3052

Open
812406210 opened this issue Jul 1, 2024 · 0 comments
Open

[Issue]: vertify Simple Coding Agent Not code save the disk #3052

812406210 opened this issue Jul 1, 2024 · 0 comments

Comments

@812406210
Copy link

Describe the issue

I run Simple Codeing Agent example , I can save the code on Jupter, but I can't save it on PyCharm, why is this ?

Steps to reproduce

from pathlib import Path

workdir = Path("coding")
print(workdir)
workdir.mkdir(exist_ok=True)

from autogen.coding import LocalCommandLineCodeExecutor

code_executor = LocalCommandLineCodeExecutor(work_dir=workdir)

from autogen import AssistantAgent, UserProxyAgent

Setting up the agents.

user_proxy_agent = UserProxyAgent(
name="User",
code_execution_config={"executor": code_executor},
is_termination_msg=lambda msg: "TERMINATE" in msg.get("content"),
)

assistant_agent = AssistantAgent(
name="DBRX Assistant",
llm_config=llm_config,
)

chat_result = user_proxy_agent.initiate_chat(
assistant_agent,
message="Count how many prime numbers from 1 to 10000.",
)

Screenshots and logs

image
empty directory

Additional Information

python 3.11
autogen 0.2.31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant