gohumanloop 0.0.5__py3-none-any.whl → 0.0.6__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.
- gohumanloop/__init__.py +6 -8
- gohumanloop/adapters/__init__.py +4 -4
- gohumanloop/adapters/langgraph_adapter.py +348 -207
- gohumanloop/cli/main.py +4 -1
- gohumanloop/core/interface.py +181 -215
- gohumanloop/core/manager.py +332 -265
- gohumanloop/manager/ghl_manager.py +223 -185
- gohumanloop/models/api_model.py +32 -7
- gohumanloop/models/glh_model.py +15 -11
- gohumanloop/providers/api_provider.py +233 -189
- gohumanloop/providers/base.py +179 -172
- gohumanloop/providers/email_provider.py +386 -325
- gohumanloop/providers/ghl_provider.py +19 -17
- gohumanloop/providers/terminal_provider.py +111 -92
- gohumanloop/utils/__init__.py +7 -1
- gohumanloop/utils/context_formatter.py +20 -15
- gohumanloop/utils/threadsafedict.py +64 -56
- gohumanloop/utils/utils.py +28 -28
- gohumanloop-0.0.6.dist-info/METADATA +259 -0
- gohumanloop-0.0.6.dist-info/RECORD +30 -0
- {gohumanloop-0.0.5.dist-info → gohumanloop-0.0.6.dist-info}/WHEEL +1 -1
- gohumanloop-0.0.5.dist-info/METADATA +0 -35
- gohumanloop-0.0.5.dist-info/RECORD +0 -30
- {gohumanloop-0.0.5.dist-info → gohumanloop-0.0.6.dist-info}/entry_points.txt +0 -0
- {gohumanloop-0.0.5.dist-info → gohumanloop-0.0.6.dist-info}/licenses/LICENSE +0 -0
- {gohumanloop-0.0.5.dist-info → gohumanloop-0.0.6.dist-info}/top_level.txt +0 -0
gohumanloop/__init__.py
CHANGED
@@ -19,7 +19,8 @@ from gohumanloop.utils import run_async_safely, get_secret_from_env
|
|
19
19
|
|
20
20
|
# Conditionally import EmailProvider
|
21
21
|
try:
|
22
|
-
from gohumanloop.providers.email_provider import EmailProvider
|
22
|
+
from gohumanloop.providers.email_provider import EmailProvider # noqa: F401
|
23
|
+
|
23
24
|
_has_email = True
|
24
25
|
except ImportError:
|
25
26
|
_has_email = False
|
@@ -27,15 +28,16 @@ except ImportError:
|
|
27
28
|
# Dynamically get version number
|
28
29
|
try:
|
29
30
|
from importlib.metadata import version, PackageNotFoundError
|
31
|
+
|
30
32
|
try:
|
31
33
|
__version__ = version("gohumanloop")
|
32
34
|
except PackageNotFoundError:
|
33
35
|
import os
|
34
36
|
import tomli
|
35
|
-
|
37
|
+
|
36
38
|
root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
37
39
|
pyproject_path = os.path.join(root_dir, "pyproject.toml")
|
38
|
-
|
40
|
+
|
39
41
|
with open(pyproject_path, "rb") as f:
|
40
42
|
pyproject_data = tomli.load(f)
|
41
43
|
__version__ = pyproject_data["project"]["version"]
|
@@ -50,24 +52,20 @@ __all__ = [
|
|
50
52
|
"HumanLoopResult",
|
51
53
|
"HumanLoopStatus",
|
52
54
|
"HumanLoopType",
|
53
|
-
|
54
55
|
# Manager Implementations
|
55
56
|
"DefaultHumanLoopManager",
|
56
57
|
"GoHumanLoopManager",
|
57
|
-
|
58
58
|
# Provider Implementations
|
59
59
|
"BaseProvider",
|
60
60
|
"APIProvider",
|
61
61
|
"GoHumanLoopProvider",
|
62
62
|
"TerminalProvider",
|
63
|
-
|
64
63
|
# Utility Functions
|
65
64
|
"run_async_safely",
|
66
65
|
"get_secret_from_env",
|
67
|
-
|
68
66
|
# Version Information
|
69
67
|
"__version__",
|
70
68
|
]
|
71
69
|
|
72
70
|
if _has_email:
|
73
|
-
__all__.append("EmailProvider")
|
71
|
+
__all__.append("EmailProvider")
|
gohumanloop/adapters/__init__.py
CHANGED
@@ -4,8 +4,8 @@ from .langgraph_adapter import (
|
|
4
4
|
default_langgraph_callback_factory,
|
5
5
|
interrupt,
|
6
6
|
create_resume_command,
|
7
|
-
acreate_resume_command
|
8
|
-
|
7
|
+
acreate_resume_command,
|
8
|
+
)
|
9
9
|
|
10
10
|
__all__ = [
|
11
11
|
"LangGraphAdapter",
|
@@ -13,5 +13,5 @@ __all__ = [
|
|
13
13
|
"default_langgraph_callback_factory",
|
14
14
|
"interrupt",
|
15
15
|
"create_resume_command",
|
16
|
-
"acreate_resume_command"
|
17
|
-
]
|
16
|
+
"acreate_resume_command",
|
17
|
+
]
|