Jul 10, 2026, 8:58 AM
This commit is contained in:
@@ -180,3 +180,78 @@ Resolve any conflicts by preferring the most specific data.
|
|||||||
Research output: ${results.research}
|
Research output: ${results.research}
|
||||||
Writing output: ${results.writing}
|
Writing output: ${results.writing}
|
||||||
Review feedback: ${results.review}
|
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user