Class: Ace::Assign::CLI::Commands::ForkSession
- Inherits:
-
Support::Cli::Command
- Object
- Support::Cli::Command
- Ace::Assign::CLI::Commands::ForkSession
- Includes:
- Support::Cli::Base
- Defined in:
- lib/ace/assign/cli/commands/fork_session.rb
Overview
Internal command used by tmux-backed fork panes to launch the provider session once.
Instance Method Summary collapse
- #call(**options) ⇒ Object
-
#initialize(launcher: nil) ⇒ ForkSession
constructor
A new instance of ForkSession.
Constructor Details
#initialize(launcher: nil) ⇒ ForkSession
Returns a new instance of ForkSession.
22 23 24 25 |
# File 'lib/ace/assign/cli/commands/fork_session.rb', line 22 def initialize(launcher: nil) super() @launcher = launcher || Molecules::ForkSessionLauncher.new end |
Instance Method Details
#call(**options) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/ace/assign/cli/commands/fork_session.rb', line 27 def call(**) launcher.launch_provider_session( assignment_id: [:assignment], fork_root: [:root], provider: [:provider], cli_args: [:cli_args], timeout: [:timeout], cache_dir: [:cache_dir], last_message_file: [:last_message_file], session_meta_file: [:session_meta_file] ) 0 rescue Error, Ace::LLM::Error => e warn e. 1 end |