MCPcopy Create free account
hub / github.com/InternScience/InternAgent / limited_atom

Method limited_atom

tasks/AutoTTS/code/main.py:76–81  ·  view source on GitHub ↗
(question, context=None)

Source from the content-addressed store, hash-verified

74 semaphore = asyncio.Semaphore(self.max_concurrent)
75
76 async def limited_atom(question, context=None):
77 async with semaphore:
78 if context is not None:
79 return await atom(question, context)
80 else:
81 return await atom(question)
82
83 tasks = []
84

Callers

nothing calls this directly

Calls 1

atomFunction · 0.90

Tested by

no test coverage detected