Skip to content

Component enum

ComponentEnum

Bases: Enum

The enumeration of the supported components.

Source code in agentuniverse/base/component/component_enum.py
Python
class ComponentEnum(Enum):
    """The enumeration of the supported components."""
    AGENT = "AGENT"
    KNOWLEDGE = "KNOWLEDGE"
    LLM = "LLM"
    PLANNER = "PLANNER"
    TOOL = "TOOL"
    DEFAULT = "DEFAULT"
    SERVICE = "SERVICE"
    MEMORY = "MEMORY"
    PROMPT = "PROMPT"

    @staticmethod
    def to_value_list():
        """Return the value list of the enumeration."""
        return [item.value for item in ComponentEnum]

to_value_list() staticmethod

Return the value list of the enumeration.

Source code in agentuniverse/base/component/component_enum.py
Python
@staticmethod
def to_value_list():
    """Return the value list of the enumeration."""
    return [item.value for item in ComponentEnum]