ActiveRecord models and the JSON API surface.
The persisted models the engine installs.
RcrewAI::Rails::Crew — Crew configurationsRcrewAI::Rails::Agent — Agent definitionsRcrewAI::Rails::Task — Task definitionsRcrewAI::Rails::Execution — Execution history (batch runs share a batch_id)RcrewAI::Rails::ExecutionLog — Detailed execution logsRcrewAI::Rails::KnowledgeSource — Knowledge (RAG) sources, owned by an agent or a crewRcrewAI::Rails::FlowState — Persisted rcrewai Flow state (resume flows across restarts)RcrewAI::Rails::FlowRun — Flow-run tracking (status, inputs, result, timing)Served under /rcrewai/api/v1/.
| Method | Path |
|---|---|
| GET | /crews |
| GET | /crews/:id |
| POST | /crews |
| POST | /crews/:id/execute |
| GET | /executions |
| GET | /executions/:id |
| GET | /executions/:id/status |
| GET | /executions/:id/logs |
Executions run through ActiveJob by default.
crew.execute_async(inputs) # enqueue (default) crew.execute_sync(inputs) # run inline # Custom job options: RcrewAI::Rails::CrewExecutionJob.set(wait: 5.minutes).perform_later(crew, inputs)