You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue tracks the implementation of a workflow pattern where a Delegator step dynamically determines the next step to execute based on context or input intent. This pattern allows routing between different models/tools and can optionally return a final result directly to the user.
This approach enables:
Dynamic control flow within workflows
Modular task-specific steps using different models
Returning to the Delegator for coordination after each step
Autoflow is a workflow engine where an LLM determines which functions to execute and in what order. Instead of having predetermined execution paths, the LLM acts as a router that decides the next step based on:
The current state
Available functions
The user's request
How it works
Register functions as workflow steps
User provides a task
LLM examines available steps and current state
LLM decides which step to run next and what parameters to use
System executes the selected step
Process repeats until completion (when LLM calls the "final_answer" step)
Core components
Autoflow Class is the main class for creating and executing workflows
AutoflowState tracks the workflow's current execution state
Autoflow uses two main templates to guide the LLM:
Router Template - used to help the LLM decide which step to run next
Response Template - formats action results in the conversation
Uh oh!
There was an error while loading. Please reload this page.
Description
This issue tracks the implementation of a workflow pattern where a Delegator step dynamically determines the next step to execute based on context or input intent. This pattern allows routing between different models/tools and can optionally return a final result directly to the user.
This approach enables:
Context
Originally discussed in Github Discussion #793
Next actions
(Nice to have)
Implementation
Autoflow is a workflow engine where an LLM determines which functions to execute and in what order. Instead of having predetermined execution paths, the LLM acts as a router that decides the next step based on:
How it works
Core components
Autoflow uses two main templates to guide the LLM:
Example
https://github.com/i-am-bee/beeai-framework/tree/feat/803-autoflow-example/python/examples/workflows/custom/autoflow
The text was updated successfully, but these errors were encountered: