MCPcopy Create free account

hub / github.com/MiroMindAI/MiroThinker / functions

Functions534 in github.com/MiroMindAI/MiroThinker

↓ 399 callersMethodget
(self)
apps/gradio-demo/main.py:199
↓ 105 callersMethodlog_step
Record execution step
apps/miroflow-agent/src/logging/task_logger.py:217
↓ 22 callersMethodupdate
Send a streaming update in SSE protocol format. Args: event_type: The type of event (e.g., 'start_of_workflow', 'tool_ca
apps/miroflow-agent/src/core/stream_handler.py:36
↓ 15 callersMethod_log
Helper method to log using task_log if available, otherwise skip logging.
libs/miroflow-tools/src/miroflow_tools/manager.py:72
↓ 13 callersMethodformat
(self, record)
apps/miroflow-agent/src/logging/task_logger.py:51
↓ 13 callersMethodrun_analysis
Run the complete analysis and return summary statistics
apps/miroflow-agent/benchmarks/check_progress/common.py:590
↓ 9 callersFunctionget_utc_plus_8_time
Get UTC+8 timezone current time string
apps/miroflow-agent/src/logging/task_logger.py:106
↓ 9 callersMethodtool_call
Send tool_call event. Args: tool_name: Name of the tool being called payload: Tool call arguments or results
apps/miroflow-agent/src/core/stream_handler.py:193
↓ 8 callersFunctionapiCall
(url, options = {})
apps/visualize-trace/static/js/script.js:276
↓ 8 callersFunctionrenderContent
(content, isBrowserAgent = false)
apps/visualize-trace/static/js/script.js:256
↓ 8 callersMethodsave
Save as a single JSON file
apps/miroflow-agent/src/logging/task_logger.py:317
↓ 7 callersMethodcall_tool
Call a tool while maintaining the session.
libs/miroflow-tools/src/miroflow_tools/mcp_servers/browser_session.py:39
↓ 7 callersMethodconnect
Connect to the MCP server and initialize the session.
libs/miroflow-tools/src/miroflow_tools/mcp_servers/browser_session.py:26
↓ 7 callersFunctionupdateNavigationButtons
()
apps/visualize-trace/static/js/script.js:403
↓ 6 callersFunctioncreate_progress_bar
Create a visual progress bar for percentage display
apps/miroflow-agent/benchmarks/check_progress/common.py:35
↓ 5 callersMethodhandle_llm_call
Unified LLM call and logging processing. Args: system_prompt: System prompt for the LLM message_history: Con
apps/miroflow-agent/src/core/answer_generator.py:80
↓ 5 callersFunctionverify_answer_gaia_validation_text_103
( question: str, target: str, predicted_answer: str )
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:361
↓ 4 callersMethodanalyze_browser_session_flow
Analyze browser session conversation flow
apps/visualize-trace/trace_analyzer.py:284
↓ 4 callersMethodclose
Close client connection. Note: For async clients (AsyncOpenAI, AsyncAnthropic), the connection will be closed when the client object
apps/miroflow-agent/src/llm/base_client.py:303
↓ 4 callersMethodend_agent
Send end_of_agent event. Args: agent_name: Internal name of the agent agent_id: The agent ID to end
apps/miroflow-agent/src/core/stream_handler.py:129
↓ 4 callersMethodend_llm
Send end_of_llm event. Args: agent_name: Name of the agent that finished LLM call
apps/miroflow-agent/src/core/stream_handler.py:161
↓ 4 callersFunctionfind_earliest_start_time
Find the earliest start time from all completed files
apps/miroflow-agent/benchmarks/check_progress/common.py:54
↓ 4 callersFunctionfind_latest_end_time
Find the latest end time from all completed files
apps/miroflow-agent/benchmarks/check_progress/common.py:81
↓ 4 callersFunctionfix_server_name_in_text
Fix incorrect server_name and tool_name in MCP XML tool calls. Uses the cached tool_server_mapping (parsed from system prompt) to determine
apps/miroflow-agent/src/utils/parsing_utils.py:75
↓ 4 callersFunctionformat_todos_as_markdown
Format task plan as markdown checklist. Args: todos: List of task items message: Optional message to display at the top
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/task_planner.py:62
↓ 4 callersFunctiongenerate_agent_summarize_prompt
Generate the final summarization prompt for an agent. Creates prompts that instruct agents to summarize their work and provide final ans
apps/miroflow-agent/src/utils/prompt_utils.py:236
↓ 4 callersMethodget_all_tool_definitions
Connect to all configured servers and get their tool definitions. Returns a list suitable for passing to the Prompt generator.
libs/miroflow-tools/src/miroflow_tools/manager.py:104
↓ 4 callersFunctionload_todos
Load task plan from the JSON file.
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/task_planner.py:38
↓ 4 callersFunctionnormalize_str
Normalize a string by: - Removing all white spaces - Optionally removing punctuation (if remove_punct is True) - Conv
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:247
↓ 4 callersFunctionshowError
(message)
apps/visualize-trace/static/js/script.js:74
↓ 4 callersFunctionshowSuccess
(message)
apps/visualize-trace/static/js/script.js:80
↓ 4 callersMethodstart_agent
Send start_of_agent event. Args: agent_name: Internal name of the agent display_name: Optional display name
apps/miroflow-agent/src/core/stream_handler.py:107
↓ 4 callersMethodstart_llm
Send start_of_llm event. Args: agent_name: Name of the agent making the LLM call display_name: Optional disp
apps/miroflow-agent/src/core/stream_handler.py:145
↓ 3 callersFunction_append_show_text
(tool_entry: dict, delta: str)
apps/gradio-demo/main.py:453
↓ 3 callersMethod_calculate_pass_at_n
Calculate Pass@n: number of tasks with at least one correct answer across all runs Returns: Tuple[int, float]: (pass_at_n_count,
apps/miroflow-agent/benchmarks/check_progress/common.py:661
↓ 3 callersMethod_check_duplicate_query
Check for duplicate queries and handle rollback if needed. Args: tool_name: Name of the tool being called ar
apps/miroflow-agent/src/core/orchestrator.py:257
↓ 3 callersMethod_extract_boxed_content
r""" Extract the content of the last \boxed{...} occurrence in the given text. Supports: - Arbitrary levels of nested brace
apps/miroflow-agent/src/io/output_formatter.py:18
↓ 3 callersMethod_extract_task_id
Extract task ID from filename
apps/miroflow-agent/benchmarks/check_progress/common.py:403
↓ 3 callersFunction_is_empty_payload
(value)
apps/gradio-demo/main.py:463
↓ 3 callersMethod_record_query
Record a successful query execution.
apps/miroflow-agent/src/core/orchestrator.py:318
↓ 3 callersFunction_render_markdown
(state: dict)
apps/gradio-demo/main.py:633
↓ 3 callersMethodaverage_run_accuracy
Calculate overall accuracy (mean) and standard deviation across individual runs
apps/miroflow-agent/benchmarks/check_progress/common.py:271
↓ 3 callersFunctionconvert_html_to_md
Placeholder for HTML to Markdown conversion function In the original class, this would call self._convert()
apps/miroflow-agent/src/io/input_handler.py:750
↓ 3 callersFunctioncreate_pipeline_components
Creates and initializes the core components of the agent pipeline. Args: cfg: The Hydra configuration object. Returns:
apps/miroflow-agent/src/core/pipeline.py:180
↓ 3 callersFunctiondecode_http_urls_in_dict
Traverse all values in the data structure: - If it's a string starting with http, apply urllib.parse.unquote - If it's a list, recursivel
libs/miroflow-tools/src/miroflow_tools/mcp_servers/utils/url_unquote.py:117
↓ 3 callersFunctionestimate_completion_time
Estimate completion time based on overall progress rate from all completed tasks
apps/miroflow-agent/benchmarks/check_progress/common.py:126
↓ 3 callersFunctionexecute_task_pipeline
Executes the full pipeline for a single task. Args: cfg: The Hydra configuration object. task_id: A unique identifier for th
apps/miroflow-agent/src/core/pipeline.py:35
↓ 3 callersMethodexecute_tool_call
Execute a single tool call. :param server_name: Server name :param tool_name: Tool name :param arguments: Tool argume
libs/miroflow-tools/src/miroflow_tools/manager.py:198
↓ 3 callersFunctionfilter_none_values
Filter out keys with None values from arguments dictionary. Args: arguments: A dictionary to filter, or any other value Returns
apps/miroflow-agent/src/utils/parsing_utils.py:124
↓ 3 callersFunctionformatTimestamp
(timestamp)
apps/visualize-trace/static/js/script.js:86
↓ 3 callersMethodformat_tool_result_for_user
Format tool execution results to be fed back to LLM as user messages. Only includes necessary information (results or errors). Long
apps/miroflow-agent/src/io/output_formatter.py:95
↓ 3 callersMethodget_browser_agent_sessions
Get all browser agent sessions
apps/visualize-trace/trace_analyzer.py:117
↓ 3 callersMethodget_log_dir
Get the log directory for the current benchmark and model.
apps/miroflow-agent/benchmarks/common_benchmark.py:158
↓ 3 callersFunctionloadTraceFile
()
apps/visualize-trace/static/js/script.js:464
↓ 3 callersFunctionparse_match_result
(match)
apps/miroflow-agent/benchmarks/evaluators/eval_utils.py:657
↓ 3 callersMethodpost_process_tool_call_result
Process tool call results. Only in demo mode: truncate scrape results to 20,000 chars to support more conversation turns.
apps/miroflow-agent/src/core/tool_executor.py:214
↓ 3 callersMethodput
(self, item)
apps/gradio-demo/main.py:289
↓ 3 callersMethodput_nowait_threadsafe
Put data from other threads - use direct queue put for lower latency
apps/gradio-demo/main.py:192
↓ 3 callersFunctionrefreshFileList
(directory = null)
apps/visualize-trace/static/js/script.js:315
↓ 3 callersFunctionsafe_get_text
Safely extract text content, handling different content formats
apps/collect-trace/utils/converters/convert_oai_to_chatml.py:45
↓ 3 callersFunctionsave_todos
Save task plan to the JSON file.
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/task_planner.py:51
↓ 3 callersFunctiontruncate_result
Truncate result to MAX_RESULT_LEN. Args: result: The full result string to potentially truncate Returns: Truncated resu
libs/miroflow-tools/src/miroflow_tools/mcp_servers/python_mcp_server.py:73
↓ 3 callersFunctionupdateActiveNavItem
(activeIndex, browserStepId = null)
apps/visualize-trace/static/js/script.js:1118
↓ 2 callersFunctionDocxConverter
Convert a DOCX file to Markdown format. Uses mammoth library to first convert DOCX to HTML, then converts the HTML to Markdown. Arg
apps/miroflow-agent/src/io/input_handler.py:791
↓ 2 callersFunctionHtmlConverter
Convert an HTML file to Markdown format. Args: local_path: Path to the HTML file to convert. Returns: DocumentConverter
apps/miroflow-agent/src/io/input_handler.py:775
↓ 2 callersFunctionPptxConverter
Converts PPTX files to Markdown. Supports headings, tables and images with alt text. Args: local_path: Path to the PPTX file Re
apps/miroflow-agent/src/io/input_handler.py:1058
↓ 2 callersFunctionXlsxConverter
Converts Excel files to Markdown using openpyxl. Preserves color formatting and other cell styling information. Args: local_path
apps/miroflow-agent/src/io/input_handler.py:810
↓ 2 callersFunction_calculate_averages
Calculates and adds average values to a summary block.
apps/miroflow-agent/src/logging/summary_time_cost.py:47
↓ 2 callersMethod_calculate_turns
Calculate number of turns from task data (excluding system prompt)
apps/miroflow-agent/benchmarks/check_progress/common.py:496
↓ 2 callersFunction_encode_audio_file
Encode audio file to base64 and determine format.
libs/miroflow-tools/src/miroflow_tools/mcp_servers/audio_mcp_server.py:102
↓ 2 callersMethod_estimate_tokens
Use tiktoken to estimate the number of tokens in text
apps/miroflow-agent/src/llm/providers/anthropic_client.py:281
↓ 2 callersMethod_estimate_tokens
Use tiktoken to estimate the number of tokens in text
apps/miroflow-agent/src/llm/providers/openai_client.py:371
↓ 2 callersFunction_generate_audio_caption
Generate a caption for an audio file using OpenAI's audio transcription. Args: audio_path: Path to the audio file Returns:
apps/miroflow-agent/src/io/input_handler.py:123
↓ 2 callersFunction_generate_image_caption
Generate a caption for an image using OpenAI's GPT-4o vision model. Args: image_path: Path to the image file Returns: C
apps/miroflow-agent/src/io/input_handler.py:58
↓ 2 callersFunction_generate_video_caption
Generate a caption for a video using OpenAI's GPT-4o vision model. Args: video_path: Path to the video file Returns: Ca
apps/miroflow-agent/src/io/input_handler.py:155
↓ 2 callersFunction_get_audio_duration
Get audio duration in seconds. Tries to use wave (for .wav), then falls back to mutagen (for mp3, etc). Returns 0.0 if duration cannot b
libs/miroflow-tools/src/miroflow_tools/mcp_servers/audio_mcp_server.py:66
↓ 2 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.py:25
↓ 2 callersMethod_get_latest_task_files
Get the latest task file for each task ID in a run directory
apps/miroflow-agent/benchmarks/check_progress/common.py:408
↓ 2 callersMethod_handle_response_format_issues
Handle MCP tag format errors and refusal keywords. Args: assistant_response_text: The LLM response text mess
apps/miroflow-agent/src/core/orchestrator.py:180
↓ 2 callersMethod_is_judge_correct
Determine if LLM judge result indicates correct answer
apps/miroflow-agent/benchmarks/check_progress/common.py:477
↓ 2 callersMethod_is_task_completed
Check if a task is completed based on its data
apps/miroflow-agent/benchmarks/check_progress/common.py:464
↓ 2 callersMethod_parse_new_format_tool_name
Parse new format tool name Args: tool_name: New format tool name, for example: - "tool-server_name
apps/visualize-trace/trace_analyzer.py:36
↓ 2 callersMethod_remove_tool_result_from_messages
Remove tool results from messages Args: messages: List of message dictionaries keep_tool_result: Number of tool resul
apps/miroflow-agent/src/llm/base_client.py:124
↓ 2 callersMethod_resolve_tool_name
Resolve the actual tool name by combining server_name and tool_name if server_name is not 'default'.
apps/lobehub-compatibility/MiroThinkerToolParser.py:95
↓ 2 callersMethod_should_block_hf_scraping
Check if we should block scraping of Hugging Face datasets/spaces. :param tool_name: The name of the tool being called :param
libs/miroflow-tools/src/miroflow_tools/manager.py:87
↓ 2 callersFunction_spinner_markup
(running: bool)
apps/gradio-demo/main.py:869
↓ 2 callersFunction_update_summary_data
Updates a summary block with data from a single result.
apps/miroflow-agent/src/logging/summary_time_cost.py:25
↓ 2 callersMethodanalyze_conversation_flow
Analyze conversation flow, including tool calls
apps/visualize-trace/trace_analyzer.py:168
↓ 2 callersFunctionbootstrap_logger
Configure the miroflow_agent logger with consistent formatting
apps/miroflow-agent/src/logging/task_logger.py:72
↓ 2 callersMethodclose
(self)
apps/gradio-demo/main.py:202
↓ 2 callersMethodconvert_soup
(self, soup: Any)
apps/miroflow-agent/src/io/input_handler.py:738
↓ 2 callersFunctionconvert_to_json_chatml
Convert message list to OpenAI JSON format ChatML Filter out messages with role 'tool', convert content None to empty string
apps/collect-trace/utils/converters/convert_non_oai_to_chatml.py:10
↓ 2 callersFunctioncreateToolCallHTML
(tool)
apps/visualize-trace/static/js/script.js:692
↓ 2 callersFunctioncreate_mcp_server_parameters
Create MCP server configurations based on agent configuration. Dynamically generates StdioServerParameters for each tool specified in the
apps/miroflow-agent/src/config/settings.py:69
↓ 2 callersMethodensure_summary_context
Check if current message_history + summary_prompt will exceed context If it will exceed, remove the last assistant-user pair and retu
apps/miroflow-agent/src/llm/providers/openai_client.py:392
↓ 2 callersFunctionexpose_sub_agents_as_tools
Convert sub-agent configurations into tool definitions for the main agent. This allows the main agent to invoke sub-agents (like the browsin
apps/miroflow-agent/src/config/settings.py:383
↓ 2 callersFunctionextract_and_save_chat_history
Extract message history from log data and save as ChatML format Args: log_data: Log data dictionary output_dir: Output direc
apps/collect-trace/utils/converters/convert_non_oai_to_chatml.py:40
↓ 2 callersFunctionextract_llm_response_text
Extract text from LLM response, excluding <use_mcp_tool> tags. Stops immediately when <use_mcp_tool> tag is encountered, returning only
apps/miroflow-agent/src/utils/parsing_utils.py:279
↓ 2 callersFunctionextract_message_history_from_log
Extract message history from log data and convert to OpenAI ChatML format Args: log_data: Log data dictionary Returns:
apps/collect-trace/utils/converters/convert_oai_to_chatml.py:180
↓ 2 callersFunctionextract_step_message
(data, target_step_name)
apps/collect-trace/utils/converters/convert_oai_to_chatml.py:266
next →1–100 of 534, ranked by callers