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.
Validate that the dict only contains allowed keys.
An agent address. Use agent_address to validate and construct one.
The id is a DNS label of 1 to 63 lowercase ASCII letters, digits or hyphens, starting with a letter and ending with a letter or digit. The environment is local, development, staging or production.
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.
Run Schema with back-references for posting runs.