MCPcopy Index your code

hub / github.com/algorithmicsuperintelligence/optillm / functions

Functions1,129 in github.com/algorithmicsuperintelligence/optillm

↓ 119 callersMethodcreate
(strategy: str, providers: List)
optillm/plugins/proxy/routing.py:108
↓ 55 callersMethodmodel_dump
(self)
optillm/inference.py:1712
↓ 54 callersMethodlog_provider_call
Log a provider API call and response. Args: request_id: The request ID for this conversation provider_reques
optillm/conversation_logger.py:97
↓ 42 callersMethodencode
(self, text)
tests/test_reasoning_simple.py:68
↓ 31 callersMethodsearch
(self, initial_state: DialogueState, num_simulations: int)
optillm/mcts.py:92
↓ 28 callersMethodupdate
(self, other=None, **kwargs)
optillm/plugins/longcepo/utils.py:31
↓ 27 callersMethodcreate
(self, **kwargs)
tests/test_approaches.py:33
↓ 23 callersMethodsearch
Perform Google search and return results
optillm/plugins/web_search_plugin.py:224
↓ 17 callersMethodload
Load and cache configuration. Args: path: Optional path to config file force_reload: Force reload ev
optillm/plugins/proxy/config.py:21
↓ 17 callersMethodstart_conversation
Start logging a new conversation. Args: client_request: The original request from the client approach: The o
optillm/conversation_logger.py:62
↓ 15 callersFunctionget_prompt_length
Returns the token length of a prompt using the given tokenizer.
optillm/plugins/longcepo/chunking.py:9
↓ 12 callersFunctionrun
( system_prompt: str, initial_query: str, client, model: str, request_config: Optional[dic
optillm/plugins/compact_plugin.py:155
↓ 11 callersFunction_make_client
(summary_text="<summary>Test summary with Key decisions: decided X.</summary>")
tests/test_compact_plugin.py:15
↓ 11 callersMethodfinalize_conversation
Finalize and save the conversation to disk. Args: request_id: The request ID for this conversation
optillm/conversation_logger.py:172
↓ 11 callersFunctionmulti_agent_reasoning_system
Main MARS function implementing multi-agent reasoning with parallel execution Args: system_prompt: System-level instructions
optillm/mars/mars.py:76
↓ 10 callersMethod_save
Save strategies and metrics to disk.
optillm/plugins/spl/strategy.py:199
↓ 10 callersFunctionget_config
()
optillm/server.py:62
↓ 10 callersFunctionsetup_test_env
Set up test environment with local inference
tests/test_utils.py:20
↓ 9 callersMethod_get_new_log_entries
Get new log entries since test started
tests/test_conversation_logging_server.py:134
↓ 9 callersMethodadd_request
Add a request to be batched Args: request_data: The request data dictionary Returns:
optillm/batching.py:230
↓ 9 callersMethodclose
Close the browser driver
optillm/plugins/web_search_plugin.py:480
↓ 8 callersFunction_get_config
(request_config: Optional[dict], key: str, env_var: str, default)
optillm/plugins/compact_plugin.py:54
↓ 8 callersMethodget_verified_solutions
Get all solutions that have passed verification
optillm/mars/workspace.py:105
↓ 8 callersFunctionparse_args
()
optillm/server.py:982
↓ 8 callersFunctionparse_tagged_conversation
(text: str)
optillm/plugins/compact_plugin.py:93
↓ 7 callersFunctionclean_reasoning_tags
Remove reasoning tags from model responses for clean final output. Removes common reasoning tags like: - <think></think> - <thin
optillm/plugins/deep_research/research_engine.py:23
↓ 7 callersFunctionnormalize_number
Helper function to normalize number representation.
scripts/eval_math500_benchmark.py:80
↓ 6 callersFunctionbest_of_n_sampling
(system_prompt: str, initial_query: str, client, model: str, n: int = 3, request_config: dict = None, request_
optillm/bon.py:7
↓ 6 callersMethoddetect_captcha
Detect if CAPTCHA is present on the page
optillm/plugins/web_search_plugin.py:149
↓ 6 callersFunctionllm_call_reason_effort_fallback
Call LLM with fallback on reasoning effort levels. This function wraps `llm_call` with retry and degradation logic to handle two main cl
optillm/cepo/cepo.py:257
↓ 6 callersMethodlog_error
Log an error for this conversation. Args: request_id: The request ID for this conversation error: Error mess
optillm/conversation_logger.py:151
↓ 6 callersMethodlog_final_response
Log the final response sent back to the client. Args: request_id: The request ID for this conversation final
optillm/conversation_logger.py:129
↓ 6 callersMethodstart
Start health checking in background
optillm/plugins/proxy/health.py:23
↓ 5 callersMethod_extract_content
Validate a provider response and return its message content. Guards against the empty / None / length-truncated responses that would
optillm/leap.py:31
↓ 5 callersFunction_get_context_window
Get context window size: try provider /models endpoint first, then config fallback.
optillm/plugins/compact_plugin.py:69
↓ 5 callersMethodadd
(self, item: str)
optillm/plugins/memory_plugin.py:17
↓ 5 callersFunctioncot_reflection
(system_prompt, initial_query, client, model: str, return_full_response: bool=False, request_config: dict = No
optillm/cot_reflection.py:8
↓ 5 callersFunctionestimate_tokens
(text: str)
optillm/plugins/compact_plugin.py:84
↓ 5 callersFunctionextract_thinking
Extract thinking content from <think>...</think> tags and the response after. Args: response: The model's response Retu
optillm/plugins/spl/utils.py:15
↓ 5 callersFunctionget_test_client
Get OpenAI client configured for local optillm
tests/test_utils.py:25
↓ 5 callersMethodload_config
Load configuration from file
optillm/plugins/mcp_plugin.py:178
↓ 5 callersFunctionlog_mcp_message
Log MCP communication in detail
optillm/plugins/mcp_plugin.py:56
↓ 5 callersMethodprocess_query
(self, query: str)
optillm/z3_solver.py:159
↓ 5 callersMethodset_processor
Set the batch processing function Args: processor_func: Function that takes list of request data and returns lis
optillm/batching.py:221
↓ 5 callersMethodshutdown
Shutdown the batcher and all background threads
optillm/batching.py:278
↓ 5 callersMethodwait_for_captcha_resolution
Wait for CAPTCHA to be resolved with user confirmation
optillm/plugins/web_search_plugin.py:187
↓ 4 callersMethod_generate_chunk
Generate a small chunk of text using MLX with proper sampler
optillm/thinkdeeper_mlx.py:249
↓ 4 callersFunction_sample
(logits: torch.Tensor, temperature=0.666, top_p=0.90, top_k=27, min_p: float = 0.0, generator: torch.Generator
optillm/entropy_decoding.py:60
↓ 4 callersMethodchat_completions_create
Mock completions.create with configurable delay
tests/test_mars_parallel.py:36
↓ 4 callersFunctionexecute_single_approach
(approach, system_prompt, initial_query, client, model, request_config: dict = None, request_id: str = None)
optillm/server.py:396
↓ 4 callersFunctionexecute_tool
Execute a tool on an MCP server This function creates a fresh connection for each tool execution to ensure reliability.
optillm/plugins/mcp_plugin.py:664
↓ 4 callersMethodextract_output
(self, text: str)
optillm/leap.py:27
↓ 4 callersFunctionfetch_webpage_content
(url: str, max_length: int = 100000, verify_ssl: Optional[bool] = None, cert_path: Optional[str] = None)
optillm/plugins/readurls_plugin.py:27
↓ 4 callersMethodfrom_dict
Create a Strategy instance from a dictionary.
optillm/plugins/spl/strategy.py:84
↓ 4 callersMethodgenerate
Generate completions with optional logprobs
optillm/inference.py:1287
↓ 4 callersMethodget_captured_logs
Get the captured log output
tests/test_mars_parallel.py:118
↓ 4 callersMethodget_or_create_searcher
Get existing searcher or create a new one
optillm/plugins/web_search_plugin.py:44
↓ 4 callersFunctionget_prompt_response
Helper function that sends a prompt to the chat-based LLM API and returns the generated response along with usage logging. Args: cli
optillm/plugins/longcepo/utils.py:100
↓ 4 callersMethodget_stats
Get batching statistics
optillm/batching.py:274
↓ 4 callersMethodget_strategy_by_id
Get a strategy by its ID.
optillm/plugins/spl/strategy.py:248
↓ 4 callersFunctionnormalize_answer
Normalize the answer string for comparison.
scripts/eval_math500_benchmark.py:410
↓ 4 callersFunctionreconstruct_tagged
(turns: List[Tuple[str, str]])
optillm/plugins/compact_plugin.py:107
↓ 4 callersFunctionremove_thinking_blocks
Remove <think>...</think> blocks from the response. If there's a </think> tag, only keep the content after it.
scripts/eval_optillmbench.py:98
↓ 4 callersMethodselect
(self, node: MCTSNode)
optillm/mcts.py:45
↓ 4 callersFunctiontagged_conversation_to_messages
Convert a tagged conversation string or list of strings into a list of messages. If the input doesn't contain User:/Assistant: tags, return it as
optillm/server.py:626
↓ 3 callersMethod__init__
(self, response_delay=0.1, reasoning_tokens=1000)
tests/test_mars_parallel.py:30
↓ 3 callersMethod_compute_prompt_signature
Compute a signature for semantic similarity matching
optillm/inference.py:751
↓ 3 callersMethod_fallback_classification
Simple heuristic classification when model isn't available. Args: text: The query text Retu
optillm/autothink/classifier.py:89
↓ 3 callersMethod_get_reasoning_effort
Get reasoning effort level based on agent temperature
optillm/mars/agent.py:34
↓ 3 callersMethodadd_solution
Add a new agent solution to the workspace
optillm/mars/workspace.py:54
↓ 3 callersFunctionadvanced_self_consistency_approach
(system_prompt: str, initial_query: str, client, model: str, request_config: dict = None, request_id: str = No
optillm/self_consistency.py:100
↓ 3 callersFunctionanalyze_thinking
Analyze thinking patterns in the response. Extract tokens between <think> and </think> tags and count thought transitions. Args:
scripts/eval_aime_benchmark.py:135
↓ 3 callersFunctioncalc_logit_stats
(attempts)
scripts/eval_aime_benchmark.py:653
↓ 3 callersFunctioncalc_stats
(attempts)
scripts/eval_aime_benchmark.py:522
↓ 3 callersMethodcalculate_metrics
Calculate final evaluation metrics
scripts/eval_simpleqa_benchmark.py:366
↓ 3 callersFunctionchat_with_mcts
(system_prompt: str, initial_query: str, client, model: str, num_simulations: int = 2, exploration_weight: flo
optillm/mcts.py:228
↓ 3 callersFunctionconcurrent_map
Runs `gen_function` concurrently over a list of context chunks. Args: gen_function (Callable): Function to call with each chunk and
optillm/plugins/longcepo/utils.py:52
↓ 3 callersMethodconnect_and_discover
Connect to the server and discover capabilities using appropriate transport
optillm/plugins/mcp_plugin.py:472
↓ 3 callersMethodconnect_sse
Connect to server using SSE transport and discover capabilities
optillm/plugins/mcp_plugin.py:335
↓ 3 callersMethodconnect_stdio
Connect to server using stdio transport and discover capabilities
optillm/plugins/mcp_plugin.py:275
↓ 3 callersFunctioncount_reasoning_tokens
Count tokens within <think>...</think> tags in the given text. Args: text: The text to analyze tokenizer: Optional tokenizer
optillm/server.py:132
↓ 3 callersMethodcreate
Create completion with load balancing, failover, and timeout handling
optillm/plugins/proxy/client.py:258
↓ 3 callersFunctionevaluate_response
Evaluate if the response matches the ground truth based on category. Args: response: Model's response ground_truth: Corr
scripts/eval_optillmbench.py:206
↓ 3 callersFunctionexecute_n_times
Execute the pipeline n times and return n responses. Args: n (int): Number of times to run the pipeline approaches (list): L
optillm/server.py:504
↓ 3 callersFunctionexecute_tool_stdio
Execute tool using stdio transport
optillm/plugins/mcp_plugin.py:705
↓ 3 callersFunctionexecute_tool_with_session
Execute a tool using an existing session
optillm/plugins/mcp_plugin.py:627
↓ 3 callersMethodextract_and_fetch_urls
Extract URLs from search results and fetch their content using readurls plugin Returns content and list of sources with metadata
optillm/plugins/deep_research/research_engine.py:494
↓ 3 callersFunctionextract_answer
Extract the numerical answer from a math solution response using unified extraction. AIME problems expect integer answers between 0 and 999.
scripts/eval_aime_benchmark.py:90
↓ 3 callersFunctionextract_answer
Extract answer from solution text. Args: solution: The solution text to extract answer from problem_type: Type of problem (g
optillm/utils/answer_extraction.py:309
↓ 3 callersFunctionextract_python_code
Extract Python code blocks from text.
optillm/plugins/executecode_plugin.py:19
↓ 3 callersFunctiongenerate_streaming_response
(final_response, model)
optillm/server.py:551
↓ 3 callersFunctionget_llm_response
Get response from the LLM with retry logic.
scripts/eval_arena_hard_auto_rtc.py:55
↓ 3 callersFunctionget_prompt_for_category
Generate appropriate prompt based on category.
scripts/eval_optillmbench.py:274
↓ 3 callersMethodget_strategies_for_problem
Get all strategies for a specific problem type.
optillm/plugins/spl/strategy.py:244
↓ 3 callersFunctioninference_time_pv_game
(system_prompt: str, initial_query: str, client, model: str, num_rounds: int = 2, num_solutions: int = 3, requ
optillm/pvg.py:154
↓ 3 callersMethodinitialize
Initialize and cache all server capabilities
optillm/plugins/mcp_plugin.py:514
↓ 3 callersFunctionis_apple_silicon
Check if running on Apple Silicon
optillm/inference.py:230
↓ 3 callersFunctionload_existing_results
Load existing results from file if it exists.
scripts/eval_math500_benchmark.py:706
↓ 3 callersFunctionload_existing_results
(filename: str)
scripts/eval_frames_benchmark.py:15
↓ 3 callersFunctionload_existing_results
Load existing results from file if it exists.
scripts/eval_aime_benchmark.py:454
next →1–100 of 1,129, ranked by callers