The LangSmith Java SDK provides both synchronous and asynchronous clients for interacting with the LangSmith API. The clients handle authentication, retries, and provide access to all service endpoints.
Configure the client using environment variables or programmatic options:
| Setter | System Property | Environment Variable | Default |
|---|---|---|---|
apiKey |
langchain.langsmithApiKey |
LANGSMITH_API_KEY |
- |
tenantId |
langchain.langsmithTenantId |
LANGSMITH_TENANT_ID |
- |
bearerToken |
langchain.langsmithBearerToken |
LANGSMITH_BEARER_TOKEN |
- |
organizationId |
langchain.langsmithOrganizationId |
LANGSMITH_ORGANIZATION_ID |
- |
baseUrl |
langchain.baseUrl |
LANGSMITH_ENDPOINT |
https://api.smith.langchain.com/ |
A class that allows building an instance of [LangsmithClient] with [OkHttpClient] as the
A class that allows building an instance of [LangsmithClientAsync] with [OkHttpClient] as the
A class representing the SDK client configuration..
A class containing timeouts for various processing phases of a request..