Module: Miniswen
- Defined in:
- lib/miniswen.rb,
lib/miniswen/cli.rb,
lib/miniswen/agent.rb,
lib/miniswen/local.rb,
lib/miniswen/version.rb,
lib/miniswen/environment.rb
Overview
:nodoc:
Defined Under Namespace
Classes: AccountingError, Agent, CLI, Environment, Error, InfrastructureError, Local
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.refresh_registry!(persist: false) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/miniswen.rb', line 18 def refresh_registry!(persist: false) return true if @ruby_llm_refreshed RubyLLM.models.refresh! # save_to_json writes to the registry file every boot loads from (the # gem's own models.json by default), so a persisted refresh outlives # this process — later runs in the same environment boot from it. RubyLLM.models.save_to_json if persist @ruby_llm_refreshed = true rescue StandardError => e warn "Failed to refresh RubyLLM registry: #{e.}" false end |
.registry_revision ⇒ Object
32 33 34 |
# File 'lib/miniswen.rb', line 32 def registry_revision @registry_revision ||= "ruby_llm #{RubyLLM::VERSION}#{registry_stamp}" end |