WorkflowAgent to your workflow that intelligently decides whether to:
- Answer directly based on the current input and past workflow results
- Run the workflow when the input cannot be answered based on past results
What is a WorkflowAgent?
WorkflowAgent is a restricted version of the Agent class specifically designed for workflow orchestration.Quick Start
This is how you can add aWorkflowAgent to your workflow:
Architecture

Workflow History for Conversational Workflows:
Similar to workflow history for steps, theWorkflowAgent has access to the full history of workflow runs for the current session.
This makes it possible to answer questions about previous results, compare outputs from multiple runs, and maintain conversation continuity.
Instructions for the WorkflowAgent:
You can provide custom instructions to theWorkflowAgent to control its behavior. Although default instructions are provided which instruct the agent to answer directly from history
or to run the workflow when new processing is needed, you can override them by providing your own instructions.
