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.
Informações da origem
- Repositório
- VladSez/easy-invoice-pdf
- Última atividade na origem
- 26 de julho de 2026 às 21:49
- Idioma detectado do SKILL.md
- inglês
- Estrelas
- 1.098
- Forks
- 103
Opções de instalação
Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.
Revise os arquivos de origem
Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.
Exibindo 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"]