Skip to main content

AgentBuilder

AgentBuilder can help user build an automatic task solving process powered by multi-agent system.
Specifically, our building pipeline includes initialize and build.
(These APIs are experimental and may change in the future.)
Parameters:

Class Attributes

AGENT_DESCRIPTION_PROMPT



AGENT_NAME_PROMPT



AGENT_SEARCHING_PROMPT



AGENT_SELECTION_PROMPT



AGENT_SYS_MSG_PROMPT



CODING_AND_TASK_SKILL_INSTRUCTION



CODING_PROMPT



DEFAULT_DESCRIPTION



DEFAULT_PROXY_AUTO_REPLY



GROUP_CHAT_DESCRIPTION



online_server_name



Instance Methods

build

Auto build agents based on the building task.
Parameters: Returns:

build_from_library

Build agents from a library.
The library is a list of agent configs, which contains the name and system_message for each agent.
We use a build manager to decide what agent in that library should be involved to the task.
Parameters: Returns:

clear_agent

Clear a specific agent by name.
Parameters:

clear_all_agents

Clear all cached agents. Parameters:

load

Load building configs and call the build function to complete building without calling online LLMs’ api.
Parameters: Returns:

save

Save building configs. If the filepath is not specific, this function will create a filename by encrypt the building_task string by md5 with “save_config_” prefix, and save config to the local path.
Parameters:

set_agent_model

Parameters:

set_builder_model

Parameters: