Class: ActiveHarness::Result
- Inherits:
-
Struct
- Object
- Struct
- ActiveHarness::Result
- Defined in:
- lib/active_harness/result.rb
Overview
Result returned by Agent#call (accessible via agent.result).
result.input — original input string
result.output — raw string from the provider
result.processed — parsed Hash/Array for :json agents, raw string for :text
result.system_prompt — resolved system prompt string
result.model — ModelInfo (name, provider, temperature, context_window, pricing)
result.model_list — full model chain proxy
result.attempts — Array of failed attempt entries before success
result.execution_time — wall-clock seconds for the successful call
result.usage — UsageInfo (tokens + cost), nil for streaming without usage
Instance Attribute Summary collapse
-
#attempts ⇒ Object
Returns the value of attribute attempts.
-
#execution_time ⇒ Object
Returns the value of attribute execution_time.
-
#input ⇒ Object
Returns the value of attribute input.
-
#model ⇒ Object
Returns the value of attribute model.
-
#model_list ⇒ Object
Returns the value of attribute model_list.
-
#output ⇒ Object
Returns the value of attribute output.
-
#processed ⇒ Object
Returns the value of attribute processed.
-
#system_prompt ⇒ Object
Returns the value of attribute system_prompt.
-
#usage ⇒ Object
Returns the value of attribute usage.
Instance Attribute Details
#attempts ⇒ Object
Returns the value of attribute attempts
52 53 54 |
# File 'lib/active_harness/result.rb', line 52 def attempts @attempts end |
#execution_time ⇒ Object
Returns the value of attribute execution_time
52 53 54 |
# File 'lib/active_harness/result.rb', line 52 def execution_time @execution_time end |
#input ⇒ Object
Returns the value of attribute input
52 53 54 |
# File 'lib/active_harness/result.rb', line 52 def input @input end |
#model ⇒ Object
Returns the value of attribute model
52 53 54 |
# File 'lib/active_harness/result.rb', line 52 def model @model end |
#model_list ⇒ Object
Returns the value of attribute model_list
52 53 54 |
# File 'lib/active_harness/result.rb', line 52 def model_list @model_list end |
#output ⇒ Object
Returns the value of attribute output
52 53 54 |
# File 'lib/active_harness/result.rb', line 52 def output @output end |
#processed ⇒ Object
Returns the value of attribute processed
52 53 54 |
# File 'lib/active_harness/result.rb', line 52 def processed @processed end |
#system_prompt ⇒ Object
Returns the value of attribute system_prompt
52 53 54 |
# File 'lib/active_harness/result.rb', line 52 def system_prompt @system_prompt end |
#usage ⇒ Object
Returns the value of attribute usage
52 53 54 |
# File 'lib/active_harness/result.rb', line 52 def usage @usage end |