Module: LlmOrchestrator

Defined in:
lib/llm_orchestrator.rb,
lib/llm_orchestrator/llm.rb,
lib/llm_orchestrator/chain.rb,
lib/llm_orchestrator/memory.rb,
lib/llm_orchestrator/prompt.rb,
lib/llm_orchestrator/version.rb

Overview

LlmOrchestrator is a framework for managing interactions with Large Language Models (LLMs). It provides a unified interface for working with different LLM providers like OpenAI and Anthropic.

Defined Under Namespace

Classes: Anthropic, Chain, ClaudeConfig, Configuration, Error, LLM, Memory, OpenAI, OpenAIConfig, Prompt

Constant Summary collapse

VERSION =
"0.2.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



15
16
17
# File 'lib/llm_orchestrator.rb', line 15

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



17
18
19
20
# File 'lib/llm_orchestrator.rb', line 17

def configure
  self.configuration ||= Configuration.new
  yield(configuration) if block_given?
end