Skip to content

Commit

Permalink
Fix failing example (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl authored Sep 19, 2024
1 parent 8c2c96c commit f243b62
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/cli/main_user_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def simple_workflow(wf: AutoGenWorkflows, ui: UI, initial_message: str, session_
user_proxy = UserProxyAgent(
name="User_Proxy",
human_input_mode="ALWAYS",
llm_config=llm_config,
)
weatherman = ConversableAgent(
name="Weatherman",
Expand All @@ -40,8 +41,11 @@ def simple_workflow(wf: AutoGenWorkflows, ui: UI, initial_message: str, session_
# Set global security params for all methods
weather_client.set_security_params(APIKeyHeader.Parameters(value="secure weather key"))

weather_client.register_for_llm(weatherman)
weather_client.register_for_execution(user_proxy)
wf.register_api(
api=weather_client,
callers=user_proxy,
executors=weatherman,
)

chat_result = user_proxy.initiate_chat(
weatherman,
Expand Down

0 comments on commit f243b62

Please sign in to comment.