The LangSmith Go client provides the main entry point for interacting with the LangSmith API. It handles authentication, request configuration, and provides access to all service endpoints.
Configure the client using functional options from the option package.
NewClient generates a new client with the default option read from the.
WithAPIKey sets the LangSmith API key.
WithBearerToken returns a RequestOption that sets the client setting "bearer_token".
WithBaseURL returns a RequestOption that sets the BaseURL for the client.
WithTenantID returns a RequestOption that sets the client setting "tenant_id".
WithOrganizationID returns a RequestOption that sets the client setting "organization_id".
WithHeader returns a RequestOption that sets the header value to the associated key.
WithMaxRetries returns a RequestOption that sets the maximum number of retries that the client.
WithRequestTimeout returns a RequestOption that sets the timeout for.
WithMiddleware returns a RequestOption that applies the given middleware.
WithHTTPClient returns a RequestOption that changes the underlying http client used to make this.