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/omnibot/workflow.rb,
lib/omnibot/workflow_run.rb,
lib/omnibot/workflow/runner.rb,
lib/omnibot/workflow_timer_job.rb,
lib/generators/omnibot/agent/agent_generator.rb,
lib/generators/omnibot/install/install_generator.rb,
lib/generators/omnibot/workflow/workflow_generator.rb
Defined Under Namespace
Modules: Generators, Testing
Classes: Agent, Config, Error, ExtractionError, LLMError, Result, Tool, ToolCallRecord, ToolError, Usage, Workflow, WorkflowError, WorkflowRun, WorkflowTimerJob
Constant Summary
collapse
- VERSION =
"0.2.1"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.chat_factory ⇒ Object
16
17
18
|
# File 'lib/omnibot/config.rb', line 16
def chat_factory
@chat_factory ||= ->(model:, **) { RubyLLM.chat(model: model) }
end
|
.chat_factory_override ⇒ Object
Set by Omnibot::Testing.fake! — beats per-agent factories so specs
stay offline even for agents that declare their own chat_factory.
23
24
25
|
# File 'lib/omnibot/config.rb', line 23
def chat_factory_override
@chat_factory_override
end
|
Class Method Details
.config ⇒ Object
12
|
# File 'lib/omnibot/config.rb', line 12
def config = @config ||= Config.new
|
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
|