Class: Anthropic::Helpers::Bedrock::MantleClient::MantleBeta

Inherits:
Object
  • Object
show all
Defined in:
lib/anthropic/helpers/bedrock/mantle_client.rb

Overview

Restricted Beta service that only exposes messages. Other beta resources (models, files, skills) are not supported on Bedrock Mantle.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ MantleBeta

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of MantleBeta.



128
129
130
# File 'lib/anthropic/helpers/bedrock/mantle_client.rb', line 128

def initialize(client:)
  @messages = Anthropic::Resources::Beta::Messages.new(client: client)
end

Instance Attribute Details

#messagesAnthropic::Resources::Beta::Messages (readonly)



125
126
127
# File 'lib/anthropic/helpers/bedrock/mantle_client.rb', line 125

def messages
  @messages
end

Instance Method Details

#filesObject

Raises:

  • (NotImplementedError)


137
138
139
140
# File 'lib/anthropic/helpers/bedrock/mantle_client.rb', line 137

def files
  raise NotImplementedError,
        "Beta files are not supported on Bedrock Mantle. Only Messages (/v1/messages) is supported."
end

#modelsObject

Raises:

  • (NotImplementedError)


132
133
134
135
# File 'lib/anthropic/helpers/bedrock/mantle_client.rb', line 132

def models
  raise NotImplementedError,
        "Beta models are not supported on Bedrock Mantle. Only Messages (/v1/messages) is supported."
end

#skillsObject

Raises:

  • (NotImplementedError)


142
143
144
145
# File 'lib/anthropic/helpers/bedrock/mantle_client.rb', line 142

def skills
  raise NotImplementedError,
        "Beta skills are not supported on Bedrock Mantle. Only Messages (/v1/messages) is supported."
end