egma 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- egma/__init__.py +34 -0
- egma/mockable.py +1113 -0
- egma/monitoring.py +320 -0
- egma/seam.py +403 -0
- egma-0.2.0.dist-info/METADATA +398 -0
- egma-0.2.0.dist-info/RECORD +8 -0
- egma-0.2.0.dist-info/WHEEL +4 -0
- egma-0.2.0.dist-info/licenses/LICENSE +201 -0
egma/__init__.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Egma inside a LiveKit agent for simulations and production monitoring.
|
|
2
|
+
|
|
3
|
+
A **mock tool** answers for one of your agent's tools during a
|
|
4
|
+
simulation, so a test never books the real appointment, sends the real
|
|
5
|
+
SMS or charges the real card — and so a test can order up the branch it
|
|
6
|
+
needs: an empty calendar, a booking that errors, a lookup that takes
|
|
7
|
+
three seconds.
|
|
8
|
+
|
|
9
|
+
This package is the piece that lives in *your* process. One call, after
|
|
10
|
+
the agent is built and before the session starts::
|
|
11
|
+
|
|
12
|
+
from egma import mockable
|
|
13
|
+
|
|
14
|
+
await mockable(agent, ctx, session)
|
|
15
|
+
|
|
16
|
+
In a room egma did not name — every production room — it returns having
|
|
17
|
+
touched nothing. Your tools are the same objects, called the same way,
|
|
18
|
+
with no wrapper between them and the model. That is a test in this
|
|
19
|
+
package, not a promise in this docstring.
|
|
20
|
+
|
|
21
|
+
Production monitoring is a separate explicit call made before the session
|
|
22
|
+
starts::
|
|
23
|
+
|
|
24
|
+
from egma import monitor_livekit
|
|
25
|
+
|
|
26
|
+
monitor_livekit(ctx)
|
|
27
|
+
|
|
28
|
+
See ``README.md`` for both integrations.
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
from .mockable import mockable
|
|
32
|
+
from .monitoring import monitor_livekit
|
|
33
|
+
|
|
34
|
+
__all__ = ["mockable", "monitor_livekit"]
|