Module: OpenRouter

Defined in:
lib/open_router.rb,
lib/open_router.rb,
lib/open_router/http.rb,
lib/open_router/tool.rb,
lib/open_router/client.rb,
lib/open_router/schema.rb,
lib/open_router/version.rb,
lib/open_router/response.rb,
lib/open_router/tool_call.rb,
lib/open_router/json_healer.rb,
lib/open_router/usage_tracker.rb,
lib/open_router/model_registry.rb,
lib/open_router/model_selector.rb,
lib/open_router/prompt_template.rb,
lib/open_router/streaming_client.rb

Defined Under Namespace

Modules: HTTP, Prompt Classes: CapabilityError, Client, Configuration, ConfigurationError, Error, JsonHealer, ModelRegistry, ModelRegistryError, ModelSelectionError, ModelSelector, PromptTemplate, Response, ResponseAccumulator, Schema, SchemaValidationError, ServerError, StreamingClient, StructuredOutputError, Tool, ToolCall, ToolCallError, ToolResult, UsageTracker

Constant Summary collapse

VERSION =
"1.0.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



116
117
118
# File 'lib/open_router.rb', line 116

def self.configuration
  @configuration ||= OpenRouter::Configuration.new
end

Class Method Details

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

Yields:



120
121
122
# File 'lib/open_router.rb', line 120

def self.configure
  yield(configuration)
end