MCPcopy Create free account

hub / github.com/Tencent-Hunyuan/C3-Benchmark / functions

Functions245 in github.com/Tencent-Hunyuan/C3-Benchmark

↓ 12 callersFunctionget_all_tool_info
(tools)
c3_bench/multi_agent/utils/agent_utils.py:44
↓ 12 callersFunctionremove_messages
(messages, is_english=False)
c3_bench/bench_test/handle/tools.py:76
↓ 8 callersMethodadd_weekday_date
(self, date)
c3_bench/bench_test/handle/basic_handle.py:20
↓ 8 callersFunctionparse_answer
(planner_res)
c3_bench/multi_agent/utils/agent_utils.py:7
↓ 6 callersFunctionremove_prepare_ask_tools
(tools)
c3_bench/multi_agent/utils/data_process_utils.py:4
↓ 6 callersMethodrequest_funcall
(self, messages, tools, env_info=None)
c3_bench/bench_test/handle/api_handle.py:18
↓ 5 callersFunctionread_file_to_json
(path, skip_path=None)
c3_bench/bench_test/utils/readnwrite.py:16
↓ 4 callersMethodadd_date_to_message
(self, message, env_info=None)
c3_bench/bench_test/handle/basic_handle.py:32
↓ 3 callersFunctiondraw_matrix_by_type_and_index
(matrix, answer_depth=4)
c3_bench/bench_test/analysis_result.py:335
↓ 3 callersFunctioneval_by_tool_call_graph
(request_func, messages, tools, answer_list, continue_tool_message, env_info=None, retry_num=1)
c3_bench/bench_test/tool_call_graph.py:249
↓ 3 callersFunctionget_keywords
(value)
c3_bench/bench_test/utils/tools.py:48
↓ 3 callersFunctionget_random_date
()
c3_bench/multi_agent/utils/time_utils.py:8
↓ 3 callersFunctionrandom_select_answer_cot
(user_tasks)
c3_bench/multi_agent/utils/agent_utils.py:29
↓ 3 callersFunctionweight_matrix_auto
(matrix, index, type, label, more_weight=None)
c3_bench/bench_test/analysis_result.py:396
↓ 2 callersMethod_get_res
(self, messages)
c3_bench/bench_test/tool_class/tool_class_base.py:40
↓ 2 callersMethodadd_date_to_messsage_user
(self, message, env_info=None)
c3_bench/bench_test/handle/basic_handle.py:47
↓ 2 callersFunctionadd_val
(value_list, val)
c3_bench/bench_test/analysis_result.py:1163
↓ 2 callersFunctioncheck_toolcalls
(item_dict)
c3_bench/bench_test/analysis_result.py:548
↓ 2 callersFunctioncreate_ast_value
(value)
c3_bench/bench_test/handle/tools.py:114
↓ 2 callersMethoddecode_res
(self, res)
c3_bench/bench_test/tool_class/tool_class_base.py:43
↓ 2 callersFunctionformat_response
Formats the response from the OpenFunctions model. Parameters: - response (str): The response generated by the LLM. Returns: -
c3_bench/bench_test/handle/gorilla_handle.py:62
↓ 2 callersFunctiongenerate_code
(node)
c3_bench/bench_test/handle/tools.py:133
↓ 2 callersFunctionget_all_tool_info_for_checker
(tools)
c3_bench/multi_agent/utils/agent_utils.py:69
↓ 2 callersFunctionget_messages_until_task
整合历史消息并根据任务ID和任务内容过滤消息,同时根据语言移除角色标识。 Arguments: messages (list): 包含消息记录的列表,每条记录是一个字典,包含内容和角色等信息。 task_id (int): 任务ID,用于定位特定任
c3_bench/bench_test/request_pipeline_upta.py:121
↓ 2 callersFunctionget_messages_until_task
整合历史消息并根据任务ID和任务内容过滤消息,同时根据语言移除角色标识。 Arguments: messages (list): 包含消息记录的列表,每条记录是一个字典,包含内容和角色等信息。 task_id (int): 任务ID,用于定位特定任
c3_bench/bench_test/request_pipeline.py:38
↓ 2 callersFunctionget_random_pathname
(path_, file_type, keys=None, need_time=False, need_uuid=True)
c3_bench/bench_test/utils/tools.py:22
↓ 2 callersFunctionget_value_from_dict_to_list
(value_dict)
c3_bench/bench_test/analysis_result.py:1122
↓ 2 callersMethodinit_step_to_answer
(self)
c3_bench/bench_test/tool_call_graph.py:189
↓ 2 callersFunctionllm_parallel_checker
(messages, tools, env_info, request_func)
c3_bench/multi_agent/agent/checker_planner.py:369
↓ 2 callersFunctionmain2
(args)
c3_bench/bench_test/analysis_result.py:671
↓ 2 callersMethodparameters2arguments
(self, function_dict)
c3_bench/bench_test/handle/llama_handle.py:51
↓ 2 callersMethodparameters2arguments
(self, function_dict)
c3_bench/bench_test/handle/hammer_handle.py:70
↓ 2 callersFunctionparse_function_call
This is temporary. The long term solution is to union all the types of the parameters from the user's input function definition, and che
c3_bench/bench_test/handle/gorilla_handle.py:49
↓ 2 callersFunctionread_json_file_to_list
(input_file)
c3_bench/multi_agent/utils/file_utils.py:4
↓ 2 callersFunctionremove_more_space
(text)
c3_bench/bench_test/analysis_result.py:62
↓ 2 callersMethodrequest_funcall
Request the function call(s) from the model. Parameters: - messages (list): The messages in the conversation. - tool
c3_bench/bench_test/handle/gorilla_handle.py:125
↓ 2 callersFunctionrun_with_timeout
(func, timeout, *args, **kwargs)
c3_bench/bench_test/tool_call_graph.py:239
↓ 1 callersMethod_format_prompt
(self, messages, function)
c3_bench/bench_test/tool_class/chatglm.py:52
↓ 1 callersFunctionadd_args_info_into_filename
(args)
c3_bench/bench_test/request_pipeline_upta.py:206
↓ 1 callersFunctionadd_args_info_into_filename
(args)
c3_bench/bench_test/request_pipeline.py:111
↓ 1 callersMethodadd_node
(self, tool_call_node)
c3_bench/bench_test/tool_call_graph.py:28
↓ 1 callersMethodadd_node_list
(self)
c3_bench/bench_test/tool_call_graph.py:31
↓ 1 callersFunctionadd_planner_tool
(messages, answer_list, response_continue)
c3_bench/bench_test/request_pipeline_upta.py:40
↓ 1 callersFunctionadd_weekday_date
(date)
c3_bench/bench_test/utils/date.py:24
↓ 1 callersFunctionagent_answer
(messages, tools, env_info, request_func)
c3_bench/multi_agent/agent/agent_answer.py:60
↓ 1 callersFunctionagent_answer_chat
(messages, tools, env_info, request_func)
c3_bench/multi_agent/agent/agent_answer_chat.py:56
↓ 1 callersFunctionagent_ask
(messages, tools, env_info, request_func)
c3_bench/multi_agent/agent/agent_ask.py:58
↓ 1 callersFunctionanalysis_all_file_in_path
(args)
c3_bench/bench_test/analysis_result.py:1191
↓ 1 callersFunctionanalysis_answer_type
(answer_list)
c3_bench/bench_test/analysis_result.py:467
↓ 1 callersMethodbuild_conversation_history
(self, messages)
c3_bench/bench_test/tool_class/xlam.py:107
↓ 1 callersMethodbuild_conversation_history_prompt
(self, conversation_history: str)
c3_bench/bench_test/tool_class/xlam.py:50
↓ 1 callersMethodbuild_prompt
(self, task_instruction: str, format_instruction: str, tools: list, query: str, conversation_history: list, sy
c3_bench/bench_test/tool_class/xlam.py:37
↓ 1 callersFunctioncalculate_predict_result_steps
(label, predict_results, answer_list, bad_arguments)
c3_bench/bench_test/analysis_result.py:505
↓ 1 callersFunctioncheck_arguments
(predict, answer, tool)
c3_bench/bench_test/analysis_result.py:165
↓ 1 callersFunctioncheck_error_type
(item, all_error_type)
c3_bench/bench_test/analysis_result.py:547
↓ 1 callersFunctioncheck_every_function_arguments
(answer_list, predict_result, tools, type_="flag", item_id=None)
c3_bench/bench_test/analysis_result.py:217
↓ 1 callersFunctioncheck_single_arguments
(param1, param2, types)
c3_bench/bench_test/analysis_result.py:66
↓ 1 callersFunctionchecker_planner
(messages, tools, env_info, tool_flag, request_func, enable_llm=True)
c3_bench/multi_agent/agent/checker_planner.py:398
↓ 1 callersFunctionchecker_tool
(messages, action_list, tools, env_info, request_func)
c3_bench/multi_agent/agent/checker_tool.py:55
↓ 1 callersFunctioncompare_lists
(A, B)
c3_bench/bench_test/analysis_result.py:527
↓ 1 callersMethodconvert_to_xlam_tool
(self, tools)
c3_bench/bench_test/tool_class/xlam.py:22
↓ 1 callersMethoddecode_res
(self, prompt, outputs)
c3_bench/bench_test/tool_class/hammer.py:88
↓ 1 callersMethoddecode_res
(self, input_ids_len, outputs)
c3_bench/bench_test/tool_class/xlam2.py:40
↓ 1 callersMethoddecode_res
(self, prompt, outputs)
c3_bench/bench_test/tool_class/watt.py:64
↓ 1 callersMethoddecode_res
(self, prompt, outputs)
c3_bench/bench_test/tool_class/deepseek.py:57
↓ 1 callersMethoddecode_res
(self, prompt, outputs)
c3_bench/bench_test/tool_class/chatglm.py:91
↓ 1 callersMethoddecode_res
(self, prompt, outputs)
c3_bench/bench_test/tool_class/fc_medium.py:72
↓ 1 callersMethoddfs
执行拓扑排序并生成路径
c3_bench/bench_test/tool_call_graph.py:65
↓ 1 callersMethodformat_message
(self, messages, functions, more_info=None)
c3_bench/bench_test/tool_class/tool_class_base.py:37
↓ 1 callersFunctionfunctions_uniform
(function)
c3_bench/bench_test/utils/tools.py:150
↓ 1 callersFunctiongen_one_data
(tools, node_list, layer_num_total, agent_handle_to_model)
c3_bench/multi_agent/generate.py:212
↓ 1 callersFunctiongen_path
(layer_num_total)
c3_bench/multi_agent/generate.py:274
↓ 1 callersMethodgenerate_all_path
(self)
c3_bench/bench_test/tool_call_graph.py:40
↓ 1 callersFunctiongenerate_route
(depth, already_list, item_list=None)
c3_bench/bench_test/analysis_result.py:435
↓ 1 callersFunctionget_current_date
()
c3_bench/bench_test/web_server.py:12
↓ 1 callersFunctionget_current_date
()
c3_bench/bench_test/utils/date.py:17
↓ 1 callersFunctionget_key_value_by_route
(dict, key_list)
c3_bench/bench_test/analysis_result.py:1178
↓ 1 callersFunctionget_keywords
(value)
c3_bench/bench_test/utils/parse_res.py:4
↓ 1 callersMethodget_messages_res
(self, messages, extra_args={}, more_info=None)
c3_bench/bench_test/tool_class/tool_class_base.py:24
↓ 1 callersMethodget_prompt
Generates a conversation prompt based on the user's query and a list of functions. Parameters: - user_query (str): The user'
c3_bench/bench_test/handle/gorilla_handle.py:102
↓ 1 callersFunctionget_random_file_name
(file_type, keys=None, need_time=False, need_uuid=True)
c3_bench/bench_test/utils/tools.py:10
↓ 1 callersMethodget_res
(self, messages, functions, extra_args={}, more_info=None)
c3_bench/bench_test/tool_class/watt.py:37
↓ 1 callersFunctionget_types
(properties)
c3_bench/bench_test/analysis_result.py:301
↓ 1 callersMethodinit
(self)
c3_bench/bench_test/tool_class/tool_class_base.py:7
↓ 1 callersMethodinit_graph_and_in_degree
初始化图、入度表
c3_bench/bench_test/tool_call_graph.py:52
↓ 1 callersFunctionmain
(all_path_list, layer_num_total, agent_handle_to_model)
c3_bench/multi_agent/generate.py:241
↓ 1 callersFunctionmain
()
c3_bench/multi_agent/handle/api_handle.py:28
↓ 1 callersFunctionmain
()
c3_bench/multi_agent/agent/user_answer_ask.py:90
↓ 1 callersFunctionmain
(args)
c3_bench/bench_test/request_pipeline_upta.py:233
↓ 1 callersFunctionmain
(args)
c3_bench/bench_test/request_pipeline.py:138
↓ 1 callersFunctionmain
()
c3_bench/bench_test/handle/gorilla_handle.py:170
↓ 1 callersFunctionmain
()
c3_bench/bench_test/handle/chatglm_handle.py:53
↓ 1 callersFunctionmain
()
c3_bench/bench_test/handle/xlam_handle.py:52
↓ 1 callersFunctionmain
()
c3_bench/bench_test/handle/llama_handle.py:98
↓ 1 callersFunctionmain
()
c3_bench/bench_test/handle/hunyuan_handle.py:67
↓ 1 callersFunctionmain
()
c3_bench/bench_test/handle/hammer_handle.py:110
↓ 1 callersFunctionmain
()
c3_bench/bench_test/handle/xlam2_handle.py:91
↓ 1 callersFunctionmain
()
c3_bench/bench_test/handle/fcm_handle.py:81
↓ 1 callersFunctionmain
()
c3_bench/bench_test/handle/watt_handle.py:153
↓ 1 callersFunctionmain
()
c3_bench/bench_test/handle/toolace_handle.py:129
next →1–100 of 245, ranked by callers