LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Traceable
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerTraceableJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmithschemas
Module●Since v0.0

schemas

Copy
import { ... } from "langsmith/schemas";

Interfaces

interface
AnnotationQueue
interface
AnnotationQueueRubricItem
interface
AnnotationQueueWithDetails
interface
APIFeedbackSource
interface
AttachmentInfo
interface
BaseDataset
interface
BaseExample
interface
BaseRun

A run can represent either a trace (root run) or a child run (~span).

interface
ComparativeExperiment
interface
ComparisonEvaluationResult
interface
Dataset
interface
DatasetDiffInfo
interface
DatasetShareSchema
interface
DatasetVersion
interface
Example
interface
ExampleCreate
interface
ExampleSearch
interface
ExampleUpdate
interface
ExampleUpdateWithAttachments
interface
ExampleUpdateWithId
interface
ExampleUpdateWithoutId
interface
ExampleUploadWithAttachments
interface
Feedback
interface
FeedbackBase
interface
FeedbackCategory
interface
FeedbackConfig

Represents the configuration for feedback. This determines how the LangSmith service interprets feedback values of the associated key.

interface
FeedbackConfigSchema
interface
FeedbackCreate
interface
FeedbackIngestToken
interface
FeedbackSourceBase
interface
InvocationParamsSchema
interface
LangChainBaseMessage
interface
LangSmithSettings
interface
LikePromptResponse
interface
ListCommitsResponse
interface
ListPromptsResponse
interface
ModelFeedbackSource
interface
Prompt
interface
PromptCommit
interface
RawExample
interface
Run

Describes properties of a run when loaded from the database. Extends the BaseRun interface.

interface
RunCreate

A run can represent either a trace (root run) or a child run (~span).

interface
RunUpdate
interface
RunWithAnnotationQueueInfo

A run can represent either a trace (root run) or a child run (~span).

interface
TimeDelta
interface
TracerSession
interface
TracerSessionResult
interface
UpdateExamplesResponse
interface
UploadExamplesResponse

Type Aliases

typeAlias
AttachmentData: Uint8Array | ArrayBuffer
typeAlias
AttachmentDescription
typeAlias
Attachments: Record<string, [string, AttachmentData] | AttachmentDescription>
typeAlias
DataType: "kv" | "llm" | "chat"
typeAlias
ExtractedUsageMetadata: Partial<UsageMetadata>
typeAlias
InputTokenDetails: __type & Record<string, number>

Breakdown of input token counts.

Does not need to sum to full input token count. Does not need to have all keys.

typeAlias
KVMap: Record<string, any>
typeAlias
OutputTokenDetails: __type & Record<string, number>

Breakdown of output token counts.

Does not need to sum to full output token count. Does not need to have all keys.

typeAlias
PromptSortField: "num_downloads" | "num_views" | "updated_at" | "num_likes"
typeAlias
RetrieverOutput: __type[]

Represents the expected output schema returned by traceable or by run tree output for LangSmith to correctly display documents in the UI

typeAlias
RunType: "llm" | "chain" | "tool" | "retriever" | "embedding" | "prompt" | "parser"
typeAlias
ScoreType: number | boolean | null
typeAlias
UsageMetadata

Usage metadata for a message, such as token counts.

typeAlias
ValueType: number | boolean | string | object | null
View source on GitHub