Overview
LangGraph is the most production-hardened agent framework, built by LangChain. It uses graph-based orchestration for complex stateful workflows. Withlangchain-mcp-adapters, Ovra’s payment tools integrate as native LangChain tools.
Install
Setup
Why LangGraph
- Stateful workflows — graph-based execution with checkpointing, ideal for multi-step payment flows
- Human-in-the-loop — built-in approval steps pair well with Ovra’s
approveenforcement level - Multi-agent — orchestrate specialized agents (researcher, purchaser, auditor) in a single graph
- Production-ready — used by Klarna, Uber, LinkedIn
Payment Flow
LangGraph agents follow Ovra’s standard credential flow:Human Approval Example
Use LangGraph’s interrupt mechanism with Ovra’sapprove enforcement level:
enforcementLevel: "approve", Ovra returns a pending approval. Your LangGraph agent can pause execution at a checkpoint and wait for human confirmation before proceeding.
Key Tools
| Tool | Purpose |
|---|---|
ovra_agent | List agents, check balance |
ovra_intent | Declare purchase intent (auto policy check) |
ovra_credential | Get DPAN, confirm payment |
ovra_transaction | View transaction history |
ovra_policy | Check if a purchase would be allowed |
