You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/Users/gaganbansal/workspace/test-autogen/weather.py", line 5, in <module> from autogen_agentchat.teams import RoundRobinGroupChat File "/Users/gaganbansal/miniconda3/envs/test-autogen/lib/python3.10/site-packages/autogen_agentchat/teams/__init__.py", line 1, in <module> from ._group_chat._base_group_chat import BaseGroupChat File "/Users/gaganbansal/miniconda3/envs/test-autogen/lib/python3.10/site-packages/autogen_agentchat/teams/_group_chat/_base_group_chat.py", line 7, in <module> from autogen_core.application import SingleThreadedAgentRuntime File "/Users/gaganbansal/miniconda3/envs/test-autogen/lib/python3.10/site-packages/autogen_core/application/__init__.py", line 6, in <module> from ._worker_runtime import WorkerAgentRuntime File "/Users/gaganbansal/miniconda3/envs/test-autogen/lib/python3.10/site-packages/autogen_core/application/_worker_runtime.py", line 53, in <module> from .protos import agent_worker_pb2, agent_worker_pb2_grpc File "/Users/gaganbansal/miniconda3/envs/test-autogen/lib/python3.10/site-packages/autogen_core/application/protos/agent_worker_pb2_grpc.py", line 3, in <module> import grpcModuleNotFoundError: No module named 'grpc'
How can we reproduce it (as minimally and precisely as possible)?
importasynciofromautogen_agentchat.agentsimportAssistantAgentfromautogen_agentchat.taskimportConsole, TextMentionTerminationfromautogen_agentchat.teamsimportRoundRobinGroupChatfromautogen_ext.modelsimportOpenAIChatCompletionClient# Define a toolasyncdefget_weather(city: str) ->str:
returnf"The weather in {city} is 73 degrees and Sunny."asyncdefmain() ->None:
# Define an agentweather_agent=AssistantAgent(
name="weather_agent",
model_client=OpenAIChatCompletionClient(
model="gpt-4o-2024-08-06",
# api_key="YOUR_API_KEY",
),
tools=[get_weather],
)
# Define termination conditiontermination=TextMentionTermination("TERMINATE")
# Define a teamagent_team=RoundRobinGroupChat([weather_agent], termination_condition=termination)
# Run the team and stream messages to the consolestream=agent_team.run_stream(task="What is the weather in New York?")
awaitConsole(stream)
asyncio.run(main())
AutoGen version
autogen-agentchat==0.4.0.dev7
Which package was this bug in
Core
Model used
gpt-4o
Python version
3.10
Operating system
Mac
Any additional info you think would be helpful for fixing this bug
No response
The text was updated successfully, but these errors were encountered:
What happened?
I ran the weather agents from https://microsoft.github.io/autogen/dev/user-guide/agentchat-user-guide/quickstart.html
What did you expect to happen?
I expected the code to run instead I got
How can we reproduce it (as minimally and precisely as possible)?
Here
weather.py
contains:AutoGen version
autogen-agentchat==0.4.0.dev7
Which package was this bug in
Core
Model used
gpt-4o
Python version
3.10
Operating system
Mac
Any additional info you think would be helpful for fixing this bug
No response
The text was updated successfully, but these errors were encountered: