MCPcopy Create free account

hub / github.com/RUCAIBox/ManuSearch / functions

Functions128 in github.com/RUCAIBox/ManuSearch

↓ 45 callersMethodget
(self, session_id=0)
searchagent/utils/memory.py:86
↓ 14 callersMethodupdate
Updates the content and memory for a given node based on the sender type. Args: node_name (`str`): The name of the n
searchagent/models/recorder.py:143
↓ 9 callersMethod_log_error
Log error to log file Args: message: Error message
searchagent/utils/cache.py:192
↓ 9 callersFunctionparse_resp_to_json
(resp_str)
searchagent/utils/utils.py:41
↓ 7 callersFunctiontimeit
(description: str)
searchagent/utils/utils.py:124
↓ 5 callersMethodadd
(self, memories: Union[List[Dict], Dict, None])
searchagent/utils/memory.py:28
↓ 5 callersMethodsearch
Parses and summarizes the search results with extracted references. If the search engine summary doesn't contain enough info, the c
searchagent/models/searcher.py:58
↓ 4 callersMethodchunk_content
(self, text ,chunk_size=512)
searchagent/tools/visitpage.py:272
↓ 4 callersMethodforward
(self, query, mode='iterative')
searchagent/models/searchagent.py:56
↓ 4 callersMethodload
( self, memories: Union[str, Dict, List], overwrite: bool = True, )
searchagent/utils/memory.py:45
↓ 4 callersFunctionremove_think_tags
(text: str)
searchagent/utils/utils.py:172
↓ 3 callersMethodexecute
Execute the tool with given parameters.
searchagent/tools/basetool.py:17
↓ 3 callersFunctionfinish_condition
(resp)
searchagent/utils/utils.py:117
↓ 3 callersMethodget_memory
( self, recent_n: Optional[int] = None, filter_func: Optional[Callable[[int, dict],
searchagent/utils/memory.py:14
↓ 3 callersMethodstore_failed
Store a failed URL attempt
searchagent/utils/cache.py:97
↓ 3 callersMethodupdate_memory
(self, message:Union[List[AgentMessage], AgentMessage, None], session_id=0)
searchagent/models/basellm.py:692
↓ 2 callersMethod_call_serper_api
(self, api_key, query: str)
searchagent/tools/websearch.py:161
↓ 2 callersMethod_save_failed_urls
Save failed URLs to file
searchagent/utils/cache.py:184
↓ 2 callersMethod_save_url_map
Save URL mapping to file
searchagent/utils/cache.py:176
↓ 2 callersMethodextract_text
(self, tool_return)
searchagent/models/reader.py:121
↓ 2 callersMethodgenerate_request_data
Generates the request data for different model types. Args: model_type (str): The type of the model (e.g., 'gpt', 'i
searchagent/models/basellm.py:582
↓ 2 callersMethodget_content
Get URL content, reading from cache if available, otherwise fetching from web Args: url: URL to fetch
searchagent/utils/cache.py:70
↓ 2 callersMethodget_llm_summ
(self, search_results:dict, question, user_query, search_intent, current_query)
searchagent/models/reader.py:23
↓ 2 callersMethodplan
Generates the current plan and subqueries based on the user input and recorder. Args: message (`Union[List[U
searchagent/models/planner.py:21
↓ 1 callersMethod_aggregate
(self, memory: Memory, system_instruction)
searchagent/models/basellm.py:696
↓ 1 callersMethod_chat
Generate completion from a list of templates. Args: messages (List[dict]): a list of prompt dictionaries gen_para
searchagent/models/basellm.py:278
↓ 1 callersMethod_construct_graph
(self,message)
searchagent/models/recorder.py:117
↓ 1 callersMethod_filter_results
(self, results: List[tuple])
searchagent/tools/websearch.py:180
↓ 1 callersMethod_generate_references_from_graph
Generates references from the search result graph and updates the reference indices. Args: query (`str`): The origin
searchagent/models/searcher.py:302
↓ 1 callersMethod_get_filename_for_url
Generate unique filename for URL Args: url: URL Returns: Filename string
searchagent/utils/cache.py:162
↓ 1 callersMethod_parse_response
(self, response: dict)
searchagent/tools/websearch.py:195
↓ 1 callersMethod_store_url_content
Store URL content as a separate JSON file Args: url: URL to store content: Content to store
searchagent/utils/cache.py:143
↓ 1 callersMethod_stream_chat
Generate completion from a list of templates. Args: messages (List[dict]): a list of prompt dictionaries gen_para
searchagent/models/basellm.py:444
↓ 1 callersMethod_update_ref
Updates references within a given string based on reference indices and the provided pointer. Args: ref (`str`): The
searchagent/models/searcher.py:264
↓ 1 callersMethodadd_node
Add a search sub-question node. Args: node_name (str): Name of the node. node_content (str): Content of the sub-q
searchagent/models/recorder.py:31
↓ 1 callersMethodadd_response_node
Add a response node. If the current information meets the query requirements, add a response node. Args: thought (str
searchagent/models/recorder.py:67
↓ 1 callersMethodadd_root_node
Add the root node to the graph. Args: node_content (str): Content of the node. node_name (str, optional): Name of
searchagent/models/recorder.py:17
↓ 1 callersMethodadd_tool
(self, tool: BaseTool)
searchagent/tools/tool_collection.py:37
↓ 1 callersFunctioncal_timediff
(start)
searchagent/utils/utils.py:29
↓ 1 callersMethodchat
Generate responses given the contexts. Args: inputs (Union[List[dict], List[List[dict]]]): a list of messages
searchagent/models/basellm.py:244
↓ 1 callersMethodchunk_content
(self, text, chunk_size=512)
searchagent/models/reader.py:194
↓ 1 callersMethodcreate_instance
(self, session_id)
searchagent/utils/memory.py:75
↓ 1 callersFunctioncreate_object
Create an instance based on the configuration where 'type' is a preserved key to indicate the class (path). When accepting non-dictionary in
searchagent/utils/utils.py:151
↓ 1 callersFunctionextract_int
(index)
searchagent/utils/utils.py:61
↓ 1 callersMethodforward
(self, session_id=0, **kwargs)
searchagent/models/basellm.py:662
↓ 1 callersFunctiongenerate
(messages, model_name)
script/eval_ans_searchagent.py:32
↓ 1 callersMethodgenerate
Generate results given a str (or list of) inputs. Args: inputs (Union[str, List[str]]): gen_params (dict): The in
searchagent/models/basellm.py:67
↓ 1 callersMethodget_answer
(self, message: str, solve_method='iterative', deep_reasoning=False, history='')
searchagent/agent/agent.py:114
↓ 1 callersFunctionget_tool_arg
(tool_call)
searchagent/utils/utils.py:38
↓ 1 callersFunctionget_tool_name
(tool_call)
searchagent/utils/utils.py:35
↓ 1 callersMethoditerative
Executes the search process iteratively, refining the search results over multiple turns. Args: query (`str`): The u
searchagent/models/searchagent.py:77
↓ 1 callersFunctionload_class_from_string
(class_path: str, path=None)
searchagent/utils/utils.py:134
↓ 1 callersFunctionload_multiple_dict
(resp_str)
searchagent/utils/utils.py:70
↓ 1 callersFunctionmain
()
script/run_manusearch.py:227
↓ 1 callersFunctionmain_async
()
script/run_manusearch.py:74
↓ 1 callersMethodneed_proxy
(self, url)
searchagent/tools/visitpage.py:176
↓ 1 callersMethodparse
(self, response)
searchagent/tools/visitpage.py:190
↓ 1 callersFunctionparse_args
()
script/run_manusearch.py:14
↓ 1 callersFunctionparse_args
()
script/eval_ans_searchagent.py:12
↓ 1 callersMethodparse_docx
DOCX file parsing method
searchagent/tools/visitpage.py:240
↓ 1 callersMethodparse_excel
Excel file parsing method
searchagent/tools/visitpage.py:254
↓ 1 callersMethodparse_pdf
(self, response)
searchagent/tools/visitpage.py:214
↓ 1 callersFunctionprocess_single_sequence
(agent, message)
script/run_manusearch.py:51
↓ 1 callersMethodreset
Reset the graph by clearing all nodes and edges.
searchagent/models/recorder.py:86
↓ 1 callersMethodstore_content
Manually store URL content to cache Args: url: URL to store content: Content to store
searchagent/utils/cache.py:116
↓ 1 callersMethodstream_chat
Generate responses given the contexts. Args: inputs (List[dict]): a list of messages gen_params: additional gener
searchagent/models/basellm.py:359
↓ 1 callersMethodto_schema
Convert tool to function call format.
searchagent/tools/basetool.py:20
↓ 1 callersFunctiontrack_progress
(task)
script/run_manusearch.py:201
↓ 1 callersMethodupdate_gen_params
(self, **kwargs)
searchagent/models/basellm.py:145
↓ 1 callersFunctionvalidate_data
(file, model_name)
script/eval_ans_searchagent.py:44
Method__call__
Execute the tool with given parameters.
searchagent/tools/basetool.py:12
Method__call__
(self, message: Union[AgentMessage, List[AgentMessage]], session_id=0, **kwargs)
searchagent/models/basellm.py:677
Method__eq__
(self, other)
searchagent/tools/websearch.py:79
Method__hash__
(self)
searchagent/tools/websearch.py:76
Method__init__
(self, searcher: Searcher )
searchagent/tools/solveplan.py:30
Method__init__
( self, api_key: List[str] = None, topk: int = 5, black_list: List[str] =
searchagent/tools/websearch.py:61
Method__init__
(self, *tools: BaseTool)
searchagent/tools/tool_collection.py:10
Method__init__
( self, api_key :str = '', timeout : int = 5, proxy : str
searchagent/tools/visitpage.py:51
Method__init__
(self, recent_n=None)
searchagent/utils/memory.py:10
Method__init__
(self, cfg)
searchagent/utils/memory.py:71
Method__init__
Initialize the caching mechanism Args: cache_dir: Cache directory path url_map_file: URL mappin
searchagent/utils/cache.py:18
Method__init__
(self, llm:GPTAPI, webpage_cache, summary_prompt, extract_prompt, search_api_key, proxy, **baseconfig)
searchagent/models/reader.py:10
Method__init__
(self, path: str, tokenizer_only: bool = False, template
searchagent/models/basellm.py:33
Method__init__
(self, model_type: str, retry: int = 2, *,
searchagent/models/basellm.py:161
Method__init__
( self, model_type: str = 'gpt-4o-mini', retry: int = 2, json_mode: bool =
searchagent/models/basellm.py:210
Method__init__
( self, llm: Union[BaseLLM, Dict], template: Union[str, dict, List[dict]] = None,
searchagent/models/basellm.py:646
Method__init__
( self, llm: Union[BaseLLM, Dict], template: Union[str, dict, List[dict]] = None,
searchagent/models/basellm.py:730
Method__init__
(self)
searchagent/models/recorder.py:13
Method__init__
Initializes the Recorder object to track query content and memory. Args: action (`str`): The action to be performed
searchagent/models/recorder.py:104
Method__init__
( self, **baseconfig )
searchagent/models/planner.py:14
Method__init__
A module responsible for parsing and summarizing relevant information from search results. Args: user_input_template
searchagent/models/searcher.py:15
Method__init__
Initializes the SearchAgent with required components for each stage of the search process. Args: planner (`P
searchagent/models/searchagent.py:30
Method__init__
( self, google_subscription_key, google_search_topk, proxy, plann
searchagent/agent/agent.py:22
Method__iter__
(self)
searchagent/tools/tool_collection.py:14
Method_execute
(self, url, title, webpage_cache)
searchagent/tools/visitpage.py:124
Method_search
(self, query: str, max_retry: int = 3)
searchagent/tools/websearch.py:120
Methodadd
(self, memory, session_id=0, **kwargs)
searchagent/utils/memory.py:81
Methodadd_edge
Add an edge between two nodes. Args: start_node (str): Name of the starting node. end_node (str): Name of the end
searchagent/models/recorder.py:77
Methodadd_tools
(self, *tools: BaseTool)
searchagent/tools/tool_collection.py:42
Methodchat
Generate completion from a list of templates. Args: inputs (Union[List[dict], List[List[dict]]]): gen_params (dic
searchagent/models/basellm.py:101
next →1–100 of 128, ranked by callers