MCPcopy Create free account

hub / github.com/modelscope/ms-agent / functions

Functions2,117 in github.com/modelscope/ms-agent

↓ 1,097 callersMethodget
(self)
ms_agent/memory/default_memory.py:54
↓ 79 callersFunctionget_logger
Get logging logger Args: log_file: Log filename, if specified, file handler will be added to logger. If None, defaults to 'm
ms_agent/utils/logger.py:33
↓ 78 callersMethodwrite
(self, _: str)
webui/backend/deep_research_worker.py:25
↓ 62 callersFunctionparse_imports
Parse imports from code content (main entry point for backward compatibility) IMPORTANT: This function filters out external packages and onl
ms_agent/utils/parser_utils.py:819
↓ 61 callersMethodload
( self, urls_or_files: list[str], max_num_pages: Optional[int] = None,
ms_agent/tools/docling/doc_loader.py:313
↓ 51 callersMethodsearch
Perform a search using the Exa API with the provided search request parameters. :param search_request: An instance of ExaSearchReque
ms_agent/tools/search/exa/search.py:30
↓ 49 callersMethodadd
( self, messages: List[Message], user_id: Optional[List[str]] = None, agent_id
ms_agent/memory/default_memory.py:433
↓ 47 callersMethodresolve
(self, request: Optional[gr.Request])
ms_agent/app/fin_research.py:192
↓ 46 callersMethodupdate
Update status with agent name, phase, and optional output
ms_agent/app/fin_research.py:1864
↓ 43 callersMethodrun
(self)
setup.py:125
↓ 30 callersMethodparse
Parse a PDF file and generate various outputs including layout, markdown, content_list, etc. Args: f_path (str): The pat
ms_agent/tools/mineru/pdf_parser.py:27
↓ 26 callersMethodfrom_config
Instantiate an LLM instance. Args: config(`DictConfig`): The omegaconf.DictConfig object. Returns: The LLM i
ms_agent/llm/llm.py:63
↓ 26 callersMethodgenerate
Generate response by the given messages. Args: messages(`List[Message]`): The previous messages. model(`Optional[str]
ms_agent/llm/llm.py:26
↓ 24 callersFunctionmain
Start the server
webui/backend/main.py:64
↓ 22 callersMethoddecode
Decode a list of token IDs back into a natural text string. Args: token_ids: List of token IDs to decode. Returns:
ms_agent/utils/tokenizer_util.py:32
↓ 22 callersFunctionfile_lock
(lock_dir: str, filename: str, timeout: float = 120.0)
ms_agent/utils/utils.py:746
↓ 21 callersFunction_json_dumps
(data: Any)
projects/deep_research/v2/tools/report_tool.py:23
↓ 20 callersMethod_build_execution_input
Build execution input for a skill, linking outputs from dependencies. Args: skill_id: The skill to build input for.
ms_agent/skill/auto_skills.py:467
↓ 20 callersFunction_json_dumps
(data: Any)
projects/deep_research/v2/tools/evidence_tool.py:18
↓ 19 callersMethodrun
( self, messages: Union[List[Message], str], **kwargs )
ms_agent/agent/llm_agent.py:1188
↓ 18 callersFunction_ensure_dir
(path: str)
projects/deep_research/v2/tools/evidence_tool.py:22
↓ 17 callersMethod_load_config
Load configuration from file
webui/backend/config_manager.py:79
↓ 17 callersMethodfilter
(self, record)
ms_agent/app/fin_research.py:38
↓ 16 callersMethod_run_skill_retrieval_test
Helper method to run skill retrieval test. Args: queries: List of user queries to test. skill_name: Name of
tests/skills/test_claude_skills.py:138
↓ 16 callersMethodsend_to_session
Send message to all clients in a session
webui/backend/websocket_handler.py:49
↓ 15 callersMethoddump
Dump the spec to the specified output directory. Args: output_dir (str): The directory to dump the spec files.
ms_agent/skill/spec.py:31
↓ 15 callersMethodpush
Push files to the remote hub.
ms_agent/utils/push_to_hub.py:29
↓ 15 callersMethodrun
Main method to execute the agent. This method should define the logic of how the agent processes input and generates output messages
ms_agent/agent/base.py:49
↓ 14 callersFunctionbuild_download_state
Return a DownloadButton update payload compatible with newer Gradio versions.
ms_agent/app/fin_research.py:1279
↓ 14 callersMethodexecute_python_code
Execute Python code string. Uses sandbox mode or local mode based on use_sandbox setting. Args: code: Python co
ms_agent/skill/container.py:952
↓ 14 callersMethodlog_output
Log formatted output with a tag prefix. Args: content (Union[str, list]): Content to log. Can be a string or a list (for
ms_agent/agent/llm_agent.py:786
↓ 13 callersMethodappend_to
Append to with automatic attribute injection.
examples/skills/claude_skills/docx/scripts/document.py:257
↓ 13 callersMethodfrom_task
Instantiate an LLM instance. Args: config_dir_or_id(`str`): The local task directory or id in the modelscope repository.
ms_agent/llm/llm.py:45
↓ 13 callersMethodsave
Save spec to markdown file.
ms_agent/skill/container.py:316
↓ 12 callersMethod_emit_event
(self, event_type: str, payload: Dict[str, Any])
webui/backend/deep_research_eventizer.py:64
↓ 12 callersMethodbuild
(cls, config_dir_or_id: Optional[str] = None, config: Optional[DictConfig] = None,
ms_agent/agent/loader.py:18
↓ 12 callersMethodencode
Encode text into token IDs. Args: content: Input text string. Returns: List of token IDs.
ms_agent/utils/tokenizer_util.py:19
↓ 12 callersFunctionrun_async
Helper to run async coroutines in sync context.
tests/skills/test_claude_skills.py:93
↓ 12 callersMethodupdate_session
Update session data
webui/backend/session_manager.py:54
↓ 11 callersMethod_paths
(self)
projects/deep_research/v2/tools/evidence_tool.py:348
↓ 11 callersMethod_write
(self, path: str, content: str)
tests/config/test_prompt_files.py:11
↓ 11 callersFunctionbaostock_session
BaoStock session context manager with connection reuse
ms_agent/tools/findata/baostock_source.py:82
↓ 11 callersFunctioncreate_mock_skill
Create a minimal mock SkillSchema backed by a real directory. Args: skill_id: Unique skill identifier (e.g., 'skill_a@latest').
tests/skills/test_dag_upstream_downstream.py:127
↓ 11 callersFunctionget_bounding_box_messages
(fields_json_stream)
examples/skills/claude_skills/pdf/scripts/check_bounding_boxes.py:18
↓ 11 callersFunctionget_system_status_html
Get system status HTML
ms_agent/app/doc_research.py:1094
↓ 11 callersFunctioninstall_package
Check and install a package using pip. Note: The `package_name` may not be the same as the `import_name`. Args: package_name (s
ms_agent/utils/utils.py:633
↓ 10 callersMethod_call_sources
Call query function for multiple data sources
ms_agent/tools/findata/hybrid_source.py:72
↓ 10 callersMethod_create_error_response
Create standardized error response. Args: error: The exception that occurred operation: Name of the operatio
ms_agent/tools/findata/findata_fetcher.py:318
↓ 10 callersMethod_emit_chunk_event
(self, event_type: str, data: Dict[str, Any])
ms_agent/tools/agent_tool.py:385
↓ 10 callersFunction_ensure_dir
(path: str)
projects/deep_research/v2/tools/report_tool.py:27
↓ 10 callersMethod_execute_with_rate_limit
Execute a function with rate limiting if configured. Args: func: The function to execute ( can be sync or async)
ms_agent/tools/findata/findata_fetcher.py:218
↓ 10 callersMethod_get_source
Select data source based on stock code
ms_agent/tools/findata/hybrid_source.py:59
↓ 10 callersMethod_query_to_dataframe
Convert BaoStock query result to DataFrame
ms_agent/tools/findata/baostock_source.py:124
↓ 10 callersMethod_save_dataframe
Save DataFrame to file in financial_data directory. Args: df: DataFrame to save filename: Filename (without
ms_agent/tools/findata/findata_fetcher.py:256
↓ 10 callersMethodcreate_json_stream
Helper to create a JSON stream from data
examples/skills/claude_skills/pdf/scripts/check_bounding_boxes_test.py:11
↓ 10 callersMethodexclude_func
(self, tool_config: DictConfig)
ms_agent/tools/base.py:22
↓ 10 callersMethodgenerate
Generates a response based on the given conversation history and optional tools. Args: messages (`List[Message]`): The conversati
ms_agent/llm/openai_llm.py:163
↓ 10 callersMethodget_skill_dag
Get skill DAG for a query without executing. Args: query: User's query string. Returns: SkillDAGRes
ms_agent/agent/llm_agent.py:242
↓ 9 callersFunction_ensure_dir
(path: str)
ms_agent/tools/todolist_tool.py:21
↓ 9 callersMethod_load_index_locked
Load index.json, creating empty structure if not exists.
projects/deep_research/v2/tools/evidence_tool.py:740
↓ 9 callersFunction_make_config
Minimal config object compatible with ToolBase usage in this repo. Keep it SimpleNamespace-based so it's easy to tweak scenarios.
tests/tools/test_server_tools_smoke.py:25
↓ 9 callersMethod_save_config
Save configuration to file
webui/backend/config_manager.py:107
↓ 9 callersMethodadd_record
Add an execution record to the spec.
ms_agent/skill/container.py:258
↓ 9 callersMethodlink_upstream
Link upstream skill output for downstream consumption.
ms_agent/skill/container.py:269
↓ 9 callersMethodmain
()
tests/llm/test_anthropic.py:87
↓ 9 callersMethodparse_json_from_content
Parses the given text content to extract JSON format data. It can parse JSON embedded within triple backticks (```json...```)
ms_agent/workflow/deep_research/research_workflow.py:259
↓ 9 callersFunctionrun_async
Run an async coroutine in a new event loop (sync context helper).
tests/skills/test_dag_upstream_downstream.py:117
↓ 9 callersMethodto_dict
Convert the request parameters to a dictionary.
ms_agent/tools/search/search_base.py:80
↓ 8 callersMethod_convert_code
Convert code to AKShare symbol for a given market. - A-share: input like sh.600000/sz.000001 -> 600000/000001 for functions expecting plain d
ms_agent/tools/findata/akshare_source.py:45
↓ 8 callersMethod_create_success_response
Create success response with sample data. Args: df: Full DataFrame saved_path: Path where data was saved
ms_agent/tools/findata/findata_fetcher.py:277
↓ 8 callersMethod_resolve_js_path
Resolve JavaScript/TypeScript import path to file Returns path relative to output_dir with file extension. Returns None for external
ms_agent/utils/parser_utils.py:536
↓ 8 callersFunction_write_text
(path: str, content: str)
projects/deep_research/v2/tools/report_tool.py:38
↓ 8 callersMethodget_node
Get a DOM element by tag and identifier. Finds an element by either its line number in the original file or by matching attr
examples/skills/claude_skills/docx/scripts/utilities.py:76
↓ 8 callersFunctionprogress_callback
(value, desc)
ms_agent/app/doc_research.py:993
↓ 8 callersMethodshutdown
Shutdown all executors.
ms_agent/workflow/deep_research/research_workflow_beta.py:61
↓ 8 callersMethodstart
Start the LSP server process
ms_agent/tools/code_server/lsp_code_server.py:34
↓ 7 callersMethod_chat_async
Non-blocking wrapper with controlled concurrency.
ms_agent/workflow/deep_research/research_workflow_beta.py:228
↓ 7 callersMethod_inject_attributes_to_nodes
Inject RSID, author, and date attributes into DOM nodes where applicable. Adds attributes to elements that support them: - w:r: gets
examples/skills/claude_skills/docx/scripts/document.py:118
↓ 7 callersFunction_json_dumps
(data: Any)
ms_agent/tools/search/websearch_tool.py:26
↓ 7 callersFunction_now_iso
()
projects/deep_research/v2/tools/report_tool.py:19
↓ 7 callersMethod_paths
(self)
projects/deep_research/v2/tools/report_tool.py:156
↓ 7 callersMethodcall_tool
Route tool calls to appropriate handler.
ms_agent/tools/search/websearch_tool.py:655
↓ 7 callersMethodget_real_path
(self, path)
ms_agent/tools/filesystem_tool.py:635
↓ 7 callersMethodto_dict
(self)
ms_agent/llm/utils.py:70
↓ 7 callersFunctionuseSession
()
webui/frontend/src/context/SessionContext.tsx:570
↓ 6 callersMethod__init__
(self, breakdown_prompt: str = None)
ms_agent/workflow/deep_research/principle.py:6
↓ 6 callersMethod_chat
(self, messages: List[Dict[str, Any]], tools: List[Dict[str, Any]] = None,
ms_agent/workflow/deep_research/research_workflow.py:113
↓ 6 callersMethod_clean_log_prefix
Remove log prefixes like [INFO:ms_agent] [agent_name]
webui/backend/agent_runner.py:635
↓ 6 callersMethod_flush_chat_response
Send final chat response with done=True
webui/backend/agent_runner.py:729
↓ 6 callersFunction_generate_hex_id
Generate random 8-character hex ID for para/durable IDs. Values are constrained to be less than 0x7FFFFFFF per OOXML spec: - paraId must be <
examples/skills/claude_skills/docx/scripts/document.py:601
↓ 6 callersFunction_stringify_content
(content: Any)
webui/backend/deep_research_eventizer.py:7
↓ 6 callersMethod_write_reasoning
(self, text: str)
ms_agent/agent/llm_agent.py:585
↓ 6 callersFunctioncheck_user_auth
Check user authentication status
ms_agent/app/doc_research.py:201
↓ 6 callersMethodemit
(self, event: Dict[str, Any])
webui/backend/deep_research_worker.py:37
↓ 6 callersMethodflush
(self)
webui/backend/deep_research_worker.py:28
↓ 6 callersMethodget_project
Get a specific project by ID
webui/backend/project_discovery.py:162
↓ 6 callersFunctionget_service_config
(service_name: str)
ms_agent/utils/constants.py:107
↓ 6 callersMethodget_tools
List tools available. Returns: A Dict of {server_name: tools}
ms_agent/tools/base.py:52
↓ 6 callersFunctionget_user_status_html
(request: gr.Request)
ms_agent/app/doc_research.py:1089
↓ 6 callersMethodinsert_after
Insert after with automatic attribute injection.
examples/skills/claude_skills/docx/scripts/document.py:245
next →1–100 of 2,117, ranked by callers