Requirements
AG2 requiresPython>=3.9
. To run this notebook example, please
install:
Set your API Endpoint
Theconfig_list_from_json
function loads a list of configurations from an environment variable or
a json file.
Example Task: Investment suggestion with realtime data
We consider a scenario where news data are streamed from a source, and we use an assistant agent to provide investment suggestions based on the data continually. First, we use the following code to simulate the data stream process.a_initiate_chat()
method of the user proxy agent to
start the conversation.