MCPcopy Create free account

hub / github.com/HKUDS/AutoAgent / functions

Functions594 in github.com/HKUDS/AutoAgent

↓ 209 callersMethodget
get: get the record by the id. Args: record_id: the id of the record. collection: the name of the collection
autoagent/memory/rag_memory.py:130
↓ 135 callersMethodappend
(self, event: BaseEvent, event_input: EventInput)
autoagent/flow/broker.py:7
↓ 42 callersMethodinfo
(self, *args: str, **kwargs: dict)
autoagent/logger.py:29
↓ 40 callersMethodrun
( self, agent: Agent, messages: List, context_variables: dict = {}, mo
autoagent/core.py:396
↓ 30 callersMethodrun_command
(self, command, stream_callback=None)
autoagent/environment/local_env.py:74
↓ 23 callersMethodclose
(self)
autoagent/environment/browser_env.py:569
↓ 18 callersMethodsearch
Search Bing and return the results formatted in Markdown. If a Bing API key is available, the API is used to perform the search. If no API key is avai
autoagent/environment/markdown_browser/markdown_search.py:57
↓ 14 callersFunctiondebug_print
(debug: bool, *args: str, **kwargs: dict)
autoagent/util.py:42
↓ 13 callersMethodstep
Execute an action in the browser environment and return the observation.
autoagent/environment/browser_env.py:545
↓ 12 callersMethod_set_page_content
Sets the text content of the current page.
autoagent/environment/markdown_browser/requests_markdown_browser.py:151
↓ 12 callersMethodcount
count: count the number of records in the memery. Args: collection_name: the name of the collection to count.
autoagent/memory/rag_memory.py:157
↓ 12 callersMethodget_logger
(cls)
autoagent/logger.py:149
↓ 12 callersMethodregister_page_converter
Register a page text converter.
autoagent/environment/markdown_browser/mdconvert.py:1031
↓ 12 callersFunctionto_web_obs
(obs)
autoagent/tools/web_tools.py:73
↓ 11 callersFunctionget_metachain_path
(env: Union[LocalEnv, DockerEnv])
autoagent/tools/meta/edit_tools.py:16
↓ 10 callersFunctioncreate_file
Create a file with the given path and content. Use this function when there is a need to create a new file with initial content. Args:
autoagent/tools/terminal_tools.py:221
↓ 10 callersMethodregister_page_converter
Register a page text converter.
autoagent/environment/mdconvert.py:1037
↓ 9 callersMethod_wrap_title
(self, title: str, color: str = None)
autoagent/logger.py:24
↓ 9 callersFunctionwrap_return_value
(web_obs: WebObservation, action_description: str = "")
autoagent/tools/web_tools.py:96
↓ 8 callersFunctionlist_agents
List all plugin agents in the MetaChain. Returns: A list of information of all plugin agents including name, args, docstring, body, r
autoagent/tools/meta/edit_agents.py:22
↓ 8 callersMethodrun_async
( self, agent: Agent, messages: List, context_variables: dict = {}, mo
autoagent/core.py:589
↓ 7 callersMethod_append_ext
Append a unique non-None, non-empty extension to a list of extensions.
autoagent/environment/mdconvert.py:1009
↓ 7 callersMethod_append_ext
Append a unique non-None, non-empty extension to a list of extensions.
autoagent/environment/markdown_browser/mdconvert.py:1003
↓ 7 callersMethod_write_log
(self, message: str)
autoagent/logger.py:15
↓ 7 callersMethodhandle_tool_calls
( self, tool_calls: List[ChatCompletionMessageToolCall], functions: List[AgentFunction
autoagent/core.py:230
↓ 7 callersMethodset_logger
(cls, new_logger)
autoagent/logger.py:153
↓ 6 callersMethod_wrap_timestamp
(self, timestamp: str, color: bool = True)
autoagent/logger.py:59
↓ 6 callersFunctionmake_message
(role: str, content: str)
autoagent/util.py:476
↓ 6 callersMethodregister
统一的注册装饰器 Args: type: 注册类型,"tool" 或 "agent" name: 可选的注册名称
autoagent/registry.py:70
↓ 6 callersFunctionstr_to_bool
convert string to bool
constant.py:6
↓ 5 callersMethod_get
(self, metadata: Dict[str, str], keys: List[str], default: Union[str, None] = None)
autoagent/environment/mdconvert.py:354
↓ 5 callersMethod_get
(self, metadata: Dict[str, str], keys: List[str], default: Union[str, None] = None)
autoagent/environment/markdown_browser/mdconvert.py:344
↓ 5 callersFunction_get_browser_state
Get the current state of the browser, including the header and content.
autoagent/tools/file_surfer_tool.py:41
↓ 5 callersFunctionclear_screen
()
autoagent/cli.py:105
↓ 5 callersMethodconvert_soup
(self, soup: Any)
autoagent/environment/mdconvert.py:129
↓ 5 callersMethodconvert_soup
(self, soup: Any)
autoagent/environment/markdown_browser/mdconvert.py:119
↓ 5 callersFunctionlist_tools
List all plugin tools in the MetaChain. Returns: A list of information of all plugin tools including name, args, docstring, body, ret
autoagent/tools/meta/edit_tools.py:33
↓ 5 callersMethodquery
query: query the memery. Args: query_texts: the query texts to search in the memery. collection: the name of
autoagent/memory/rag_memory.py:87
↓ 5 callersMethodto_dict
(self)
autoagent/registry.py:36
↓ 4 callersMethod_convert
Helper function that converts and HTML string.
autoagent/environment/mdconvert.py:185
↓ 4 callersMethod_convert
Helper function that converts and HTML string.
autoagent/environment/markdown_browser/mdconvert.py:175
↓ 4 callersFunction_get_browser_state
Get the current state of the browser, including the header and content.
autoagent/tools/terminal_tools.py:24
↓ 4 callersMethod_markdown_link
Create a Markdown hyperlink, escaping the URLs as appropriate. Args: anchor: The anchor text of the hyperlink href: T
autoagent/environment/markdown_browser/markdown_search.py:264
↓ 4 callersFunctionabort_this
()
autoagent/flow/dynamic.py:17
↓ 4 callersMethodadd_query
add_query: add the queries to the memery. Args: queries: the queries to add to the memery. Should be in the format of
autoagent/memory/rag_memory.py:45
↓ 4 callersMethodconvert_response
( self, response: requests.Response, **kwargs: Any )
autoagent/environment/markdown_browser/mdconvert.py:911
↓ 4 callersFunctionconvert_tools_to_description
(tools: list[dict])
autoagent/fn_call_converter.py:281
↓ 4 callersFunctioncreate_directory
Create a directory if it does not exist. Use this function when there is a need to create a new directory. Args: path: The path of th
autoagent/tools/terminal_tools.py:274
↓ 4 callersFunctionextract_answer
(response: str, key: str)
autoagent/workflows/math_solver_workflow_flow.py:13
↓ 4 callersMethodfrom_dict
(cls, data: dict)
autoagent/registry.py:43
↓ 4 callersFunctionget_math_solver_agent
This agent solves mathematical problems using analytical and systematic approaches.
autoagent/agents/math/math_solver_agent.py:6
↓ 4 callersFunctiongoto_events
( group_markers: list[BaseEvent], any_return: Any = None )
autoagent/flow/dynamic.py:9
↓ 4 callersFunctionmake_tool_message
(tools: Callable, args: dict, tool_content: str)
autoagent/util.py:461
↓ 4 callersFunctionnormalize_str
Normalize a string by: - Removing all white spaces - Optionally removing punctuation (if remove_punct is True) - Converting to lowercase
evaluation/gaia/scorer.py:82
↓ 4 callersMethodset_address
Sets the address of the current page. This will result in the page being fetched via the underlying requests session. Arguments:
autoagent/environment/markdown_browser/requests_markdown_browser.py:105
↓ 3 callersMethod_convert
(self, local_path: str, extensions: List[Union[str, None]], **kwargs)
autoagent/environment/mdconvert.py:964
↓ 3 callersMethod_convert
(self, local_path: str, extensions: List[Union[str, None]], **kwargs)
autoagent/environment/markdown_browser/mdconvert.py:958
↓ 3 callersMethod_convert_docker_to_local
(self, path)
autoagent/environment/local_env.py:95
↓ 3 callersMethod_get_metadata
(self, local_path)
autoagent/environment/mdconvert.py:595
↓ 3 callersMethod_get_metadata
(self, local_path)
autoagent/environment/markdown_browser/mdconvert.py:588
↓ 3 callersMethod_guess_ext_magic
Use puremagic (a Python implementation of libmagic) to guess a file's extension based on the first few bytes.
autoagent/environment/mdconvert.py:1020
↓ 3 callersMethod_guess_ext_magic
Use puremagic (a Python implementation of libmagic) to guess a file's extension based on the first few bytes.
autoagent/environment/markdown_browser/mdconvert.py:1014
↓ 3 callersFunction_process_instance_wrapper
Wrap the process_instance_func to handle retries and errors. Retry an instance up to max_retries times if it fails (e.g., due to transient networ
evaluation/utils.py:272
↓ 3 callersFunctioncheck_container_ports
check if the container has port mapping return format: - if the container exists and has port mapping: '0.0.0.0:12345->12345/tcp' - i
autoagent/environment/docker_env.py:229
↓ 3 callersMethodconvert
(self, local_path, **kwargs)
autoagent/environment/mdconvert.py:448
↓ 3 callersMethodinit_container
(self)
autoagent/environment/docker_env.py:43
↓ 3 callersMethodmodel_dump
(self, *args, **kwargs)
evaluation/types.py:50
↓ 3 callersMethodmodel_dump_json
(self, *args, **kwargs)
evaluation/types.py:59
↓ 3 callersMethodparse_key_description
(elem: ET.Element, tag_name: str)
autoagent/agents/meta_agent/form_complie.py:50
↓ 3 callersMethodparse_key_description
(elem: ET.Element)
autoagent/agents/meta_agent/worklow_form_complie.py:198
↓ 3 callersMethodpretty_print_messages
(self, message, **kwargs)
autoagent/logger.py:114
↓ 3 callersFunctionselect_and_copy_files
(dest_dir, console: Console, docker_files_dir: str)
autoagent/cli_utils/file_select.py:7
↓ 3 callersFunctionshould_continue
()
autoagent/environment/shutdown_listener.py:45
↓ 3 callersFunctionshould_exit
()
autoagent/environment/shutdown_listener.py:40
↓ 3 callersFunctionupdate_progress
Update the progress bar and write the result to the output file.
evaluation/utils.py:325
↓ 3 callersFunctionwrap_return_value_markdown
(web_obs: WebObservation, action_description: str = "")
autoagent/tools/web_tools.py:128
↓ 2 callersFunction_checkMeetChallenge
check if meet challenge Examples: _checkMeetChallenge()
autoagent/environment/browser_env.py:266
↓ 2 callersMethod_find_next_viewport
Search for matches between the starting viewport looping when reaching the end.
autoagent/environment/markdown_browser/requests_markdown_browser.py:217
↓ 2 callersFunction_fix_stopword
Fix the issue when some LLM would NOT return the stopword.
autoagent/fn_call_converter.py:565
↓ 2 callersMethod_handle_rate_limit
处理 API 速率限制
autoagent/tools/github_client.py:248
↓ 2 callersFunction_local_to_docker
Convert a local path to a docker path local_path: the local path to convert, like `{local_workplace}/downloads/xxx` docker_path: the dock
autoagent/environment/browser_env.py:46
↓ 2 callersFunction_register_signal_handlers
()
autoagent/environment/shutdown_listener.py:28
↓ 2 callersMethod_transcribe_audio
(self, local_path)
autoagent/environment/mdconvert.py:653
↓ 2 callersMethod_transcribe_audio
(self, local_path)
autoagent/environment/markdown_browser/mdconvert.py:646
↓ 2 callersMethod_warp_args
(self, args_dict: str)
autoagent/logger.py:18
↓ 2 callersFunctioncheck_port_available
check if the port is available
evaluation/utils.py:349
↓ 2 callersFunctionchunking_by_token_size
( content: str, overlap_token_size=128, max_token_size=1024, tiktoken_model="gpt-4o" )
autoagent/memory/utils.py:18
↓ 2 callersMethodconvert
(self, local_path, **kwargs)
autoagent/environment/markdown_browser/mdconvert.py:438
↓ 2 callersFunctionconvert_cookies_to_python
()
autoagent/environment/browser_cookies.py:12
↓ 2 callersMethodconvert_local
(self, path: str, **kwargs: Any)
autoagent/environment/mdconvert.py:864
↓ 2 callersMethodconvert_local
(self, path: str, **kwargs: Any)
autoagent/environment/markdown_browser/mdconvert.py:858
↓ 2 callersFunctionconvert_non_fncall_messages_to_fncall_messages
Convert non-function calling messages back to function calling messages.
autoagent/fn_call_converter.py:575
↓ 2 callersMethodconvert_response
( self, response: requests.Response, **kwargs: Any )
autoagent/environment/mdconvert.py:917
↓ 2 callersMethodconvert_stream
(self, stream: Any, **kwargs: Any)
autoagent/environment/mdconvert.py:878
↓ 2 callersFunctioncreate_environment
1. create the code environment 2. create the web environment 3. create the file environment
autoagent/cli.py:143
↓ 2 callersFunctioncreate_environment_local
1. create the code environment 2. create the web environment 3. create the file environment
autoagent/cli.py:157
↓ 2 callersFunctionextract_answer_gsm8k
(completion)
evaluation/math500/get_score.py:41
↓ 2 callersFunctionextract_format_keys
(s)
autoagent/tools/meta/edit_agents.py:150
↓ 2 callersMethodfind_next
Scroll to the next viewport that matches the query
autoagent/environment/markdown_browser/requests_markdown_browser.py:194
↓ 2 callersFunctionfunction_or_method_to_string
(func_or_method: Callable)
autoagent/flow/utils.py:31
next →1–100 of 594, ranked by callers