Class: ActiveAgent::Dashboard::SandboxRun
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ActiveAgent::Dashboard::SandboxRun
- Defined in:
- lib/active_agent/dashboard/app/models/active_agent/dashboard/sandbox_run.rb
Overview
Tracks individual task executions within a sandbox session.
Each sandbox run represents a single agent task execution, capturing input, output, timing, and any errors.
Instance Method Summary collapse
-
#details ⇒ Object
Detailed info including full result.
-
#summary ⇒ Object
Summary for API responses.
Methods inherited from ApplicationRecord
for_owner, owner_association, table_name
Instance Method Details
#details ⇒ Object
Detailed info including full result
41 42 43 44 45 46 47 48 49 |
# File 'lib/active_agent/dashboard/app/models/active_agent/dashboard/sandbox_run.rb', line 41 def details summary.merge( task: task, result: result, error: error, screenshots: screenshots || [], started_at: started_at&.iso8601 ) end |
#summary ⇒ Object
Summary for API responses
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/active_agent/dashboard/app/models/active_agent/dashboard/sandbox_run.rb', line 28 def summary { id: id, task: task.truncate(100), status: status, duration_ms: duration_ms, tokens_used: tokens_used, created_at: created_at&.iso8601, completed_at: completed_at&.iso8601 } end |