MCPcopy Create free account
hub / github.com/aiming-lab/MDocAgent / add_agent

Method add_agent

agents/multi_agent_system.py:29–33  ·  view source on GitHub ↗
(self, agent_config, model)

Source from the content-addressed store, hash-verified

27 self.sum_agent = Agent(config.sum_agent, self.models[config.sum_agent.model.class_name])
28
29 def add_agent(self, agent_config, model):
30 module = importlib.import_module(agent_config.agent.module_name)
31 agent_class = getattr(module, agent_config.agent.class_name)
32 agent:Agent = agent_class(agent_config, model)
33 self.agents.append(agent)
34
35 def predict(self, question, texts, images):
36 '''Implement the method in the subclass'''

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected