- Python v3.12 or higher. Install or upgrade from python.org/downloads.
npx @microsoft/teams.cli@latest new python quote-agent --template echo- Creates a new directory called
quote-agent. - Bootstraps the echo agent template files into it under
quote-agent/src. - Creates your agent's manifest files, including a
manifest.jsonfile and placeholder icons in thequote-agent/appPackagedirectory. The Teams app manifest is required for sideloading the app into Teams.
Navigate to your new agent's directory:
cd quote-agentStart the development server:
python src/main.pyIn the console, you should see a similar output:
[INFO] @teams/app Successfully initialized all plugins
[WARNING] @teams/app.DevToolsPlugin ⚠️ Devtools is not secure and should not be used in production environments ⚠️
[INFO] @teams/app.HttpPlugin Starting HTTP server on port 3978
INFO: Started server process [6436]
INFO: Waiting for application startup.
[INFO] @teams/app.DevToolsPlugin available at http://localhost:3979/devtools
[INFO] @teams/app.HttpPlugin listening on port 3978 🚀
[INFO] @teams/app Teams app started successfully
[INFO] @teams/app.DevToolsPlugin listening on port 3979 🚀
INFO: Application startup complete..
INFO: Uvicorn running on http://0.0.0.0:3979 (Press CTRL+C to quit)