Class: Llm::CallResult

Inherits:
Struct
  • Object
show all
Defined in:
app/services/llm/call_result.rb

Overview

What an adapter's #call_tool returns internally: the tool-call data a caller wants, plus token counts so Llm::Client can log spend before unwrapping to just data for the caller (existing callers are unaffected by this — they never see token counts).

Instance Attribute Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



6
7
8
# File 'app/services/llm/call_result.rb', line 6

def data
  @data
end

#input_tokensObject

Returns the value of attribute input_tokens

Returns:

  • (Object)

    the current value of input_tokens



6
7
8
# File 'app/services/llm/call_result.rb', line 6

def input_tokens
  @input_tokens
end

#output_tokensObject

Returns the value of attribute output_tokens

Returns:

  • (Object)

    the current value of output_tokens



6
7
8
# File 'app/services/llm/call_result.rb', line 6

def output_tokens
  @output_tokens
end