Class: Llm::CallResult
- Inherits:
-
Struct
- Object
- Struct
- Llm::CallResult
- 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
-
#data ⇒ Object
Returns the value of attribute data.
-
#input_tokens ⇒ Object
Returns the value of attribute input_tokens.
-
#output_tokens ⇒ Object
Returns the value of attribute output_tokens.
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
6 7 8 |
# File 'app/services/llm/call_result.rb', line 6 def data @data end |
#input_tokens ⇒ Object
Returns the value of attribute input_tokens
6 7 8 |
# File 'app/services/llm/call_result.rb', line 6 def input_tokens @input_tokens end |
#output_tokens ⇒ Object
Returns the value of attribute output_tokens
6 7 8 |
# File 'app/services/llm/call_result.rb', line 6 def output_tokens @output_tokens end |