trigger-authoring-chat-agent
Author and run a durable AI chat agent with chat.agent from @trigger.dev/sdk/ai: the per-turn run loop, why you MUST spread ...chat.toStreamTextOptions() first, returning a StreamTextResult vs calling chat.pipe(), the two server actions (chat.createStartSessionAction + auth.createPublicToken), and wiring useChat to useTriggerChatTransport. Load this when building, modifying, or debugging a chat backend (the agent task or its lifecycle hooks) or its React transport, when declaring typed tools or custom data parts, or when migrating a plain AI SDK streamText route to chat.agent.
Source facts
- Repository
- VladSez/easy-invoice-pdf
- Last source activity
- July 26, 2026 at 21:49
- Detected SKILL.md language
- English
- Stars
- 1,099
- Forks
- 106
Install options
The review-first prompt is selected by default. You can switch to a direct command or download a local copy.
Review the source files
Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.
Showing SKILL.md
- name
- trigger-authoring-chat-agent
- description
- Author and run a durable AI chat agent with chat.agent from @trigger.dev/sdk/ai: the per-turn run loop, why you MUST spread ...chat.toStreamTextOptions() first, returning a StreamTextResult vs calling chat.pipe(), the two server actions (chat.createStartSessionAction + auth.createPublicToken), and wiring useChat to useTriggerChatTransport. Load this when building, modifying, or debugging a chat backend (the agent task or its lifecycle hooks) or its React transport, when declaring typed tools or custom data parts, or when migrating a plain AI SDK streamText route to chat.agent.
- type
- core
- library
- trigger.dev
- sources
- ["docs/ai-chat/overview.mdx","docs/ai-chat/quick-start.mdx","docs/ai-chat/how-it-works.mdx","docs/ai-chat/backend.mdx","docs/ai-chat/frontend.mdx","docs/ai-chat/reference.mdx","docs/ai-chat/types.mdx","docs/ai-chat/tools.mdx","docs/ai-chat/lifecycle-hooks.mdx","docs/ai-chat/error-handling.mdx"]