Class: Assistant::TechnicalSupport::CaseReplayRunner::Result

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

Overview

Immutable replay execution result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(conversation_id: nil, answer: nil, tool_trace: [], system_prompt_trace: []) ⇒ Result

Builds a replay execution result.

Parameters:

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

    persisted Sunny conversation ID

  • answer (String, nil) (defaults to: nil)

    final Sunny answer

  • tool_trace (Array<Hash>) (defaults to: [])

    persisted tool calls and results

  • system_prompt_trace (Array<Hash>) (defaults to: [])

    prompt fingerprints captured after each turn



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

def initialize(conversation_id: nil, answer: nil, tool_trace: [], system_prompt_trace: []) = super

Instance Attribute Details

#answerObject (readonly)

Returns the value of attribute answer

Returns:

  • (Object)

    the current value of answer



18
19
20
# File 'app/services/assistant/technical_support/case_replay_runner.rb', line 18

def answer
  @answer
end

#conversation_idObject (readonly)

Returns the value of attribute conversation_id

Returns:

  • (Object)

    the current value of conversation_id



18
19
20
# File 'app/services/assistant/technical_support/case_replay_runner.rb', line 18

def conversation_id
  @conversation_id
end

#system_prompt_traceObject (readonly)

Returns the value of attribute system_prompt_trace

Returns:

  • (Object)

    the current value of system_prompt_trace



18
19
20
# File 'app/services/assistant/technical_support/case_replay_runner.rb', line 18

def system_prompt_trace
  @system_prompt_trace
end

#tool_traceObject (readonly)

Returns the value of attribute tool_trace

Returns:

  • (Object)

    the current value of tool_trace



18
19
20
# File 'app/services/assistant/technical_support/case_replay_runner.rb', line 18

def tool_trace
  @tool_trace
end