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

Function execute_combined_approaches

optillm/server.py:486–493  ·  view source on GitHub ↗
(approaches, system_prompt, initial_query, client, model, request_config: dict = None)

Source from the content-addressed store, hash-verified

484 raise ValueError(f"Unknown approach: {approach}")
485
486def 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
495async def execute_parallel_approaches(approaches, system_prompt, initial_query, client, model, request_config: dict = None):
496 async def run_approach(approach):

Callers 1

execute_n_timesFunction · 0.85

Calls 1

execute_single_approachFunction · 0.85

Tested by

no test coverage detected