mirror of
https://github.com/davidkaya/aryx.git
synced 2026-08-28 13:47:12 +02:00
refactor: move handoff guidance into workflow builder
Move handoff routing and ownership rules out of per-agent system prompts and into the Agent Framework handoff builder guidance. This keeps AgentInstructionComposer focused on Aryx-owned system prompt content while letting WithHandoffInstructions supply the workflow-level handoff semantics. - remove handoff-mode runtime guidance from AgentInstructionComposer - expand HandoffWorkflowGuidance with the triage/specialist rules - update tests to pin the new split of responsibilities Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -11,8 +11,12 @@ public sealed class HandoffWorkflowGuidanceTests
|
||||
string instructions = HandoffWorkflowGuidance.CreateWorkflowInstructions();
|
||||
|
||||
Assert.Contains("explicit handoffs", instructions, StringComparison.OrdinalIgnoreCase);
|
||||
Assert.Contains("routing or triage agent", instructions, StringComparison.OrdinalIgnoreCase);
|
||||
Assert.Contains("best specialist", instructions, StringComparison.OrdinalIgnoreCase);
|
||||
Assert.Contains("Do not inspect files", instructions, StringComparison.OrdinalIgnoreCase);
|
||||
Assert.Contains("Do not claim that you delegated", instructions, StringComparison.OrdinalIgnoreCase);
|
||||
Assert.Contains("Do not narrate a handoff", instructions, StringComparison.OrdinalIgnoreCase);
|
||||
Assert.Contains("own the substantive answer", instructions, StringComparison.OrdinalIgnoreCase);
|
||||
Assert.Contains("Specialists should complete the substantive work", instructions, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user