Lesson deck
LangSmith Deployment: running agents in production flashcards
Reviewing needs JavaScript. You can read every card in the list below.
Loading your cards...
Back to the lesson14 cards in this deck
Read all 14 cards as a list
- Front
- Why do agents need more than a request handler?
- Back
- Runs are long, bursty, stateful, streaming, interruptible and sometimes scheduled. A plain handler hits timeouts, loses runs on deploy and cannot resume. A runtime supplies durable state, streaming and queues.
- Front
- Assistant, thread, run, store, checkpoint?
- Back
- Assistant: a graph plus configuration. Thread: one conversation's state container. Run: one execution. Store: memory across threads. Checkpoint: a snapshot so an interrupted run can resume.
- Front
- Where does the Agent Server keep what?
- Back
- Assistants, threads, runs and cron jobs always in PostgreSQL. Redis handles signalling, cancellation and streaming and holds only ephemeral data.
- Front
- How does a background run work?
- Back
- Create a run on a thread; the call returns before the work finishes. Check status later, join to wait, then read the final thread state.
- Front
- The hosting options?
- Back
- Cloud (vendor runs everything); hybrid (vendor control plane, your servers and data); self-hosted with control plane (your Kubernetes, enterprise); standalone server (you run it with Postgres, Redis and a licence); or build your own.
- Front
- What do you rebuild if you build your own runtime?
- Back
- Streaming with reconnect, resume after interrupt, queues, cron, and concurrency rules for new messages on a busy thread.
- Front
- Where is the lock-in?
- Back
- Graph code is open source and portable. The server runtime is the part you rent. Weigh it against the cost of rebuilding the runtime.
- Front
- The four double-texting strategies?
- Back
- Enqueue (default: finish, then run the new input), reject (refuse new runs while one is active), interrupt (halt, keep progress, add the input), rollback (halt, revert everything, restart with the new input).
- Front
- Which strategy for a chat product? For a transactional agent?
- Back
- Chat: usually interrupt or rollback, since the old run is stale. Transactional: enqueue or reject, because abandoning a half-done real action is risky; rollback does not undo a payment.
- Front
- What does the custom auth handler do?
- Back
- Runs on every request, validates credentials and returns the user's identity and extra fields. Self-hosted servers have no default authentication.
- Front
- How do you enforce thread ownership?
- Back
- Set an owner in thread metadata on create; return a filter on the caller's identity for reads and searches. Runs inherit their thread's access control; the store uses namespace rewriting.
- Front
- Budgets and safety for a deployed agent?
- Back
- Per-run caps (model calls, tool calls, time, money) and a set recursion limit; a kill switch and a degraded mode; identity from the auth context; idempotent tools; redacted traces; a deletion path across threads, checkpoints, store and traces.
- Front
- What must be true to deploy while runs are paused for approval?
- Back
- State is durable; the new graph reads the old state; node names and interrupt order stay stable; side effects are idempotent; the rollout is understood and tested.
- Front
- A safe release path for a prompt, model or graph change?
- Back
- Offline experiment beats the baseline with no slice worse, then a gradual release with online evaluators, pinned versions, and a rollback path for graph and prompt together.