- Create the plugin code using Copilot chat:
Write a simple TODO app using FastAPI, that lets the user add TODOs, list their TODOs, and delete TODOs.
Include a __main__ section which will run this app using uvicorn. The Python module where I save this code will be called main.py.
In addition to the normal endpoints, include a route .wellknown/ai-plugin.json which serves (as JSON) the contents of ./ai-plugin.json, located in the same directory as main.py. Exclude this route from the OpenAPI spec, and don't serve any other static content.-
Create ai-plugin.json (use snippet via
manifest-openai-- or let Copilot generate it) -
Run the app (in terminal run:
uvicorn main:app)