Sim

LangSmith

Forward workflow runs to LangSmith for observability

Unlock deep visibility and understanding of your AI workflows with LangSmith – a powerful platform for tracing, debugging, and monitoring LLM-powered applications and automations. Integrate LangSmith into your processes to capture detailed execution traces, log input/output data, attach metadata, and optimize your workflows through data-driven observability.

With the LangSmith integration, you can:

  • Trace and debug runs: Forward workflow, tool, or model runs to LangSmith, record hierarchical execution details, and pinpoint bottlenecks or failures quickly.
  • Attach rich metadata: Enrich your traces by logging inputs, outputs, tags, custom metadata, reasons for failure, and more for in-depth insight and analytics.
  • Monitor workflow performance: Visualize executions, monitor error rates, durations, and success metrics over time to improve reliability and efficiency.
  • Collaborate and audit: Enable team-based debugging and track changes, enabling transparent auditing and rapid iteration on chained LLM workflows.
  • Automate observability: Seamlessly connect LangSmith traces to your workflow automations for always-on, effortless monitoring without manual instrumentation.

LangSmith empowers engineers, data scientists, and product teams to iterate faster, catch issues earlier, and build more robust LLM-based applications—whether you’re orchestrating agents, chains, or end-to-end workflows.

Drive better observability, actionable insights, and higher product quality by integrating LangSmith into your automated processes today.

Usage Instructions

Send run data to LangSmith to trace executions, attach metadata, and monitor workflow performance.

Tools

langsmith_create_run

Forward a single run to LangSmith for ingestion.

Input

ParameterTypeRequiredDescription
apiKeystringYesLangSmith API key
idstringNoUnique run identifier
namestringYesRun name
run_typestringYesRun type (tool, chain, llm, retriever, embedding, prompt, parser)
start_timestringNoRun start time in ISO-8601 format
end_timestringNoRun end time in ISO-8601 format
inputsjsonNoInputs payload
run_outputsjsonNoOutputs payload
extrajsonNoAdditional metadata (extra)
tagsjsonNoArray of tag strings
parent_run_idstringNoParent run ID
trace_idstringNoTrace ID
session_idstringNoSession ID
session_namestringNoSession name
statusstringNoRun status
errorstringNoError details
dotted_orderstringNoDotted order string
eventsjsonNoStructured events array

Output

ParameterTypeDescription
acceptedbooleanWhether the run was accepted for ingestion
runIdstringRun identifier provided in the request
messagestringResponse message from LangSmith

langsmith_create_runs_batch

Forward multiple runs to LangSmith in a single batch.

Input

ParameterTypeRequiredDescription
apiKeystringYesLangSmith API key
postjsonNoArray of new runs to ingest
patchjsonNoArray of runs to update/patch

Output

ParameterTypeDescription
acceptedbooleanWhether the batch was accepted for ingestion
runIdsarrayRun identifiers provided in the request
messagestringResponse message from LangSmith
messagesarrayPer-run response messages, when provided
On this page

On this page

Start building today
Trusted by over 60,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started