Serve the file
Note: Use the agents.yaml you validated in the YAML course. Stop server.py first so port 8000 is free.
No Python needed
praisonai serve agents loads agents.yaml and starts the same kind of server you built with launch.
Change the file, stop the server with Ctrl+C, and start it again to pick up the change.
Example
praisonai serve agents --file agents.yaml --port 8000Call every agent, or one
POST to /agents runs the agents in the file. Add a name to the path to reach one agent.
Example
curl -X POST http://127.0.0.1:8000/agents \
-H "Content-Type: application/json" \
-d '{"query": "Write two lines about rain"}'Example explained
- /agents — Runs the agents defined in agents.yaml.
- /agents/writer — Runs only the agent named writer.
Reference: documentation