schemas#

Schemas for the LangSmith API.

Classes

schemas.APIFeedbackSource

API feedback source.

schemas.AnnotationQueue

Represents an annotation queue.

schemas.Attachment(mime_type, data)

Annotated type that will be stored as an attachment if used.

schemas.BatchIngestConfig

Configuration for batch ingestion.

schemas.ComparativeExperiment

Represents a comparative experiment.

schemas.DataType(value[, names, module, ...])

Enum for dataset data types.

schemas.Dataset

Dataset ORM model.

schemas.DatasetBase

Dataset base model.

schemas.DatasetDiffInfo

Represents the difference information between two datasets.

schemas.DatasetShareSchema

Represents the schema for a dataset share.

schemas.DatasetVersion

Class representing a dataset version.

schemas.Example

Example model.

schemas.ExampleBase

Example base model.

schemas.ExampleCreate

Example create model.

schemas.ExampleSearch

Example returned via search.

schemas.ExampleUpdate

Update class for Example.

schemas.Feedback

Schema for getting feedback.

schemas.FeedbackBase

Feedback schema.

schemas.FeedbackCategory

Specific value and label pair for feedback.

schemas.FeedbackConfig

Represents _how_ a feedback value ought to be interpreted.

schemas.FeedbackCreate

Schema used for creating feedback.

schemas.FeedbackIngestToken

Represents the schema for a feedback ingest token.

schemas.FeedbackSourceBase

Base class for feedback sources.

schemas.FeedbackSourceType(value[, names, ...])

Feedback source type.

schemas.InputTokenDetails

Breakdown of input token counts.

schemas.LangSmithInfo

Information about the LangSmith server.

schemas.LangSmithSettings

Settings for the LangSmith tenant.

schemas.ListPromptsResponse

A list of prompts with metadata.

schemas.ListedPromptCommit

Represents a listed prompt commit with associated metadata.

schemas.ModelFeedbackSource

Model feedback source.

schemas.OutputTokenDetails

Breakdown of output token counts.

schemas.Prompt

Represents a Prompt with metadata.

schemas.PromptCommit

Represents a Prompt with a manifest.

schemas.PromptSortField(value[, names, ...])

Enum for sorting fields for prompts.

schemas.Run

Run schema when loading from the DB.

schemas.RunBase

Base Run schema.

schemas.RunEvent

Run event schema.

schemas.RunWithAnnotationQueueInfo

Run schema with annotation queue info.

schemas.TimeDeltaInput

Timedelta input schema.

schemas.TracerSession

TracerSession schema for the API.

schemas.TracerSessionResult

A project, hydrated with additional information.

schemas.UsageMetadata

Usage metadata for a message, such as token counts.