Agently Fastapi Service

FastAPI service wrappers for Agently Agent + TriggerFlow (POST, SSE, WebSocket).

agentera 47e13a6 4 files · 3.4 KB Updated

File contents

Agently FastAPI Service Skill

Use this skill to expose Agently/TriggerFlow as HTTP and streaming APIs.

Key Patterns

  • POST endpoint for one-shot responses.
  • SSE endpoint for streaming deltas.
  • WebSocket endpoint for duplex streaming.

Pitfalls to Avoid (Lessons from NexusTodo)

  • Stream event types should be explicit (delta, action, execution, done, error).
  • Only send cards or final summaries in done to avoid duplicates in the UI.
  • Enforce identity + auth headers (Authorization, X-User-ID, X-Device-ID) on every request.
  • Prefer GET query params for SSE when payload is small; rely on sessionId for context.

References

  • examples/fastapi_triggerflow_service.py

Examples

See examples/run.sh for runnable commands.

agentera/agently-nexustodo/tree/main/auto_agent/docs/skills/agently-fastapi-service commit 47e13a6d70

Frequently asked questions

npx skillmds@latest add agentera/agently-fastapi-service