Module: Riffer
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.32.0"
Instance Method Summary collapse
-
#config ⇒ Object
Returns the Riffer configuration.
-
#configure {|config| ... } ⇒ Object
Yields the configuration for block-based setup.
-
#version ⇒ Object
Returns the gem version.
Instance Method Details
#config ⇒ Object
Returns the Riffer configuration.
– : () -> Riffer::Config
39 40 41 |
# File 'lib/riffer.rb', line 39 def 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 configure(&block) yield config if block_given? end |
#version ⇒ Object
Returns the gem version. – : () -> String
58 59 60 |
# File 'lib/riffer.rb', line 58 def version VERSION end |