(
self,
id: str | None = None,
domain: str = "",
llm_name: str = "",
llm_config: KVCommConfig | None = None,
)
| 13 | class 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]: |
nothing calls this directly
no test coverage detected