from praisonaiagents import Agent, A2Aagent = Agent( name="Assistant", role="Helpful AI Assistant", goal="Help users with their questions", llm="gpt-4o-mini")a2a = A2A(agent=agent)a2a.serve(host="0.0.0.0", port=8000)
serve() creates a FastAPI app and starts uvicorn for you. For custom FastAPI apps, use a2a.get_router() instead.
Expected Output:
INFO: Started server processINFO: Waiting for application startup.INFO: Application startup complete.INFO: Uvicorn running on http://0.0.0.0:8000