Flask / llm /aggregator.py
UntilDot's picture
Upload 10 files
718aa48 verified
raw
history blame
299 Bytes
def aggregate_responses(responses: list) -> str:
if not responses:
return "No responses received."
combined = "\n".join(responses)
# In real use, you’d prompt another LLM to summarize/combine them
return f"Final synthesized response based on multiple agents:\n{combined}"