Trigger.dev chat.agent
Product · Developer tool by Trigger.dev
Trigger.dev chat.agent is a specialized framework for building durable, multi-turn AI chat agents in TypeScript. It solves the challenge of maintaining conversation state and handling long-running tool calls by treating each chat session as a durable task that can pause and resume across days or weeks. The agent survives browser refreshes, redeploys, and crashes, ensuring that users never lose their conversation context. It features built-in support for human-in-the-loop approvals, allowing agents to wait for a person to authorize high-impact actions like refunds or payments. chat.agent is mod
- Languages
- TypeScript, JavaScript
- Language Support
- TypeScript, JavaScript
- Runtime Environment
- Managed Linux Worker
- State Storage
- Durable process memory and checkpointing
- Frontend Integration
- React hooks (useChat transport)
Overview
Trigger.dev chat.agent is a specialized framework for building durable, multi-turn AI chat agents in TypeScript. It solves the challenge of maintaining conversation state and handling long-running tool calls by treating each chat session as a durable task that can pause and resume across days or weeks. The agent survives browser refreshes, redeploys, and crashes, ensuring that users never lose their conversation context. It features built-in support for human-in-the-loop approvals, allowing agents to wait for a person to authorize high-impact actions like refunds or payments. chat.agent is model-agnostic, working seamlessly with the Vercel AI SDK and providers like Anthropic and OpenAI while providing full observability of every turn and tool call.
Agent Capabilities
- Durable Chat Sessions: Enables multi-turn AI chat to run as a durable task that survives refreshes and crashes.
- Human-in-the-loop: Pauses the agent for human approval at critical decision points without compute charges.
- State Persistence: Retains variables, caches, and working state in memory between conversation turns.
- Durable Streaming: Resumes streams mid-response if the connection drops, without re-running the model.
- Automatic Tracing: Automatically traces every model request and tool call with timing and token data.
Integration & Environment
- Provider Agnostic: Works with Vercel AI SDK, Anthropic, OpenAI, and any other LLM provider.
- TypeScript Tooling: Allows agents to use any TypeScript tool or API through standard async code.
- Linux Runtime Access: Enables agents to run in a real Linux environment with access to FFmpeg or headless browsers.
Specifications
- Language Support
- TypeScript, JavaScript
- Runtime Environment
- Managed Linux Worker
- State Storage
- Durable process memory and checkpointing
- Frontend Integration
- React hooks (useChat transport)
Added by AntSpace from public sources (trigger.dev).