gohumanloop 0.0.1__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 +65 -0
- gohumanloop/__main__.py +4 -0
- gohumanloop-0.0.1.dist-info/METADATA +34 -0
- gohumanloop-0.0.1.dist-info/RECORD +8 -0
- gohumanloop-0.0.1.dist-info/WHEEL +5 -0
- gohumanloop-0.0.1.dist-info/entry_points.txt +3 -0
- gohumanloop-0.0.1.dist-info/licenses/LICENSE +21 -0
- gohumanloop-0.0.1.dist-info/top_level.txt +1 -0
gohumanloop/__init__.py
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
from gohumanloop.core.interface import (
|
2
|
+
HumanLoopProvider,
|
3
|
+
HumanLoopManager,
|
4
|
+
HumanLoopCallback,
|
5
|
+
HumanLoopResult,
|
6
|
+
HumanLoopStatus,
|
7
|
+
HumanLoopType,
|
8
|
+
)
|
9
|
+
|
10
|
+
from gohumanloop.core.manager import DefaultHumanLoopManager
|
11
|
+
from gohumanloop.manager.ghl_manager import GoHumanLoopManager
|
12
|
+
|
13
|
+
from gohumanloop.providers.ghl_provider import GoHumanLoopProvider
|
14
|
+
from gohumanloop.providers.api_provider import APIProvider
|
15
|
+
from gohumanloop.providers.email_provider import EmailProvider
|
16
|
+
from gohumanloop.providers.base import BaseProvider
|
17
|
+
from gohumanloop.providers.terminal_provider import TerminalProvider
|
18
|
+
|
19
|
+
from gohumanloop.utils import run_async_safely, get_secret_from_env
|
20
|
+
|
21
|
+
# Dynamically get version number
|
22
|
+
try:
|
23
|
+
from importlib.metadata import version, PackageNotFoundError
|
24
|
+
try:
|
25
|
+
__version__ = version("gohumanloop")
|
26
|
+
except PackageNotFoundError:
|
27
|
+
import os
|
28
|
+
import tomli
|
29
|
+
|
30
|
+
root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
31
|
+
pyproject_path = os.path.join(root_dir, "pyproject.toml")
|
32
|
+
|
33
|
+
with open(pyproject_path, "rb") as f:
|
34
|
+
pyproject_data = tomli.load(f)
|
35
|
+
__version__ = pyproject_data["project"]["version"]
|
36
|
+
except (ImportError, FileNotFoundError, KeyError):
|
37
|
+
__version__ = "0.1.0"
|
38
|
+
|
39
|
+
__all__ = [
|
40
|
+
# Core Interfaces
|
41
|
+
"HumanLoopProvider",
|
42
|
+
"HumanLoopManager",
|
43
|
+
"HumanLoopCallback",
|
44
|
+
"HumanLoopResult",
|
45
|
+
"HumanLoopStatus",
|
46
|
+
"HumanLoopType",
|
47
|
+
|
48
|
+
# Manager Implementations
|
49
|
+
"DefaultHumanLoopManager",
|
50
|
+
"GoHumanLoopManager",
|
51
|
+
|
52
|
+
# Provider Implementations
|
53
|
+
"BaseProvider",
|
54
|
+
"APIProvider",
|
55
|
+
"GoHumanLoopProvider",
|
56
|
+
"EmailProvider",
|
57
|
+
"TerminalProvider",
|
58
|
+
|
59
|
+
# Utility Functions
|
60
|
+
"run_async_safely",
|
61
|
+
"get_secret_from_env",
|
62
|
+
|
63
|
+
# Version Information
|
64
|
+
"__version__",
|
65
|
+
]
|
gohumanloop/__main__.py
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: gohumanloop
|
3
|
+
Version: 0.0.1
|
4
|
+
Summary: Perfecting AI workflows with human intelligence
|
5
|
+
Project-URL: repository, https://github.com/ptonlix/gohumanloop
|
6
|
+
Requires-Python: >=3.10
|
7
|
+
Description-Content-Type: text/markdown
|
8
|
+
License-File: LICENSE
|
9
|
+
Requires-Dist: aiohttp>=3.11.16
|
10
|
+
Requires-Dist: click>=8.1.8
|
11
|
+
Requires-Dist: dotenv>=0.9.9
|
12
|
+
Provides-Extra: email
|
13
|
+
Requires-Dist: imapclient>=3.0.1; extra == "email"
|
14
|
+
Dynamic: license-file
|
15
|
+
|
16
|
+
<div align="center">
|
17
|
+
|
18
|
+

|
19
|
+
<b face="雅黑">Perfecting AI workflows with human intelligence</b>
|
20
|
+
|
21
|
+
</div>
|
22
|
+
|
23
|
+
**GoHumanLoop** is a comprehensive Python library that enables AI agents to seamlessly interact with humans for assistance, feedback, and approvals. It provides a flexible framework for integrating human intelligence into AI workflows through various communication channels.
|
24
|
+
|
25
|
+
With GoHumanLoop, developers can create `AI Agent systems` that know when to pause and request human input, ensuring safer and more effective AI operations. The library supports multiple interaction providers (Terminal, Email, API ..etc) and integrates with popular frameworks like LangGraph, and CrewAI(will soon).
|
26
|
+
|
27
|
+
<div align="center">
|
28
|
+
<img alt="Repostart" src="https://img.shields.io/github/stars/ptonlix/gohumanloop"/>
|
29
|
+
<img alt=" Python" src="https://img.shields.io/badge/Python-3.10%2B-blue"/>
|
30
|
+
<img alt="license" src="https://img.shields.io/badge/license-MIT-green"/>
|
31
|
+
|
32
|
+
[简体中文](README-zh.md) | English
|
33
|
+
|
34
|
+
</div>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
gohumanloop/__init__.py,sha256=7_AkUtiG-_iozObldORElQS9mufxjZx_WfxuX0E5Af0,1845
|
2
|
+
gohumanloop/__main__.py,sha256=zdGKN92H9SgwZfL4xLqPkE1YaiRcHhVg_GqC-H1VurA,75
|
3
|
+
gohumanloop-0.0.1.dist-info/licenses/LICENSE,sha256=-U5tuCcSpndQwSKWtZbFbazb-_AtZcZL2kQgHbSLg-M,1064
|
4
|
+
gohumanloop-0.0.1.dist-info/METADATA,sha256=Nxy1lk5-Kz44XUyV7XmViiLHpqkckkl0SwXgV_9-5mo,1503
|
5
|
+
gohumanloop-0.0.1.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
6
|
+
gohumanloop-0.0.1.dist-info/entry_points.txt,sha256=wM6jqRRD8bQXkvIduRVCuAJIlbyWg_F5EDXo5OZ_PwY,88
|
7
|
+
gohumanloop-0.0.1.dist-info/top_level.txt,sha256=LvOXBqS6Mspmcuqp81uz0Vjx_m_YI0w06DOPCiI1BfY,12
|
8
|
+
gohumanloop-0.0.1.dist-info/RECORD,,
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 CyberFD
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1 @@
|
|
1
|
+
gohumanloop
|