-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
Description
Please read this first
- Have you read the docs?Agents SDK docs yes
- Have you searched for related issues? Others may have had similar requests yes
Question
Your documentation heavily emphasises using deterministic workflows to get best results.
Examples include the llm as judge pattern to get the best possible novel outline, as well as the parallelization pattern to get the best translation.
How can I expose these workflows to a triage agents using the handoff pattern. It's quite trivial to expose those as tools; but the handoff option seems to require a whole agent, and not a simpler function so;
- Is there an option to "convert" a function that takes a prompt, follows a workflow and produces a response into an agent object that can then be exposed as a tool and/or handoff
- Is there a way to expose a function that takes a prompt and produces a response as thing that can be handoffed to?
Either one of these would allow triage agents to handoff to complex workflow instead of being limited to performing handoffs to single agents, which are less powerful than complex workflows