hyperpocket 0.0.1__py3-none-any.whl → 0.0.3__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- hyperpocket/pocket_main.py +5 -2
- hyperpocket/tests/test_pocket.py +2 -4
- {hyperpocket-0.0.1.dist-info → hyperpocket-0.0.3.dist-info}/METADATA +7 -9
- {hyperpocket-0.0.1.dist-info → hyperpocket-0.0.3.dist-info}/RECORD +6 -7
- hyperpocket/curated_tools.py +0 -10
- {hyperpocket-0.0.1.dist-info → hyperpocket-0.0.3.dist-info}/WHEEL +0 -0
- {hyperpocket-0.0.1.dist-info → hyperpocket-0.0.3.dist-info}/entry_points.txt +0 -0
hyperpocket/pocket_main.py
CHANGED
@@ -330,16 +330,19 @@ class Pocket(object):
|
|
330
330
|
def _tool_instance(self, tool_name: str) -> Tool:
|
331
331
|
return self.tools[tool_name]
|
332
332
|
|
333
|
+
def _teardown_server(self):
|
334
|
+
self.server.teardown()
|
335
|
+
|
333
336
|
def __enter__(self):
|
334
337
|
return self
|
335
338
|
|
336
339
|
def __exit__(self, exc_type, exc_val, exc_tb):
|
337
340
|
if self.__dict__.get('server'):
|
338
|
-
self.
|
341
|
+
self._teardown_server()
|
339
342
|
|
340
343
|
def __del__(self):
|
341
344
|
if self.__dict__.get('server'):
|
342
|
-
self.
|
345
|
+
self._teardown_server()
|
343
346
|
|
344
347
|
def __getstate__(self):
|
345
348
|
state = self.__dict__.copy()
|
hyperpocket/tests/test_pocket.py
CHANGED
@@ -5,7 +5,7 @@ from pydantic import BaseModel
|
|
5
5
|
|
6
6
|
from hyperpocket import Pocket
|
7
7
|
from hyperpocket.config import config
|
8
|
-
from hyperpocket.tool import from_local
|
8
|
+
from hyperpocket.tool import from_local, from_git
|
9
9
|
|
10
10
|
|
11
11
|
class TestPocket(IsolatedAsyncioTestCase):
|
@@ -20,11 +20,9 @@ class TestPocket(IsolatedAsyncioTestCase):
|
|
20
20
|
config.internal_server_port = 8000
|
21
21
|
config.enable_local_callback_proxy = True
|
22
22
|
|
23
|
-
import hyperpocket
|
24
|
-
path = Path(hyperpocket.__file__).parent.parent.parent.parent / "examples/tool/simple-echo-tool"
|
25
23
|
self.pocket = Pocket(
|
26
24
|
tools=[
|
27
|
-
|
25
|
+
from_git("https://github.com/vessl-ai/hyperawesometools", "main", "managed-tools/simple-echo-tool"),
|
28
26
|
self.add,
|
29
27
|
self.add_pydantic_args
|
30
28
|
],
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hyperpocket
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.3
|
4
4
|
Summary: Building AI agent with hyperpocket tool in a flash
|
5
5
|
Home-page: https://vessl-ai.github.io/hyperpocket
|
6
6
|
Author: VESSL AI Devs
|
@@ -14,7 +14,7 @@ Requires-Dist: click (>=8.1.7,<9.0.0)
|
|
14
14
|
Requires-Dist: dynaconf (>=3.2.6,<4.0.0)
|
15
15
|
Requires-Dist: fastapi (>=0.115.5,<0.116.0)
|
16
16
|
Requires-Dist: gitpython (>=3.1.43,<4.0.0)
|
17
|
-
Requires-Dist: httpx (
|
17
|
+
Requires-Dist: httpx (==0.27)
|
18
18
|
Requires-Dist: jinja2 (>=3.1.4,<4.0.0)
|
19
19
|
Requires-Dist: multiprocess (>=0.70.17,<0.71.0)
|
20
20
|
Requires-Dist: playwright (>=1.49.0,<2.0.0)
|
@@ -185,13 +185,11 @@ from hyperpocket.tool import from_git
|
|
185
185
|
llm = OpenAI(api_key=secret["OPENAI_API_KEY"])
|
186
186
|
pocket = PocketLlamaindex(
|
187
187
|
tools=[
|
188
|
-
from_git("https://github.com/vessl-ai/
|
189
|
-
from_git("https://github.com/vessl-ai/
|
190
|
-
from_git("https://github.com/vessl-ai/
|
191
|
-
from_git("https://github.com/vessl-ai/
|
192
|
-
from_git("https://github.com/vessl-ai/
|
193
|
-
from_git("https://github.com/vessl-ai/tool-calling", "main", "examples/google-insert-calendar-events"),
|
194
|
-
from_git("https://github.com/vessl-ai/tool-calling", "main", "examples/github-pr-list"),
|
188
|
+
from_git("https://github.com/vessl-ai/hyperawesometools", "main", "managed-tools/slack/get-message"),
|
189
|
+
from_git("https://github.com/vessl-ai/hyperawesometools", "main", "managed-tools/slack/post-message"),
|
190
|
+
from_git("https://github.com/vessl-ai/hyperawesometools", "main", "managed-tools/linear/get-issues"),
|
191
|
+
from_git("https://github.com/vessl-ai/hyperawesometools", "main", "managed-tools/google/get-calendar-events"),
|
192
|
+
from_git("https://github.com/vessl-ai/hyperawesometools", "main", "managed-tools/google/get-calendar-list"),
|
195
193
|
]
|
196
194
|
)
|
197
195
|
tools = pocket.get_tools()
|
@@ -55,13 +55,12 @@ hyperpocket/config/logger.py,sha256=Wwl-8lllaCNLZruxXU-bcC74Ciy5SmPOX4AJE5BUzWM,
|
|
55
55
|
hyperpocket/config/session.py,sha256=CSXENtWx6Gh4DiPh4u9E-4MFYkM8JRjl2hSPV9PVfrE,801
|
56
56
|
hyperpocket/config/settings.py,sha256=YJ5cPXdy8r5lJVVyn4HXcpQHVhozk2B9zUhS8QYwao8,2103
|
57
57
|
hyperpocket/constants.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
58
|
-
hyperpocket/curated_tools.py,sha256=YxTQGXsbWgB1KyC7JEzS9CS86SlyCZCODMJEanW6PHE,353
|
59
58
|
hyperpocket/external/__init__.py,sha256=d6G2TAJSKvu3Bq1kE8j2_M0eTAqYZRWcAm3ePh0qaMI,119
|
60
59
|
hyperpocket/external/github_client.py,sha256=89DkXoyBrpE_YoBasTJ5d87w3Ih47UTD_Aw8w9RaN1k,639
|
61
60
|
hyperpocket/futures/__init__.py,sha256=_pRnYZLbogkYFInA3jokkxrcEVRt6YNaBmkf_dSk3SM,136
|
62
61
|
hyperpocket/futures/futurestore.py,sha256=4DeLlnLz-vdwjYKSVvgx-DNeEPLtzuIDo0xCuY1Aq9Y,1328
|
63
62
|
hyperpocket/pocket_auth.py,sha256=5zN8l2DJOy9ogBFGPmO3-F0NoiGVTw4raRrwk0vbXpw,16001
|
64
|
-
hyperpocket/pocket_main.py,sha256=
|
63
|
+
hyperpocket/pocket_main.py,sha256=HDeKGVdKT1D-Go1XV2FBP85xwWAdIKKg1wMSoAlYyZg,12434
|
65
64
|
hyperpocket/prompts.py,sha256=Kl19Vlzc3hX_g04s17WSW5dLp-mvi0JELxJxCy2z7tU,754
|
66
65
|
hyperpocket/repository/__init__.py,sha256=dVwj6KN-cazbIbFC2t0cqz7BOtoZWRgGfnC5-lrsXAg,202
|
67
66
|
hyperpocket/repository/lock.py,sha256=wg1zkDYh58U6D1EU-gXhCwrwnZI-qe0esO1dJsjkldA,5359
|
@@ -91,7 +90,7 @@ hyperpocket/session/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
|
|
91
90
|
hyperpocket/session/tests/test_in_memory.py,sha256=hc8-u9hxGds7KJA6yUQjcgI1XN0a3zfTVGvr8dJwsG0,4887
|
92
91
|
hyperpocket/session/tests/test_redis.py,sha256=_wUMnQFTMty4BckSNQMRreH7nlkvNUYgL0HRkstf0Jg,5025
|
93
92
|
hyperpocket/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
94
|
-
hyperpocket/tests/test_pocket.py,sha256=
|
93
|
+
hyperpocket/tests/test_pocket.py,sha256=3rLcxGfi8Xs70hZrIpLVOSXKecMelIfyyWucN6XtR9k,2777
|
95
94
|
hyperpocket/tests/test_pocket_auth.py,sha256=mKKiIZzriOHgbavP5eiW5P5LrZ2JKJHwh_TZDHsLK6Q,39115
|
96
95
|
hyperpocket/tool/README.KR.md,sha256=BNllN_z-_40cRg8VRmWoAr4pufNUsw3tgta60iBtZuU,2744
|
97
96
|
hyperpocket/tool/README.md,sha256=cOH1EGubzlKkugkvrO-r7rSIhwbwaAyl1p69_eoV8fs,2689
|
@@ -125,7 +124,7 @@ hyperpocket/util/flatten_json_schema.py,sha256=PXK6I1S2QDxwSGmUVEl5bbSPrjTa38GBl
|
|
125
124
|
hyperpocket/util/function_to_model.py,sha256=f6806fVJfZp2PyXwN5ZoD8-4Bw81KMYlUEgFAXJuUas,1806
|
126
125
|
hyperpocket/util/get_objects_from_subpackage.py,sha256=Aq87PD_H57c2IjLS28Hf0Wu5vLVyoOtDoBvKzvQ1UPw,929
|
127
126
|
hyperpocket/util/json_schema_to_model.py,sha256=YFQSv_a-7OYf_6XPMyi097CKVm4sjDxy9k8DjlU9FP8,2897
|
128
|
-
hyperpocket-0.0.
|
129
|
-
hyperpocket-0.0.
|
130
|
-
hyperpocket-0.0.
|
131
|
-
hyperpocket-0.0.
|
127
|
+
hyperpocket-0.0.3.dist-info/METADATA,sha256=-ln3ZFUsfBn1tTSx3CUWMY37PpYpUmPO-x7J3MFItYI,9808
|
128
|
+
hyperpocket-0.0.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
129
|
+
hyperpocket-0.0.3.dist-info/entry_points.txt,sha256=HP1S7F8Sozcu87qCmOSbUpl-bvodrJvjeodWKi4TlF0,50
|
130
|
+
hyperpocket-0.0.3.dist-info/RECORD,,
|
hyperpocket/curated_tools.py
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
from hyperpocket.tool import from_git
|
2
|
-
|
3
|
-
SLACK = [
|
4
|
-
from_git("https://github.com/vessl-ai/tool-calling", "main", "examples/slack-get-message"),
|
5
|
-
from_git("https://github.com/vessl-ai/tool-calling", "main", "examples/slack-post-message")
|
6
|
-
]
|
7
|
-
|
8
|
-
LINEAR = [
|
9
|
-
from_git("https://github.com/vessl-ai/tool-calling", "main", "examples/linear-get-issues"),
|
10
|
-
]
|
File without changes
|
File without changes
|