Exception: Parse::Agent::ToolTimeoutError

Inherits:
AgentError
  • Object
show all
Defined in:
lib/parse/agent/errors.rb

Overview

Timeout errors for long-running operations

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tool_name, timeout) ⇒ ToolTimeoutError

Returns a new instance of ToolTimeoutError.



28
29
30
31
32
# File 'lib/parse/agent/errors.rb', line 28

def initialize(tool_name, timeout)
  @tool_name = tool_name
  @timeout = timeout
  super("Tool '#{tool_name}' timed out after #{timeout} seconds")
end

Instance Attribute Details

#timeoutObject (readonly)

Returns the value of attribute timeout.



26
27
28
# File 'lib/parse/agent/errors.rb', line 26

def timeout
  @timeout
end

#tool_nameObject (readonly)

Returns the value of attribute tool_name.



26
27
28
# File 'lib/parse/agent/errors.rb', line 26

def tool_name
  @tool_name
end