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.
Prepare the environment to run the agent code
From the course: Creating Agents with Python and the AI Toolkit for Visual Studio Code
Prepare the environment to run the agent code
Before we run our agent, we need to make sure that we have our environment set up properly. Ensure that you open the terminal. Because we still have the MCP server that we created running via the debugger, we're not going to turn it off. We're going to need to make sure that that stays connected, so that way when we run this, we're able to grab that server from where it's at locally. In a real-world situation, you would have deployed this possibly to various options that are available in terms of hosting your actual MCP server. But because we're working locally here, we're going to keep things running locally for the sake of this course. I'm opening up a brand new terminal. In this terminal, I want to make sure that I am still in that virtual environment from earlier. So mine, I can see on the far left, it's showing sales-in-site to indicate that I am in that particular virtual environment. In the event that you're not sure whether you're in a virtual environment still, you can always…
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.