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 commit introduces the Routing node to the Agent graph:
- Adds AgentGraphNode::Route and adapts AgentGraph to start from Route, calling agent.route() before CreateTodos.
- Adds the route method to Agent trait and implements it in ButBot to select a workflow path by running pick_route(), which inspects the conversation and chooses Simple or Planning routes.
- ButBotRoute and RouteResponse types introduced to enable flexible agent workflow control.
- butbot.rs now contains logic to determine route based on conversation, plus initiates the correct node.
- lib.rs exposes structured_output_blocking in but-action for routing logic.
This refactor enables dynamic agent flow control between direct/simple actions and planning-based workflows.
0 commit comments