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

Function plansearch

optillm/plansearch.py:212–214  ·  view source on GitHub ↗
(system_prompt: str, initial_query: str, client, model: str, n: int = 1, request_config: dict = None, request_id: str = None)

Source from the content-addressed store, hash-verified

210 return solutions
211
212def plansearch(system_prompt: str, initial_query: str, client, model: str, n: int = 1, request_config: dict = None, request_id: str = None) -> List[str]:
213 planner = PlanSearch(system_prompt, client, model, request_config=request_config, request_id=request_id)
214 return planner.solve_multiple(initial_query, n), planner.plansearch_completion_tokens

Callers 2

execute_single_approachFunction · 0.90
runFunction · 0.90

Calls 2

solve_multipleMethod · 0.95
PlanSearchClass · 0.85

Tested by

no test coverage detected