Module: Riffer
- Defined in:
- lib/riffer/version.rb,
lib/riffer.rb
Overview
rbs_inline: enabled
Defined Under Namespace
Modules: Evals, Guardrails, Helpers, Messages, Providers, StreamEvents, Tools Classes: Agent, ArgumentError, Config, Core, Error, Guardrail, TimeoutError, TokenUsage, Tool, ValidationError
Constant Summary collapse
- VERSION =
: String
"0.13.0"
Class Method Summary collapse
-
.config ⇒ Object
Returns the Riffer configuration.
-
.configure {|config| ... } ⇒ Object
Yields the configuration for block-based setup.
-
.version ⇒ Object
: () -> String.
Class Method Details
.config ⇒ Object
Returns the Riffer configuration.
: () -> Riffer::Config
33 34 35 |
# File 'lib/riffer.rb', line 33 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
44 45 46 |
# File 'lib/riffer.rb', line 44 def self.configure(&block) yield config if block_given? end |
.version ⇒ Object
: () -> String
49 50 51 |
# File 'lib/riffer.rb', line 49 def self.version VERSION end |