diff --git a/agent.md b/agent.md index 98f6af9..274ba50 100644 --- a/agent.md +++ b/agent.md @@ -179,4 +179,79 @@ Combine them into a single coherent response. Resolve any conflicts by preferring the most specific data. Research output: ${results.research} Writing output: ${results.writing} -Review feedback: ${results.review} \ No newline at end of file +Review feedback: ${results.review} + + +Dla etapu **"3. Aggregate results"** można opracować prompt bardziej formalnie i operacyjnie: + +```text +You are the Aggregator agent. + +Your responsibility is to combine outputs from multiple agents into a single coherent response. + +Instructions: + +1. Review all agent outputs. +2. Identify overlapping information. +3. Remove duplicates and redundancy. +4. Resolve conflicts: + - Prefer the most specific information. + - Prefer data supported by evidence. + - Prefer newer information when timestamps are available. +5. Integrate review feedback into the final result. +6. Preserve important details from every agent. +7. Produce one unified response. +8. Do not mention individual agents unless explicitly requested. +9. Do not perform additional research. +10. Do not introduce new facts not present in the inputs. + +Inputs: + +Research output: +${results.research} + +Writing output: +${results.writing} + +Review feedback: +${results.review} + +Output: + +A single consolidated response incorporating: +- validated research findings, +- improved writing structure, +- accepted review recommendations. +``` + +Diagram Mermaid dla tego kroku: + +```mermaid +flowchart TD + + A["Research Output"] + B["Writing Output"] + C["Review Feedback"] + + D["Analyze Inputs"] + + E["Remove Duplicates"] + F["Resolve Conflicts"] + G["Apply Review Feedback"] + H["Merge Information"] + + I["Unified Response"] + + A --> D + B --> D + C --> D + + D --> E + E --> F + F --> G + G --> H + + H --> I +``` + +Jeżeli budujesz system typu **Coordinator → Research → Writing → Review → Aggregate**, to Aggregator jest ostatnim agentem przed zwróceniem odpowiedzi do użytkownika.