MCPcopy Create free account

hub / github.com/OpenBMB/BMTools / functions

Functions673 in github.com/OpenBMB/BMTools

Methodcompute_table_schema
schema: {table_name: [field_name]} :param cursor: :return:
bmtools/tools/db_diag/utils/database.py:229
Functionconversational
(model_id: str, text: str, past_user_inputs: str, generated_responses: str)
bmtools/tools/hugging_tools/api.py:166
Methodconvert_openapi_to_params
(request_body)
bmtools/agent/apitool.py:86
Methodcost_estimation
(self, sql)
bmtools/tools/database/utils/database.py:200
Methodcost_estimation
(self, sql)
bmtools/tools/db_diag/utils/database.py:223
Functioncpu_diagnosis_agent
(start_time : int, end_time : int)
bmtools/tools/db_diag/api.py:191
Functioncreate_file
create_file(theme:str) -> None Create a pptx file with specific themes. Available themes: <update at runtime>
bmtools/tools/office/ppt/api.py:59
Methodcreate_job
(self, query: str)
bmtools/tools/gradio_tools/tools/image_to_music.py:26
Methodcreate_job
(self, query: str)
bmtools/tools/gradio_tools/tools/sam_with_clip.py:37
Methodcreate_job
(self, query: str)
bmtools/tools/gradio_tools/tools/text_to_video.py:27
Methodcreate_job
(self, query: str)
bmtools/tools/gradio_tools/tools/stable_diffusion.py:31
Methodcreate_job
(self, query: str)
bmtools/tools/gradio_tools/tools/document_qa.py:25
Methodcreate_job
(self, query: str)
bmtools/tools/gradio_tools/tools/clip_interrogator.py:26
Methodcreate_job
(self, query: str)
bmtools/tools/gradio_tools/tools/bark.py:64
Methodcreate_job
(self, query: str)
bmtools/tools/gradio_tools/tools/whisper.py:28
Methodcreate_job
(self, query: str)
bmtools/tools/gradio_tools/tools/prompt_generator.py:24
Methodcreate_job
(self, query: str)
bmtools/tools/gradio_tools/tools/image_captioning.py:30
Functioncreate_split
Split data into two parts. Data is in the form of a tuple of lists.
bmtools/tools/database/utils/data.py:16
Functioncreate_split
Split data into two parts. Data is in the form of a tuple of lists.
bmtools/tools/db_diag/utils/data.py:16
Functiondecorator
(tool : FuncToolBuilder)
bmtools/tools/registry.py:28
Functiondecorator
(func: callable)
bmtools/tools/office/ppt/api.py:44
Functiondescribe_image
Get the text description of an image.
bmtools/tools/sceneXplain/api.py:29
Functiondisable_default_handler
Disable the default handler of the HuggingFace Transformers's root logger.
bmtools/utils/logging.py:172
Functiondisable_propagation
Disable propagation of the library log outputs. Note that log propagation is disabled by default.
bmtools/utils/logging.py:208
Functiondisambiguation
The input is an entity name. This action will disambiguate this entity name to find other entities with similar names in Wikipedia.
bmtools/tools/wikipedia/api.py:123
Functiondocument_question_answering
(model_id: str, image_file_name: str, text: str)
bmtools/tools/hugging_tools/api.py:186
Functiondouban_film
()
bmtools/tools/film/__init__.py:4
Functiondraw_table
extract the important elements of the literatures recorded in the literature path and return the path of table records. concatenate the literature pat
bmtools/tools/meta_analysis/api.py:456
Methoddrop_simulated_index
(self, oid)
bmtools/tools/database/utils/database.py:264
Methoddrop_simulated_index
(self, oid)
bmtools/tools/db_diag/utils/database.py:287
Functionenable_default_handler
Enable the default handler of the HuggingFace Transformers's root logger.
bmtools/utils/logging.py:181
Functionenable_explicit_format
Enable explicit formatting for every HuggingFace Transformers's logger. The explicit formatter is as follows: ``` [LEVELNAME|FILENAME
bmtools/utils/logging.py:227
Functionenable_propagation
Enable propagation of the library log outputs. Please disable the HuggingFace Transformers's default handler to prevent double logging if the
bmtools/utils/logging.py:217
Functionexecute_python_code
execute Python expressions with Python Interpreter, can be used as a simple calculator e.g., "(123 + 234) / 23 * 19"
bmtools/tools/code_interpreter/api.py:42
Functionfile_operation
()
bmtools/tools/file_operation/__init__.py:5
Functionfind_abnormal_metrics
(start_time, end_time, monitoring_metrics, resource)
bmtools/tools/db_diag/api.py:48
Functionfind_entity
Find all <r, t> that has the relation <input, r, t>. It looks like viewing the main page of the input entity. The result is a table.
bmtools/tools/kg/wikidata/api.py:20
Methodfind_entity_by_relation
(self, ent1)
bmtools/tools/kg/wikidata/utils.py:550
Functionfind_entity_by_tail
Find all <h, r> that has the relation <h, r, input>. It looks like viewing the reverse main page of the input entity. The result is a table.
bmtools/tools/kg/wikidata/api.py:85
Methodfind_tuple
(self, tup)
bmtools/tools/kg/wikidata/utils.py:397
FunctionflightProducts
This function returns the flight information between two cities. :param origin: (str) city name, origin of departure :param d
bmtools/tools/travel/api.py:146
Functionforecast_weather
Forecast weather in the upcoming days.
bmtools/tools/weather/api.py:52
Functionformat_docs
(str)
bmtools/tools/hugging_tools/api.py:128
Methodformat_messages
(self, **kwargs: Any)
bmtools/agent/autogptmulti/prompt.py:41
Methodformat_messages
(self, **kwargs: Any)
bmtools/agent/autogpt/prompt.py:39
Methodfrom_llm
Get the response parser.
bmtools/agent/BabyagiTools.py:43
Methodfrom_llm
Get the response parser.
bmtools/agent/BabyagiTools.py:68
Methodfrom_llm
Get the response parser.
bmtools/agent/BabyagiTools.py:83
Methodfrom_llm_and_tools
( cls, ai_name: str, ai_role: str, memory: VectorStoreRetriever, tools
bmtools/agent/autogptmulti/agent.py:52
Functiongenerate_image
Generate an image.
bmtools/tools/image_generation/api.py:107
Functiongenerate_summary
given the exploring topic and the record table path of the literatures, this tool generates a paragraph of summary.
bmtools/tools/meta_analysis/api.py:496
Methodgenerate_text
Generates text from the model. Parameters: prompt: The prompt to use. This can be a string or a list of strings. Returns:
bmtools/tools/database/utils/llm.py:32
Methodgenerate_text
(self, prompt, n)
bmtools/tools/database/utils/llm.py:84
Methodgenerate_text
(self, prompt, n)
bmtools/tools/database/utils/llm.py:288
Methodgenerate_text
Generates text from the model. Parameters: prompt: The prompt to use. This can be a string or a list of strings. Returns:
bmtools/tools/db_diag/utils/llm.py:32
Methodgenerate_text
(self, prompt, n)
bmtools/tools/db_diag/utils/llm.py:84
Methodgenerate_text
(self, prompt, n)
bmtools/tools/db_diag/utils/llm.py:288
MethodgetCount
(self)
bmtools/tools/kg/wikidata/utils.py:336
FunctiongetWolframAlphaResults
Get Wolfram|Alpha results using natural query. Queries to getWolframAlphaResults must ALWAYS have this structure: {\"input\": query}. And please direc
bmtools/tools/wolframalpha/api.py:24
Functionget_address_by_coordinates
该函数仅适用于中国境内地图(内陆),this function only suitable for locations in Mainland China 根据经纬度获取地点名称 :param lat: 纬度 :param lng:
bmtools/tools/map/baidu_map/baidu_api.py:165
Functionget_allname
prints all the possible synonyms (might be too many, use this function carefully).
bmtools/tools/chemical/prop/api.py:93
Functionget_api_info
()
bmtools/tools/serve.py:36
Methodget_api_info
(request : fastapi.Request)
bmtools/tools/tool.py:88
Functionget_arxiv_article_information
Run Arxiv search and get the article meta information.
bmtools/tools/arxiv/api.py:30
Methodget_cid_by_name
(self, name : str, name_type : Optional[str] = None)
bmtools/tools/chemical/prop/test_prop.py:19
Methodget_cid_by_struct
(self, smiles : str)
bmtools/tools/chemical/prop/test_prop.py:16
Functionget_citation
Function to get citation results from the Google Scholar organic results using the Google Scholar Cite API. Parameters: q (s
bmtools/tools/google_scholar/api.py:135
Methodget_coming
(self)
bmtools/tools/film/douban/test_douban.py:10
Functionget_daily_prices
Get the stock price of an entity in the stock market. Date should be pass as 'yyyy-mm-dd'.
bmtools/tools/stock/api.py:47
Functionget_database_schema
(db_name : str='tpch10x')
bmtools/tools/database/api.py:43
Functionget_distance
Get the distance between two locations in miles
bmtools/tools/map/bing_map/api.py:22
Functionget_distance
该函数仅适用于中国境内地图(内陆),this function only suitable for locations in Mainland China 查询两地之间的距离 :param origin: 起点地址 :param de
bmtools/tools/map/baidu_map/baidu_api.py:199
Functionget_entity_details
(url: str)
bmtools/tools/kg/wikidata/utils.py:148
Functionget_entity_id
Search for all the entities that has the surface form as the input. For example, all the entities that are named ``Obama'', including either person, b
bmtools/tools/kg/wikidata/api.py:141
Functionget_exchange_rate
This API returns the realtime exchange rate for a pair of digital currency (e.g., Bitcoin) and physical currency (e.g., USD).
bmtools/tools/stock/api.py:93
Methodget_full_inputs
Create the full inputs for the LLMChain from intermediate steps.
bmtools/agent/BabyagiTools.py:19
Functionget_id
prints the ID of the queried compound name, and prints the possible 5 names if the queried name can not been precisely matched,
bmtools/tools/chemical/prop/api.py:117
Functionget_id_by_struct
prints the ID of the queried compound SMILES. This should only be used if smiles is provided or retrieved in the previous step. The input should not b
bmtools/tools/chemical/prop/api.py:102
Functionget_image
get_image(keywords:str) -> str Get an image given comma separated keywords, return the image path.
bmtools/tools/office/ppt/api.py:67
Functionget_job_details
You can get the job_ids from 'basic_job_search' function Get all job details, including additional application options / links, emplo
bmtools/tools/job_search/api.py:132
Functionget_loaded_tools
()
bmtools/tools/serve.py:30
Functionget_location
该函数仅适用于中国境内地图(内陆),this function only suitable for locations in Mainland China 根据地址获取地点经纬度, return the coordinates :param addr
bmtools/tools/map/baidu_map/baidu_api.py:155
Functionget_log_levels_dict
()
bmtools/utils/logging.py:112
Functionget_model_status
(model_id, url, headers)
bmtools/tools/hugging_tools/api.py:77
Methodget_movie_detail
(self, url : str)
bmtools/tools/film/douban/test_douban.py:24
Methodget_name_by_cid
(self, cid : str, top_k : Optional[int] = None)
bmtools/tools/chemical/prop/test_prop.py:10
Functionget_nearby_places
该函数仅适用于中国境内地图(内陆),this function only suitable for locations in Mainland China 查询某位置附近的地点 :param location: 地点的经纬度 (纬度, 经度)
bmtools/tools/map/baidu_map/baidu_api.py:176
Methodget_now_playing
(self)
bmtools/tools/film/douban/test_douban.py:17
Functionget_open_info
get information about if the market in the region is open
bmtools/tools/stock/api.py:81
Functionget_parser
()
bmtools/tools/database/utils/db_parser.py:12
Functionget_parser
()
bmtools/tools/db_diag/utils/db_parser.py:12
Functionget_profile
The getProfile function is used to scrape profile results from the Google Scholar Profiles search page. Args: mauthors (
bmtools/tools/google_scholar/api.py:171
Functionget_prop
prints the properties of the queried compound ID
bmtools/tools/chemical/prop/api.py:146
Methodget_prop_by_cid
(self, cid : str)
bmtools/tools/chemical/prop/test_prop.py:22
Functionget_property_checkout_price
This function retrieves the checkout cost of a property given its ID and check-in date. Parameters: propertyId (int): The ID
bmtools/tools/airbnb/api.py:287
Functionget_property_details
This function retrieves the details of a property given its ID. Parameters: propertyId (int): The ID of the property.
bmtools/tools/airbnb/api.py:215
Functionget_property_reviews
This function retrieves the reviews of a property given its ID. Parameters: propertyId (int): The ID of the property.
bmtools/tools/airbnb/api.py:270
Functionget_relation_id
Search for all the relations that has the surface form as the input. For example, all the relations that are named ``tax''.
bmtools/tools/kg/wikidata/api.py:168
Functionget_route
Get the route between two locations in miles
bmtools/tools/map/bing_map/api.py:36
Functionget_route
该函数仅适用于中国境内地图(内陆),this function only suitable for locations in Mainland China 查询两地之间的路线 :param origin: 起点地址 :param de
bmtools/tools/map/baidu_map/baidu_api.py:188
← previousnext →401–500 of 673, ranked by callers