MCPcopy
hub / github.com/HKUDS/DeepCode / execute

Method execute

nanobot/nanobot/agent/tools/spawn.py:58–65  ·  view source on GitHub ↗

Spawn a subagent to execute the given task.

(self, task: str, label: str | None = None, **kwargs: Any)

Source from the content-addressed store, hash-verified

56 }
57
58 async def execute(self, task: str, label: str | None = None, **kwargs: Any) -> str:
59 """Spawn a subagent to execute the given task."""
60 return await self._manager.spawn(
61 task=task,
62 label=label,
63 origin_channel=self._origin_channel,
64 origin_chat_id=self._origin_chat_id,
65 )

Callers

nothing calls this directly

Calls 1

spawnMethod · 0.80

Tested by

no test coverage detected