Trigger.dev chat.agent provides a durable machine for AI chat: it sleeps when idle, resumes from the same state, and avoids application-managed conversation state. It works with AI SDK streamText and useChat and traces prompts, tool calls, latency, and cost for every turn.

Features
- No-timeout background execution
- Resumable streaming
- AI SDK compatibility
- Per-turn cost and tool tracing
Use Cases
- Long-running chat agents
- Background research tasks
- Refresh-resilient chat apps
- Trace chat runtime cost
FAQ
Trigger.dev chat.agent provides a durable machine for AI chat: it sleeps when idle, resumes from the same state, and avoids application-managed conversation state. It works with AI SDK streamText and useChat and traces prompts, tool calls, latency, and cost for every turn. Core capabilities include: No-timeout background execution, Resumable streaming, AI SDK compatibility.
Common scenarios include: Long-running chat agents, Background research tasks, Refresh-resilient chat apps.