-
Notifications
You must be signed in to change notification settings - Fork 218
Expand file tree
/
Copy path__init__.py
More file actions
25 lines (20 loc) · 811 Bytes
/
__init__.py
File metadata and controls
25 lines (20 loc) · 811 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
"""API Compliance monitoring for conversation events.
This module provides an APIComplianceMonitor that detects and rejects violations
of LLM API requirements in the event stream. Violating events are logged and
rejected (not added to conversation). Future versions may support reconciliation
strategies.
The monitor enforces valid tool-call sequences:
- When tool calls are pending, only matching observations are allowed
- Messages cannot interleave with pending tool calls
- Tool results must reference known tool_call_ids
"""
from openhands.sdk.conversation.compliance.base import (
ComplianceState,
ComplianceViolation,
)
from openhands.sdk.conversation.compliance.monitor import APIComplianceMonitor
__all__ = [
"APIComplianceMonitor",
"ComplianceState",
"ComplianceViolation",
]