Class: ActionAgent::ApplicationRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ActionAgent::ApplicationRecord
- Includes:
- AdapterAware
- Defined in:
- app/models/action_agent/application_record.rb
Overview
Base class for all Dashboard engine models.
Table names come from ActionAgent.table_name_prefix through Rails' standard namespaced-model resolution, so the engine's own migrations (active_agent_agents, active_agent_agent_runs, ...) and a host app that already owns the tables unprefixed are both supported without touching the models.
Ownership is configurable: multi-tenant installs scope records to an Account, single-tenant installs to a User, and a single-user install scopes to nothing at all.
Direct Known Subclasses
Agent, AgentContext, AgentGeneration, AgentMemory, AgentMemoryEntry, AgentMessage, AgentRun, AgentTemplate, AgentVersion, ApiKey, Evaluation, EvaluationRun, ProviderKey, RecordingAction, RecordingSnapshot, SandboxRun, SandboxSession, SessionRecording
Class Method Summary collapse
Class Method Details
.for_owner(_owner) ⇒ Object
24 |
# File 'app/models/action_agent/application_record.rb', line 24 def for_owner(_owner) = all |
.owner_association ⇒ Object
23 |
# File 'app/models/action_agent/application_record.rb', line 23 def owner_association = nil |