MCPcopy Create free account

hub / github.com/RUC-NLPIR/WebThinker / functions

Functions400 in github.com/RUC-NLPIR/WebThinker

Method__init__
(self, args, model: LanguageModel)
scripts/lcb_runner/runner/base_runner.py:14
Method__init__
(self, args, model)
scripts/lcb_runner/runner/vllm_runner.py:12
Method__init__
(self, args, model)
scripts/lcb_runner/runner/cohere_runner.py:15
Method__init__
(self, args, model)
scripts/lcb_runner/runner/claude_runner.py:15
Method__init__
(self, args, model)
scripts/lcb_runner/runner/oai_runner.py:19
Method__init__
(self, args, model)
scripts/lcb_runner/runner/mistral_runner.py:17
Method__init__
(self, args, model)
scripts/lcb_runner/runner/deepseek_runner.py:18
Method__init__
(self, args, model)
scripts/lcb_runner/runner/gemini_runner.py:34
Method__init__
(self, args, model)
scripts/lcb_runner/runner/claude3_runner.py:15
Method__init__
(self, value)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:287
Method__init__
(self, args, kwargs)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:348
Method__init__
初始化Web解析器客户端 Args: base_url: API服务器的基础URL,默认为本地测试服务器
demo/bing_search.py:56
Method__init__
初始化速率限制器 Args: rate_limit: 在时间窗口内允许的最大请求数 time_window: 时间窗口大小(秒),默认60秒
demo/bing_search.py:445
Method__init__
(self, *args, **kwargs)
demo/settings.py:172
Method__iter__
(self)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:301
Method__post_init__
(self)
scripts/lcb_runner/benchmarks/code_generation.py:35
Method__post_init__
(self)
scripts/lcb_runner/benchmarks/code_generation.py:56
Method__post_init__
(self)
scripts/lcb_runner/benchmarks/test_output_prediction.py:29
Method__post_init__
(self)
scripts/lcb_runner/benchmarks/code_execution.py:23
Method__run_single
(counter)
scripts/lcb_runner/runner/cohere_runner.py:27
Method__run_single
(counter)
scripts/lcb_runner/runner/claude_runner.py:26
Method__run_single
(counter)
scripts/lcb_runner/runner/mistral_runner.py:28
Method__run_single
(counter)
scripts/lcb_runner/runner/deepseek_runner.py:35
Method__run_single
(counter)
scripts/lcb_runner/runner/gemini_runner.py:46
Method__run_single
(counter)
scripts/lcb_runner/runner/claude3_runner.py:26
Function_argspec
(func)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:120
Function_fullargspec
(func)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:94
Function_ipyargspec
(func)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:132
Method_load_all
(self)
demo/settings.py:175
Function_newf
(*args, **kwargs)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:351
Method_newf
(*args, **kwargs)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:167
Method_run_single
(self, prompt: str | list[dict[str, str]])
scripts/lcb_runner/runner/base_runner.py:36
Method_run_single
(self, prompt: str)
scripts/lcb_runner/runner/vllm_runner.py:38
Method_run_single
(self, prompt: tuple[dict[str,str], str])
scripts/lcb_runner/runner/cohere_runner.py:24
Method_run_single
(self, prompt: str)
scripts/lcb_runner/runner/claude_runner.py:24
Method_run_single
(self, prompt: list[dict[str, str]])
scripts/lcb_runner/runner/oai_runner.py:39
Method_run_single
(self, prompt: list[dict[str, str]])
scripts/lcb_runner/runner/mistral_runner.py:26
Method_run_single
(self, prompt: str)
scripts/lcb_runner/runner/gemini_runner.py:44
Method_run_single
(self, prompt: tuple[str, str])
scripts/lcb_runner/runner/claude3_runner.py:24
Function_temp_run
(sample, generation, debug, result, metadata_list, timeout)
scripts/lcb_runner/evaluation/compute_code_generation_metrics.py:20
Function_wrap
(f)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:46
Method_wrap
(f)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:166
Functionannotate
Set function annotations using decorators. :param args: This is a list of annotations for the function, in the order of the function's paramet
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:368
Methodargc
Overloads a function based on the specified argument count. :param argc: The argument count. Defaults to ``None``. If ``None`` is given, a
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:141
Functioncall_if_main
Call the `f` with `args` if the caller's module is main.
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:471
Functioncopyfunc
Copies a funcion. :param f: The function to copy. :return: The copied function. .. deprecated:: 0.4 Use :func:`modify_fu
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:67
Functionevaluate_generations_by_problem
(args)
scripts/lcb_runner/evaluation/compute_code_generation_metrics.py:53
Functionevaluate_score
(args)
scripts/lcb_runner/evaluation/compute_code_execution_metrics.py:7
Functionextract_between
Extracts text between two markers in a string.
scripts/run_naive_rag_report.py:81
Functionextract_code
(model_output: str, lmstyle: LMStyle)
scripts/lcb_runner/prompts/self_repair.py:310
Methodf
(self, s)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:34
Functionfannotate
Set function annotations using decorators. :param \*args: The first positional argument is used for the function's return value; all others ar
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:388
Functionfetch_page_content
Concurrently fetch content from multiple URLs. Args: urls (list): List of URLs to scrape. max_workers (int): Maximum number
demo/bing_search.py:247
Functionformat_prompt_execution
(question, LanguageModelStyle)
scripts/lcb_runner/prompts/code_execution.py:68
Functionformat_prompt_execution_cot
(question, LanguageModelStyle)
scripts/lcb_runner/prompts/code_execution.py:72
Functionformat_prompt_test_output
( question: TestOutputPredictionProblem, LanguageModelStyle: LMStyle )
scripts/lcb_runner/prompts/test_output_prediction.py:159
Functionformat_search_results
Format search results into a readable string
scripts/run_naive_rag_report.py:96
Functiongenerate_queue
Generates a queue that can be shared amongst processes Returns: (multiprocessing.Queue): A queue instance
scripts/lcb_runner/utils/multiprocess.py:20
Functionget_direct_gen_report_instruction
(question)
scripts/prompts/prompts_report.py:300
Functionget_edit_section_instruction
(edit_instruction, article)
scripts/prompts/prompts_report.py:225
Methodget_evaluation_sample
(self)
scripts/lcb_runner/benchmarks/code_generation.py:106
Methodget_evaluation_sample
(self)
scripts/lcb_runner/benchmarks/test_output_prediction.py:55
Functionget_gpqa_web_thinker_instruction
(MAX_SEARCH_LIMIT=15)
scripts/prompts/prompts.py:2
Functionget_mixtral_question_template_answer
( question: TestOutputPredictionProblem, testcase_input: str )
scripts/lcb_runner/prompts/test_output_prediction.py:112
Functionget_mixtral_question_template_answer
(question: str, code, result, metadata)
scripts/lcb_runner/prompts/self_repair.py:106
Functionget_section_summary_instruction
(section)
scripts/prompts/prompts_report.py:196
Functionget_task_instruction_timeline
(text, model_name=None)
scripts/prompts/prompts.py:413
Functionget_timeline_search_o1_instruction
(MAX_SEARCH_LIMIT)
scripts/prompts/prompts.py:290
Functioninitializer
Set maximum amount of memory each worker process can allocate.
scripts/lcb_runner/utils/multiprocess.py:92
Methodinsert_output_evaluation
( self, output_list: list[str], code_list: list[str], graded_list: list[bool],
scripts/lcb_runner/benchmarks/code_generation.py:92
Methodinsert_output_evaluation
( self, output_list: list[str], code_list: list[str], graded_list: list[bool] )
scripts/lcb_runner/benchmarks/test_output_prediction.py:47
Methodis_exception
(self)
scripts/lcb_runner/utils/multiprocess.py:85
Methodis_process_expired
(self)
scripts/lcb_runner/utils/multiprocess.py:88
Methodis_timeout
(self)
scripts/lcb_runner/utils/multiprocess.py:82
Functionjudge_zh
(input_str: str)
scripts/run_naive_rag_report.py:119
Methodparse_urls
发送URL列表到解析服务器并获取解析结果 Args: urls: 需要解析的URL列表 timeout: 请求超时时间,默认20秒 Returns:
demo/bing_search.py:65
Methodreadable
Returns True if the IO object can be read.
scripts/lcb_runner/evaluation/utils_execute.py:165
Methodreadline
(self, *args, **kwargs)
scripts/lcb_runner/evaluation/utils_execute.py:159
Methodreadlines
(self, *args, **kwargs)
scripts/lcb_runner/evaluation/utils_execute.py:162
Functionreplace_recent_steps
Replaces specific steps in the original reasoning steps with new steps. If a replacement step contains "DELETE THIS STEP", that step is remov
scripts/run_search_o1.py:333
Functionrun
(idx)
scripts/lcb_runner/evaluation/old_results_check.py:26
Methodrun_batch
(self, prompts: list[str])
scripts/lcb_runner/runner/vllm_runner.py:41
Functionrun_func_in_process
Runs the provided function in a separate process with the supplied args and kwargs. The args, kwargs, and return values must all be pickl
scripts/lcb_runner/utils/multiprocess.py:33
Functionrun_main
Call `f` with the `args` and terminate the program with its return code if the caller's module is main.
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:475
Functionset_docstring
A simple decorator to set docstrings. :param doc: The docstring to tie to the function. Example:: @set_docstring('This is a
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:36
Functionsignal_handler
(signum, frame)
scripts/lcb_runner/evaluation/utils_execute.py:122
Functiontail_recurse
Remove tail recursion from a function. :param spec: A function that, when given the arguments, returns a bool indicating whether or not to exi
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:324
Methodtest_annot
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:62
Methodtest_assign
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:71
Methodtest_compare_and_swap
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:78
Methodtest_module
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:39
Methodtest_overload_argc
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:5
Methodtest_overload_args
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:17
Methodtest_overload_args_annot
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:86
Methodtest_switch
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:48
Methodtest_unpack
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:66
Functiontimeout_handler
(signum, frame)
scripts/lcb_runner/evaluation/testing_util.py:44
Functiontruncate_io
(io)
scripts/lcb_runner/prompts/test_output_prediction.py:37
Functionunsafe_execute
(check_program, result, timeout)
scripts/lcb_runner/evaluation/utils_execute.py:87
Methodx
(a, b, c)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:64
← previous301–400 of 400, ranked by callers