LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
PythonlangsmithschemasRunBase
Class●Since v0.0

RunBase

Copy
RunBase()

Bases

BaseModel

Attributes

Inherited fromBaseModel

Attributes

Amodel_fields_set: set[str]Amodel_construct: construct

Methods

Mto_dict
—

Recursively generate a dictionary representation of the model, optionally specifying which fields to include or exclude.

Mto_json
View source on GitHub
—

Generates a JSON string representing this model as it would be received from or sent to the API (but with indentation).

Mconstruct
Mmodel_dump
—

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump

Mmodel_dump_json
—

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json

Classes

CConfig
attribute
id: UUID
attribute
name: str
attribute
start_time: datetime
attribute
run_type: str
attribute
end_time: Optional[datetime]
attribute
extra: Optional[dict]
attribute
error: Optional[str]
attribute
serialized: Optional[dict]
attribute
events: Optional[list[dict]]
attribute
inputs: dict
attribute
outputs: Optional[dict]
attribute
reference_example_id: Optional[UUID]
attribute
parent_run_id: Optional[UUID]
attribute
tags: Optional[list[str]]
attribute
attachments: Union[Attachments, dict[str, AttachmentInfo]]
attribute
metadata: dict[str, Any]
attribute
revision_id: Optional[UUID]
attribute
latency: Optional[float]
attribute
model_config

Base Run schema.

A Run is a span representing a single unit of work or operation within your LLM app. This could be a single call to an LLM or chain, to a prompt formatting call, to a runnable lambda invocation. If you are familiar with OpenTelemetry, you can think of a run as a span.

Unique identifier for the run.

Human-readable name for the run.

Start time of the run.

The type of run, such as tool, chain, llm, retriever, embedding, prompt, parser.

End time of the run, if applicable.

Additional metadata or settings related to the run.

Error message, if the run encountered any issues.

Serialized object that executed the run for potential reuse.

List of events associated with the run, like start and end events.

Inputs used for the run.

Outputs generated by the run, if any.

Reference to an example that this run may be based on.

Identifier for a parent run, if this run is a sub-run.

Tags for categorizing or annotating the run.

Attachments associated with the run.

Each entry is a tuple of (mime_type, bytes).

Retrieve the metadata (if any).

Retrieve the revision ID (if any).

Latency in seconds.