repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
Mirrored from https://github.com/yingqi-z20/Agent-libOS
stars
latest
clone command
git clone gitlawb://did:key:z6MkqRzA...RfoM/yingqi-z20-Agen...git clone gitlawb://did:key:z6MkqRzA.../yingqi-z20-Agen...d98dd2c9IPC1d ago| #1 |
| from __future__ import annotations |
| #2 |
| #3 |
| #4 | class LibOSError(Exception): |
| #5 | """Base exception for Agent libOS runtime errors.""" |
| #6 |
| #7 |
| #8 | class NotFound(LibOSError): |
| #9 | pass |
| #10 |
| #11 |
| #12 | class CapabilityDenied(LibOSError): |
| #13 | pass |
| #14 |
| #15 |
| #16 | class HumanApprovalRequired(LibOSError): |
| #17 | def __init__(self, request_id: str, message: str): |
| #18 | super().__init__(message) |
| #19 | self.request_id = request_id |
| #20 |
| #21 |
| #22 | class HumanResponseRequired(HumanApprovalRequired): |
| #23 | pass |
| #24 |
| #25 |
| #26 | class ProcessWaitRequired(LibOSError): |
| #27 | def __init__(self, child_pid: str, message: str): |
| #28 | super().__init__(message) |
| #29 | self.child_pid = child_pid |
| #30 |
| #31 |
| #32 | class ProcessMessageWaitRequired(LibOSError): |
| #33 | def __init__(self, recipient_pid: str, filters: dict, message: str): |
| #34 | super().__init__(message) |
| #35 | self.recipient_pid = recipient_pid |
| #36 | self.filters = dict(filters) |
| #37 |
| #38 |
| #39 | class PolicyDenied(LibOSError): |
| #40 | pass |
| #41 |
| #42 |
| #43 | class ProcessError(LibOSError): |
| #44 | pass |
| #45 |
| #46 |
| #47 | class ValidationError(LibOSError): |
| #48 | pass |
| #49 |
| #50 |
| #51 | class SandboxError(LibOSError): |
| #52 | pass |
| #53 |