Overview
Deploy the LangGraph deep agent (apps/agent) to LangSmith's managed cloud platform (formerly LangGraph Platform) for production hosting, observability, and tracing.
Background
The agent already uses the deepagents SDK (create_deep_agent()) built on LangGraph, and has a langgraph.json config in place. LangSmith Cloud provides managed deployment with built-in tracing, streaming, and persistence — replacing the current self-hosted FastAPI/Uvicorn setup.
Current State
- Agent framework: LangGraph 1.0.7 + DeepAgents via
create_deep_agent()
- Entry point:
apps/agent/main.py → exports graph object
- Config:
apps/agent/langgraph.json already exists with graph sample_agent pointing to ./main.py:graph
- Dependencies: managed via
uv + pyproject.toml
- Hosting: currently self-hosted via
uvicorn on port 8123
- Checkpointing: in-memory
BoundedMemorySaver (200 threads, no persistence across restarts)
What Needs to Happen
1. LangSmith Account & Deployment Setup
2. Configuration Updates
3. Compatibility Considerations
4. Frontend Integration
5. Observability
Risks & Open Questions
- Cold start latency: LangSmith cloud deployments may have cold starts — measure impact on UX
- Cost: Plus plan is $39/seat/mo + usage-based billing for agent runs and uptime
- Skills file loading: The agent loads skills from
Path(__file__).parent / "skills" — need to verify this resolves correctly in the containerized cloud environment
- Rate limiting: Current app has optional IP-based rate limiting in FastAPI middleware — this won't carry over to LangSmith; determine if platform-level rate limiting is sufficient
References
Overview
Deploy the LangGraph deep agent (
apps/agent) to LangSmith's managed cloud platform (formerly LangGraph Platform) for production hosting, observability, and tracing.Background
The agent already uses the
deepagentsSDK (create_deep_agent()) built on LangGraph, and has alanggraph.jsonconfig in place. LangSmith Cloud provides managed deployment with built-in tracing, streaming, and persistence — replacing the current self-hosted FastAPI/Uvicorn setup.Current State
create_deep_agent()apps/agent/main.py→ exportsgraphobjectapps/agent/langgraph.jsonalready exists with graphsample_agentpointing to./main.py:graphuv+pyproject.tomluvicornon port 8123BoundedMemorySaver(200 threads, no persistence across restarts)What Needs to Happen
1. LangSmith Account & Deployment Setup
2. Configuration Updates
langgraph.json— theenvpath currently points to../../.env(relative to repo root), which may need adjustment for cloud deploymentLANGCHAIN_API_KEY,LANGCHAIN_TRACING_V2=true, andLANGCHAIN_PROJECTto environment configOPENAI_API_KEYis set as a deployment secret in LangSmithdeepagentsand all dependencies resolve correctly in the cloud build environment3. Compatibility Considerations
skills/markdown files are included in the deployment bundle (they're loaded via file path at runtime)add_langgraph_fastapi_endpoint) is still needed or if LangSmith handles this natively4. Frontend Integration
localhost:81235. Observability
Risks & Open Questions
Path(__file__).parent / "skills"— need to verify this resolves correctly in the containerized cloud environmentReferences