Module: Legion::Extensions::Llm::Anthropic

Extended by:
Core
Defined in:
lib/legion/extensions/llm/anthropic.rb,
lib/legion/extensions/llm/anthropic/version.rb,
lib/legion/extensions/llm/anthropic/provider.rb,
lib/legion/extensions/llm/anthropic/registry_publisher.rb,
lib/legion/extensions/llm/anthropic/registry_event_builder.rb,
lib/legion/extensions/llm/anthropic/transport/exchanges/llm_registry.rb,
lib/legion/extensions/llm/anthropic/transport/messages/registry_event.rb

Overview

Anthropic provider extension namespace.

Defined Under Namespace

Modules: Transport Classes: Provider, RegistryEventBuilder, RegistryPublisher

Constant Summary collapse

PROVIDER_FAMILY =
:anthropic
VERSION =
'0.1.5'

Class Method Summary collapse

Class Method Details

.default_settingsObject



18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/legion/extensions/llm/anthropic.rb', line 18

def self.default_settings
  ::Legion::Extensions::Llm.provider_settings(
    family: PROVIDER_FAMILY,
    instance: {
      endpoint: 'https://api.anthropic.com',
      tier: :frontier,
      transport: :http,
      credentials: { api_key: 'env://ANTHROPIC_API_KEY' },
      usage: { inference: true, embedding: false },
      limits: { concurrency: 4 }
    }
  )
end

.provider_classObject



32
33
34
# File 'lib/legion/extensions/llm/anthropic.rb', line 32

def self.provider_class
  Provider
end