sequential_workflow.py
For more information on how to use custom functions, refer to the
Advanced page.
- Sequence of Functions and Agents - Complete workflow with functions and agents
StepInput
and StepOutput
provides standardized interfaces for data flow between steps:
So if you make a custom function as an executor for a step, make sure that the input and output types are compatible with the StepInput
and StepOutput
interfaces.
This will ensure that your custom function can seamlessly integrate into the workflow system.Take a look at the schemas for StepInput
and StepOutput
.