MCPcopy Create free account

hub / github.com/OpenBMB/BMTools / functions

Functions673 in github.com/OpenBMB/BMTools

↓ 64 callersFunctionenc
(i)
bmtools/tools/kg/wikidata/utils.py:246
↓ 32 callersMethodload_tools
(self, name, meta_info, prompt_type="react-with-tool-description", return_intermediate_steps=True)
bmtools/agent/singletool.py:90
↓ 31 callersFunctionload_single_tools
(tool_name, tool_url)
bmtools/agent/singletool.py:43
↓ 28 callersMethodload_tool
(self, name: str, config: Dict = {})
bmtools/tools/serve.py:76
↓ 13 callersFunction_get_library_root_logger
()
bmtools/utils/logging.py:70
↓ 13 callersMethodfind_select_lst
(self, tar)
bmtools/tools/kg/wikidata/utils.py:379
↓ 10 callersMethodnew_select_lst
(self)
bmtools/tools/kg/wikidata/utils.py:373
↓ 9 callersFunction_configure_library_root_logger
()
bmtools/utils/logging.py:75
↓ 9 callersMethodexecute_sql
(self, sql)
bmtools/tools/db_diag/utils/database.py:102
↓ 9 callersMethodrun
(self, query: str)
bmtools/tools/gradio_tools/tools/gradio_tool.py:60
↓ 8 callersMethodexecute_sql
(self, sql)
bmtools/tools/database/utils/database.py:102
↓ 7 callersFunctiondetect_lang
(text: str)
bmtools/agent/translator.py:12
↓ 7 callersFunctionimage_to_bytes
(img_url)
bmtools/tools/hugging_tools/api.py:85
↓ 7 callersMethodrun
(self, goals: List[str])
bmtools/agent/autogpt/agent.py:80
↓ 6 callersFunctiongenerate_response
(prompt, token=2500)
bmtools/tools/meta_analysis/api.py:15
↓ 5 callersMethodgenerate_url_with_sn
生成百度地图API请求中的SN码 :param url: API请求的URL :return: SN码
bmtools/tools/map/baidu_map/test_baidu.py:11
↓ 5 callersMethodgenerate_url_with_sn
生成百度地图API请求中的SN码 :param url: API请求的URL :return: SN码
bmtools/tools/map/baidu_map/baidu_api.py:18
↓ 5 callersMethodget_location
该函数仅适用于中国境内地图(内陆),this function only suitable for locations in Mainland China 根据地址获取地点经纬度, return the coordinates :param addr
bmtools/tools/map/baidu_map/test_baidu.py:24
↓ 5 callersMethodget_location
该函数仅适用于中国境内地图(内陆),this function only suitable for locations in Mainland China 根据地址获取地点经纬度, return the coordinates :param addr
bmtools/tools/map/baidu_map/baidu_api.py:31
↓ 5 callersFunctionload_valid_tools
(tools_mappings)
bmtools/agent/tools_controller.py:17
↓ 5 callersMethodrun
Run command with own globals/locals and returns anything printed.
bmtools/tools/python/api.py:17
↓ 4 callersMethod_generate_numbered_list
Generate a numbered list from given items based on the item_type. Args: items (list): A list of items to be numbered.
bmtools/agent/autogpt/prompt_generator.py:74
↓ 4 callersMethodadd_constraint
Add a constraint to the constraints list. Args: constraint (str): The constraint to be added.
bmtools/agent/autogptmulti/prompt_generator.py:33
↓ 4 callersMethodadd_constraint
Add a constraint to the constraints list. Args: constraint (str): The constraint to be added.
bmtools/agent/autogpt/prompt_generator.py:36
↓ 4 callersMethodadd_performance_evaluation
Add a performance evaluation item to the performance_evaluation list. Args: evaluation (str): The evaluation item to be
bmtools/agent/autogptmulti/prompt_generator.py:62
↓ 4 callersMethodadd_performance_evaluation
Add a performance evaluation item to the performance_evaluation list. Args: evaluation (str): The evaluation item to be
bmtools/agent/autogpt/prompt_generator.py:65
↓ 4 callersMethodadd_resource
Add a resource to the resources list. Args: resource (str): The resource to be added.
bmtools/agent/autogptmulti/prompt_generator.py:53
↓ 4 callersMethodadd_resource
Add a resource to the resources list. Args: resource (str): The resource to be added.
bmtools/agent/autogpt/prompt_generator.py:56
↓ 4 callersMethodbuild_runner
(self, )
bmtools/agent/tools_controller.py:74
↓ 4 callersMethodchange_tmpidx
(self, ent1, sparqlIdx=-1)
bmtools/tools/kg/wikidata/utils.py:722
↓ 4 callersMethodcreate_prompt
(self)
bmtools/agent/translator.py:58
↓ 4 callersFunctiongetResult
(query)
bmtools/tools/kg/wikidata/utils.py:125
↓ 4 callersMethodget_details
(self, prop_id)
bmtools/tools/kg/wikidata/utils.py:20
↓ 4 callersFunctionget_embedding
(text: str, model="text-embedding-ada-002")
bmtools/tools/meta_analysis/api.py:25
↓ 4 callersFunctionset_verbosity
Set the verbosity level for the 🤗 Transformers's root logger. Args: verbosity (:obj:`int`): Logging level, e.g., one of:
bmtools/utils/logging.py:135
↓ 3 callersFunctioncName2coords
This function accepts a place name and returns its coordinates. :param (str) place_name: a string standing for target city for locati
bmtools/tools/travel/api.py:36
↓ 3 callersFunctiondeep_reduce
(item)
bmtools/tools/meta_analysis/api.py:201
↓ 3 callersMethodfetch_page
fetch_page(url: str) print html text of url
bmtools/tools/film/douban/api.py:33
↓ 3 callersFunctionget_logger
Return a logger with the specified name. This function is not supposed to be directly accessed unless you are writing a custom transformers m
bmtools/utils/logging.py:267
↓ 3 callersMethodmatch
(self, detailed_metrics)
bmtools/knowledge/knowledge_extraction.py:57
↓ 3 callersFunctionprometheus
(url, params)
bmtools/tools/db_diag/anomaly_detection.py:6
↓ 2 callersMethod_generate_numbered_list
Generate a numbered list from given items based on the item_type. Args: items (list): A list of items to be numbered.
bmtools/agent/autogptmulti/prompt_generator.py:71
↓ 2 callersFunction_get_library_name
()
bmtools/utils/logging.py:65
↓ 2 callersMethod_google_serper_search_results
( self, search_term: str, search_type: str = "search", **kwargs: Any )
bmtools/tools/google_serper/api.py:83
↓ 2 callersFunction_lazy_import_pexpect
Import pexpect only when needed.
bmtools/tools/shell/api.py:14
↓ 2 callersFunction_return_timestamp
()
bmtools/tools/office/ppt/api.py:38
↓ 2 callersMethodadd_task
(self, task: Dict)
bmtools/agent/BabyagiTools.py:158
↓ 2 callersFunctioncName2IATA
This function accepts a city name and returns a IATA pilot code of the local airport. :param (str) city_name: city name a s a string
bmtools/tools/travel/api.py:65
↓ 2 callersFunctionclean_str
(p)
bmtools/tools/wikipedia/api.py:7
↓ 2 callersFunctioncombine
(tables, tables1=None, crit=None)
bmtools/tools/meta_analysis/api.py:256
↓ 2 callersMethodconfirm_cost
(self, texts, n, max_tokens)
bmtools/tools/database/utils/llm.py:63
↓ 2 callersMethodconfirm_cost
(self, texts, n, max_tokens)
bmtools/tools/db_diag/utils/llm.py:63
↓ 2 callersFunctionconvert
(table0)
bmtools/tools/meta_analysis/api.py:214
↓ 2 callersMethodconvert_prompt
(self,params)
bmtools/agent/apitool.py:39
↓ 2 callersMethodfrom_llm
( cls, llm: BaseLLM, prompt = None, verbose: bool = False, tools = Non
bmtools/agent/BabyagiTools.py:238
↓ 2 callersMethodfrom_llm_and_tools
( cls, ai_name: str, ai_role: str, memory: VectorStoreRetriever, tools
bmtools/agent/autogpt/agent.py:52
↓ 2 callersMethodget_cid_by_name
(self, name : str, name_type : Optional[str] = None)
bmtools/tools/chemical/prop/api.py:34
↓ 2 callersMethodget_coming
(self)
bmtools/tools/film/douban/api.py:42
↓ 2 callersFunctionget_conf
(conf_file, server_name)
bmtools/tools/db_diag/utils/db_parser.py:5
↓ 2 callersFunctionget_coordinates
Get the coordinates of a location
bmtools/tools/map/bing_map/api.py:54
↓ 2 callersFunctionget_name
prints the possible 3 synonyms of the queried compound ID
bmtools/tools/chemical/prop/api.py:85
↓ 2 callersMethodget_name_by_cid
(self, cid : str, top_k : Optional[int] = None)
bmtools/tools/chemical/prop/api.py:12
↓ 2 callersMethodget_now_playing
(self)
bmtools/tools/film/douban/api.py:68
↓ 2 callersFunctionget_property_details
(url: str)
bmtools/tools/kg/wikidata/utils.py:206
↓ 2 callersMethodgive_str
(self, sparqlIdx=-1)
bmtools/tools/kg/wikidata/utils.py:716
↓ 2 callersFunctiongpt_get_estimated_cost
Uses the current API costs/1000 tokens to estimate the cost of generating text from the model.
bmtools/tools/database/utils/llm.py:331
↓ 2 callersFunctiongpt_get_estimated_cost
Uses the current API costs/1000 tokens to estimate the cost of generating text from the model.
bmtools/tools/db_diag/utils/llm.py:331
↓ 2 callersFunctioninitial
(topic, term=None, ret=100)
bmtools/tools/meta_analysis/api.py:86
↓ 2 callersMethodlist_tools
(self)
bmtools/tools/serve.py:97
↓ 2 callersMethodload_tools
(self, all_tools)
bmtools/agent/tools_controller.py:54
↓ 2 callersFunctionobtain_values_of_metrics
(start_time, end_time, metrics)
bmtools/tools/db_diag/api.py:25
↓ 2 callersMethodquery
(self, query: str, topk: int = 3)
bmtools/tools/retriever.py:25
↓ 2 callersMethodresetConn
(self, timeout=-1)
bmtools/tools/database/utils/database.py:65
↓ 2 callersMethodresetConn
(self, timeout=-1)
bmtools/tools/db_diag/utils/database.py:65
↓ 2 callersMethodrun
Run commands and return final output.
bmtools/tools/shell/api.py:60
↓ 2 callersMethodsearch
(self, key_words : str, max_retry : int = 3)
bmtools/tools/bing_search/api.py:47
↓ 1 callersMethod__complete
Generates text from the model and returns the log prob data.
bmtools/tools/database/utils/llm.py:171
↓ 1 callersMethod__complete
Generates text from the model and returns the log prob data.
bmtools/tools/db_diag/utils/llm.py:171
↓ 1 callersMethod__log_probs
Returns the log probs of the text.
bmtools/tools/database/utils/llm.py:191
↓ 1 callersMethod__log_probs
Returns the log probs of the text.
bmtools/tools/db_diag/utils/llm.py:191
↓ 1 callersFunction_bind_tool_server
Add property API to ToolServer. t.api is a FastAPI object
bmtools/tools/serve.py:12
↓ 1 callersMethod_block_input
(self, gr)
bmtools/tools/gradio_tools/tools/gradio_tool.py:73
↓ 1 callersMethod_block_output
(self, gr)
bmtools/tools/gradio_tools/tools/gradio_tool.py:76
↓ 1 callersMethod_call
Run text through and get agent response.
bmtools/agent/executor.py:29
↓ 1 callersMethod_construct_scratchpad
Construct the scratchpad that lets the agent continue its thought process.
bmtools/agent/BabyagiTools.py:28
↓ 1 callersMethod_generate_command_string
(self, tool: BaseTool)
bmtools/agent/autogptmulti/prompt_generator.py:45
↓ 1 callersMethod_generate_command_string
(self, tool: BaseTool)
bmtools/agent/autogpt/prompt_generator.py:48
↓ 1 callersFunction_get_default_logging_level
If BMTOOLS_VERBOSITY env var is set to one of the valid choices return that as the new default level. If it is not - fall back to ``_default_
bmtools/utils/logging.py:48
↓ 1 callersFunction_get_top_tasks
Get the top k tasks based on the query.
bmtools/agent/BabyagiTools.py:129
↓ 1 callersMethod_initialize_persistent_process
(prompt: str)
bmtools/tools/shell/api.py:47
↓ 1 callersMethod_is_space
(src: str)
bmtools/tools/gradio_tools/tools/gradio_tool.py:45
↓ 1 callersMethod_parse_results
(self, results: dict)
bmtools/tools/google_serper/api.py:80
↓ 1 callersMethod_parse_snippets
(self, results: dict)
bmtools/tools/google_serper/api.py:46
↓ 1 callersMethod_run
Run commands and return final output.
bmtools/tools/shell/api.py:74
↓ 1 callersMethod_run_persistent
Run commands and return final output.
bmtools/tools/shell/api.py:99
↓ 1 callersMethodadd_tool
(self, tool_name: str, api_info: Dict)
bmtools/tools/retriever.py:15
↓ 1 callersMethodadd_tool
(self, tool: BaseTool)
bmtools/agent/autogptmulti/prompt_generator.py:42
↓ 1 callersMethodadd_tool
(self, tool: BaseTool)
bmtools/agent/autogpt/prompt_generator.py:45
↓ 1 callersMethodafunc
(json_args)
bmtools/agent/apitool.py:110
↓ 1 callersMethodauto_reduce_n
Reduces n by half until the function succeeds.
bmtools/tools/database/utils/llm.py:75
next →1–100 of 673, ranked by callers