OpenGenerativeUI icon indicating copy to clipboard operation
OpenGenerativeUI copied to clipboard

feat: deploy agent to LangGraph Platform (LangSmith Cloud)

Open jerelvelarde opened this issue 7 months ago • 0 comments

Summary

  • Split deployment: frontend stays on Render, agent deploys to LangGraph Platform (LangSmith Cloud)
  • Frontend auto-detects cloud vs self-hosted based on LANGSMITH_API_KEY presence — uses LangGraphAgent for Platform, LangGraphHttpAgent for self-hosted
  • Removed agent service from render.yaml; added LANGGRAPH_DEPLOYMENT_URL and LANGSMITH_API_KEY env vars
  • Added migration plan and updated deployment docs

Resolves #75

Test plan

  • [ ] Deploy agent to LangGraph Platform dev environment via langgraph deploy
  • [ ] Set agent env vars (OPENAI_API_KEY, LANGGRAPH_CLOUD=true) in LangSmith dashboard
  • [ ] Run frontend locally pointed at the cloud deployment URL
  • [ ] Verify chat sends/receives messages end-to-end
  • [ ] Verify agent can add/update/complete todos (state sync)
  • [ ] Verify conversation persists across page refresh (Postgres-backed)
  • [ ] Verify traces appear in LangSmith dashboard
  • [ ] Verify self-hosted path still works without LANGSMITH_API_KEY set

🤖 Generated with Claude Code

jerelvelarde avatar Apr 06 '26 21:04 jerelvelarde