forked from strands-agents/sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
41 lines (33 loc) · 1.02 KB
/
__init__.py
File metadata and controls
41 lines (33 loc) · 1.02 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
"""Experimental hook functionality that has not yet reached stability."""
from typing import Any
from .events import (
BidiAfterConnectionRestartEvent,
BidiAfterInvocationEvent,
BidiAfterToolCallEvent,
BidiAgentInitializedEvent,
BidiBeforeConnectionRestartEvent,
BidiBeforeInvocationEvent,
BidiBeforeToolCallEvent,
BidiInterruptionEvent,
BidiMessageAddedEvent,
)
# Deprecated aliases are accessed via __getattr__ to emit warnings only on use
def __getattr__(name: str) -> Any:
from . import events
return getattr(events, name)
__all__ = [
"BeforeToolInvocationEvent",
"AfterToolInvocationEvent",
"BeforeModelInvocationEvent",
"AfterModelInvocationEvent",
# BidiAgent hooks
"BidiAgentInitializedEvent",
"BidiBeforeInvocationEvent",
"BidiAfterInvocationEvent",
"BidiMessageAddedEvent",
"BidiBeforeToolCallEvent",
"BidiAfterToolCallEvent",
"BidiInterruptionEvent",
"BidiBeforeConnectionRestartEvent",
"BidiAfterConnectionRestartEvent",
]