MCPcopy Create free account

hub / github.com/MiroMindAI/MiroThinker / functions

Functions534 in github.com/MiroMindAI/MiroThinker

↓ 2 callersMethodextract_text_content
Extract text from message content
apps/visualize-trace/trace_analyzer.py:158
↓ 2 callersMethodfind_run_directories
Find all run directories in the target path
apps/miroflow-agent/benchmarks/check_progress/common.py:365
↓ 2 callersMethodfix_tool_call_arguments
Fix common parameter name mistakes made by LLM. Args: tool_name: Name of the tool being called arguments: Or
apps/miroflow-agent/src/core/tool_executor.py:68
↓ 2 callersFunctionflush_pending
(pending_user_tool_contents, chat_messages)
apps/collect-trace/utils/converters/convert_oai_to_chatml.py:82
↓ 2 callersMethodformat_token_usage_summary
Format token usage statistics, return summary_lines for format_final_summary and log string
apps/miroflow-agent/src/llm/providers/openai_client.py:454
↓ 2 callersFunctiongenerate_agent_specific_system_prompt
Generate agent-specific objective prompts based on agent type. Different agent types have different objectives: - main: Task-solving age
apps/miroflow-agent/src/utils/prompt_utils.py:204
↓ 2 callersMethodgenerate_agent_system_prompt
(self, date: Any, mcp_servers: List[Dict])
apps/miroflow-agent/src/llm/providers/openai_client.py:364
↓ 2 callersMethodgenerate_failure_summary
Generate a failure experience summary for context compression. This is the core of the context management mechanism. When a task att
apps/miroflow-agent/src/core/answer_generator.py:170
↓ 2 callersFunctiongenerate_mcp_system_prompt
Generate the MCP (Model Context Protocol) system prompt for LLM. Creates a structured prompt that instructs the LLM on how to use available
apps/miroflow-agent/src/utils/prompt_utils.py:85
↓ 2 callersFunctionget_cell_format_info
(cell)
apps/miroflow-agent/src/io/input_handler.py:855
↓ 2 callersMethodget_main_agent_history
Get main agent message history
apps/visualize-trace/trace_analyzer.py:106
↓ 2 callersMethodget_main_agent_messages
Get main agent message list
apps/visualize-trace/trace_analyzer.py:110
↓ 2 callersFunctionget_prompt_with_truncation
( info_to_extract: str, content: str, truncate_last_num_chars: int = -1 )
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/jina_scrape_llm_summary.py:577
↓ 2 callersMethodget_query_str_from_tool_call
Extract the query string from tool call arguments based on tool_name. Supports search_and_browse, google_search, sogou_search, scrap
apps/miroflow-agent/src/core/tool_executor.py:102
↓ 2 callersFunctionget_script_paths
Get paths to conversion scripts Returns: Tuple of (oai_script_path, non_oai_script_path)
apps/collect-trace/utils/converters/convert_to_chatml_auto_batch.py:52
↓ 2 callersFunctionhideLoading
()
apps/visualize-trace/static/js/script.js:70
↓ 2 callersFunctionis_float
(element: any)
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:273
↓ 2 callersFunctionmerge_json_files
(input_dir, type="main")
apps/collect-trace/utils/merge_chatml_msgs_to_one_json.py:10
↓ 2 callersFunctionnormalize_number_str
(number_str: str)
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:229
↓ 2 callersFunctionoai_tool_message_to_chat_message
(oai_messages, agent_type, tool_definition)
apps/collect-trace/utils/converters/convert_oai_to_chatml.py:23
↓ 2 callersFunctionparse_llm_response_for_tool_calls
Parse tool calls from LLM response content. Supports multiple formats: - OpenAI Response API format (dict with 'output' containing funct
apps/miroflow-agent/src/utils/parsing_utils.py:311
↓ 2 callersMethodparse_mcp_tool_call
Parse MCP tool call
apps/visualize-trace/trace_analyzer.py:135
↓ 2 callersFunctionperform_search
Perform a search and return organic results and search parameters.
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/search_and_scrape_webpage.py:131
↓ 2 callersFunctionrgb_to_hex
(rgb_value)
apps/miroflow-agent/src/io/input_handler.py:826
↓ 2 callersMethodrun_single_task
Run inference for a single benchmark task with pass@k support Args: task: BenchmarkTask object Returns:
apps/miroflow-agent/benchmarks/common_benchmark.py:162
↓ 2 callersFunctionsafe_json_loads
Safely parse a JSON string with multiple fallbacks. Parsing strategy: 1. Try standard json.loads() 2. If it fails, try json_repair t
apps/miroflow-agent/src/utils/parsing_utils.py:193
↓ 2 callersFunctionselectFileByIndex
(index)
apps/visualize-trace/static/js/script.js:395
↓ 2 callersMethodset_task_log
Set the task logger for structured logging.
libs/miroflow-tools/src/miroflow_tools/manager.py:62
↓ 2 callersFunctionset_tool_server_mapping
Parse system prompt and cache the tool_name → server_name mapping. Should be called once when system prompt is available. Args:
apps/miroflow-agent/src/utils/parsing_utils.py:62
↓ 2 callersMethodshould_rollback_result
Check if a tool result should trigger a rollback. Args: tool_name: Name of the tool result: The result value
apps/miroflow-agent/src/core/tool_executor.py:240
↓ 2 callersFunctionshowLoading
()
apps/visualize-trace/static/js/script.js:66
↓ 2 callersMethodshow_error
Send show_error event and signal stream end. Args: error: The error message to display
apps/miroflow-agent/src/core/stream_handler.py:93
↓ 2 callersFunctionsplit_string
( s: str, char_list: list[str] = [",", ";"], )
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:240
↓ 2 callersFunctionstrip_markdown_links
(markdown: str)
libs/miroflow-tools/src/miroflow_tools/mcp_servers/utils/url_unquote.py:141
↓ 2 callersMethodto_json
Serialize the TaskLog to a JSON string. Converts the dataclass to a dictionary, handles non-JSON-serializable objects (like
apps/miroflow-agent/src/logging/task_logger.py:293
↓ 2 callersFunctiontruncateText
(text, maxLength = 100)
apps/visualize-trace/static/js/script.js:96
↓ 2 callersFunctionupdateNavigationList
(data)
apps/visualize-trace/static/js/script.js:1005
↓ 2 callersMethodupdate_message_history
Update message history with tool calls data (llm client specific)
apps/miroflow-agent/src/llm/providers/openai_client.py:342
↓ 1 callersFunctionClientFactory
Create an LLM client based on the provider specified in configuration. This factory function automatically selects and instantiates the appr
apps/miroflow-agent/src/llm/factory.py:24
↓ 1 callersFunctionZipConverter
Extracts ZIP files to a temporary directory and processes each file according to its extension. Returns a combined result of all processed fi
apps/miroflow-agent/src/io/input_handler.py:1160
↓ 1 callersMethod__init__
Initialize the benchmark run Args: cfg: Hydra configuration object
apps/miroflow-agent/benchmarks/common_benchmark.py:932
↓ 1 callersMethod__init__
(self, target_path: str, task_per_run: int, data_path: str)
apps/miroflow-agent/benchmarks/check_progress/common.py:346
↓ 1 callersMethod_apply_cache_control
Apply cache control to the last user message and system message (if applicable)
apps/miroflow-agent/src/llm/providers/anthropic_client.py:398
↓ 1 callersMethod_create_client
Create LLM client
apps/miroflow-agent/src/llm/providers/openai_client.py:33
↓ 1 callersMethod_create_message
Send message to OpenAI API. :param system_prompt: System prompt string. :param messages_history: Message history list.
apps/miroflow-agent/src/llm/providers/openai_client.py:80
↓ 1 callersFunction_detect_language
Simple language detection based on character analysis. Returns a language description suitable for the summarize prompt.
apps/gradio-demo/prompt_patch.py:82
↓ 1 callersFunction_disconnect_check_for_task
(task_id: str)
apps/gradio-demo/main.py:864
↓ 1 callersMethod_display_summary
Display summary statistics
apps/miroflow-agent/benchmarks/check_progress/common.py:683
↓ 1 callersMethod_display_summary
Display summary statistics
apps/miroflow-agent/benchmarks/check_progress/common.py:1162
↓ 1 callersFunction_ensure_preloaded
Lazy load pipeline components on first request.
apps/gradio-demo/main.py:139
↓ 1 callersMethod_extract_run_number
Extract run number from directory path for sorting
apps/miroflow-agent/benchmarks/check_progress/common.py:395
↓ 1 callersFunction_extract_task_relevant_info_from_audio
Extract task-relevant information directly from an audio file based on the task description. Args: audio_path: Path to the audio fil
apps/miroflow-agent/src/io/input_handler.py:292
↓ 1 callersFunction_extract_task_relevant_info_from_image
Extract task-relevant information directly from an image based on the task description. Args: image_path: Path to the image file
apps/miroflow-agent/src/io/input_handler.py:220
↓ 1 callersFunction_extract_task_relevant_info_from_video
Extract task-relevant information directly from a video based on the task description. Args: video_path: Path to the video file
apps/miroflow-agent/src/io/input_handler.py:366
↓ 1 callersFunction_format_scrape_results
Format scrape/webpage results in a card layout.
apps/gradio-demo/main.py:596
↓ 1 callersFunction_format_search_results
Format google_search results in a beautiful card layout.
apps/gradio-demo/main.py:474
↓ 1 callersFunction_format_sogou_search_results
Format sogou_search results in a beautiful card layout.
apps/gradio-demo/main.py:536
↓ 1 callersFunction_format_think_content
Convert <think> tags to readable markdown format.
apps/gradio-demo/main.py:429
↓ 1 callersFunction_get_audio_extension
Determine the appropriate audio file extension from URL or content type. Args: url: The URL of the audio file content_type:
libs/miroflow-tools/src/miroflow_tools/mcp_servers/audio_mcp_server_os.py:26
↓ 1 callersFunction_get_summary_template
Returns a template for the summary data structure.
apps/miroflow-agent/src/logging/summary_time_cost.py:11
↓ 1 callersFunction_init_render_state
()
apps/gradio-demo/main.py:420
↓ 1 callersFunction_is_banned_url
Check if the URL is a banned URL. :param url: The URL to check :return: True if it's a banned URL, False otherwise
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/search_and_scrape_webpage.py:61
↓ 1 callersFunction_is_huggingface_dataset_or_space_url
Check if the URL is a HuggingFace dataset or space URL. :param url: The URL to check :return: True if it's a HuggingFace dataset or space
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/jina_scrape_llm_summary.py:122
↓ 1 callersFunction_is_huggingface_dataset_or_space_url
Check if the URL is a HuggingFace dataset or space URL. :param url: The URL to check :return: True if it's a HuggingFace dataset or space
libs/miroflow-tools/src/miroflow_tools/mcp_servers/serper_mcp_server.py:47
↓ 1 callersMethod_is_huggingface_dataset_or_space_url
Check if the URL is a Hugging Face dataset or space URL. :param url: The URL to check :return: True if it's a HuggingFace dat
libs/miroflow-tools/src/miroflow_tools/manager.py:77
↓ 1 callersFunction_list_tools
Create a cached async function for fetching sub-agent tool definitions. This factory function returns an async closure that lazily fetches a
apps/miroflow-agent/src/core/orchestrator.py:56
↓ 1 callersMethod_load_benchmark_data
Load benchmark data and configuration
apps/miroflow-agent/benchmarks/check_progress/common.py:354
↓ 1 callersMethod_load_benchmark_data
Load GAIA-specific data and configuration
apps/miroflow-agent/benchmarks/check_progress/common.py:965
↓ 1 callersMethod_load_gaia_text_103_tasks
Load task IDs from GAIA-Text-103 dataset
apps/miroflow-agent/benchmarks/subset_extraction/gaia-to-text-103-mover.py:40
↓ 1 callersMethod_load_json
Load JSON file
apps/visualize-trace/trace_analyzer.py:28
↓ 1 callersFunction_patch_input_handler
Patch input handler to remove boxed format requirement.
apps/gradio-demo/prompt_patch.py:161
↓ 1 callersFunction_patch_output_formatter
Patch output formatter to disable boxed format check. In demo mode, we don't require \boxed{} format, so we patch the format_final_summa
apps/gradio-demo/prompt_patch.py:237
↓ 1 callersFunction_patch_summarize_prompt
Patch summarize prompt generation for better user experience.
apps/gradio-demo/prompt_patch.py:183
↓ 1 callersFunction_patch_system_prompt
Patch system prompt generation to include custom identity.
apps/gradio-demo/prompt_patch.py:142
↓ 1 callersFunction_reset_cancel_flag
(task_id: str)
apps/gradio-demo/main.py:859
↓ 1 callersMethod_reset_token_usage
Reset token usage counter to zero. Returns: A new TokenUsage dict with all counters set to zero.
apps/miroflow-agent/src/llm/base_client.py:110
↓ 1 callersMethod_save_analysis_log
Save analysis results to a log file in the target directory
apps/miroflow-agent/benchmarks/check_progress/common.py:797
↓ 1 callersFunction_set_cancel_flag
(task_id: str)
apps/gradio-demo/main.py:854
↓ 1 callersMethod_update_difficulty_stats
Update difficulty level statistics for a task
apps/miroflow-agent/benchmarks/check_progress/common.py:994
↓ 1 callersMethod_update_log_file_with_evaluation
Helper method to update log file with evaluation result
apps/miroflow-agent/benchmarks/common_benchmark.py:771
↓ 1 callersFunction_update_state_with_event
(state: dict, message: dict)
apps/gradio-demo/main.py:754
↓ 1 callersMethod_update_summary_stats
Update summary statistics with data from a single run
apps/miroflow-agent/benchmarks/check_progress/common.py:1143
↓ 1 callersMethod_update_token_usage
Update cumulative token usage
apps/miroflow-agent/src/llm/providers/anthropic_client.py:65
↓ 1 callersMethod_update_token_usage
Update cumulative token usage
apps/miroflow-agent/src/llm/providers/openai_client.py:49
↓ 1 callersFunction_validate_file_size
Validate file size based on media category. Returns: Tuple of (is_valid, error_message)
libs/miroflow-tools/src/miroflow_tools/mcp_servers/vision_mcp_server.py:62
↓ 1 callersFunction_verify_answer_for_datasets_core
Verify the answer for a given dataset. Args: benchmark_name: Name of the benchmark dataset question: The question being answ
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:912
↓ 1 callersFunctionamain
Asynchronous main function.
apps/miroflow-agent/main.py:20
↓ 1 callersMethodanalyze_run_directory
Analyze a single run directory and return statistics and task results Returns: Tuple[TaskStats, Dict[str, bool]]: Statistics and
apps/miroflow-agent/benchmarks/check_progress/common.py:518
↓ 1 callersMethodanalyze_run_directory
Analyze a single run directory and return statistics (GAIA-specific) Returns: Tuple[GAIATaskStats, Dict[str, bool]]: Statistics a
apps/miroflow-agent/benchmarks/check_progress/common.py:1014
↓ 1 callersFunctionapply_prompt_patch
Apply monkey patches to customize prompts for demo mode. Patches applied: 1. `generate_mcp_system_prompt` - Prepends custom identity pro
apps/gradio-demo/prompt_patch.py:117
↓ 1 callersFunctionbatch_process_files
Batch process multiple files Args: input_paths: List of input paths output_dir: Output directory Returns: Dicti
apps/collect-trace/utils/converters/convert_to_chatml_auto_batch.py:164
↓ 1 callersFunctionbindStepEventListeners
()
apps/visualize-trace/static/js/script.js:829
↓ 1 callersFunctionbrowseDirectory
()
apps/visualize-trace/static/js/script.js:305
↓ 1 callersFunctionbuild_demo
()
apps/gradio-demo/main.py:934
↓ 1 callersFunctioncalculate_average_scores
Calculate average scores from multiple runs - automatically detect pass_at_k value
apps/miroflow-agent/benchmarks/evaluators/calculate_average_score.py:46
↓ 1 callersFunctioncalculate_deepsearchqa_metrics
Calculate DeepSearchQA-specific metrics from results file. Following the official Google DeepSearchQA evaluation metrics: 1. Fully Correc
apps/miroflow-agent/benchmarks/check_progress/check_progress_deepsearchqa.py:173
↓ 1 callersFunctioncalculate_deepsearchqa_metrics_from_logs
Calculate metrics from individual task log files (for in-progress runs). Returns: Dict with metrics or None if no completed tasks fo
apps/miroflow-agent/benchmarks/check_progress/check_progress_deepsearchqa.py:92
↓ 1 callersFunctioncalculate_mean_and_std
Calculate mean and standard deviation of a list of values
apps/miroflow-agent/benchmarks/check_progress/common.py:109
↓ 1 callersFunctioncheck_cancellation
()
apps/gradio-demo/main.py:323
↓ 1 callersFunctioncheck_dependencies
Check if dependencies are installed
apps/visualize-trace/run.py:10
← previousnext →101–200 of 534, ranked by callers