Skip to content

[Issue]: Question regarding agent behavior: is the User Proxy the only agent that can run functions? #3023

Closed
@tyler-suard-parker

Description

@tyler-suard-parker

Describe the issue

I currently have my group chat set up like this:

UserProxy
Search Agent 1
Search Agent 2
Search Agent 3

I have given each Search Agent specific instructions to perform a search on its own, and I have given each search agent access to a different search function.
Instead of performing searches, each search agent suggests to the UserProxy which search function to run. The UserProxy of course does not have access to those search functions, so I get an error. What is going on here? How can I get my Search Agents to actually execute a search function, instead of suggesting to the UserProxy a function to call?

Steps to reproduce

Define one user proxy and one assistant agent. Allow the assistant agent to access a search function. Send a message from the user proxy to the assistant agent, telling it to search. Instead of searching, the assistant agent will send back a suggestion for the user proxy to call a function.

My code is somewhat similar to Example 1 here:

"To get the current stock prices of NVDA (NVIDIA Corporation) and TSLA (Tesla, Inc.), along with their performance over the past month in terms of percentage change, we can use a Python library like `yfinance`. This library allows downloading of historical market data from Yahoo Finance.\n",

Screenshots and logs

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.2Issues which are related to the pre 0.4 codebaseneeds-triagequestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions