MCPcopy Create free account
hub / github.com/Link-AGI/AutoAgents / write_code

Method write_code

autoagents/actions/action_bank/write_code.py:70–73  ·  view source on GitHub ↗
(self, prompt)

Source from the content-addressed store, hash-verified

68
69 @retry(stop=stop_after_attempt(2), wait=wait_fixed(1))
70 async def write_code(self, prompt):
71 code_rsp = await self._aask(prompt)
72 code = CodeParser.parse_code(block="", text=code_rsp)
73 return code
74
75 async def run(self, context, filename):
76 prompt = PROMPT_TEMPLATE.format(context=context, filename=filename)

Callers 1

runMethod · 0.95

Calls 2

_aaskMethod · 0.80
parse_codeMethod · 0.45

Tested by

no test coverage detected