MCPcopy Index your code
hub / github.com/algorithmicsuperintelligence/optillm / run_approach

Function run_approach

optillm/server.py:496–497  ·  view source on GitHub ↗
(approach)

Source from the content-addressed store, hash-verified

494
495async def execute_parallel_approaches(approaches, system_prompt, initial_query, client, model, request_config: dict = None):
496 async def run_approach(approach):
497 return await asyncio.to_thread(execute_single_approach, approach, system_prompt, initial_query, client, model, request_config)
498
499 tasks = [run_approach(approach) for approach in approaches]
500 results = await asyncio.gather(*tasks)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected