Module: Riffer

Defined in:
lib/riffer/version.rb,
lib/riffer.rb

Overview

rbs_inline: enabled

Defined Under Namespace

Modules: Boolean, Evals, Guardrails, Helpers, Messages, Providers, Skills, StreamEvents, Toolable, Tools Classes: Agent, ArgumentError, Config, Core, Error, FilePart, Guardrail, Param, Params, Runner, StructuredOutput, TimeoutError, TokenUsage, Tool, ToolExecutionError, ToolRuntime, ValidationError

Constant Summary collapse

VERSION =

: String

"0.23.0"

Class Method Summary collapse

Class Method Details

.configObject

Returns the Riffer configuration.

– : () -> Riffer::Config



38
39
40
# File 'lib/riffer.rb', line 38

def self.config
  @config ||= Config.new
end

.configure {|config| ... } ⇒ Object

Yields the configuration for block-based setup.

Riffer.configure do |config|
  config.openai.api_key = ENV['OPENAI_API_KEY']
end

– : () ?{ (Riffer::Config) -> void } -> void

Yields:



50
51
52
# File 'lib/riffer.rb', line 50

def self.configure(&block)
  yield config if block_given?
end

.versionObject

– : () -> String



56
57
58
# File 'lib/riffer.rb', line 56

def self.version
  VERSION
end