Class: ActionAgent::SandboxRun
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ActionAgent::SandboxRun
- Defined in:
- app/models/action_agent/sandbox_run.rb
Overview
SandboxRun tracks individual agent task executions within a sandbox container. This model uses SQLite in sandbox mode for isolated, ephemeral storage.
Instance Method Summary collapse
-
#details ⇒ Object
Detailed info including full result.
-
#summary ⇒ Object
Summary for API responses.
Methods inherited from ApplicationRecord
Instance Method Details
#details ⇒ Object
Detailed info including full result
35 36 37 38 39 40 41 42 43 |
# File 'app/models/action_agent/sandbox_run.rb', line 35 def details summary.merge( task: task, result: result, error: error, screenshots: screenshots || [], started_at: started_at&.iso8601 ) end |
#summary ⇒ Object
Summary for API responses
22 23 24 25 26 27 28 29 30 31 32 |
# File 'app/models/action_agent/sandbox_run.rb', line 22 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 |