Module: Riffer
- Defined in:
- lib/riffer/version.rb,
lib/riffer.rb
Overview
rbs_inline: enabled
Defined Under Namespace
Modules: Evals, Guardrails, Helpers, Mcp, Messages, Providers, Skills, StreamEvents, Tools Classes: Agent, ArgumentError, Config, Error, Guardrail, Params, Runner, TimeoutError, Tool, ToolExecutionError, ValidationError
Constant Summary collapse
- VERSION =
: String
"0.29.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
39 40 41 |
# File 'lib/riffer.rb', line 39 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
51 52 53 |
# File 'lib/riffer.rb', line 51 def self.configure(&block) yield config if block_given? end |
.version ⇒ Object
– : () -> String
57 58 59 |
# File 'lib/riffer.rb', line 57 def self.version VERSION end |