Module: Legion::Extensions::Llm::AzureFoundry

Extended by:
Core, AutoRegistration, Logging::Helper
Defined in:
lib/legion/extensions/llm/azure_foundry.rb,
lib/legion/extensions/llm/azure_foundry/version.rb,
lib/legion/extensions/llm/azure_foundry/provider.rb,
lib/legion/extensions/llm/azure_foundry/actors/fleet_worker.rb,
lib/legion/extensions/llm/azure_foundry/runners/fleet_worker.rb

Overview

Azure AI Foundry provider extension namespace.

Defined Under Namespace

Modules: Actor, Runners Classes: Provider

Constant Summary collapse

PROVIDER_FAMILY =
:azure_foundry
VERSION =
'0.2.5'

Class Method Summary collapse

Class Method Details

.default_settingsObject



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/legion/extensions/llm/azure_foundry.rb', line 18

def self.default_settings
  ::Legion::Extensions::Llm.provider_settings(
    family: PROVIDER_FAMILY,
    instance: {
      endpoint: nil,
      tier: :frontier,
      transport: :http,
      credentials: {
        api_key: nil,
        bearer_token: nil
      },
      provider: {
        api_version: Provider::DEFAULT_API_VERSION,
        surface: nil,
        deployments: []
      },
      usage: { inference: true, embedding: true, image: false },
      limits: { concurrency: 4 },
      fleet: {
        enabled: false,
        respond_to_requests: false,
        capabilities: %i[chat stream_chat embed],
        lanes: [],
        concurrency: 4,
        queue_suffix: nil
      }
    }
  )
end

.discover_instancesObject



56
57
58
59
60
61
# File 'lib/legion/extensions/llm/azure_foundry.rb', line 56

def self.discover_instances
  instances = {}
  discover_default_instance(instances)
  discover_named_instances(instances)
  instances
end

.provider_classObject



48
49
50
# File 'lib/legion/extensions/llm/azure_foundry.rb', line 48

def self.provider_class
  Provider
end

.registry_publisherObject



52
53
54
# File 'lib/legion/extensions/llm/azure_foundry.rb', line 52

def self.registry_publisher
  @registry_publisher ||= Legion::Extensions::Llm::RegistryPublisher.new(provider_family: PROVIDER_FAMILY)
end