MCPcopy Index your code
hub / github.com/showlab/Code2Video / task

Method task

src/agent.py:511–516  ·  view source on GitHub ↗
(section)

Source from the content-addressed store, hash-verified

509 raise ValueError(f"{self.learning_topic} Please generate teaching sections first")
510
511 def task(section):
512 try:
513 self.generate_section_code(section, attempt=1)
514 return section.id, None
515 except Exception as e:
516 return section.id, e
517
518 with ThreadPoolExecutor(max_workers=6) as executor:
519 futures = {executor.submit(task, section): section for section in self.sections}

Callers

nothing calls this directly

Calls 1

generate_section_codeMethod · 0.95

Tested by

no test coverage detected