Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenBMB/ToolBench
/ functions
Functions
374 in github.com/OpenBMB/ToolBench
⨍
Functions
374
◇
Types & classes
56
↳
Endpoints
2
Method
load_model
(self, model_path: str, from_pretrained_kwargs: dict)
toolbench/model/model_adapter.py:273
Function
log_callback_st
(train_ix, global_step, training_steps, current_lr, loss_value)
toolbench/retrieval/train.py:61
Function
lorem
"Lorem"
data_example/toolenv/tools/Advertising/bog_boi_api/api.py:9
Method
match
(self, model_path: str)
toolbench/model/model_adapter.py:221
Method
match
(self, model_path: str)
toolbench/model/model_adapter.py:252
Method
match
(self, model_path: str)
toolbench/model/model_adapter.py:270
Function
methods
()
toolbench/inference/toolbench_server.py:161
Function
multi_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
Method
node_count
(self)
toolbench/tooleval/evaluation/dataclass.py:172
Method
normalized_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
Method
normalized_openai_completions
(self,task_description:Dict,answers:List[Dict[Any,Any]])
toolbench/tooleval/evaluators/registered_cls/tooleval.py:149
Method
on_chain_error
(self, error: Union[Exception, KeyboardInterrupt], **kwargs: Any)
toolbench/inference/callbacks/ServerEventCallback.py:89
Method
on_llm_error
Run when LLM errors.
toolbench/inference/callbacks/ServerEventCallback.py:122
Method
on_llm_new_token
Run on new LLM token. Only available when streaming is enabled.
toolbench/inference/callbacks/ServerEventCallback.py:106
Method
on_request_error
(self, error: str)
toolbench/inference/callbacks/ServerEventCallback.py:58
Method
on_tool_error
(self, error: Union[Exception, KeyboardInterrupt])
toolbench/inference/callbacks/ServerEventCallback.py:174
Method
openai_completions
(self,task_description:Dict,answers:Dict)
toolbench/tooleval/evaluators/registered_cls/tooleval.py:32
Method
pop_edge
(self,from_node:Union[ExecutionNode,GID],to_node:Union[ExecutionNode,GID])
toolbench/tooleval/evaluation/dataclass.py:226
Function
process_invalid_data
(method,data_dict)
toolbench/tooleval/utils.py:101
Function
process_valid_data
(method,answer_generation)
toolbench/tooleval/utils.py:54
Method
prompt_for_input
Prompt for input from a role.
toolbench/inference/utils.py:225
Method
prompt_for_input
(self, role)
toolbench/inference/utils.py:241
Method
prompt_for_output
Prompt for output from a role.
toolbench/inference/utils.py:229
Method
prompt_for_output
(self, role: str)
toolbench/inference/utils.py:244
Method
prune
pruning off the subtree
toolbench/inference/Tree/Tree.py:80
Function
rank2_subfix
Assumed that the two candidates have a long common prefix
toolbench/inference/LLM_rank/rank_candidate.py:29
Method
recurssive_check
(nodes:Union[List,Dict])
toolbench/tooleval/evaluators/registered_cls/rtl.py:46
Function
referents
"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
Function
register_evaluator
Decorator function to register classes with the registered_evaluators list.
toolbench/tooleval/evaluators/registered_cls/utils.py:12
Method
restart
Restrat the environment
toolbench/inference/Downstream_tasks/base_env.py:9
Method
restart
(self)
toolbench/inference/Downstream_tasks/rapidapi.py:274
Method
return_output
(self, output_stream)
toolbench/inference/utils.py:259
Method
run_pipeline
(self, user_input, method, top_k)
toolbench/inference/toolbench_server.py:41
Function
sample
"Sample"
data_example/toolenv/tools/Business/contus_mirrorfly/api.py:9
Function
search
"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
Method
set_node_vis
(gnode,node:ExecutionNode)
toolbench/tooleval/evaluation/dataclass.py:132
Method
shuffle_run
()
toolbench/tooleval/evaluators/registered_cls/base.py:78
Method
sift_first_invalid_message
(messages)
toolbench/inference/Tree/Tree.py:141
Function
single_contact
"Get a single contact"
data_example/toolenv/tools/Business/contacts_api/api.py:9
Function
softmax_bias
(answers,temperature=1)
toolbench/inference/utils.py:16
Function
song_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
Function
song_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
Function
song_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
Function
song_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
Method
start
This is the entry point of the searching process
toolbench/inference/Algorithms/base_search.py:30
Method
start
(self,single_chain_max_step,pass_at=1,answer=1)
toolbench/inference/Algorithms/single_chain.py:72
Method
step
(self,**args)
toolbench/inference/Downstream_tasks/rapidapi.py:280
Function
stream
()
toolbench/inference/toolbench_server.py:103
Method
stream_output
Stream output.
toolbench/inference/utils.py:233
Method
stream_output
(self, output_stream)
toolbench/inference/utils.py:247
Method
to_gradio_chatbot
Convert the history to gradio chatbot format
toolbench/tool_conversation.py:143
Method
to_json
(self, answer=False, process=True)
toolbench/inference/Algorithms/DFS.py:49
Method
to_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
Method
to_json
(self, answer=False,process=True)
toolbench/inference/Algorithms/single_chain.py:29
Method
to_json
(self)
toolbench/inference/Downstream_tasks/base_env.py:35
Method
to_json_recursive
(self,use_messages=False)
toolbench/inference/Tree/Tree.py:118
Method
to_openai_api_messages
Convert the conversation to OpenAI chat completion format.
toolbench/tool_conversation.py:153
Method
tool_func
(self,tool_name:str,tool_args:str)
toolbench/tooleval/evaluation/usereval.py:38
Function
user_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
Function
user_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
Function
user_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
Function
user_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
Function
user_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
Function
user_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
Function
user_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
Function
user_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
Function
user_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
Function
user_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
Function
user_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
Function
user_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
Function
videos
"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
Function
web_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
Function
web_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
Method
wrap_text
(text:str, width=20)
toolbench/tooleval/evaluation/dataclass.py:123
← previous
301–374 of 374, ranked by callers