Prompt Buddy logoPrompt Buddy

vercel · Vercel AI SDK Docs

AI SDK Agents: Workflow Patterns

Explains various architectural patterns for designing AI agent workflows, including sequential execution, parallel processing, and complex multi-step orchestration.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

AI SDK Agents: Workflow Patterns

Explains various architectural patterns for designing AI agent workflows, including sequential execution, parallel processing, and complex multi-step orchestration.

When To Use

Use when designing the orchestration logic for AI agents to determine whether to use sequential, parallel, or complex branching execution paths.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/ai-sdk-agents-workflow-patterns-workflow-guide.mdA guide detailing various agentic workflow patterns including sequential processing, parallel processing, and routing using the AI SDK.Questions about a guide detailing various agentic workflow patterns including sequential processing, parallel processing, and routing...
examples/ai-sdk-agents-workflow-patterns-typescript.textA TypeScript code example demonstrating multi-step agentic workflow patterns using the AI SDK.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating multi-step agentic workflow patterns using the AI SDK.
examples/ai-sdk-agents-workflow-patterns-customer-query-classification-typescript.textA TypeScript code example demonstrating a multi-step agent workflow that uses structured output to classify customer queries.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating a multi-step agent workflow that uses structured output to classify customer...
examples/ai-sdk-agents-workflow-patterns-parallel-review-typescript.textA TypeScript implementation demonstrating a parallel code review workflow using multiple specialized AI agents.Exact payloads, commands, or snippets shown in A TypeScript implementation demonstrating a parallel code review workflow using multiple specialized AI agents.
examples/ai-sdk-agents-workflow-patterns-orchestrator-implementation.textA TypeScript code example demonstrating an orchestrator pattern using the AI SDK to plan and implement features via structured output.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating an orchestrator pattern using the AI SDK to plan and implement features via s...
examples/ai-sdk-agents-workflow-patterns-translate-with-feedback-typescript.textA TypeScript implementation of a translation workflow pattern that uses iterative feedback loops to refine text output.Exact payloads, commands, or snippets shown in A TypeScript implementation of a translation workflow pattern that uses iterative feedback loops to refine text output.

What This Skill Covers

  • Combine the building blocks from the overview with these patterns to add structure and reliability to your agents:
  • Main sections: Choose Your Approach, Patterns with Examples, Sequential Processing (Chains), Routing, Parallel Processing.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://ai-sdk.dev/docs/agents/workflows