Class: AgentSandbox::RubyLLMTools::PortUrl

Inherits:
Base
  • Object
show all
Defined in:
lib/agent_sandbox/ruby_llm_tools.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from AgentSandbox::RubyLLMTools::Base

Instance Method Details

#execute(port:) ⇒ Object



73
74
75
76
77
# File 'lib/agent_sandbox/ruby_llm_tools.rb', line 73

def execute(port:)
  { url: @sandbox.port_url(port.to_i) }
rescue AgentSandbox::Error => e
  { error: e.message }
end