Originally created by @mingshl in mingshl/opensearch-agent-server#22
Description
Create a developer guide documenting how to add a new sub-agent to the server. This is critical for the ART team and any future contributors.
Content outline
- Create agent factory in
src/agents/my_agent.py
- Define system prompt and tool selection
- Register in
ag_ui_app.py lifespan
- Configure page context routing
- (Optional) Add custom MCP tool profile
- Add tests
- End-to-end verification
Include
Location
docs/adding-agents.md (linked from CONTRIBUTING.md)
References
- Existing agents:
src/agents/fallback_agent.py, src/agents/art_agent.py
- Registration:
src/server/ag_ui_app.py
Description
Create a developer guide documenting how to add a new sub-agent to the server. This is critical for the ART team and any future contributors.
Content outline
src/agents/my_agent.pyag_ui_app.pylifespanInclude
Location
docs/adding-agents.md(linked from CONTRIBUTING.md)References
src/agents/fallback_agent.py,src/agents/art_agent.pysrc/server/ag_ui_app.py