LangSmith
LangChain’s platform for tracing and evaluating LLM applications. PiG loads @langchain/langsmith-pi-extension as is; a native Go port is also in progress.
What works and what you need
Needs: Pi extension. The official Pi extension @langchain/langsmith-pi-extension (0.2.1) loads unchanged in PiG and needs Node.js. On 2026-11-30 on Linux amd64 with published PiG 0.9.0, it installed cleanly, reported healthy, completed a read tool call, and sent /info and /runs/multipart trace requests to a local stand-in endpoint when TRACE_TO_LANGSMITH=true. A native Go port is also in progress (matched Pi on 43 scripted sessions on a mock endpoint) and is not released yet.
Setup
Connection: Pi extension, loaded by PiG.
- Install the extension into PiG.$
pig install npm:@langchain/langsmith-pi-extension - Set TRACE_TO_LANGSMITH=true, LANGSMITH_API_KEY, and LANGSMITH_PROJECT as the extension README describes.
Test record
PiG 0.9.0 (Linux, stand-in LangSmith endpoint)
Ran (2026-11-30). Installed @langchain/langsmith-pi-extension 0.2.1 on published PiG 0.9.0: pig status reported healthy, a read tool call completed, and with TRACE_TO_LANGSMITH=true the extension sent GET /info and POST /runs/multipart trace batches to a local stand-in endpoint.
Not run. A live LangSmith account; a real model. The native Go port is not released yet.
Sources and project
LangSmith Pi extension on GitHub
The name and logo belong to LangSmith’s owners. PiG is independent of LangSmith; no endorsement is implied.