AnthropicClient constructor

AnthropicClient(
  1. ApiConfig config, {
  2. RetryConfig retryConfig = RetryConfig.defaultConfig,
})

Creates a client with the given Anthropic config.

Requires config.apiKey to be non-null.

Implementation

AnthropicClient(this.config, {this.retryConfig = RetryConfig.defaultConfig})
  : assert(config.apiKey != null);