MCPcopy Create free account

hub / github.com/aiwaves-cn/agents / functions

Functions388 in github.com/aiwaves-cn/agents

Methodfunc
(self, url)
src/agents/tools/web_crawl.py:24
Methodfunc
(self, translate_dict: Dict)
src/agents/tools/translate.py:160
Methodfunc
(self, query, **kwargs)
src/agents/tools/web_search.py:206
Methodfunc
(self, query: str)
src/agents/tools/code_interpreter.py:33
Methodfunc
(self, mail_dict: dict)
src/agents/tools/mail.py:291
Methodgenerate_config
(cls)
src/agents/utils/config.py:60
Methodgenerate_config
(cls, query)
src/agents/task/task.py:38
Methodgenerate_config
( cls, task_description: str, node_name: str, node_description
src/agents/task/node.py:56
Methodgenerate_config
( cls, task_description: str, node_name: str, node_description: str, n
src/agents/task/node.py:220
Methodgenerate_config
(cls, query)
src/agents/task/solution.py:42
Methodgenerate_config
(cls, agent_name: str, agent_roles: Dict[str, str])
src/agents/agents/agent.py:54
Methodgenerate_config
( cls, task_description: str, all_node_roles_description: Dict[str, dict] )
src/agents/agents/agent_team.py:43
Methodgenerate_config
()
src/agents/agents/toolkit.py:77
Methodgenerate_query
()
src/agents/tools/mail.py:140
Methodget_case_dict
Create a dictionary representing a case at a specific index, including the ground truth if available. Args: idx (int): T
src/agents/datasets/humaneval.py:154
Methodget_case_dict
Create a dictionary representing a case at a specific index, including the ground truth if available. Args: idx (int): The i
src/agents/datasets/software_dev.py:32
Methodget_dict_for_node_optimizer
Get information for the NodeOptimizer. Args: node_name (str): The name of the node. variable_names (list): T
src/agents/evaluation/case.py:140
Methodget_dict_for_sop_optimizer
Generate the dictionary for the SOP optimizer. Args: need_variable_names (list): The list of variable names required by
src/agents/evaluation/case.py:183
Methodget_memory_embedding
(self)
src/agents/agents/memory.py:135
Methodget_output_dim
r"""Returns the output dimension of the embeddings. Returns: int: The dimensionality of the embedding for the current model.
src/agents/utils/embeddings.py:144
Methodget_payloads_by_vector
r"""Returns payloads of top k vector records that closest to the given vector. This function is a wrapper of `BaseVectorStorage.query
src/agents/utils/storages/vectordb_storages/base.py:165
Methodget_relevant_memory
Retrieve a list of key history entries based on a query using semantic search. Args: query (str): The input query for wh
src/agents/agents/memory.py:61
Methodget_role_chat
(cur_node_name)
src/agents/evaluation/case.py:152
Functionget_score
case跑完了之后加载保存下来的case获取分数 Returns:
examples/creative_writing/run_eval.py:20
Methodinterrupt
(self)
src/agents/tools/web_browse.py:37
Methodis_openai
r"""Returns whether this type of models is an OpenAI-released model.
src/agents/utils/embeddings.py:31
Methodload
r"""Load the collection hosted on cloud service.
src/agents/utils/storages/vectordb_storages/qdrant.py:351
Methodload
r"""Load the collection hosted on cloud service.
src/agents/utils/storages/vectordb_storages/base.py:155
Methodload
r"""Load the collection hosted on cloud service.
src/agents/utils/storages/vectordb_storages/milvus.py:359
Methodload
r"""Loads all stored records from the key-value storage system. Returns: List[Dict[str, Any]]: A list of dictionaries, where each
src/agents/utils/storages/key_value_storages/in_memory.py:28
Methodload
r"""Loads all stored records from the key-value storage system. Returns: List[Dict[str, Any]]: A list of dictionaries, where each
src/agents/utils/storages/key_value_storages/base.py:30
Methodload_from_dict
(cls, dict_data)
src/agents/tools/tool.py:20
Methodload_from_json
Loads the trajectory from a JSON file.
src/agents/evaluation/trajectory.py:27
Methodload_from_json
(json_dict)
src/agents/agents/memory.py:167
Methodload_from_json
(json_dict)
src/agents/agents/memory.py:217
Methodload_from_json
(json_data)
src/agents/agents/environment.py:96
Methodoptimize
Optimizes nodes in the given list of cases. Args: case_list (list[Case]): The list of cases to be optimized.
src/agents/optimization/node_optimizer.py:66
Methodoptimize
(self, case_list: List[Case], solution: Solution)
src/agents/optimization/toolkit_optimizer.py:38
Methodoptimize
Optimizes the prompts for a list of cases and updates the solution accordingly. Args: case_list (list[Case]): The list o
src/agents/optimization/prompt_optimizer.py:87
Methodoutput_dim
(self)
src/agents/utils/embeddings.py:40
Methodoverall_evaluate
( self, sample_file: str, k: List[int] = [1, 10, 100], n_workers: int = 4,
src/agents/datasets/humaneval.py:207
Methodprocess
r""" Processes content. Subclasses should implement this method according to their specific needs. Args: content_
src/agents/utils/retrievers/base.py:18
Methodquery
r"""Searches for similar vectors in the storage based on the provided query. Args: query (VectorDBQuery): The query objec
src/agents/utils/storages/vectordb_storages/qdrant.py:303
Methodquery
r"""Searches for similar vectors in the storage based on the provided query. Args: query (VectorDBQuery): The query objec
src/agents/utils/storages/vectordb_storages/milvus.py:314
Methodread_batch_from_json
Reads a batch of cases from a JSON file and returns a list of Case objects. Args: json_path (str): The path to the JSON
src/agents/evaluation/case.py:66
Methodread_single_from_json
Reads a single case from a JSON file and returns a Case object. Args: json_path (str): The path to the JSON file contain
src/agents/evaluation/case.py:81
Methodreadable
Returns True if the IO object can be read.
src/agents/utils/execution.py:57
Methodreadline
(self, *args, **kwargs)
src/agents/utils/execution.py:51
Functionred_print
(content)
src/agents/optimization/utils.py:14
Methodreplace_special_chars
(match)
src/agents/optimization/utils.py:255
Methodrun
( self, page_info: Any, llm: BaseLanguageModel, )
src/agents/tools/web_browse.py:75
Methodrun_azure_ingest
Processes documents from an Azure storage container and stores structured outputs locally. Args: azure_url (str)
src/agents/utils/unstructured_io.py:459
Methodrun_discord_ingest
r"""Processes messages from specified Discord channels and stores structured outputs locally. Args: channels (List[str]):
src/agents/utils/unstructured_io.py:586
Methodrun_github_ingest
r"""Processes documents from a GitHub repository and stores structured outputs locally. Args: repo_url (str): URL of the
src/agents/utils/unstructured_io.py:500
Methodrun_s3_ingest
r"""Processes documents from an S3 bucket and stores structured outputs locally. Args: s3_url (str): The URL of the S3 bu
src/agents/utils/unstructured_io.py:413
Methodrun_slack_ingest
r"""Processes documents from specified Slack channels and stores structured outputs locally. Args: channels (List[str]):
src/agents/utils/unstructured_io.py:538
Methodsave
r"""Saves a batch of records to the key-value storage system. Args: records (List[Dict[str, Any]]): A list of dictionaries, where
src/agents/utils/storages/key_value_storages/in_memory.py:19
Methodsave
r"""Saves a batch of records to the key-value storage system. Args: records (List[Dict[str, Any]]): A list of dictionaries, where
src/agents/utils/storages/key_value_storages/base.py:20
Functionsignal_handler
(signum, frame)
src/agents/utils/execution.py:14
Methodsort_by_time
(data: List[Dict])
src/agents/tools/mail.py:177
Methodstage_elements
r"""Stages elements for various platforms based on the specified staging type. This function applies multiple staging utilities to fo
src/agents/utils/unstructured_io.py:295
Methodstatus
r"""Returns status of the vector database. Returns: VectorDBStatus: The vector database status.
src/agents/utils/storages/vectordb_storages/base.py:122
Methodstatus
r"""Retrieves the current status of the Milvus collection. This method provides information about the collection, including its vector
src/agents/utils/storages/vectordb_storages/milvus.py:299
Methodstep
(self, agent_name, current_node, user_input=None)
src/agents/agents/agent_team.py:116
Methodsummary
(self)
src/agents/agents/environment.py:80
Methodto_config
(self)
src/agents/task/task.py:74
Methodto_dict
(self)
src/agents/tools/tool.py:16
Methodto_dict
Returns a dictionary representation of the State object. Returns: dict: A dictionary containing the state information.
src/agents/evaluation/state.py:35
Methodto_dict
Returns a dictionary representation of the StateBackward object. Returns: dict: A dictionary containing the backward inf
src/agents/evaluation/state.py:149
Methodto_dict
Returns a dictionary representation of the NodeEval object. Returns: dict: A dictionary containing the node evaluation i
src/agents/evaluation/state.py:186
Methodto_dict
Returns a dictionary representation of the CaseLoss object. Returns: dict: A dictionary containing the evaluation result
src/agents/evaluation/case.py:292
Methodto_dict
Returns a dictionary representation of the DatasetEvaluation object. Returns: dict: A dictionary containing the evaluati
src/agents/evaluation/case.py:342
Methodto_dict
Returns a dictionary representation of the SOPSuggestion object. Returns: dict: A dictionary containing the SOP suggesti
src/agents/evaluation/case.py:387
Methodto_dict
(self)
src/agents/agents/memory.py:160
Methodto_dict
(self)
src/agents/agents/memory.py:210
Methodto_dict
(self)
src/agents/agents/environment.py:83
Methodto_dict
(self)
src/agents/agents/action.py:109
Methodto_dict
(self)
src/agents/agents/toolkit.py:69
Methodto_list
Return a deep copy of the dataset's data. Returns: A deep copy of the data list.
src/agents/datasets/base.py:95
Functionunsafe_execute
()
src/agents/datasets/humaneval.py:70
Methodupdate
Updates the backward information. Args: **kwargs: Arbitrary keyword arguments for updating the backward information.
src/agents/evaluation/state.py:134
Methodupdate
Updates the node evaluation information. Args: prompt (str): The prompt used for the node. content (str): Th
src/agents/evaluation/state.py:200
Methodupdate
Updates the evaluation results. Args: **kwargs: Arbitrary keyword arguments for updating the evaluation results.
src/agents/evaluation/case.py:326
Methodupdate
Updates the SOP suggestion information. Args: **kwargs: Arbitrary keyword arguments for updating the SOP suggestion info
src/agents/evaluation/case.py:375
Methodupdate_memory
(self, config, messages)
src/agents/agents/memory.py:126
Methodupdate_memory
(self, config, chunk_list)
src/agents/agents/memory.py:197
Methodupdate_prompt_template
更新node中agent的prompt_template
src/agents/task/solution.py:106
Functionyellow_print
(content)
src/agents/optimization/utils.py:18
← previous301–388 of 388, ranked by callers