Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/modelscope/ms-agent
/ functions
Functions
2,117 in github.com/modelscope/ms-agent
⨍
Functions
2,117
◇
Types & classes
350
↳
Endpoints
35
↓ 2 callers
Function
_validate_status
(status: str)
ms_agent/tools/todolist_tool.py:40
↓ 2 callers
Method
_wait_for_sandbox_ready
Wait for sandbox to become ready. Args: max_wait: Maximum seconds to wait Raises: TimeoutError: If
ms_agent/tools/code/code_executor.py:827
↓ 2 callers
Method
_z_score_normalization
Apply Z-score normalization: z = (x - mean) / std.
ms_agent/retriever/hybrid_retriever.py:231
↓ 2 callers
Method
add_mcp_config
(self, mcp_config: Dict[str, Dict[str, Any]])
ms_agent/tools/mcp_client.py:273
↓ 2 callers
Method
add_memory
(self, messages: List[Message], add_type, **kwargs)
ms_agent/agent/llm_agent.py:1045
↓ 2 callers
Method
add_single
(self, messages: List[Message], user_id: Optional[int] = Non
ms_agent/memory/default_memory.py:209
↓ 2 callers
Function
append_stats
(path: str, record: Dict[str, Any])
ms_agent/utils/stats.py:63
↓ 2 callers
Method
build
(cls, config_dir_or_id: Optional[str] = None, config: Optional[DictConfig] = None,
ms_agent/workflow/loader.py:11
↓ 2 callers
Function
build_quality_checkers
Instantiate the quality-checker chain from config. Reads ``config.self_reflection.quality_check`` and returns a list of checker instances. C
projects/deep_research/v2/callbacks/quality_checker.py:161
↓ 2 callers
Method
build_request_from_args
Build ExaSearchRequest from tool call arguments.
ms_agent/tools/search/exa/search.py:112
↓ 2 callers
Function
build_timing_record
( *, event: str, agent_tag: Optional[str], agent_type: Optional[str],
ms_agent/utils/stats.py:87
↓ 2 callers
Method
check
(self, content: str, lang: str)
projects/deep_research/v2/callbacks/quality_checker.py:124
↓ 2 callers
Method
chunk
Chunk the document using the `Hybrid Chunker`. Args: docs (Iterable[DoclingDocument]): An iterable of DoclingDocument ob
ms_agent/tools/docling/chunker.py:144
↓ 2 callers
Method
cleanup
Clean up resources
ms_agent/tools/mcp_client.py:295
↓ 2 callers
Method
cleanup_lsp_index_dirs
(self)
ms_agent/tools/code_server/lsp_code_server.py:530
↓ 2 callers
Method
cleanup_tools
Cleanup resources used by the tool manager.
ms_agent/agent/llm_agent.py:551
↓ 2 callers
Method
connect
(self)
projects/fin_research/tools/spec_loader.py:50
↓ 2 callers
Method
connect
Initialize LSP servers
ms_agent/tools/code_server/lsp_code_server.py:526
↓ 2 callers
Method
connect_to_server
(self, server_name: str, timeout: int = CONNEC
ms_agent/tools/mcp_client.py:143
↓ 2 callers
Method
create_session
Create a new session
webui/backend/session_manager.py:22
↓ 2 callers
Method
create_subtitle_image
(self, text, width=1720,
projects/singularity_cinema/generate_subtitle/agent.py:204
↓ 2 callers
Method
deduplicate_by_url
Remove duplicate results based on URL. Args: results: List of search result dictionaries Returns: D
ms_agent/tools/search/content_optimizer.py:870
↓ 2 callers
Method
disable
(self, disable_idx: int)
ms_agent/memory/default_memory.py:45
↓ 2 callers
Function
dump_batch_search_results
Dump a batch of search results to a local file.
ms_agent/tools/search/exa/schema.py:143
↓ 2 callers
Function
enhance_error
(e, prefix: str = '')
ms_agent/utils/utils.py:46
↓ 2 callers
Method
execute
Execute the skill DAG according to execution order. Execution order format: [skill1, skill2, [skill3, skill4], skill5, ...]
ms_agent/skill/auto_skills.py:1000
↓ 2 callers
Method
execute_code
(self, messages: Union[str, List[Message]], **kwargs)
projects/singularity_cinema/generate_animation/generate_remotion_code.py:32
↓ 2 callers
Method
execute_code
(self, messages: Union[str, List[Message]], **kwargs)
projects/singularity_cinema/render_animation/render_remotion.py:54
↓ 2 callers
Method
execute_javascript
Execute JavaScript code via Node.js. Uses sandbox mode or local mode based on use_sandbox setting. Args: script
ms_agent/skill/container.py:1222
↓ 2 callers
Method
execute_python_script
Execute a Python script file. Uses sandbox mode or local mode based on use_sandbox setting. Args: script_path:
ms_agent/skill/container.py:864
↓ 2 callers
Method
execute_shell
Execute a shell command. Uses sandbox mode or local mode based on use_sandbox setting. Args: command: Shell com
ms_agent/skill/container.py:1132
↓ 2 callers
Method
extract
Extract key information from URLs or files. Args: urls_or_files: List of URLs or file paths to process Returns:
ms_agent/rag/extraction_manager.py:37
↓ 2 callers
Function
extract_code_blocks
Extract code blocks from the given text. <result>py:a.py </result> Args: text: The text to extract code blocks from. tar
ms_agent/utils/utils.py:701
↓ 2 callers
Method
fill_missing_fields
(config: DictConfig)
ms_agent/config/config.py:110
↓ 2 callers
Method
find_index_file
(full_path)
projects/code_genesis/workflow/coding.py:260
↓ 2 callers
Method
finish_user_task
(self, user_id: str)
ms_agent/app/fin_research.py:251
↓ 2 callers
Method
generate_audio
(self, segment, audio_path)
projects/singularity_cinema/generate_audio/agent.py:99
↓ 2 callers
Method
generate_index_file
(self, file: str, content: str = None)
ms_agent/memory/condenser/code_condenser.py:149
↓ 2 callers
Method
generate_video
(self, positive_prompt, **kwargs)
ms_agent/tools/video_generator/video_gen.py:54
↓ 2 callers
Function
getFileIcon
(fname: string)
webui/frontend/src/components/ConversationView.tsx:2181
↓ 2 callers
Method
get_all
(self, user_id: Optional[str] = None, agent_id: Optional[str] = None,
ms_agent/memory/default_memory.py:510
↓ 2 callers
Method
get_analysis
Retrieve an analysis by ID.
projects/deep_research/v2/tools/evidence_tool.py:964
↓ 2 callers
Method
get_audio_duration
(audio_path)
projects/singularity_cinema/generate_audio/agent.py:93
↓ 2 callers
Method
get_caption_ref_key
Get the caption text for a given caption reference in the document.
ms_agent/tools/docling/doc_loader.py:116
↓ 2 callers
Method
get_current
Get current progress state safely.
ms_agent/workflow/deep_research/research_workflow_beta.py:101
↓ 2 callers
Method
get_deep_research_config
Get deep research configuration
webui/backend/config_manager.py:194
↓ 2 callers
Method
get_edgeone_pages_config
Get EdgeOne Pages configuration
webui/backend/config_manager.py:170
↓ 2 callers
Method
get_edit_file_config
Get edit_file_config configuration
webui/backend/config_manager.py:158
↓ 2 callers
Method
get_env_vars
Get environment variables for running agents
webui/backend/config_manager.py:228
↓ 2 callers
Function
get_field_info
(reader: PdfReader)
examples/skills/claude_skills/pdf/scripts/extract_form_field_info.py:64
↓ 2 callers
Method
get_font
(self, size)
projects/singularity_cinema/create_background/agent.py:30
↓ 2 callers
Method
get_font
Get font using system font manager, same as CreateBackground agent
projects/singularity_cinema/generate_subtitle/agent.py:159
↓ 2 callers
Method
get_global_summarization_usage
Get process-wide summarization usage totals (best-effort).
ms_agent/tools/search/websearch_tool.py:315
↓ 2 callers
Method
get_item_ref_key
Get the reference key for a DocItem in the format of 'doc_file_name@binary_hash@self_ref'.
ms_agent/tools/docling/doc_loader.py:109
↓ 2 callers
Function
get_memory_meta_safe
(config: DictConfig, key: str, default_user_id: str | None =
ms_agent/memory/utils.py:19
↓ 2 callers
Method
get_messages
Get all messages for a session
webui/backend/session_manager.py:107
↓ 2 callers
Method
get_next_rid
Get the next available rId for relationships files.
examples/skills/claude_skills/docx/scripts/utilities.py:287
↓ 2 callers
Method
get_note
Retrieve a note by ID.
projects/deep_research/v2/tools/evidence_tool.py:1115
↓ 2 callers
Function
get_search_engine_class
Get search engine class by type. Args: engine_type: One of 'exa', 'serpapi', 'arxiv' Returns: SearchEngine class (not i
ms_agent/tools/search/websearch_tool.py:188
↓ 2 callers
Function
get_search_request_generator
Get the corresponding search request generator Args: engine_type (SearchEngineType): The type of search engine user_prompt (
ms_agent/tools/search/search_request.py:259
↓ 2 callers
Function
get_stats_path
(config: Any, default_filename: str = 'workflow_stats.json')
ms_agent/utils/stats.py:26
↓ 2 callers
Method
get_tools
(self)
ms_agent/tools/tool_manager.py:195
↓ 2 callers
Function
get_user_id_from_request
(request: gr.Request)
ms_agent/app/fin_research.py:331
↓ 2 callers
Function
get_user_session_file_path
Return the path that stores the per-user FinResearch session snapshot.
ms_agent/app/fin_research.py:377
↓ 2 callers
Function
get_web_search_tool
Get the web search tool based on the configuration. Returns: SearchEngine: An instance of the SearchEngine class configured with the
ms_agent/tools/search_engine.py:120
↓ 2 callers
Function
handleSelectFile
(file: ArtifactFile)
webui/frontend/src/components/deep_research/DeepResearchView.tsx:806
↓ 2 callers
Function
is_docker_daemon_running
Check if the Docker daemon is running.
ms_agent/utils/docker_utils.py:1
↓ 2 callers
Method
is_overflow
Check if messages exceed context limit.
ms_agent/memory/condenser/context_compressor.py:110
↓ 2 callers
Method
is_user_running
Check if user has an active task running.
ms_agent/app/fin_research.py:259
↓ 2 callers
Method
link_skills
Link output from upstream skill to downstream skill input. Args: upstream_skill_id: ID of the upstream skill.
ms_agent/skill/container.py:1399
↓ 2 callers
Function
list_builtin_projects
()
ms_agent/cli/run.py:24
↓ 2 callers
Method
list_notes
List notes with optional filters. Args: task_id: Optional: Filter by task ID. tags: Optional: Filter by tags (notes m
projects/deep_research/v2/tools/evidence_tool.py:1142
↓ 2 callers
Method
load_dotenv_into_environ
Load key=value pairs from a .env file into ``os.environ``. Does not override variables already set in the process environment. If ``
ms_agent/config/env.py:12
↓ 2 callers
Method
load_from_disk
Load search results from a JSON file.
ms_agent/tools/search/search_base.py:151
↓ 2 callers
Function
load_image_from_uri_to_pil
Load image from URI as a PIL Image object and extract its format extension. URI format: data:[<mime>][;base64],<encoded> Args: u
ms_agent/utils/utils.py:395
↓ 2 callers
Function
load_image_from_url_to_pil
Loads an image from a given URL and converts it into a PIL Image object in memory. Args: url: The URL of the image. Returns:
ms_agent/utils/utils.py:369
↓ 2 callers
Method
load_index
Load and return the full evidence index. Returns the complete index containing metadata for all notes, useful for understand
projects/deep_research/v2/tools/evidence_tool.py:1264
↓ 2 callers
Method
load_references
Load specific references by name, or all if names is None. Args: names: List of reference names to load, or None for all
ms_agent/skill/schema.py:518
↓ 2 callers
Method
load_resources
Load specific resources by name, or all if names is None. Args: names: List of resource names to load, or None for all.
ms_agent/skill/schema.py:545
↓ 2 callers
Function
load_session_data
Load session data from file
ms_agent/app/doc_research.py:1067
↓ 2 callers
Method
load_specs
Load requested specs documents and return their content. Returns: str: Markdown string (default) or JSON string mapping spec to c
projects/fin_research/tools/spec_loader.py:224
↓ 2 callers
Method
main
()
tests/tools/test_code_file.py:15
↓ 2 callers
Method
mount_skill_directory
Mount a skill directory for sandbox access. Args: skill_id: Unique identifier for the skill. skill_dir: Path
ms_agent/skill/container.py:436
↓ 2 callers
Method
on_task_begin
(self, messages: List[Message])
ms_agent/agent/llm_agent.py:478
↓ 2 callers
Method
on_task_end
(self, messages: List[Message])
ms_agent/agent/llm_agent.py:482
↓ 2 callers
Method
open_document
Open a document in the LSP server
ms_agent/tools/code_server/lsp_code_server.py:211
↓ 2 callers
Function
pack_document
Pack a directory into an Office file (.docx/.pptx/.xlsx). Args: input_dir: Path to unpacked Office document directory output_file
examples/skills/claude_skills/docx/ooxml/scripts/pack.py:46
↓ 2 callers
Function
parse_require_file
(fpath)
setup.py:81
↓ 2 callers
Method
prepare_llm
Initialize the LLM model from the configuration.
ms_agent/agent/llm_agent.py:971
↓ 2 callers
Method
query
(self)
ms_agent/agent/llm_agent.py:602
↓ 2 callers
Function
read_history
Reads configuration information and conversation history associated with the given task from the cache directory. This function attempts to
ms_agent/utils/utils.py:214
↓ 2 callers
Method
release
(self, request: Optional[gr.Request])
ms_agent/app/fin_research.py:207
↓ 2 callers
Function
remove_resource_info
Removes all <resource_info>...</resource_info> tags and their enclosed content from the given text. Args: text (str): The original t
ms_agent/utils/utils.py:352
↓ 2 callers
Function
resolve_file_path
Resolve file_path against root_dir_abs. - if file_path starts with 'projects/', resolve from ms-agent base dir - if file_path is absolute
webui/backend/api.py:592
↓ 2 callers
Method
run
(self, messages, **kwargs)
projects/code_genesis/workflow/refine.py:89
↓ 2 callers
Method
run
Public interface for running the research workflow with proper resource cleanup.
ms_agent/workflow/deep_research/research_workflow_beta.py:1108
↓ 2 callers
Method
run_loop
Run the agent, mainly contains a llm calling and tool calling loop. If skills are configured, skill-related queries will be automati
ms_agent/agent/llm_agent.py:1092
↓ 2 callers
Function
save_history
Saves the specified configuration and conversation history to a cache directory for later retrieval or restoration. This function saves the
ms_agent/utils/utils.py:172
↓ 2 callers
Method
save_history
Save current chat history to disk for future resuming. Args: messages (List[Message]): Current message history to save.
ms_agent/agent/llm_agent.py:1069
↓ 2 callers
Method
save_spec_log
Save the execution spec to a markdown file in logs directory.
ms_agent/skill/container.py:1425
← previous
next →
301–400 of 2,117, ranked by callers