Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aiwaves-cn/agents
/ functions
Functions
388 in github.com/aiwaves-cn/agents
⨍
Functions
388
◇
Types & classes
90
Method
func
(self, url)
src/agents/tools/web_crawl.py:24
Method
func
(self, translate_dict: Dict)
src/agents/tools/translate.py:160
Method
func
(self, query, **kwargs)
src/agents/tools/web_search.py:206
Method
func
(self, query: str)
src/agents/tools/code_interpreter.py:33
Method
func
(self, mail_dict: dict)
src/agents/tools/mail.py:291
Method
generate_config
(cls)
src/agents/utils/config.py:60
Method
generate_config
(cls, query)
src/agents/task/task.py:38
Method
generate_config
( cls, task_description: str, node_name: str, node_description
src/agents/task/node.py:56
Method
generate_config
( cls, task_description: str, node_name: str, node_description: str, n
src/agents/task/node.py:220
Method
generate_config
(cls, query)
src/agents/task/solution.py:42
Method
generate_config
(cls, agent_name: str, agent_roles: Dict[str, str])
src/agents/agents/agent.py:54
Method
generate_config
( cls, task_description: str, all_node_roles_description: Dict[str, dict] )
src/agents/agents/agent_team.py:43
Method
generate_config
()
src/agents/agents/toolkit.py:77
Method
generate_query
()
src/agents/tools/mail.py:140
Method
get_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
Method
get_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
Method
get_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
Method
get_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
Method
get_memory_embedding
(self)
src/agents/agents/memory.py:135
Method
get_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
Method
get_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
Method
get_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
Method
get_role_chat
(cur_node_name)
src/agents/evaluation/case.py:152
Function
get_score
case跑完了之后加载保存下来的case获取分数 Returns:
examples/creative_writing/run_eval.py:20
Method
interrupt
(self)
src/agents/tools/web_browse.py:37
Method
is_openai
r"""Returns whether this type of models is an OpenAI-released model.
src/agents/utils/embeddings.py:31
Method
load
r"""Load the collection hosted on cloud service.
src/agents/utils/storages/vectordb_storages/qdrant.py:351
Method
load
r"""Load the collection hosted on cloud service.
src/agents/utils/storages/vectordb_storages/base.py:155
Method
load
r"""Load the collection hosted on cloud service.
src/agents/utils/storages/vectordb_storages/milvus.py:359
Method
load
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
Method
load
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
Method
load_from_dict
(cls, dict_data)
src/agents/tools/tool.py:20
Method
load_from_json
Loads the trajectory from a JSON file.
src/agents/evaluation/trajectory.py:27
Method
load_from_json
(json_dict)
src/agents/agents/memory.py:167
Method
load_from_json
(json_dict)
src/agents/agents/memory.py:217
Method
load_from_json
(json_data)
src/agents/agents/environment.py:96
Method
optimize
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
Method
optimize
(self, case_list: List[Case], solution: Solution)
src/agents/optimization/toolkit_optimizer.py:38
Method
optimize
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
Method
output_dim
(self)
src/agents/utils/embeddings.py:40
Method
overall_evaluate
( self, sample_file: str, k: List[int] = [1, 10, 100], n_workers: int = 4,
src/agents/datasets/humaneval.py:207
Method
process
r""" Processes content. Subclasses should implement this method according to their specific needs. Args: content_
src/agents/utils/retrievers/base.py:18
Method
query
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
Method
query
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
Method
read_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
Method
read_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
Method
readable
Returns True if the IO object can be read.
src/agents/utils/execution.py:57
Method
readline
(self, *args, **kwargs)
src/agents/utils/execution.py:51
Function
red_print
(content)
src/agents/optimization/utils.py:14
Method
replace_special_chars
(match)
src/agents/optimization/utils.py:255
Method
run
( self, page_info: Any, llm: BaseLanguageModel, )
src/agents/tools/web_browse.py:75
Method
run_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
Method
run_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
Method
run_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
Method
run_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
Method
run_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
Method
save
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
Method
save
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
Function
signal_handler
(signum, frame)
src/agents/utils/execution.py:14
Method
sort_by_time
(data: List[Dict])
src/agents/tools/mail.py:177
Method
stage_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
Method
status
r"""Returns status of the vector database. Returns: VectorDBStatus: The vector database status.
src/agents/utils/storages/vectordb_storages/base.py:122
Method
status
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
Method
step
(self, agent_name, current_node, user_input=None)
src/agents/agents/agent_team.py:116
Method
summary
(self)
src/agents/agents/environment.py:80
Method
to_config
(self)
src/agents/task/task.py:74
Method
to_dict
(self)
src/agents/tools/tool.py:16
Method
to_dict
Returns a dictionary representation of the State object. Returns: dict: A dictionary containing the state information.
src/agents/evaluation/state.py:35
Method
to_dict
Returns a dictionary representation of the StateBackward object. Returns: dict: A dictionary containing the backward inf
src/agents/evaluation/state.py:149
Method
to_dict
Returns a dictionary representation of the NodeEval object. Returns: dict: A dictionary containing the node evaluation i
src/agents/evaluation/state.py:186
Method
to_dict
Returns a dictionary representation of the CaseLoss object. Returns: dict: A dictionary containing the evaluation result
src/agents/evaluation/case.py:292
Method
to_dict
Returns a dictionary representation of the DatasetEvaluation object. Returns: dict: A dictionary containing the evaluati
src/agents/evaluation/case.py:342
Method
to_dict
Returns a dictionary representation of the SOPSuggestion object. Returns: dict: A dictionary containing the SOP suggesti
src/agents/evaluation/case.py:387
Method
to_dict
(self)
src/agents/agents/memory.py:160
Method
to_dict
(self)
src/agents/agents/memory.py:210
Method
to_dict
(self)
src/agents/agents/environment.py:83
Method
to_dict
(self)
src/agents/agents/action.py:109
Method
to_dict
(self)
src/agents/agents/toolkit.py:69
Method
to_list
Return a deep copy of the dataset's data. Returns: A deep copy of the data list.
src/agents/datasets/base.py:95
Function
unsafe_execute
()
src/agents/datasets/humaneval.py:70
Method
update
Updates the backward information. Args: **kwargs: Arbitrary keyword arguments for updating the backward information.
src/agents/evaluation/state.py:134
Method
update
Updates the node evaluation information. Args: prompt (str): The prompt used for the node. content (str): Th
src/agents/evaluation/state.py:200
Method
update
Updates the evaluation results. Args: **kwargs: Arbitrary keyword arguments for updating the evaluation results.
src/agents/evaluation/case.py:326
Method
update
Updates the SOP suggestion information. Args: **kwargs: Arbitrary keyword arguments for updating the SOP suggestion info
src/agents/evaluation/case.py:375
Method
update_memory
(self, config, messages)
src/agents/agents/memory.py:126
Method
update_memory
(self, config, chunk_list)
src/agents/agents/memory.py:197
Method
update_prompt_template
更新node中agent的prompt_template
src/agents/task/solution.py:106
Function
yellow_print
(content)
src/agents/optimization/utils.py:18
← previous
301–388 of 388, ranked by callers