We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I run Simple Codeing Agent example , I can save the code on Jupter, but I can't save it on PyCharm, why is this ?
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
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.", )
empty directory
python 3.11 autogen 0.2.31
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
empty directory
Additional Information
python 3.11
autogen 0.2.31
The text was updated successfully, but these errors were encountered: