-
Notifications
You must be signed in to change notification settings - Fork 218
Expand file tree
/
Copy path__init__.py
More file actions
59 lines (52 loc) · 1.66 KB
/
__init__.py
File metadata and controls
59 lines (52 loc) · 1.66 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from openhands.sdk.event.acp_tool_call import ACPToolCallEvent
from openhands.sdk.event.base import Event, LLMConvertibleEvent
from openhands.sdk.event.condenser import (
Condensation,
CondensationRequest,
CondensationSummaryEvent,
)
from openhands.sdk.event.conversation_state import ConversationStateUpdateEvent
from openhands.sdk.event.hook_execution import HookExecutionEvent
from openhands.sdk.event.llm_completion_log import LLMCompletionLogEvent
from openhands.sdk.event.llm_convertible import (
ActionEvent,
AgentErrorEvent,
MessageEvent,
ObservationBaseEvent,
ObservationEvent,
RejectionSource,
SystemPromptEvent,
UserRejectObservation,
)
from openhands.sdk.event.token import TokenEvent
from openhands.sdk.event.types import EventID, ToolCallID
from openhands.sdk.event.user_action import PauseEvent
__all__ = [
"ACPToolCallEvent",
"Event",
"LLMConvertibleEvent",
"SystemPromptEvent",
"ActionEvent",
"TokenEvent",
"ObservationEvent",
"ObservationBaseEvent",
"MessageEvent",
"AgentErrorEvent",
"UserRejectObservation",
"RejectionSource",
"PauseEvent",
"Condensation",
"CondensationRequest",
"CondensationSummaryEvent",
"ConversationStateUpdateEvent",
"HookExecutionEvent",
"LLMCompletionLogEvent",
"EventID",
"ToolCallID",
]
# Rebuild SystemPromptEvent model to resolve forward reference to HookConfig
# This must be done after all imports are complete to avoid circular import
def _rebuild_models() -> None:
from openhands.sdk.hooks import HookConfig
SystemPromptEvent.model_rebuild(_types_namespace={"HookConfig": HookConfig})
_rebuild_models()