Class: Assistant::TechnicalSupport::ResponseGroundingToolResult::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/assistant/technical_support/response_grounding_tool_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry: nil, citation_urls: [], tool_call_id: nil, consumed_chars: 0, truncated: nil) ⇒ Result

Builds immutable evidence for one tool result.

Parameters:

  • entry (Hash, nil) (defaults to: nil)

    bounded analyzer evidence entry

  • citation_urls (Array<String>) (defaults to: [])

    explicit payload citation URLs

  • tool_call_id (Integer, nil) (defaults to: nil)

    persisted tool call ID

  • consumed_chars (Integer) (defaults to: 0)

    result characters added to the evidence budget

  • truncated (Boolean, nil) (defaults to: nil)

    whether result or arguments were bounded



25
# File 'app/services/assistant/technical_support/response_grounding_tool_result.rb', line 25

def initialize(entry: nil, citation_urls: [], tool_call_id: nil, consumed_chars: 0, truncated: nil) = super

Instance Attribute Details

#citation_urlsObject (readonly)

Returns the value of attribute citation_urls

Returns:

  • (Object)

    the current value of citation_urls



17
18
19
# File 'app/services/assistant/technical_support/response_grounding_tool_result.rb', line 17

def citation_urls
  @citation_urls
end

#consumed_charsObject (readonly)

Returns the value of attribute consumed_chars

Returns:

  • (Object)

    the current value of consumed_chars



17
18
19
# File 'app/services/assistant/technical_support/response_grounding_tool_result.rb', line 17

def consumed_chars
  @consumed_chars
end

#entryObject (readonly)

Returns the value of attribute entry

Returns:

  • (Object)

    the current value of entry



17
18
19
# File 'app/services/assistant/technical_support/response_grounding_tool_result.rb', line 17

def entry
  @entry
end

#tool_call_idObject (readonly)

Returns the value of attribute tool_call_id

Returns:

  • (Object)

    the current value of tool_call_id



17
18
19
# File 'app/services/assistant/technical_support/response_grounding_tool_result.rb', line 17

def tool_call_id
  @tool_call_id
end

#truncatedObject (readonly)

Returns the value of attribute truncated

Returns:

  • (Object)

    the current value of truncated



17
18
19
# File 'app/services/assistant/technical_support/response_grounding_tool_result.rb', line 17

def truncated
  @truncated
end