LangSmith

Obtenha visibilidade profunda e compreensão dos seus workflows de IA com o LangSmith – uma plataforma poderosa para rastrear, depurar e monitorar aplicações e automações baseadas em LLM. Integre o LangSmith aos seus processos para capturar traces detalhados de execução, registrar dados de entrada/saída, anexar metadados e otimizar seus workflows por meio de observabilidade orientada a dados.

Com a integração LangSmith, você pode:

  • Rastrear e depurar execuções: Encaminhe execuções de workflow, ferramenta ou modelo para o LangSmith, registre detalhes hierárquicos de execução e identifique gargalos ou falhas rapidamente.
  • Anexar metadados ricos: Enriqueça seus traces registrando entradas, saídas, tags, metadados personalizados, motivos de falha e muito mais para insights e análises aprofundados.
  • Monitorar o desempenho do workflow: Visualize execuções, monitore taxas de erro, durações e métricas de sucesso ao longo do tempo para melhorar a confiabilidade e a eficiência.
  • Colaborar e auditar: Habilite a depuração em equipe e o rastreamento de mudanças, permitindo auditoria transparente e iteração rápida em workflows encadeados de LLM.
  • Automatizar a observabilidade: Conecte de forma contínua os traces do LangSmith às suas automações de workflow para monitoramento sempre ativo e sem esforço, sem instrumentação manual.

O LangSmith capacita engenheiros, cientistas de dados e equipes de produto a iterar mais rápido, detectar problemas mais cedo e construir aplicações baseadas em LLM mais robustas — seja orquestrando agentes, chains ou workflows de ponta a ponta.

Impulsione melhor observabilidade, insights acionáveis e maior qualidade de produto integrando o LangSmith aos seus processos automatizados hoje.

Usage Instructions

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

Actions

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

langsmith_update_run

Patch an existing LangSmith run with outputs, status, or timing once it completes.

Input

ParameterTypeRequiredDescription
apiKeystringYesLangSmith API key
runIdstringYesID of the run to update
namestringNoCorrected run name

Output

This tool does not produce any outputs.

langsmith_get_run

Retrieve a single LangSmith run by ID.

Input

ParameterTypeRequiredDescription
apiKeystringYesLangSmith API key
runIdstringYesID of the run to retrieve

Output

ParameterTypeDescription
idstringRun ID
runIdstringRun ID (alias of id, for consistency with other operations)
namestringRun name
runTypestringRun type (tool, chain, llm, retriever, embedding, prompt, parser)
statusstringRun status
startTimestringRun start time (ISO)
endTimestringRun end time (ISO)
inputsjsonRun inputs payload
outputsjsonRun outputs payload
errorstringError details, if the run failed
tagsarrayTags attached to the run
sessionIdstringProject (session) ID the run belongs to
traceIdstringTrace ID
parentRunIdstringParent run ID
totalTokensnumberTotal tokens consumed by the run
totalCoststringTotal cost of the run

langsmith_create_feedback

Attach a score, correction, or comment to a LangSmith run.

Input

ParameterTypeRequiredDescription
apiKeystringYesLangSmith API key
runIdstringYesID of the run to attach feedback to
keystringYesFeedback metric name (e.g. "correctness", "user_score")
scorenumberNoNumeric score for the feedback metric
valuestringNoCategorical value for the feedback metric
commentstringNoFree-text comment explaining the feedback
correctionjsonNoCorrected output for the run
feedbackSourceTypestringNoOrigin of the feedback (api, app, or model)

Output

ParameterTypeDescription
idstringFeedback ID
keystringFeedback metric name
runIdstringID of the run the feedback was attached to
scorenumberScore recorded for the feedback
valuestringCategorical value recorded for the feedback
commentstringComment recorded for the feedback
createdAtstringWhen the feedback was created (ISO)

On this page