MCPcopy Create free account

hub / github.com/OpenBMB/ToolBench / functions

Functions374 in github.com/OpenBMB/ToolBench

Methodload_model
(self, model_path: str, from_pretrained_kwargs: dict)
toolbench/model/model_adapter.py:273
Functionlog_callback_st
(train_ix, global_step, training_steps, current_lr, loss_value)
toolbench/retrieval/train.py:61
Functionlorem
"Lorem"
data_example/toolenv/tools/Advertising/bog_boi_api/api.py:9
Methodmatch
(self, model_path: str)
toolbench/model/model_adapter.py:221
Methodmatch
(self, model_path: str)
toolbench/model/model_adapter.py:252
Methodmatch
(self, model_path: str)
toolbench/model/model_adapter.py:270
Functionmethods
()
toolbench/inference/toolbench_server.py:161
Functionmulti_search
"The multi search capability covers all content hosted on Genius (all sections)." q: Search query per_page: Number of results to retu
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:1106
Methodnode_count
(self)
toolbench/tooleval/evaluation/dataclass.py:172
Methodnormalized_openai_completions
(self,task_description:Dict, answers:List[Dict[Any,Any]], task_status:None, answer_statuss:[None, None])
toolbench/tooleval/evaluators/registered_cls/rtl.py:202
Methodnormalized_openai_completions
(self,task_description:Dict,answers:List[Dict[Any,Any]])
toolbench/tooleval/evaluators/registered_cls/tooleval.py:149
Methodon_chain_error
(self, error: Union[Exception, KeyboardInterrupt], **kwargs: Any)
toolbench/inference/callbacks/ServerEventCallback.py:89
Methodon_llm_error
Run when LLM errors.
toolbench/inference/callbacks/ServerEventCallback.py:122
Methodon_llm_new_token
Run on new LLM token. Only available when streaming is enabled.
toolbench/inference/callbacks/ServerEventCallback.py:106
Methodon_request_error
(self, error: str)
toolbench/inference/callbacks/ServerEventCallback.py:58
Methodon_tool_error
(self, error: Union[Exception, KeyboardInterrupt])
toolbench/inference/callbacks/ServerEventCallback.py:174
Methodopenai_completions
(self,task_description:Dict,answers:Dict)
toolbench/tooleval/evaluators/registered_cls/tooleval.py:32
Methodpop_edge
(self,from_node:Union[ExecutionNode,GID],to_node:Union[ExecutionNode,GID])
toolbench/tooleval/evaluation/dataclass.py:226
Functionprocess_invalid_data
(method,data_dict)
toolbench/tooleval/utils.py:101
Functionprocess_valid_data
(method,answer_generation)
toolbench/tooleval/utils.py:54
Methodprompt_for_input
Prompt for input from a role.
toolbench/inference/utils.py:225
Methodprompt_for_input
(self, role)
toolbench/inference/utils.py:241
Methodprompt_for_output
Prompt for output from a role.
toolbench/inference/utils.py:229
Methodprompt_for_output
(self, role: str)
toolbench/inference/utils.py:244
Methodprune
pruning off the subtree
toolbench/inference/Tree/Tree.py:80
Functionrank2_subfix
Assumed that the two candidates have a long common prefix
toolbench/inference/LLM_rank/rank_candidate.py:29
Methodrecurssive_check
(nodes:Union[List,Dict])
toolbench/tooleval/evaluators/registered_cls/rtl.py:46
Functionreferents
"Referents are the sections of a piece of content to which annotations are attached. Each referent is associated with a web page or a song and ma
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:828
Functionregister_evaluator
Decorator function to register classes with the registered_evaluators list.
toolbench/tooleval/evaluators/registered_cls/utils.py:12
Methodrestart
Restrat the environment
toolbench/inference/Downstream_tasks/base_env.py:9
Methodrestart
(self)
toolbench/inference/Downstream_tasks/rapidapi.py:274
Methodreturn_output
(self, output_stream)
toolbench/inference/utils.py:259
Methodrun_pipeline
(self, user_input, method, top_k)
toolbench/inference/toolbench_server.py:41
Functionsample
"Sample"
data_example/toolenv/tools/Business/contus_mirrorfly/api.py:9
Functionsearch
"The search capability covers all content hosted on Genius (all songs)." q: Search query per_page: Number of results to return per re
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:992
Methodset_node_vis
(gnode,node:ExecutionNode)
toolbench/tooleval/evaluation/dataclass.py:132
Methodshuffle_run
()
toolbench/tooleval/evaluators/registered_cls/base.py:78
Methodsift_first_invalid_message
(messages)
toolbench/inference/Tree/Tree.py:141
Functionsingle_contact
"Get a single contact"
data_example/toolenv/tools/Business/contacts_api/api.py:9
Functionsoftmax_bias
(answers,temperature=1)
toolbench/inference/utils.py:16
Functionsong_comments
"Song Comments" id: Song ID text_format: Format for text bodies related to the document. One or more of `dom`, `plain`, `markdown`, a
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:1023
Functionsong_details
"A song is a document hosted on Genius. It's usually music lyrics. Data for a song includes details about the document itself and informatio
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:1054
Functionsong_lyrics
"Song Lyrics" id: Song ID text_format: Format for text bodies related to the document. One or more of `dom`, `plain`, and `html`, sep
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:34
Functionsong_recommendations
"Song Recommendations" id: Song ID text_format: Format for text bodies related to the document. One or more of `dom`, `plain`, `markd
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:9
Methodstart
This is the entry point of the searching process
toolbench/inference/Algorithms/base_search.py:30
Methodstart
(self,single_chain_max_step,pass_at=1,answer=1)
toolbench/inference/Algorithms/single_chain.py:72
Methodstep
(self,**args)
toolbench/inference/Downstream_tasks/rapidapi.py:280
Functionstream
()
toolbench/inference/toolbench_server.py:103
Methodstream_output
Stream output.
toolbench/inference/utils.py:233
Methodstream_output
(self, output_stream)
toolbench/inference/utils.py:247
Methodto_gradio_chatbot
Convert the history to gradio chatbot format
toolbench/tool_conversation.py:143
Methodto_json
(self, answer=False, process=True)
toolbench/inference/Algorithms/DFS.py:49
Methodto_json
return a json object, If "answer" = True. must have the following field to make answer annotation If "process" = True. You n
toolbench/inference/Algorithms/base_search.py:15
Methodto_json
(self, answer=False,process=True)
toolbench/inference/Algorithms/single_chain.py:29
Methodto_json
(self)
toolbench/inference/Downstream_tasks/base_env.py:35
Methodto_json_recursive
(self,use_messages=False)
toolbench/inference/Tree/Tree.py:118
Methodto_openai_api_messages
Convert the conversation to OpenAI chat completion format.
toolbench/tool_conversation.py:153
Methodtool_func
(self,tool_name:str,tool_args:str)
toolbench/tooleval/evaluation/usereval.py:38
Functionuser_accomplishments
"User Accomplishments" id: User ID per_page: Number of results to return per request next_cursor: Next cursor text_fo
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:453
Functionuser_contributions_all
"User Contributions (all)" id: User ID per_page: Number of results to return per request text_format: Format for text bodies
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:360
Functionuser_contributions_annotations
"User Contributions (annotations)" id: User ID text_format: Format for text bodies related to the document. One or more of `dom`, `pl
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:323
Functionuser_contributions_articles
"User Contributions (articles)" id: User ID sort: One of these: - popularity - chronologically next_cursor: Next cursor
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:286
Functionuser_contributions_pyongs
"User Contributions (pyongs)" id: User ID per_page: Number of results to return per request text_format: Format for text bodi
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:255
Functionuser_contributions_q_a
"User Contributions (q&a)" id: User ID text_format: Format for text bodies related to the document. One or more of `dom`, `plain`, `m
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:224
Functionuser_contributions_suggestions
"User Contributions (suggestions)" id: User ID next_cursor: Next cursor per_page: Number of results to return per request
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:193
Functionuser_contributions_transcriptions
"User Contributions (transcriptions)" id: User ID next_cursor: Next cursor text_format: Format for text bodies related to the
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:156
Functionuser_contributions_unreviewed_annotations
"User Contributions (unreviewed annotations)" id: User ID per_page: Number of results to return per request next_cursor: Next
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:92
Functionuser_details
"User Details" id: User ID text_format: Format for text bodies related to the document. One or more of `dom`, `plain`, `markdown`, an
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:487
Functionuser_followers
"User Followers" id: User ID per_page: Number of results to return per request page: Paginated offset, (e.g., per_page=5&page
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:422
Functionuser_following
"User Following" id: User ID per_page: Number of results to return per request page: Paginated offset, (e.g., per_page=5&page
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:391
Functionvideos
"Videos" per_page: Number of results to return per request text_format: Format for text bodies related to the document. One or more o
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:59
Functionweb_page_lookup
"A web page is a single, publicly accessible page to which annotations may be attached. Web pages map 1-to-1 with unique, canonical URLs. In
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:793
Functionweb_page_referents
"Web Page Referents" raw_annotatable_url: Web page URL annotation_id: Annotation ID og_url: The URL as specified by an og:url
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:550
Methodwrap_text
(text:str, width=20)
toolbench/tooleval/evaluation/dataclass.py:123
← previous301–374 of 374, ranked by callers