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

Method __init__

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

Source from the content-addressed store, hash-verified

13class FinalWriteCode(Node):
14 """Final code synthesis agent that integrates peers and executes tests."""
15 def __init__(
16 self,
17 id: str | None = None,
18 domain: str = "",
19 llm_name: str = "",
20 llm_config: KVCommConfig | None = None,
21 ):
22 super().__init__(id, "FinalWriteCode" ,domain, llm_name)
23 prefix = ""
24 self.llm = LLMRegistry.get(llm_name, prefix=prefix, llm_config=llm_config)
25 self.role = 'FinalWriteCode'
26 self.llm.set_id(self.id, 'FinalWriteCode')
27 self.prompt_set = PromptSetRegistry.get(domain)
28 self._executor = PyExecutor()
29
30 @staticmethod
31 def extract_example(prompt: Dict[str, Any] | str) -> List[str]:

Callers

nothing calls this directly

Calls 4

PyExecutorClass · 0.90
set_idMethod · 0.80
__init__Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected