async_client
The Async LangSmith Client.
Classes
(beta) 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.
Thread-safe LRU cache with asyncio task refresh.
For use with the asynchronous AsyncClient.
Features:
- In-memory LRU cache with configurable max size
- Asyncio task for refreshing stale entries
- Stale-while-revalidate: returns stale data while refresh happens
- Thread-safe for concurrent access
Async Client for interacting with the LangSmith API.
Type Aliases
Modules
LangSmith Client.
Client for interacting with the LangSmith API.
Use the client to customize API keys / workspace connections, SSL certs, etc. for tracing.
Also used to create, read, update, and delete LangSmith resources such as runs (~trace spans), datasets, examples (~records), feedback (~metrics), projects (tracer sessions/groups), etc.
For detailed API documentation, visit the LangSmith docs.
Schemas for the LangSmith API.
Generic utility functions.
