- Creating a minimal FastAPI app with a Upsonic agent
- Containerizing it with Docker
- Running it locally
Setup
Create a new directory for your project
Create a new directory for your project and navigate to it:After following this guide, your project structure will look like this:
Step 1: Create a FastAPI App with a Upsonic Agent
Create a new Python file, e.g., `main.py`, and add the following code to create a minimal FastAPI app with a Upsonic agent:
main.py
Step 2: Create a Dockerfile
Step 3: Advanced Configuration with Structured Responses
Run the updated Docker container:

