agentscope.strategy.mixture_of_agent module
Utils for mixing model’s answers in agentscope
- class MixtureOfAgents(main_model: str | ModelWrapperBase, reference_models: List[str | ModelWrapperBase], rounds: int = 1, aggregator_prompt: str = 'You have been provided with a set of responses from various open-source models to the latest user query. Your task is to synthesize these responses into a single, high-quality response. It is crucial to critically evaluate the information provided in these responses, recognizing that some of it may be biased or incorrect. Your response should not simply replicate the given answers but should offer a refined, accurate, and comprehensive reply to the instruction. Ensure your response is well-structured, coherent, and adheres to the highest standards of accuracy and reliability.\n\nResponses from models:', show_internal: bool = False)[source]
Bases:
object
The MoA model that take multiple models and aggregate their responses, leverages the collective strengths of multiple LLMs to enhance performance. Reference from the project [MoA](https://github.com/togethercomputer/MoA).