When you initialize an Agent Project, Upsonic creates two essential files:
agent.py: Contains your agent’s main() function that processes inputs and returns outputs
upsonic_config.json: Defines your agent’s metadata, input/output schemas, dependencies, and runtime configuration
The framework automatically:
Generates a FastAPI server from your configuration
Creates OpenAPI documentation with interactive forms
Handles both JSON and multipart/form-data requests
Validates inputs and outputs based on your schema definitions
Manages dependencies across different environments
Your agent’s main() function receives inputs as a dictionary, processes them using Upsonic’s Agent class, and returns a dictionary with results. The FastAPI server exposes this as a /call endpoint that can be consumed by any HTTP client.