Class: Anthropic::Api::Base

Inherits:
Object
  • Object
show all
Includes:
Concerns::Requestable, Concerns::Validatable
Defined in:
lib/anthropic/api/base.rb

Overview

Provides a base class for APIs

Direct Known Subclasses

Completions, Messages

Instance Method Summary collapse

Methods included from Concerns::Validatable

#schema, #validate!

Methods included from Concerns::Requestable

#additional_headers, #beta_headers, #post, #post_as_stream, #uri

Constructor Details

#initialize(beta: nil) ⇒ Base

Returns a new instance of Base.



29
30
31
# File 'lib/anthropic/api/base.rb', line 29

def initialize(beta: nil)
  @beta = beta
end