Skip to main content
Workflow agents are currently not available in the AI SDK. This page is a placeholder for future functionality.For multi-step agent workflows, use ToolLoopAgent with custom step logic in the prepareStep callback.

Alternative: Custom multi-step workflows

You can implement custom workflow logic using ToolLoopAgent or by chaining multiple generateText calls:

Using ToolLoopAgent for workflows

The ToolLoopAgent can be configured to implement complex workflows: