Class: Rixie::ToolExecutor::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/rixie/tool_executor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



5
6
7
# File 'lib/rixie/tool_executor.rb', line 5

def content
  @content
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



5
6
7
# File 'lib/rixie/tool_executor.rb', line 5

def error
  @error
end

#tool_call_idObject (readonly)

Returns the value of attribute tool_call_id

Returns:

  • (Object)

    the current value of tool_call_id



5
6
7
# File 'lib/rixie/tool_executor.rb', line 5

def tool_call_id
  @tool_call_id
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


7
# File 'lib/rixie/tool_executor.rb', line 7

def error? = !error.nil?

#success?Boolean

Returns:

  • (Boolean)


6
# File 'lib/rixie/tool_executor.rb', line 6

def success? = error.nil?