Module: Omnibot

Defined in:
lib/omnibot/tool.rb,
lib/omnibot/agent.rb,
lib/omnibot/config.rb,
lib/omnibot/errors.rb,
lib/omnibot/result.rb,
lib/omnibot/testing.rb,
lib/omnibot/version.rb,
lib/generators/omnibot/agent/agent_generator.rb,
lib/generators/omnibot/install/install_generator.rb

Defined Under Namespace

Modules: Generators, Testing Classes: Agent, Config, Error, ExtractionError, LLMError, Result, Tool, ToolCallRecord, ToolError, Usage, WorkflowError

Constant Summary collapse

VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.chat_factoryObject



16
17
18
# File 'lib/omnibot/config.rb', line 16

def chat_factory
  @chat_factory ||= ->(model:, **) { RubyLLM.chat(model: model) }
end

Class Method Details

.configObject



12
# File 'lib/omnibot/config.rb', line 12

def config = @config ||= Config.new

.configure {|config| ... } ⇒ Object

Yields:



13
# File 'lib/omnibot/config.rb', line 13

def configure = yield(config)

.reset_config!Object



14
# File 'lib/omnibot/config.rb', line 14

def reset_config! = @config = nil