utils#

Generic utility functions.

Classes

utils.ContextThreadPoolExecutor([...])

ThreadPoolExecutor that copies the context to the child thread.

utils.LangSmithAPIError

Internal server error while communicating with LangSmith.

utils.LangSmithAuthError

Couldn't authenticate with the LangSmith API.

utils.LangSmithConflictError

The resource already exists.

utils.LangSmithConnectionError

Couldn't connect to the LangSmith API.

utils.LangSmithError

An error occurred while communicating with the LangSmith API.

utils.LangSmithMissingAPIKeyWarning

Warning for missing API key.

utils.LangSmithNotFoundError

Couldn't find the requested resource.

utils.LangSmithRateLimitError

You have exceeded the rate limit for the LangSmith API.

utils.LangSmithRetry([total, connect, read, ...])

Wrapper to filter logs with this name.

utils.LangSmithUserError

User error caused an exception when communicating with LangSmith.

utils.LangSmithWarning

Base class for warnings.