Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenBMB/BMTools
/ functions
Functions
673 in github.com/OpenBMB/BMTools
⨍
Functions
673
◇
Types & classes
87
↳
Endpoints
114
↓ 64 callers
Function
enc
(i)
bmtools/tools/kg/wikidata/utils.py:246
↓ 32 callers
Method
load_tools
(self, name, meta_info, prompt_type="react-with-tool-description", return_intermediate_steps=True)
bmtools/agent/singletool.py:90
↓ 31 callers
Function
load_single_tools
(tool_name, tool_url)
bmtools/agent/singletool.py:43
↓ 28 callers
Method
load_tool
(self, name: str, config: Dict = {})
bmtools/tools/serve.py:76
↓ 13 callers
Function
_get_library_root_logger
()
bmtools/utils/logging.py:70
↓ 13 callers
Method
find_select_lst
(self, tar)
bmtools/tools/kg/wikidata/utils.py:379
↓ 10 callers
Method
new_select_lst
(self)
bmtools/tools/kg/wikidata/utils.py:373
↓ 9 callers
Function
_configure_library_root_logger
()
bmtools/utils/logging.py:75
↓ 9 callers
Method
execute_sql
(self, sql)
bmtools/tools/db_diag/utils/database.py:102
↓ 9 callers
Method
run
(self, query: str)
bmtools/tools/gradio_tools/tools/gradio_tool.py:60
↓ 8 callers
Method
execute_sql
(self, sql)
bmtools/tools/database/utils/database.py:102
↓ 7 callers
Function
detect_lang
(text: str)
bmtools/agent/translator.py:12
↓ 7 callers
Function
image_to_bytes
(img_url)
bmtools/tools/hugging_tools/api.py:85
↓ 7 callers
Method
run
(self, goals: List[str])
bmtools/agent/autogpt/agent.py:80
↓ 6 callers
Function
generate_response
(prompt, token=2500)
bmtools/tools/meta_analysis/api.py:15
↓ 5 callers
Method
generate_url_with_sn
生成百度地图API请求中的SN码 :param url: API请求的URL :return: SN码
bmtools/tools/map/baidu_map/test_baidu.py:11
↓ 5 callers
Method
generate_url_with_sn
生成百度地图API请求中的SN码 :param url: API请求的URL :return: SN码
bmtools/tools/map/baidu_map/baidu_api.py:18
↓ 5 callers
Method
get_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 callers
Method
get_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 callers
Function
load_valid_tools
(tools_mappings)
bmtools/agent/tools_controller.py:17
↓ 5 callers
Method
run
Run command with own globals/locals and returns anything printed.
bmtools/tools/python/api.py:17
↓ 4 callers
Method
_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 callers
Method
add_constraint
Add a constraint to the constraints list. Args: constraint (str): The constraint to be added.
bmtools/agent/autogptmulti/prompt_generator.py:33
↓ 4 callers
Method
add_constraint
Add a constraint to the constraints list. Args: constraint (str): The constraint to be added.
bmtools/agent/autogpt/prompt_generator.py:36
↓ 4 callers
Method
add_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 callers
Method
add_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 callers
Method
add_resource
Add a resource to the resources list. Args: resource (str): The resource to be added.
bmtools/agent/autogptmulti/prompt_generator.py:53
↓ 4 callers
Method
add_resource
Add a resource to the resources list. Args: resource (str): The resource to be added.
bmtools/agent/autogpt/prompt_generator.py:56
↓ 4 callers
Method
build_runner
(self, )
bmtools/agent/tools_controller.py:74
↓ 4 callers
Method
change_tmpidx
(self, ent1, sparqlIdx=-1)
bmtools/tools/kg/wikidata/utils.py:722
↓ 4 callers
Method
create_prompt
(self)
bmtools/agent/translator.py:58
↓ 4 callers
Function
getResult
(query)
bmtools/tools/kg/wikidata/utils.py:125
↓ 4 callers
Method
get_details
(self, prop_id)
bmtools/tools/kg/wikidata/utils.py:20
↓ 4 callers
Function
get_embedding
(text: str, model="text-embedding-ada-002")
bmtools/tools/meta_analysis/api.py:25
↓ 4 callers
Function
set_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 callers
Function
cName2coords
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 callers
Function
deep_reduce
(item)
bmtools/tools/meta_analysis/api.py:201
↓ 3 callers
Method
fetch_page
fetch_page(url: str) print html text of url
bmtools/tools/film/douban/api.py:33
↓ 3 callers
Function
get_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 callers
Method
match
(self, detailed_metrics)
bmtools/knowledge/knowledge_extraction.py:57
↓ 3 callers
Function
prometheus
(url, params)
bmtools/tools/db_diag/anomaly_detection.py:6
↓ 2 callers
Method
_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 callers
Function
_get_library_name
()
bmtools/utils/logging.py:65
↓ 2 callers
Method
_google_serper_search_results
( self, search_term: str, search_type: str = "search", **kwargs: Any )
bmtools/tools/google_serper/api.py:83
↓ 2 callers
Function
_lazy_import_pexpect
Import pexpect only when needed.
bmtools/tools/shell/api.py:14
↓ 2 callers
Function
_return_timestamp
()
bmtools/tools/office/ppt/api.py:38
↓ 2 callers
Method
add_task
(self, task: Dict)
bmtools/agent/BabyagiTools.py:158
↓ 2 callers
Function
cName2IATA
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 callers
Function
clean_str
(p)
bmtools/tools/wikipedia/api.py:7
↓ 2 callers
Function
combine
(tables, tables1=None, crit=None)
bmtools/tools/meta_analysis/api.py:256
↓ 2 callers
Method
confirm_cost
(self, texts, n, max_tokens)
bmtools/tools/database/utils/llm.py:63
↓ 2 callers
Method
confirm_cost
(self, texts, n, max_tokens)
bmtools/tools/db_diag/utils/llm.py:63
↓ 2 callers
Function
convert
(table0)
bmtools/tools/meta_analysis/api.py:214
↓ 2 callers
Method
convert_prompt
(self,params)
bmtools/agent/apitool.py:39
↓ 2 callers
Method
from_llm
( cls, llm: BaseLLM, prompt = None, verbose: bool = False, tools = Non
bmtools/agent/BabyagiTools.py:238
↓ 2 callers
Method
from_llm_and_tools
( cls, ai_name: str, ai_role: str, memory: VectorStoreRetriever, tools
bmtools/agent/autogpt/agent.py:52
↓ 2 callers
Method
get_cid_by_name
(self, name : str, name_type : Optional[str] = None)
bmtools/tools/chemical/prop/api.py:34
↓ 2 callers
Method
get_coming
(self)
bmtools/tools/film/douban/api.py:42
↓ 2 callers
Function
get_conf
(conf_file, server_name)
bmtools/tools/db_diag/utils/db_parser.py:5
↓ 2 callers
Function
get_coordinates
Get the coordinates of a location
bmtools/tools/map/bing_map/api.py:54
↓ 2 callers
Function
get_name
prints the possible 3 synonyms of the queried compound ID
bmtools/tools/chemical/prop/api.py:85
↓ 2 callers
Method
get_name_by_cid
(self, cid : str, top_k : Optional[int] = None)
bmtools/tools/chemical/prop/api.py:12
↓ 2 callers
Method
get_now_playing
(self)
bmtools/tools/film/douban/api.py:68
↓ 2 callers
Function
get_property_details
(url: str)
bmtools/tools/kg/wikidata/utils.py:206
↓ 2 callers
Method
give_str
(self, sparqlIdx=-1)
bmtools/tools/kg/wikidata/utils.py:716
↓ 2 callers
Function
gpt_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 callers
Function
gpt_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 callers
Function
initial
(topic, term=None, ret=100)
bmtools/tools/meta_analysis/api.py:86
↓ 2 callers
Method
list_tools
(self)
bmtools/tools/serve.py:97
↓ 2 callers
Method
load_tools
(self, all_tools)
bmtools/agent/tools_controller.py:54
↓ 2 callers
Function
obtain_values_of_metrics
(start_time, end_time, metrics)
bmtools/tools/db_diag/api.py:25
↓ 2 callers
Method
query
(self, query: str, topk: int = 3)
bmtools/tools/retriever.py:25
↓ 2 callers
Method
resetConn
(self, timeout=-1)
bmtools/tools/database/utils/database.py:65
↓ 2 callers
Method
resetConn
(self, timeout=-1)
bmtools/tools/db_diag/utils/database.py:65
↓ 2 callers
Method
run
Run commands and return final output.
bmtools/tools/shell/api.py:60
↓ 2 callers
Method
search
(self, key_words : str, max_retry : int = 3)
bmtools/tools/bing_search/api.py:47
↓ 1 callers
Method
__complete
Generates text from the model and returns the log prob data.
bmtools/tools/database/utils/llm.py:171
↓ 1 callers
Method
__complete
Generates text from the model and returns the log prob data.
bmtools/tools/db_diag/utils/llm.py:171
↓ 1 callers
Method
__log_probs
Returns the log probs of the text.
bmtools/tools/database/utils/llm.py:191
↓ 1 callers
Method
__log_probs
Returns the log probs of the text.
bmtools/tools/db_diag/utils/llm.py:191
↓ 1 callers
Function
_bind_tool_server
Add property API to ToolServer. t.api is a FastAPI object
bmtools/tools/serve.py:12
↓ 1 callers
Method
_block_input
(self, gr)
bmtools/tools/gradio_tools/tools/gradio_tool.py:73
↓ 1 callers
Method
_block_output
(self, gr)
bmtools/tools/gradio_tools/tools/gradio_tool.py:76
↓ 1 callers
Method
_call
Run text through and get agent response.
bmtools/agent/executor.py:29
↓ 1 callers
Method
_construct_scratchpad
Construct the scratchpad that lets the agent continue its thought process.
bmtools/agent/BabyagiTools.py:28
↓ 1 callers
Method
_generate_command_string
(self, tool: BaseTool)
bmtools/agent/autogptmulti/prompt_generator.py:45
↓ 1 callers
Method
_generate_command_string
(self, tool: BaseTool)
bmtools/agent/autogpt/prompt_generator.py:48
↓ 1 callers
Function
_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 callers
Function
_get_top_tasks
Get the top k tasks based on the query.
bmtools/agent/BabyagiTools.py:129
↓ 1 callers
Method
_initialize_persistent_process
(prompt: str)
bmtools/tools/shell/api.py:47
↓ 1 callers
Method
_is_space
(src: str)
bmtools/tools/gradio_tools/tools/gradio_tool.py:45
↓ 1 callers
Method
_parse_results
(self, results: dict)
bmtools/tools/google_serper/api.py:80
↓ 1 callers
Method
_parse_snippets
(self, results: dict)
bmtools/tools/google_serper/api.py:46
↓ 1 callers
Method
_run
Run commands and return final output.
bmtools/tools/shell/api.py:74
↓ 1 callers
Method
_run_persistent
Run commands and return final output.
bmtools/tools/shell/api.py:99
↓ 1 callers
Method
add_tool
(self, tool_name: str, api_info: Dict)
bmtools/tools/retriever.py:15
↓ 1 callers
Method
add_tool
(self, tool: BaseTool)
bmtools/agent/autogptmulti/prompt_generator.py:42
↓ 1 callers
Method
add_tool
(self, tool: BaseTool)
bmtools/agent/autogpt/prompt_generator.py:45
↓ 1 callers
Method
afunc
(json_args)
bmtools/agent/apitool.py:110
↓ 1 callers
Method
auto_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