Class: AgentRequestJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- AgentRequestJob
- Defined in:
- app/jobs/agent_request_job.rb
Overview
Executes an LLM agent loop as a background job with retry logic for transient failures (network errors, rate limits, server errors).
Emits events via Events::Bus as it progresses, making results visible to any subscriber (TUI, WebSocket clients). All retry and failure notifications are emitted as Events::SystemMessage to avoid polluting the LLM context window.