Repository navigation
feat(agent_server): add /api/epic-poem/name endpoint (test-only, do not merge) - #7220
juanmichelini wants to merge 1 commit into
Conversation
Add a demo endpoint on the agent server that returns the poem name used by the /epic-poem slash command. The value is sourced from the EPIC_POEM_NAME environment variable (default 'The OpenHands Epic') so a preview deployment can override it. This is one of four PRs (enterprise + sdk + openhands + extensions) that form the /epic-poem cross-repo demo used to test the verify-this preview-verification automation with a multi-PR bundle. Test-only; do not merge.
REST API breakage checks (OpenAPI) — ✅ PASSEDResult: ✅ PASSED |
Agent-server conversation start benchmarkBase
How this is measuredEach create is a Canvas-shaped
A timing is flagged when the 95% CIs do not overlap and the medians differ by at least 50 ms, or when a row with at least 8 samples per side moves by at least 150 ms and 25%. A create stalled the server when its slowest |
|
This PR was created by an AI agent (OpenHands) on behalf of the user.
In plain words
Adds a demo agent-server endpoint
GET /api/epic-poem/namethat returns the poem name used by the/epic-poemslash command, sourced from theEPIC_POEM_NAMEenv var (defaultThe OpenHands Epic).Why
This is one of four PRs across
enterprise,software-agent-sdk,OpenHands/OpenHands, andextensionsthat together form a single cross-repo feature (/epic-poem). The four PRs must be deployed together for the feature to work end-to-end. The bundle is used to test theverify-thispreview-verification automation with a multi-PR, multi-repo bundle — the prior examples only bundled one or two image-pinned PRs.This PR is the software-agent-sdk leg (the agent-server endpoint). The
/epic-poemcommand itself is delivered by the extensions skill (viaEXTENSIONS_REF); this endpoint is the backend piece the agent server contributes to the demo.Summary
The endpoint reads
EPIC_POEM_NAMEat request time (defaultThe OpenHands Epic); a blank value falls back to the default. This lets a preview deployment set the poem name via env without rebuilding the image.Cross-repo bundle
This feature is split across four PRs that must deploy together:
OpenHands/enterpriseghcr.io/openhands/enterprise-serverimage SHAOpenHands/software-agent-sdk/epic-poemagent-server endpointghcr.io/openhands/agent-serverimage SHAOpenHands/OpenHandsghcr.io/openhands/agent-canvasimage SHAOpenHands/extensionsEXTENSIONS_REFEXTENSIONS_REF=OpenHands/extensions@<merge-sha>must be set on the preview for the/epic-poemcommand to resolve; the other three legs are pinned by image SHA.How to Test
pytest tests/agent_server/test_epic_poem_router.py— covers the default name, anEPIC_POEM_NAMEoverride, and the blank-env fallback.Type
Notes
Test-only. Part of a cross-repo
/epic-poemdemo bundle. Do not merge.🐳 Agent Server images for this PR — GHCR package, pull/run commands, and all pushed tags (click to expand)
• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server
Variants & Base Images
eclipse-temurin:17-jdkpython-node-runtimepython-node-runtimepython-node-runtimegolang:1.21-bookwormPull (multi-arch manifest)
# Each variant is a multi-arch manifest supporting both amd64 and arm64 docker pull ghcr.io/openhands/agent-server:3106486-pythonRun
All tags pushed for this build
About Multi-Architecture Support
3106486-python) is a multi-arch manifest supporting both amd64 and arm643106486-python-amd64) are also available if needed