(approach)
| 494 | |
| 495 | async 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) |
no outgoing calls
no test coverage detected