Schemas for the LangSmith API.
Generate a UUID v7 from a datetime.
Configure global LangSmith tracing context.
This function allows you to set global configuration options for LangSmith tracing that will be applied to all subsequent traced operations. It modifies context variables that control tracing behavior across your application.
Do this once at startup to configure the global settings in code.
If, instead, you wish to only configure tracing for a single invocation,
use the tracing_context context manager instead.
address is in beta. It is enabled per workspace; a
workspace without it rejects the runs, so tracing is lost rather than
falling back to a project. It may change without notice.
Validate that the dict only contains allowed keys.
Client for interacting with the LangSmith API.
One write destination: a server plus the credentials to reach it.
API key authentication for write replicas.
Service-to-service JWT authentication for write replicas.
Custom authentication headers for write replicas.
Configuration for a write replica endpoint.
address is in beta. It is enabled per workspace; a
workspace without it rejects the runs, so tracing is lost rather than
falling back to a project. It may change without notice.
Run Schema with back-references for posting runs.