Module: Riffer
- Defined in:
- lib/riffer.rb,
lib/riffer/version.rb
Defined Under Namespace
Modules: Messages, Providers, StreamEvents, Tools Classes: Agent, ArgumentError, Config, Core, Error, TimeoutError, TokenUsage, Tool, ValidationError
Constant Summary collapse
- VERSION =
"0.11.0"
Class 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.
Class Method Details
.config ⇒ Object
Returns the Riffer configuration.
Returns Riffer::Config.
33 34 35 |
# File 'lib/riffer.rb', line 33 def config @config ||= Config.new end |
.configure {|config| ... } ⇒ Object
Yields the configuration for block-based setup.
Yields config (Riffer::Config) to the block.
Riffer.configure do |config|
config.openai.api_key = ENV['OPENAI_API_KEY']
end
45 46 47 |
# File 'lib/riffer.rb', line 45 def configure yield config if block_given? end |
.version ⇒ Object
Returns the gem version.
Returns String.
52 53 54 |
# File 'lib/riffer.rb', line 52 def version VERSION end |