LangSmith, LangGraph.js, and LangChain.js make LangChain the better-documented TypeScript path in this comparison, but not a stack-wide guarantee. LangChain’s documentation covers LangGraph “(Python and JS)” and LangChain “(Python and JavaScript)”; Pydantic AI’s official overview instead describes it as “the Python AI SDK.” A TypeScript-primary team can therefore shortlist LangChain’s JavaScript agent, orchestration, and tracing surfaces for evaluation. It should not assume that every Python API or integration package has a JavaScript equivalent.
For Pydantic AI, the conservative planning choice is a Python service boundary unless current official documentation shows a TypeScript surface on your evaluation date. That is an inference from the official overview, checked 2026-12-01, not a verified claim that no TypeScript implementation exists anywhere. One overview page does not cover the project’s entire documentation and repository ecosystem.
The practical finding is that tracing can cross a language boundary even when agent execution remains Python. The checklist below reflects pages checked on 2026-12-01. Vendor-documented means an official page states the capability. Inferred from vendor documentation marks an architectural conclusion, not a support promise. Unverified means the cited documentation cannot settle the question. Community repositories are identified separately rather than treated as vendor validation.
The layer-by-layer language-support checklist
| Layer | LangChain in JavaScript or TypeScript | Pydantic AI in JavaScript or TypeScript | Decision consequence |
|---|---|---|---|
| Agent loop | Vendor-documented JavaScript surface: LangSmith’s LangChain guide names LangChain for Python and JavaScript in its agent-tracing documentation. Whether Python’s create_agent harness has the same API and provider coverage in JavaScript is unverified. | Vendor-documented Python surface: the official overview describes a typed, extensible agent loop with model substitution and provider fallback. A TypeScript implementation is unverified. | A TypeScript-first team can evaluate LangChain’s JS agent surface. Budget Pydantic AI as a Python service unless fresh official evidence changes this cell. |
| Graph orchestration | Vendor-documented JavaScript tracing surface: LangSmith names LangGraph for Python and JS. Community runtime evidence: a prototype uses @langchain/langgraph on Node.js 20+ with TypeScript. General runtime requirements and Python/JS feature parity are unverified. | Vendor-documented Python surface: the official overview presents Pydantic Graph as a separate open-source package, saying “Pydantic Graph gives you typed control flow when one agent loop is not enough” and listing “Pydantic Graph: typed graph control flow” among its components. A TypeScript implementation is unverified. | Do not turn a JavaScript tracing integration into proof that every orchestration feature runs in JavaScript. |
| Tracing and observability | Vendor-documented: LangSmith covers LangChain and LangGraph in Python and JavaScript. Its LangGraph documentation also covers graphs using LangChain modules or “other SDKs.” | Vendor-documented: instrumentation is OpenTelemetry-native and works with any OTel backend. Running a Python Pydantic service while sending telemetry to an OTel backend shared with TypeScript services is an inference from vendor documentation. It does not create a TypeScript SDK. | Choose the execution runtime separately from the telemetry backend. Portable tracing does not remove a Python deployment boundary. |
| Integration packages | Vendor-documented with a conflict: LangChain’s JavaScript contributing guide describes interface standards, but the same passage calls integration packages “Python packages.” Installable JavaScript coverage for any particular integration is unverified. | Unverified: the official Pydantic overview does not address integration-package language coverage. | Audit each required model provider, tool, and external service before committing to an all-TypeScript runtime. |
This table is a screening tool, not a compatibility certification. Its main value is preventing a true statement about one layer from becoming an unsupported statement about the whole stack.
“Other SDKs” is a tracing claim, not an execution promise
The strongest polyglot passage in LangChain’s documentation says:
“LangSmith smoothly integrates with LangGraph (Python and JS) to help you trace agents, whether you’re using LangChain modules or other SDKs.”
That sentence establishes observability coverage beyond graphs composed exclusively from LangChain modules. It does not say that LangGraph.js can execute agents written with arbitrary SDKs, and it does not name Pydantic AI. A Pydantic-to-LangSmith integration is therefore not established. Execution compatibility and tracing compatibility belong in different checklist cells.
At the LangChain layer, LangSmith also reduces instrumentation work once its environment is configured:
“No extra code is needed to log a trace to LangSmith. Just run your LangChain code as you normally would.”
That zero-code tracing statement concerns logging traces from existing LangChain code. It does not mean zero configuration, and it does not settle the cost of using LangSmith. Linking runs across separate services is a separately documented feature on the same page, under “Distributed tracing with LangChain (Python).”
Pydantic AI takes a different documented observability route. Its overview states:
“OpenTelemetry-native instrumentation works with any OTel backend; run uvx logfire-cli wizard —task pydantic-ai once to light up Pydantic Logfire for real-time debugging, tracing, and cost tracking backed by genai-prices.”
OpenTelemetry, commonly shortened to OTel, is the important part for a polyglot architecture. A team that accepts a Python Pydantic service has a documented route to backend-neutral instrumentation rather than having to couple observability to one vendor’s tracing platform. The command uvx logfire-cli wizard --task pydantic-ai supplies an optional documented setup path for Pydantic Logfire.
This cuts both ways. OTel support can make a Python agent service easier to accommodate in a TypeScript-heavy environment, but it does not make the agent loop itself runnable in TypeScript. If your hard requirement is “no Python agent service,” observability portability does not satisfy it.
Community projects pin package names, not production parity
Two community repositories provide useful existence evidence for TypeScript deployments.
The agent-orchestration-mvp prototype declares this stack:
“Runtime: Node.js 20+ / TypeScript
Orchestration: LangGraph.js (@langchain/langgraph)
LLM: Grok via @langchain/xai”
Those are concrete artifacts a team can look up during an evaluation. Node.js 20+ is this project’s declared runtime, however, not a vendor-documented minimum for every LangGraph.js deployment. Likewise, the appearance of @langchain/xai in a prototype does not establish parity across model providers or integration packages.
A second project, rag-agent-orchestrator, assigns the responsibilities differently:
“Orchestration/RAG
LangChain.jsAgent loop
LangGraph.js (explicit tool-calling graph)”
That division is a useful warning against treating package names as fixed layer definitions. One architecture may put the explicit tool-calling graph in LangGraph.js while another describes LangGraph as orchestration and LangChain as the agent harness. Audit the responsibility you need, such as tool dispatch, graph state, retrieval, or model fallback, rather than approving a framework badge.
Neither repository is a vendor case study or production validation. Together they show that published TypeScript projects use these packages; they do not measure reliability, feature coverage, or long-term compatibility.
The Python baseline also needs to be stated precisely. LangChain’s Python overview introduces create_agent with “Agent = Model + Harness.” It describes the harness as the prompt, tools, and middleware around the model loop, with support for OpenAI, Anthropic, Google, and others. The LangSmith tracing pages cited above do not establish that this entire harness and provider surface is identical in JavaScript. Pydantic AI’s typed loop and provider fallback are also not evidence of API equivalence with create_agent.
One orchestration cost fact is clear: LangChain’s LangGraph page states, “Yes. LangGraph is an MIT-licensed open-source library and is free to use.” That statement covers the LangGraph library. It does not cover hosted LangSmith pricing or establish the total cost of a LangChain deployment, and the Pydantic AI overview says nothing comparable about licensing.
The integration caveat changes the recommendation
LangChain’s JavaScript contributing guide contains the comparison’s most important counter-evidence:
“Integration packages are Python packages that users can install for use in their projects. They implement one or more components that adhere to the LangChain interface standards.”
This appears on the page for implementing a LangChain integration in the JavaScript documentation. The page therefore supports the existence of documented interface standards, but its wording cannot be used as evidence that every integration has an installable JavaScript package. The passage does not say whether “Python packages” is intentional scope language or wording that should have been adapted for the JavaScript guide.
That uncertainty changes the architecture decision. I would not approve an all-TypeScript LangChain design solely because LangChain.js and LangGraph.js appear in the plan. First list the providers and external tools the application requires, then verify the installable JavaScript package and API for each one. If a critical component has only a documented Python route, either isolate that capability behind a Python service or revise the all-TypeScript requirement. Tracing the resulting system from LangSmith would not remove that runtime dependency.
Pydantic AI does not win this row by default. Its integration-package language coverage is not addressed in the official overview, so the correct status is unverified rather than absent or superior.
Which runtime boundary fits your team?
If your team is TypeScript-primary and wants no Python agent service, LangChain is the only side of this comparison with official documentation naming JavaScript at both the LangChain and LangGraph layers. Shortlist it for an evaluation of the agent loop, graph orchestration, and LangSmith tracing. Keep the approval conditional on the exact agent APIs, graph features, and integration packages you intend to use. That is a documented path worth testing, not a production-parity assurance.
Pydantic AI cannot be recommended for a strict no-Python constraint. That is not a finding that TypeScript support is absent everywhere. It means the official overview does not document the TypeScript surface such a design would need.
If your team is Python-primary with TypeScript services, preserving a Python agent boundary is a reasonable option for either framework. LangChain offers its documented Python create_agent harness; Pydantic AI offers its typed Python agent loop and, for typed control flow beyond a single loop, Pydantic Graph. TypeScript services do not, by themselves, force the agent loop to move runtimes.
For Pydantic AI, the architectural inference is straightforward: keep execution in the Python service, including any Pydantic Graph workflows, define the boundary consumed by your TypeScript applications, and use its OTel-native instrumentation with the telemetry backend your stack supports. The added commitment is operating that Python service and its interface. In return, the observability instrumentation is not restricted to one OTel backend.
For LangChain, LangSmith’s documented Python and JavaScript coverage reduces language uncertainty around tracing its components. The “other SDKs” language may also matter for heterogeneous graphs. The same LangSmith guide also documents “Distributed tracing with LangChain (Python),” which lets you “link runs (spans) across different services and agents,” and “Interoperability between LangChain.JS and LangSmith SDK.” What remains unestablished is the Pydantic side: that page never mentions Pydantic, so a Pydantic-to-LangSmith integration is not documented there.
If tracing-backend portability is a primary requirement, Pydantic AI’s explicit OTel statement is the strongest directly documented evidence in this comparison. It reduces dependence on a particular tracing vendor at the instrumentation layer. This comparison does not cover LangChain’s wider OTel options, so it would be wrong to conclude that none exist.
Re-verify the cells before committing
The strongest limitation is asymmetry in the evidence. LangChain’s JavaScript coverage comes from several official pages plus two community examples, while Pydantic AI’s language position rests on one official overview. None of the pages cited measures LangChain’s Python/JavaScript feature parity, validates the community prototypes for production, or supplies LangSmith’s commercial terms.
Before making the final choice, repeat three checks on your evaluation date:
- Review Pydantic AI’s current official documentation and repositories for a TypeScript surface. The absence of one from the overview is not proof of universal absence.
- Test the exact LangChain JavaScript agent and graph APIs you need, then audit every required integration package individually.
- Confirm your tracing requirements and commercial constraints separately. LangGraph’s MIT license does not settle LangSmith costs, and OTel compatibility does not settle execution-language support.
The defensible verdict is narrower than “LangChain supports TypeScript” or “Pydantic AI is Python-only.” LangChain has the better-documented JavaScript route across several execution and tracing layers, with integration coverage still requiring a package-level audit. Pydantic AI has a documented Python agent loop, a Python graph-orchestration layer in Pydantic Graph, and portable OTel instrumentation; for a TypeScript-centered stack, plan around a Python service boundary unless fresher official evidence justifies changing that cell.
Join the discussion
Share a useful perspective or ask a question about this article.