-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagent_types.py
More file actions
34 lines (25 loc) · 741 Bytes
/
agent_types.py
File metadata and controls
34 lines (25 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"""
Agent Types Enum
================
Defines the different types of agents in the system.
"""
from enum import Enum
class AgentType(str, Enum):
"""Types of agents in the autonomous coding system.
Inherits from str to allow seamless JSON serialization
and string comparison.
Usage:
agent_type = AgentType.CODING
if agent_type == "coding": # Works due to str inheritance
...
"""
INITIALIZER = "initializer"
CODING = "coding"
TESTING = "testing"
def __str__(self) -> str:
"""
Return the enum member's underlying string value.
Returns:
str: The underlying string value of the enum member.
"""
return self.value