Describe the bug
FastAPI warns during the startup that the AgentServer class is using deprecated startup and shutdown events, but should be using lifespan instead
https://fastapi.tiangolo.com/advanced/events/?h=life#lifespan
Steps to reproduce
- Go to '...'
- Run '...'
- See error
Expected behavior
Screenshots / Logs
Environment
- Control plane version:
- SDK version (if applicable):
- Deployment environment (local, docker, kubernetes, etc.):
Additional context
Describe the bug
FastAPI warns during the startup that the
AgentServerclass is using deprecatedstartupandshutdownevents, but should be usinglifespaninsteadhttps://fastapi.tiangolo.com/advanced/events/?h=life#lifespan
Steps to reproduce
Expected behavior
Screenshots / Logs
Environment
Additional context