MCPcopy Create free account

hub / github.com/MiroMindAI/MiroThinker / functions

Functions534 in github.com/MiroMindAI/MiroThinker

↓ 1 callersFunctionparse_tool_server_mapping
Parse system prompt to extract tool_name → server_name mapping. Parses patterns like: ## Server name: tool-python ### Tool n
apps/miroflow-agent/src/utils/parsing_utils.py:24
↓ 1 callersFunctionpipeline_with_cancellation
()
apps/gradio-demo/main.py:300
↓ 1 callersFunctionpost_with_retry
Send POST request with retry and exponential backoff. Returns response object if success, otherwise None.
libs/miroflow-tools/src/miroflow_tools/mcp_servers/reasoning_mcp_server_os.py:27
↓ 1 callersMethodprepare_task_description
Prepare task description and file path for the agent Args: task: BenchmarkTask object Returns: Tupl
apps/miroflow-agent/benchmarks/common_benchmark.py:903
↓ 1 callersFunctionprint_results
Print results
apps/miroflow-agent/benchmarks/evaluators/calculate_average_score.py:91
↓ 1 callersMethodprint_summary
Print copying summary to console
apps/miroflow-agent/benchmarks/subset_extraction/gaia-to-text-103-mover.py:119
↓ 1 callersMethodprint_summary
Print grading summary
apps/miroflow-agent/benchmarks/subset_extraction/gaia-text-103-grader.py:233
↓ 1 callersFunctionprocess_input
Process user input and associated files. Extracts content from the task file (if provided) and appends it to the task description in a f
apps/miroflow-agent/src/io/input_handler.py:438
↓ 1 callersMethodprocess_llm_response
Process LLM response
apps/miroflow-agent/src/llm/providers/openai_client.py:279
↓ 1 callersFunctionprocess_log_file
Process a single log file, extract message history and convert to ChatML format Args: log_file_path: Log file path output_di
apps/collect-trace/utils/converters/convert_oai_to_chatml.py:288
↓ 1 callersFunctionprocess_single_file
Process a single JSON file Args: json_file_path: Path to JSON file output_dir: Output directory Returns: True i
apps/collect-trace/utils/converters/convert_to_chatml_auto_batch.py:77
↓ 1 callersFunctionquestion_scorer
( model_answer: str, ground_truth: str, )
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:269
↓ 1 callersFunctionrender
(ts)
libs/miroflow-tools/src/miroflow_tools/mcp_servers/utils/url_unquote.py:144
↓ 1 callersFunctionrenderMarkdown
(text)
apps/visualize-trace/static/js/script.js:203
↓ 1 callersFunctionreplace_chinese_punctuation
(text)
apps/gradio-demo/utils.py:26
↓ 1 callersFunctionrun_benchmark
Main entry point for running benchmarks with Hydra.
apps/miroflow-agent/benchmarks/common_benchmark.py:1013
↓ 1 callersMethodrun_evaluation
Run the full benchmark evaluation process
apps/miroflow-agent/benchmarks/common_benchmark.py:963
↓ 1 callersMethodrun_main_agent
Execute the main end-to-end task. Args: task_description: Description of the task to execute task_file_name:
apps/miroflow-agent/src/core/orchestrator.py:736
↓ 1 callersMethodrun_parallel_inference
Run inference on multiple tasks in parallel using multiprocessing
apps/miroflow-agent/benchmarks/common_benchmark.py:571
↓ 1 callersMethodrun_sub_agent
Run a sub-agent to handle a subtask. Args: sub_agent_name: Name of the sub-agent to run task_description: De
apps/miroflow-agent/src/core/orchestrator.py:327
↓ 1 callersFunctionsafe_unquote
Safely decode URL-encoded strings, only decoding characters that won't alter URL semantics. Preserve the following encodings (because decodi
libs/miroflow-tools/src/miroflow_tools/mcp_servers/utils/url_unquote.py:45
↓ 1 callersFunctionsave_chatml_to_files
Save ChatML format messages to files Args: chatml_data: Dictionary containing message history output_dir: Output directory
apps/collect-trace/utils/converters/convert_oai_to_chatml.py:230
↓ 1 callersMethodsave_results
Save evaluation results to JSONL file
apps/miroflow-agent/benchmarks/common_benchmark.py:720
↓ 1 callersFunctionscrape_url_with_jina
Scrape content from a URL and save to a temporary file. Need to read the content from the temporary file. Args: url (str): The URL
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/jina_scrape_llm_summary.py:133
↓ 1 callersFunctionscrape_url_with_python
Fallback scraping method using Python's httpx library directly. Args: url (str): The URL to scrape content from custom_heade
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/jina_scrape_llm_summary.py:371
↓ 1 callersMethodserialize_for_json
Convert objects to JSON-serializable format
apps/miroflow-agent/src/logging/task_logger.py:280
↓ 1 callersFunctionsetDefaultDirectory
()
apps/visualize-trace/static/js/script.js:298
↓ 1 callersMethodset_loop
(self, loop)
apps/gradio-demo/main.py:183
↓ 1 callersFunctionshow_deepsearchqa_metrics
Show DeepSearchQA-specific metrics for all runs. Following Google DeepSearchQA official metrics: 1. Fully Correct 2. Fully Incorrect
apps/miroflow-agent/benchmarks/check_progress/check_progress_deepsearchqa.py:266
↓ 1 callersFunctionshow_help
Show help information
apps/collect-trace/utils/converters/convert_to_chatml_auto_batch.py:200
↓ 1 callersMethodstart_sub_agent_session
Start a new sub-agent session
apps/miroflow-agent/src/logging/task_logger.py:188
↓ 1 callersMethodstart_workflow
Send start_of_workflow event. Args: user_input: The initial user input for the workflow Returns: Th
apps/miroflow-agent/src/core/stream_handler.py:54
↓ 1 callersFunctionstream_events_optimized
Optimized event stream generator that directly outputs structured events, no longer wrapped as SSE strings.
apps/gradio-demo/main.py:265
↓ 1 callersFunctiontest_complete_tool_block_regex
Test the complete tool block regex used in streaming.
apps/lobehub-compatibility/test_tool_parser.py:192
↓ 1 callersFunctiontest_edge_cases
Test edge cases and potential bugs.
apps/lobehub-compatibility/test_tool_parser.py:232
↓ 1 callersFunctiontest_partial_tool_regex
Test the partial tool regex for streaming.
apps/lobehub-compatibility/test_tool_parser.py:153
↓ 1 callersFunctiontest_persistent_session
()
libs/miroflow-tools/src/miroflow_tools/mcp_servers/browser_session.py:64
↓ 1 callersFunctiontest_tool_call_regex
Test the main tool call regex pattern.
apps/lobehub-compatibility/test_tool_parser.py:51
↓ 1 callersFunctionupdateBasicInfo
(data)
apps/visualize-trace/static/js/script.js:514
↓ 1 callersFunctionupdateExecutionFlow
(data)
apps/visualize-trace/static/js/script.js:593
↓ 1 callersFunctionupdateExecutionSummary
(data)
apps/visualize-trace/static/js/script.js:546
↓ 1 callersFunctionupdatePerformanceSummary
(data)
apps/visualize-trace/static/js/script.js:569
↓ 1 callersFunctionupdateSpansStats
(data)
apps/visualize-trace/static/js/script.js:758
↓ 1 callersFunctionupdateStepLogsStats
(data)
apps/visualize-trace/static/js/script.js:794
↓ 1 callersMethodupdate_original_files
Update original task files with grading results
apps/miroflow-agent/benchmarks/subset_extraction/gaia-text-103-grader.py:204
↓ 1 callersFunctionverify_answer_browsecomp
Use BrowseComp judge (English version) to verify if the predicted answer is correct. Expects the LLM to return A (correct) or B (incorrect).
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:544
↓ 1 callersFunctionverify_answer_browsecomp_zh
Use BrowseComp judge (Chinese version) to verify if the predicted answer is correct. Expects the LLM to return A (correct) or B (incorrect).
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:584
↓ 1 callersFunctionverify_answer_deepsearchqa
Use DeepSearchQA-specific judge to verify if the predicted answer is correct. Uses the official DeepSearchQA evaluation prompt with JSON outp
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:781
↓ 1 callersFunctionverify_answer_for_datasets
Wrapper with retry logic for NOT_ATTEMPTED results. Args: benchmark_name: Name of the benchmark dataset question: The questi
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:1006
↓ 1 callersFunctionverify_answer_hle
Use HLE-style LLM judge to verify if the predicted answer is correct. Returns the evaluation result as a string: "CORRECT", "INCORRECT", or "
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:173
↓ 1 callersFunctionverify_answer_simpleqa
Use LLM to verify if the predicted answer is correct. Expects the LLM to choose between A (correct), B or C (incorrect).
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:111
↓ 1 callersFunctionverify_answer_xbench_deepsearch
Use XBench-DeepSearch judge to verify if the predicted answer is correct.
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:650
Method__init__
(self, tokenizer)
apps/lobehub-compatibility/MiroThinkerToolParser.py:38
Method__init__
(self)
apps/gradio-demo/main.py:178
Method__init__
(self, thread_queue, cancel_event)
apps/gradio-demo/main.py:285
Method__init__
Initialize analyzer Args: json_file_path: Path to the JSON file
apps/visualize-trace/trace_analyzer.py:18
Method__init__
(self, error_msg: str)
apps/miroflow-agent/src/utils/wrapper_utils.py:21
Method__init__
( self, response: Any, extra_info: Optional[Dict[str, Any]] = None )
apps/miroflow-agent/src/utils/wrapper_utils.py:48
Method__init__
Initialize the stream handler. Args: stream_queue: Optional async queue for sending stream messages.
apps/miroflow-agent/src/core/stream_handler.py:26
Method__init__
Initialize the answer generator. Args: llm_client: The LLM client for API calls output_formatter: Formatter
apps/miroflow-agent/src/core/answer_generator.py:46
Method__init__
Initialize the orchestrator. Args: main_agent_tool_manager: Tool manager for main agent sub_agent_tool_manag
apps/miroflow-agent/src/core/orchestrator.py:94
Method__init__
Initialize the tool executor. Args: main_agent_tool_manager: Tool manager for main agent sub_agent_tool_mana
apps/miroflow-agent/src/core/tool_executor.py:38
Method__init__
(self, **options: Any)
apps/miroflow-agent/src/io/input_handler.py:664
Method__init__
(self, title: Union[str, None] = None, text_content: str = "")
apps/miroflow-agent/src/io/input_handler.py:745
Method__init__
Initialize benchmark evaluator Args: data_dir: Path to benchmark data directory benchmark_name: Name of the
apps/miroflow-agent/benchmarks/common_benchmark.py:123
Method__init__
Initialize generic evaluator Args: data_dir: Path to benchmark data directory benchmark_name: Name of the be
apps/miroflow-agent/benchmarks/common_benchmark.py:809
Method__init__
(self, target_path: str, task_per_run: int, data_path: str)
apps/miroflow-agent/benchmarks/check_progress/common.py:955
Method__init__
Initialize the copier Args: gaia_text_103_data_path: Path to GAIA-Text-103 standardized data file output_dir
apps/miroflow-agent/benchmarks/subset_extraction/gaia-to-text-103-mover.py:24
Method__init__
Initialize the grader Args: extraction_dir: Directory containing extracted GAIA-Text-103 tasks
apps/miroflow-agent/benchmarks/subset_extraction/gaia-text-103-grader.py:50
Method__init__
Initialize ToolManager. :param server_configs: List returned by create_server_parameters()
libs/miroflow-tools/src/miroflow_tools/manager.py:49
Method__init__
(self, server_params)
libs/miroflow-tools/src/miroflow_tools/mcp_servers/browser_session.py:19
Method__post_init__
(self)
apps/miroflow-agent/src/llm/base_client.py:78
Method__post_init__
(self)
apps/miroflow-agent/src/llm/providers/anthropic_client.py:40
Method__post_init__
Validate info_level after initialization
apps/miroflow-agent/src/logging/task_logger.py:147
Method__post_init__
(self)
apps/miroflow-agent/benchmarks/check_progress/common.py:185
Method__repr__
(self)
apps/miroflow-agent/src/utils/wrapper_utils.py:27
Method__repr__
(self)
apps/miroflow-agent/src/utils/wrapper_utils.py:57
Method__str__
(self)
apps/miroflow-agent/src/utils/wrapper_utils.py:24
Method__str__
(self)
apps/miroflow-agent/src/utils/wrapper_utils.py:54
Method_create_client
Create LLM client
apps/miroflow-agent/src/llm/providers/anthropic_client.py:49
Method_create_message
Send message to Anthropic API. :param system_prompt: System prompt string. :param messages_history: Message history list.
apps/miroflow-agent/src/llm/providers/anthropic_client.py:101
Function_encode_audio_file
Encode audio file to base64 and determine format.
libs/miroflow-tools/src/miroflow_tools/mcp_servers/audio_mcp_server_os.py:99
Method_ensure_tool_id_valid
Ensure the tool_id is valid and arrays have enough elements
apps/lobehub-compatibility/MiroThinkerToolParser.py:145
Function_fix_backslash_escapes
Fix common backslash escape issues in JSON strings. This handles cases where backslashes in string values are not properly escaped. Comm
apps/miroflow-agent/src/utils/parsing_utils.py:139
Method_format_response_for_log
Format response for logging
apps/miroflow-agent/src/llm/base_client.py:327
Function_get_audio_duration
Get audio duration in seconds. Tries to use wave (for .wav), then falls back to mutagen (for mp3, etc).
libs/miroflow-tools/src/miroflow_tools/mcp_servers/audio_mcp_server_os.py:67
Method_longest_token_prefix_at_end
(s: str, token: str)
apps/lobehub-compatibility/MiroThinkerToolParser.py:296
Method_run_single_task_sync
Sync wrapper for run_single_task to be used in threads
apps/miroflow-agent/benchmarks/common_benchmark.py:553
Method_save_message_history
Save message history to task log.
apps/miroflow-agent/src/core/orchestrator.py:170
Function_task_worker
Worker function to run a single task in a separate process. This function is called by ProcessPoolExecutor and must be at module level.
apps/miroflow-agent/benchmarks/common_benchmark.py:34
Functionadd_todo
Create a task plan by adding one or more task items. CRITICAL: Before starting to work on ANY task, you MUST first create a complete task pl
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/task_planner.py:100
Methodadjust_request
(self, request: ChatCompletionRequest)
apps/lobehub-compatibility/MiroThinkerToolParser.py:138
Functionaudio_question_answering
Answer the question based on the given audio information. Args: audio_path_or_url: The path of the audio file locally or its URL. Pa
libs/miroflow-tools/src/miroflow_tools/mcp_servers/audio_mcp_server.py:202
Functionaudio_transcription
Transcribe audio file to text and return the transcription. Args: audio_path_or_url: The path of the audio file locally or its URL. P
libs/miroflow-tools/src/miroflow_tools/mcp_servers/audio_mcp_server_os.py:124
Functionaudio_transcription
Transcribe audio file to text and return the transcription. Args: audio_path_or_url: The path of the audio file locally or its URL. P
libs/miroflow-tools/src/miroflow_tools/mcp_servers/audio_mcp_server.py:127
Methodaverage_turns
Calculate average turns per completed task
apps/miroflow-agent/benchmarks/check_progress/common.py:202
FunctioncollapseAllSteps
()
apps/visualize-trace/static/js/script.js:866
Functioncomplete_todo
Mark one or more tasks as completed in your plan. Use this after finishing a task to track your progress and maintain an accurate view o
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/task_planner.py:175
Methodcompletion_rate
Calculate completion rate percentage
apps/miroflow-agent/benchmarks/check_progress/common.py:197
Functioncontains_chinese
Detect if a string contains Chinese characters or Chinese punctuation Args: text (str): The string to detect Returns: b
apps/gradio-demo/utils.py:4
← previousnext →301–400 of 534, ranked by callers