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

Overview

Anthropic provider extension namespace.

Defined Under Namespace

Classes: Provider

Constant Summary collapse

PROVIDER_FAMILY =
:anthropic
VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details

.default_settingsObject



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

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



30
31
32
# File 'lib/legion/extensions/llm/anthropic.rb', line 30

def self.provider_class
  Provider
end