From the course: Building AI Agents with AutoGen
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Define task to analyze data - Autogen Tutorial
From the course: Building AI Agents with AutoGen
Define task to analyze data
In this lesson, we are going to put our coding copilot to work. We'll define a specific task for stock analysis and have our agents collaborate to complete that analysis. Then we'll examine the output as well. Here, I've imported the libraries, configured my large language model. We have already created an executor instance. So we have set a timeout of 10 seconds, and we have specified the working directory which is named coding, where our code and output will be stored. Finally, we have created our code executor agent and code writer agent. If you want to check the system message of the code writer agent, it looks something like this. Now comes adding the task. So what is this stock analysis task that we have provided to our agent? In this case, we have imported date time date because we want the analysis to be done as per today's date. So as per the course recording date. So I've captured the current date using date.today() method. We import the date module above to get the current…