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.



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

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

Instance Attribute Details

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



123
124
125
# File 'lib/anthropic/helpers/bedrock/mantle_client.rb', line 123

def messages
  @messages
end

Instance Method Details

#filesObject

Raises:

  • (NotImplementedError)


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

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

#modelsObject

Raises:

  • (NotImplementedError)


130
131
132
# File 'lib/anthropic/helpers/bedrock/mantle_client.rb', line 130

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

#skillsObject

Raises:

  • (NotImplementedError)


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

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