From the course: Creating Agents with Python and the AI Toolkit for Visual Studio Code
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Migrating your agent to a standalone Python workflow
From the course: Creating Agents with Python and the AI Toolkit for Visual Studio Code
Migrating your agent to a standalone Python workflow
We are now ready to migrate to a code-first workflow for our Sales Insight Agent. Before we do so, ensure that you're in the agent builder within the AI toolkit and that the Sales Insight Agent is selected, as well as the GPT 4.1-mini model from Azure AI Foundry. You're going to scroll down on the left-hand side of the extension all the way to the button that says View Code. When you select View Code, you'll first need to select your SDK. I recommend selecting Microsoft Agent Framework. Next, you'll then need to select the programming language, and we're going to select Python. That gives us the code version of the agent that we created in the Agent Builder. Before you move forward, this file needs to be saved. To do so, what we're going to do is save it in the root of the current project that we're in. so make sure that you are in the root. Once you're there, you're going to come to File, Save As, and then we're going to give our agent a name. Now, you may notice that the folder that…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.