Auto Generated Agent Chat: Function Inception
AutoGen offers conversable agents powered by LLM, tool or human, which can be used to perform tasks collectively via automated chat. This framework allows tool use and human participation through multi-agent conversation. Please find documentation about this feature here.
In this notebook, we demonstrate how to use AssistantAgent
and
UserProxyAgent
to give them the ability to auto-extend the list of
functions the model may call. Functions need to be registered to
UserProxyAgent
, which will be responsible for executing any function
calls made by AssistantAgent
. The assistant also needs to know the
signature of functions that may be called. A special define_function
function is registered, which registers a new function in
UserProxyAgent
and updates the configuration of the assistant.
In the example scenario, the user first asks to define a function that gets a URL and prints the response body. Then the user asks to print the response body, and the assistant suggests to the user to call the new function.