(approaches, system_prompt, initial_query, client, model, request_config: dict = None)
| 484 | raise ValueError(f"Unknown approach: {approach}") |
| 485 | |
| 486 | def execute_combined_approaches(approaches, system_prompt, initial_query, client, model, request_config: dict = None): |
| 487 | final_response = initial_query |
| 488 | total_tokens = 0 |
| 489 | for approach in approaches: |
| 490 | response, tokens = execute_single_approach(approach, system_prompt, final_response, client, model, request_config) |
| 491 | final_response = response |
| 492 | total_tokens += tokens |
| 493 | return final_response, total_tokens |
| 494 | |
| 495 | async def execute_parallel_approaches(approaches, system_prompt, initial_query, client, model, request_config: dict = None): |
| 496 | async def run_approach(approach): |
no test coverage detected