Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /CIRISAI_CIRISAgent /ciris_engine /logic /conscience /interface.py
| from __future__ import annotations | |
| from typing import Protocol, runtime_checkable | |
| from ciris_engine.schemas.conscience.context import ConscienceCheckContext | |
| from ciris_engine.schemas.conscience.core import ConscienceCheckResult | |
| from ciris_engine.schemas.dma.results import ActionSelectionDMAResult | |
| from ciris_engine.schemas.types import JSONDict | |
| class ConscienceInterface(Protocol): | |
| """Protocol for all conscience implementations. | |
| All conscience check implementations must accept ConscienceCheckContext | |
| instead of JSONDict for type safety. | |
| """ | |
| async def check( | |
| self, | |
| action: ActionSelectionDMAResult, | |
| context: ConscienceCheckContext, | |
| ) -> ConscienceCheckResult: | |
| """Check if action passes conscience evaluation. | |
| Args: | |
| action: The action selection result to evaluate | |
| context: Typed context including thought, task, and system state | |
| Returns: | |
| ConscienceCheckResult with evaluation details | |
| """ | |
| ... | |
Xet Storage Details
- Size:
- 1.04 kB
- Xet hash:
- 1c2a1a3f22bfd3340960223c9bef1453a50b4f3222ec86bebe50902ba6019da8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.