Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /CIRISAI_CIRISAgent /ciris_engine /schemas /runtime /enums.py
| """ | |
| Core enums for CIRIS Trinity Architecture. | |
| All enums are case-insensitive for robustness. | |
| """ | |
| from enum import Enum | |
| class CaseInsensitiveEnum(str, Enum): | |
| """Enum that allows case-insensitive value lookup.""" | |
| def _missing_(cls, value: object) -> "CaseInsensitiveEnum | None": | |
| if isinstance(value, str): | |
| lowered = value.lower() | |
| for member in cls: | |
| if member.value.lower() == lowered or member.name.lower() == lowered: | |
| return member | |
| return None | |
| class ServiceType(CaseInsensitiveEnum): | |
| """Core service types in the Trinity Architecture.""" | |
| # Core services | |
| COMMUNICATION = "communication" | |
| TOOL = "tool" | |
| WISE_AUTHORITY = "wise_authority" | |
| MEMORY = "memory" | |
| AUDIT = "audit" | |
| LLM = "llm" | |
| # Infrastructure services | |
| TELEMETRY = "telemetry" | |
| ORCHESTRATOR = "orchestrator" | |
| SECRETS = "secrets" | |
| RUNTIME_CONTROL = "runtime_control" | |
| FILTER = "filter" | |
| CONFIG = "config" | |
| MAINTENANCE = "maintenance" | |
| TIME = "time" | |
| SHUTDOWN = "shutdown" | |
| INITIALIZATION = "initialization" | |
| VISIBILITY = "visibility" | |
| TSDB_CONSOLIDATION = "tsdb_consolidation" | |
| # Adapter services | |
| ADAPTER = "adapter" | |
| class HandlerActionType(CaseInsensitiveEnum): | |
| """Core 3×3×3 action model + terminal.""" | |
| # External actions | |
| OBSERVE = "observe" | |
| SPEAK = "speak" | |
| TOOL = "tool" | |
| # Control responses | |
| REJECT = "reject" | |
| PONDER = "ponder" | |
| DEFER = "defer" | |
| # Memory operations | |
| MEMORIZE = "memorize" | |
| RECALL = "recall" | |
| FORGET = "forget" | |
| # Terminal action | |
| TASK_COMPLETE = "task_complete" | |
| class TaskStatus(CaseInsensitiveEnum): | |
| """Status of a task in the system.""" | |
| PENDING = "pending" | |
| ACTIVE = "active" | |
| COMPLETED = "completed" | |
| FAILED = "failed" | |
| DEFERRED = "deferred" | |
| REJECTED = "rejected" | |
| class ThoughtStatus(CaseInsensitiveEnum): | |
| """Status of a thought being processed.""" | |
| PENDING = "pending" | |
| PROCESSING = "processing" | |
| COMPLETED = "completed" | |
| FAILED = "failed" | |
| DEFERRED = "deferred" | |
| class ThoughtType(CaseInsensitiveEnum): | |
| """Types of thoughts for different processing needs.""" | |
| # Core thought types | |
| STANDARD = "standard" | |
| FOLLOW_UP = "follow_up" | |
| ERROR = "error" | |
| OBSERVATION = "observation" | |
| MEMORY = "memory" | |
| DEFERRED = "deferred" | |
| PONDER = "ponder" | |
| # Feedback and guidance | |
| FEEDBACK = "feedback" | |
| GUIDANCE = "guidance" | |
| IDENTITY_UPDATE = "identity_update" | |
| # Decision-making | |
| ETHICAL_REVIEW = "ethical_review" | |
| conscience = "conscience" | |
| CONSENSUS = "consensus" | |
| # System and meta | |
| REFLECTION = "reflection" | |
| SYNTHESIS = "synthesis" | |
| DELEGATION = "delegation" | |
| # Communication | |
| CLARIFICATION = "clarification" | |
| SUMMARY = "summary" | |
| # Tool and action | |
| TOOL_RESULT = "tool_result" | |
| ACTION_REVIEW = "action_review" | |
| # Urgency and priority | |
| URGENT = "urgent" | |
| SCHEDULED = "scheduled" | |
| # Learning and adaptation | |
| PATTERN = "pattern" | |
| ADAPTATION = "adaptation" | |
| class SensitivityLevel(CaseInsensitiveEnum): | |
| """Security sensitivity levels.""" | |
| LOW = "LOW" | |
| MEDIUM = "MEDIUM" | |
| HIGH = "HIGH" | |
| CRITICAL = "CRITICAL" | |
| class ObservationSourceType(CaseInsensitiveEnum): | |
| """Types of observation sources.""" | |
| CHAT_MESSAGE = "chat_message" | |
| FEEDBACK_PACKAGE = "feedback_package" | |
| USER_REQUEST = "user_request" | |
| AGENT_MESSAGE = "agent_message" | |
| INTERNAL_SIGNAL = "internal_signal" | |
| __all__ = [ | |
| "CaseInsensitiveEnum", | |
| "ServiceType", | |
| "HandlerActionType", | |
| "TaskStatus", | |
| "ThoughtStatus", | |
| "ThoughtType", | |
| "SensitivityLevel", | |
| "ObservationSourceType", | |
| ] | |
Xet Storage Details
- Size:
- 3.78 kB
- Xet hash:
- 601ee3c272a368b3312de0cc4342ea15edeeffdb8e111d1edee812f35a5b3200
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.