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
-
.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
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
50 51 52 |
# File 'lib/riffer.rb', line 50 def self.configure(&block) yield config if block_given? end |
.version ⇒ Object
– : () -> String
56 57 58 |
# File 'lib/riffer.rb', line 56 def self.version VERSION end |