Module: Anthropic

Defined in:
lib/anthropic/http.rb,
lib/anthropic.rb,
lib/anthropic/client.rb,
lib/anthropic/version.rb,
lib/anthropic/http_headers.rb,
lib/anthropic/messages/client.rb,
lib/anthropic/messages/batches.rb

Overview

rubocop:disable Metrics/ModuleLength

Defined Under Namespace

Modules: HTTP, HTTPHeaders, Messages Classes: Client, Configuration, ConfigurationError, Error, MiddlewareErrors

Constant Summary collapse

VERSION =
"0.4.2".freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



65
66
67
# File 'lib/anthropic.rb', line 65

def self.configuration
  @configuration ||= Anthropic::Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



69
70
71
# File 'lib/anthropic.rb', line 69

def self.configure
  yield(configuration)
end