Deploy deep agents to LangSmith
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 42/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- fastapi, next.js, python, typescript
- Bereich
- backend, cloud, devops, frontend, observability
Rechercherichtung
Start by reading apps/agent/main.py, apps/agent/langgraph.json, and pyproject.toml, then review the LangSmith deployment documentation. Trace how the frontend CopilotKit API route reaches the current FastAPI/Uvicorn service. Done means the agent deploys successfully, skills and dependencies work, frontend requests reach the cloud URL, traces appear in LangSmith, and state synchronization is verified.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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→ exportsgraphobject - Config:
apps/agent/langgraph.jsonalready exists with graphsample_agentpointing to./main.py:graph - Dependencies: managed via
uv+pyproject.toml - Hosting: currently self-hosted via
uvicornon port 8123 - Checkpointing: in-memory
BoundedMemorySaver(200 threads, no persistence across restarts)
What Needs to Happen
1. LangSmith Account & Deployment Setup
- Ensure LangSmith Plus plan (or higher) is active — required for cloud deployments
- Connect the GitHub repo to LangSmith via Deployments → + New Deployment
2. Configuration Updates
- Review
langgraph.json— theenvpath currently points to../../.env(relative to repo root), which may need adjustment for cloud deployment - Add
LANGCHAIN_API_KEY,LANGCHAIN_TRACING_V2=true, andLANGCHAIN_PROJECTto environment config - Ensure
OPENAI_API_KEYis set as a deployment secret in LangSmith - Verify
deepagentsand all dependencies resolve correctly in the cloud build environment
3. Compatibility Considerations
- CopilotKitMiddleware: Verify it works within LangGraph Platform's execution model (not running inside FastAPI directly)
- BoundedMemorySaver: Cloud deployments provide managed persistence (Postgres-backed checkpointer) — evaluate whether to replace the custom in-memory saver
- Skills directory: Confirm
skills/markdown files are included in the deployment bundle (they're loaded via file path at runtime) - ag-ui-langgraph endpoint: Determine if the FastAPI wrapper (
add_langgraph_fastapi_endpoint) is still needed or if LangSmith handles this natively
4. Frontend Integration
- Update the frontend CopilotKit API route to point to the LangSmith deployment URL instead of
localhost:8123 - Add deployment URL as an environment variable for the Next.js app
- Test bidirectional agent state sync (todos) through the cloud-hosted agent
5. Observability
- Confirm traces appear in LangSmith for all agent runs
- Set up a LangSmith project for organizing traces
- Verify tool call traces (query_data, plan_visualization, manage_todos, etc.) are captured
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
- Vorherrschende Sprache
- TypeScript
- Sterne
- 3.9k
- Forks
- 414
- Ø Merge
- 4 Std.
- Gemergte PRs (30 T.)
- 6
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CopilotKit/OpenIntelligentUI
-
Script dedup key truncation may cause collisionsEvtl. vergeben @saschabuehrle hat das vor 218 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
CopilotKit/OpenIntelligentUI#37 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
CopilotKit/OpenIntelligentUI#29 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Self-host with Docker Compose and optional server-held keysEvtl. vergeben @kannan983 hat das vor 19 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 18/100
CopilotKit/OpenIntelligentUI#98 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Support OpenAI-compatible gateways (OpenRouter) via vendor/model namesEvtl. vergeben @kannan983 hat das vor 19 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 25/100
CopilotKit/OpenIntelligentUI#97 ·
Maintainer antworten meist innerhalb von 1 Tag
-
UIOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 8/100
CopilotKit/OpenIntelligentUI#96 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in CopilotKit/OpenIntelligentUI
Ähnliche Issues
-
area:plugins area:security area:skills bug has repro
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
anthropics/claude-code#105911 ·
Maintainer antworten meist innerhalb von 1 Tag
-
openspec-apply-change skill: when blocked, may select a ready artifact unrelated to missingArtifactsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Fission-AI/OpenSpec#2165 ·
Maintainer antworten meist innerhalb von 1 Tag
-
🐞 bug 🧐 unconfirmed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Tencent/tdesign-vue-next#7032 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
gnosis/gnosis_vpn#661 ·
Maintainer antworten meist innerhalb von 1 Tag
-
content-freshness: staleOwnedContent doc comments still say 'complete receipt' (follow-up to #7912)Offentriage:bug-verified
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
Maintainer antworten meist innerhalb von 1 Tag