Class: Legion::CLI::Chat::DaemonChat::ToolResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/legion/cli/chat/daemon_chat.rb

Overview

Single shared struct class for tool result objects; avoids allocating an anonymous Struct class on every build_tool_result_object call.

Instance Attribute Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



37
38
39
# File 'lib/legion/cli/chat/daemon_chat.rb', line 37

def content
  @content
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



37
38
39
# File 'lib/legion/cli/chat/daemon_chat.rb', line 37

def id
  @id
end

#tool_call_idObject

Returns the value of attribute tool_call_id

Returns:

  • (Object)

    the current value of tool_call_id



37
38
39
# File 'lib/legion/cli/chat/daemon_chat.rb', line 37

def tool_call_id
  @tool_call_id
end