MCPcopy Create free account

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

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

↓ 6 callersFunctionmonotonic
()
ms_agent/utils/stats.py:117
↓ 6 callersMethodparse_args
()
ms_agent/config/config.py:126
↓ 6 callersMethodretrieve
(self, query: str, limit: int = 5, score_
ms_agent/rag/llama_index_rag.py:198
↓ 6 callersMethodrun
(self, messages, **kwargs)
projects/singularity_cinema/segment/agent.py:100
↓ 6 callersMethodrun
(self, inputs: Union[str, List[Message]], **kwargs)
examples/workflow/custom_code.py:9
↓ 6 callersMethodsend_notification
Send a JSON-RPC notification to the LSP server
ms_agent/tools/code_server/lsp_code_server.py:101
↓ 6 callersMethodto_dict_clean
(self)
ms_agent/llm/utils.py:73
↓ 5 callersMethod_collect_output_files
Collect output files from output directory.
ms_agent/skill/container.py:517
↓ 5 callersMethod_create_record
Create a new execution record.
ms_agent/skill/container.py:526
↓ 5 callersMethod_ensure_auto_skills
Ensure AutoSkills is initialized (lazy initialization). Returns: True if AutoSkills is available and initialized.
ms_agent/agent/llm_agent.py:134
↓ 5 callersMethod_execute_search
Execute search using the specified engine. The search pipeline with optimization: 1. Execute search query 2. (Optiona
ms_agent/tools/search/websearch_tool.py:744
↓ 5 callersMethod_load_outline
Load outline.json.
projects/deep_research/v2/tools/report_tool.py:511
↓ 5 callersFunction_message_from_data
(data: Any)
ms_agent/tools/agent_tool.py:60
↓ 5 callersFunction_now_iso
()
ms_agent/tools/todolist_tool.py:12
↓ 5 callersMethod_truncate
(text: str, limit: int)
ms_agent/tools/agent_tool.py:820
↓ 5 callersMethodadd_message
Add a message to a session
webui/backend/session_manager.py:81
↓ 5 callersFunctionbuild_timer_signal
(elapsed_seconds: Optional[int] = None)
ms_agent/app/fin_research.py:1469
↓ 5 callersMethodgenerate
(self, messages: List[Message], tools: Optional[List[Tool]] = None,
ms_agent/llm/anthropic_llm.py:141
↓ 5 callersFunctionget_llm_config
Get LLM configuration from environment variables.
tests/skills/test_claude_skills.py:56
↓ 5 callersMethodget_session
Get session by ID
webui/backend/session_manager.py:50
↓ 5 callersFunctionget_skills_path
Get the path to claude_skills directory.
tests/skills/test_claude_skills.py:73
↓ 5 callersFunctionget_work_dir
Get work directory from env or create temp directory.
tests/skills/test_claude_skills.py:84
↓ 5 callersMethodloop_callback
Trigger a specific callback hook across all registered callbacks. Args: point (str): Name of the callback method to call
ms_agent/agent/llm_agent.py:497
↓ 5 callersMethodupdate
Thread-safe progress update.
ms_agent/workflow/deep_research/research_workflow_beta.py:80
↓ 4 callersMethod__init__
(self)
ms_agent/utils/constants.py:94
↓ 4 callersMethod_assert_dag_result
Assert common DAG result validations.
tests/skills/test_claude_skills.py:446
↓ 4 callersMethod_call_llm
Calls the OpenAI chat completion API with the provided messages and tools. Args: messages (`List[Message]`): Formatted message hi
ms_agent/llm/openai_llm.py:199
↓ 4 callersFunction_create_multimodal_config
创建多模态配置 Args: stream: 是否启用流式输出 Returns: Config: 配置好的 Config 对象,如果 API Key 未设置则返回 None
examples/agent/test_llm_agent_multimodal.py:23
↓ 4 callersMethod_execute_in_sandbox
Execute code in EnclaveSandbox.
ms_agent/skill/container.py:852
↓ 4 callersFunction_find_report_md
Heuristic report locator: - v2 reporter tool: <workdir>/reports/report.md - legacy workflows: <workdir>/report.md - fallback: <workdi
projects/deep_research/v2/eval/dr_bench_runner.py:91
↓ 4 callersMethod_fix_manim_code_impl
(llm, error_log, fix_history, manim_code, manim_requirement, class_name, content,
projects/singularity_cinema/render_animation/render_manim.py:440
↓ 4 callersMethod_get_skills_config
Get skills configuration from agent config.
ms_agent/agent/llm_agent.py:128
↓ 4 callersMethod_llm_generate
Generate LLM response from prompt.
ms_agent/skill/auto_skills.py:1270
↓ 4 callersMethod_local_run_subprocess
Run subprocess locally with security restrictions. Cross-platform support with timeout and resource limits. Args:
ms_agent/skill/container.py:548
↓ 4 callersFunction_now_iso
()
projects/deep_research/v2/tools/evidence_tool.py:14
↓ 4 callersMethod_parse_fragment
Parse XML fragment and return list of imported nodes. Args: xml_content: String containing XML fragment Returns
examples/skills/claude_skills/docx/scripts/utilities.py:309
↓ 4 callersMethod_parse_json_response
Parse JSON from LLM response with robust extraction.
ms_agent/skill/auto_skills.py:1203
↓ 4 callersMethod_parse_sandbox_result
Parse sandbox execution results into stdout, stderr, exit_code.
ms_agent/skill/container.py:833
↓ 4 callersMethod_process_html_inline_elements
Process HTML inline elements and add formatted runs to paragraph
ms_agent/utils/markdown_converter.py:238
↓ 4 callersFunction_safe_read_json
(path: str)
projects/deep_research/v2/tools/report_tool.py:31
↓ 4 callersMethod_save_index_locked
Save index.json.
projects/deep_research/v2/tools/evidence_tool.py:765
↓ 4 callersMethod_save_outline
Save outline.json and render outline.md.
projects/deep_research/v2/tools/report_tool.py:515
↓ 4 callersMethod_security_check
Check code for potentially dangerous patterns. Args: code: Code string to check. is_local: If True, use stri
ms_agent/skill/container.py:462
↓ 4 callersFunction_terminate_process
Best-effort terminate/kill a subprocess without raising. We intentionally keep this conservative: first SIGTERM, then SIGKILL if needed.
projects/deep_research/v2/eval/dr_bench_runner.py:203
↓ 4 callersMethod_terminate_process
(proc: Optional[mp.Process], *, reason: str)
ms_agent/tools/agent_tool.py:421
↓ 4 callersMethodcall_tool
Call a tool. Args: server_name(`str`): The server name of the tool. tool_name: The tool name. tool_args:
ms_agent/tools/base.py:79
↓ 4 callersMethodcleanup
Cleanup resources.
ms_agent/tools/search/websearch_tool.py:558
↓ 4 callersMethodconnect
Initialize search engines and content fetcher.
ms_agent/tools/search/websearch_tool.py:495
↓ 4 callersMethoddelete
(self, user_id: Optional[str] = None, agent_id: Optional[str] = None,
ms_agent/memory/default_memory.py:483
↓ 4 callersMethodestimate_tokens
Estimate token count from text. Simple heuristic: ~4 chars per token for mixed content.
ms_agent/memory/condenser/context_compressor.py:58
↓ 4 callersMethodexecute
(self)
ms_agent/cli/ui.py:55
↓ 4 callersFunctiongetLevelColor
(level: LogEntry['level'])
webui/frontend/src/components/LogViewer.tsx:43
↓ 4 callersMethodget_tool_name
Get the tool name for this engine.
ms_agent/tools/search/search_base.py:181
↓ 4 callersFunctionhandleMCPServerChange
(name: string, field: keyof MCPServer, value: any)
webui/frontend/src/components/SettingsDialog.tsx:291
↓ 4 callersMethodinitialize
Initialize the optimizer (only summarizer needs initialization).
ms_agent/tools/search/content_optimizer.py:916
↓ 4 callersMethodinitialize
Initialize the LSP server and wait for it to be ready
ms_agent/tools/code_server/lsp_code_server.py:147
↓ 4 callersMethodinsert_before
Insert before with automatic attribute injection.
examples/skills/claude_skills/docx/scripts/document.py:251
↓ 4 callersFunctionis_package_installed
Checks if a package is installed by attempting to import it. Args: package_or_import_name: The name of the package or import as a string
ms_agent/utils/utils.py:620
↓ 4 callersMethodload_env
Load .env into the process env, then merge with ``envs`` and return.
ms_agent/config/env.py:32
↓ 4 callersFunctionnow_iso
()
ms_agent/utils/stats.py:113
↓ 4 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path
setup.py:26
↓ 4 callersMethodrender
(self, elapsed_seconds: Optional[int] = None)
ms_agent/app/fin_research.py:1912
↓ 4 callersMethodstop
Stop the agent
webui/backend/agent_runner.py:104
↓ 4 callersFunctiontext_hash
Encodes a given text using SHA256 and returns the last 8 characters of the hexadecimal representation. Args: text (str): The inp
ms_agent/utils/utils.py:261
↓ 4 callersMethodwrite_note
Write a new evidence note.
projects/deep_research/v2/tools/evidence_tool.py:850
↓ 3 callersMethod__init__
(self, *args, **kwargs)
ms_agent/utils/push_to_hub.py:25
↓ 3 callersFunction_append_jsonl
(path: str, obj: Dict, *, lock: Optional[threading.Lock]
projects/deep_research/v2/eval/dr_bench_runner.py:58
↓ 3 callersFunction_clear_task_log_context
()
ms_agent/app/fin_research.py:59
↓ 3 callersMethod_get_reflection
(self, key: str, **kwargs)
projects/deep_research/v2/callbacks/reporter_callback.py:293
↓ 3 callersMethod_get_resource_path
Get path string for a resource file. Tries relative path first, falls back to absolute path. Args: file_path: P
ms_agent/skill/schema.py:472
↓ 3 callersMethod_get_skill_key
Generate a unique key for a skill based on its ID and version. Args: skill: SkillSchema object Returns:
ms_agent/skill/loader.py:163
↓ 3 callersMethod_initialize_searcher
Initialize the sirchmunk AgenticSearch instance.
ms_agent/knowledge_search/sirchmunk_search.py:124
↓ 3 callersFunction_is_direct_final_report_path
Only accept top-level final report files in `workdir`: - <workdir>/final_report.md - <workdir>/report.md We intentionally ignore fil
projects/deep_research/v2/eval/dr_bench_runner.py:110
↓ 3 callersMethod_is_skill_directory
Check if a directory is a valid skill directory. Args: path: Path to check Returns: True if directo
ms_agent/skill/loader.py:92
↓ 3 callersFunction_json_dumps
(data: Any)
ms_agent/tools/todolist_tool.py:17
↓ 3 callersMethod_load_conflict
Load conflict.json.
projects/deep_research/v2/tools/report_tool.py:555
↓ 3 callersMethod_load_plan_locked
(self, paths: _PlanPaths)
ms_agent/tools/todolist_tool.py:218
↓ 3 callersMethod_load_single_skill
Load a single skill from directory. Args: skill_dir: Path to skill directory Returns: SkillSchema o
ms_agent/skill/loader.py:105
↓ 3 callersMethod_merge_partial_message
Merges a partial message into the last message in the message list. Args: messages (`List[Message]`): Current list of messages.
ms_agent/llm/openai_llm.py:451
↓ 3 callersMethod_network_enabled
(self)
tests/tools/test_server_tools_smoke.py:258
↓ 3 callersMethod_normalize_name
(name: str)
projects/fin_research/tools/spec_loader.py:397
↓ 3 callersMethod_normalize_todos
(self, todos: List[Dict[str, Any]])
ms_agent/tools/todolist_tool.py:254
↓ 3 callersFunction_path_if_exists
(path_value: Optional[str])
ms_agent/app/fin_research.py:1722
↓ 3 callersMethod_paths
(self)
ms_agent/tools/todolist_tool.py:99
↓ 3 callersMethod_read_file_content
Read the content of a file. Args: file_path: Path to the file Returns: Content of the file as a str
ms_agent/skill/schema.py:421
↓ 3 callersMethod_read_message
Read a JSON-RPC message from the LSP server
ms_agent/tools/code_server/lsp_code_server.py:121
↓ 3 callersFunction_resolve_agent_llm_config
(role: str, llm_config: Dict[str, Any], dr_config: Dict[str, Any])
webui/backend/deep_research_worker.py:74
↓ 3 callersMethod_setup_query_engine
(self)
ms_agent/rag/llama_index_rag.py:157
↓ 3 callersFunction_tail_text_from_file
(path: str, *, max_chars: int = 20000)
projects/deep_research/v2/eval/dr_bench_runner.py:176
↓ 3 callersFunction_to_container
(value: Any)
ms_agent/tools/agent_tool.py:29
↓ 3 callersMethod_update_and_check
Update file content and check for errors
ms_agent/tools/code_server/lsp_code_server.py:791
↓ 3 callersFunction_write_text
(path: str, content: str)
projects/deep_research/v2/tools/evidence_tool.py:33
↓ 3 callersFunction_write_text
(path: str, content: str)
ms_agent/tools/todolist_tool.py:32
↓ 3 callersMethodaggregate_stream_chunks
Aggregate the streaming chunks into a single response dictionary within current round of chat. stream_chunks: A list of
ms_agent/llm/openai.py:153
↓ 3 callersFunctionassert_package_exist
Checks whether a specified Python package is available in the current environment. If the package is not found, an AssertionError is raised
ms_agent/utils/utils.py:71
↓ 3 callersMethodchat_stream
Get chat response from OpenAI API using streaming. messages: A list of dictionaries representing the chat messages.
ms_agent/llm/openai.py:55
↓ 3 callersMethodcleanup
Disconnect and clean up the tool. Returns: None Raises: Exceptions if anything goes wrong.
ms_agent/tools/base.py:42
↓ 3 callersMethodconnect
Initialize directory structure.
projects/deep_research/v2/tools/evidence_tool.py:336
↓ 3 callersMethodconnect
(self, timeout: int = CONNECTION_TIMEOUT)
ms_agent/tools/mcp_client.py:248
↓ 3 callersMethodconstruct_file_information
(self, file_relation, add_output_dir=False)
projects/code_genesis/workflow/coding.py:758
← previousnext →101–200 of 2,117, ranked by callers