MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / __init__

Method __init__

KVCOMM/agents/math_solver.py:14–28  ·  view source on GitHub ↗
(
        self,
        id: str | None = None,
        role: str = None,
        domain: str = "",
        llm_name: str = "",
        llm_config: KVCommConfig | None = None,
    )

Source from the content-addressed store, hash-verified

12class MathSolver(Node):
13 """Math agent that aggregates peer signals and computes final answers."""
14 def __init__(
15 self,
16 id: str | None = None,
17 role: str = None,
18 domain: str = "",
19 llm_name: str = "",
20 llm_config: KVCommConfig | None = None,
21 ):
22 super().__init__(id, "MathSolver" ,domain, llm_name)
23 prefix = "A: "
24 self.llm = LLMRegistry.get(llm_name, prefix=prefix)
25 self.prompt_set = PromptSetRegistry.get(domain)
26 self.role = self.prompt_set.get_role() if role is None else role
27 self.llm.set_id(self.id, self.role)
28 self.constraint = self.prompt_set.get_constraint(self.role)
29
30 async def _process_inputs(
31 self,

Callers

nothing calls this directly

Calls 4

set_idMethod · 0.80
getMethod · 0.45
get_roleMethod · 0.45
get_constraintMethod · 0.45

Tested by

no test coverage detected