on_route_conflict="preserve_base_app"
functionality which allows your
custom routes to take precedence over conflicting AgentOS routes.
When on_route_conflict="preserve_base_app"
:
- Your custom routes will be preserved
- Conflicting AgentOS routes will be skipped
- Non-conflicting AgentOS routes will still be added
on_route_conflict="preserve_agentos"
(default):
- AgentOS routes will override your custom routes
- Warnings will be logged about the conflicts
Example
1
Code
override_routes.py
2
Create a virtual environment
Open the
Terminal
and create a python virtual environment.3
Set Environment Variables
4
Install libraries
5
Setup PostgreSQL Database
6
Run Example with Python