Class: ActionAgent::AgentExecutions::Row
- Inherits:
-
Struct
- Object
- Struct
- ActionAgent::AgentExecutions::Row
- Defined in:
- app/queries/action_agent/agent_executions.rb
Instance Attribute Summary collapse
-
#action_name ⇒ Object
Returns the value of attribute action_name.
-
#agent_id ⇒ Object
Returns the value of attribute agent_id.
-
#cost ⇒ Object
Returns the value of attribute cost.
-
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#id ⇒ Object
Returns the value of attribute id.
-
#input_preview ⇒ Object
Returns the value of attribute input_preview.
-
#input_tokens ⇒ Object
Returns the value of attribute input_tokens.
-
#model ⇒ Object
Returns the value of attribute model.
-
#occurred_at ⇒ Object
Returns the value of attribute occurred_at.
-
#output_preview ⇒ Object
Returns the value of attribute output_preview.
-
#output_tokens ⇒ Object
Returns the value of attribute output_tokens.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#source ⇒ Object
Returns the value of attribute source.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tokens ⇒ Object
Returns the value of attribute tokens.
-
#trace_id ⇒ Object
Returns the value of attribute trace_id.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#to_param ⇒ Object
Runs are addressable by record id; reported executions only by trace.
Instance Attribute Details
#action_name ⇒ Object
Returns the value of attribute action_name
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def action_name @action_name end |
#agent_id ⇒ Object
Returns the value of attribute agent_id
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def agent_id @agent_id end |
#cost ⇒ Object
Returns the value of attribute cost
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def cost @cost end |
#duration_ms ⇒ Object
Returns the value of attribute duration_ms
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def duration_ms @duration_ms end |
#error_message ⇒ Object
Returns the value of attribute error_message
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def @error_message end |
#id ⇒ Object
Returns the value of attribute id
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def id @id end |
#input_preview ⇒ Object
Returns the value of attribute input_preview
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def input_preview @input_preview end |
#input_tokens ⇒ Object
Returns the value of attribute input_tokens
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def input_tokens @input_tokens end |
#model ⇒ Object
Returns the value of attribute model
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def model @model end |
#occurred_at ⇒ Object
Returns the value of attribute occurred_at
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def occurred_at @occurred_at end |
#output_preview ⇒ Object
Returns the value of attribute output_preview
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def output_preview @output_preview end |
#output_tokens ⇒ Object
Returns the value of attribute output_tokens
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def output_tokens @output_tokens end |
#provider ⇒ Object
Returns the value of attribute provider
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def provider @provider end |
#source ⇒ Object
Returns the value of attribute source
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def source @source end |
#status ⇒ Object
Returns the value of attribute status
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def status @status end |
#tokens ⇒ Object
Returns the value of attribute tokens
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def tokens @tokens end |
#trace_id ⇒ Object
Returns the value of attribute trace_id
38 39 40 |
# File 'app/queries/action_agent/agent_executions.rb', line 38 def trace_id @trace_id end |
Instance Method Details
#as_json ⇒ Object
45 46 47 |
# File 'app/queries/action_agent/agent_executions.rb', line 45 def as_json(*) to_h.transform_values { |value| value.is_a?(Time) ? value.iso8601(3) : value } end |
#to_param ⇒ Object
Runs are addressable by record id; reported executions only by trace.
50 51 52 |
# File 'app/queries/action_agent/agent_executions.rb', line 50 def to_param source == "dashboard" ? id.to_s : "trace-#{id}" end |