hyperpocket-langgraph 0.4.4__tar.gz → 0.5.0__tar.gz
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.
- {hyperpocket_langgraph-0.4.4 → hyperpocket_langgraph-0.5.0}/PKG-INFO +6 -6
- {hyperpocket_langgraph-0.4.4 → hyperpocket_langgraph-0.5.0}/README.md +5 -5
- {hyperpocket_langgraph-0.4.4 → hyperpocket_langgraph-0.5.0}/hyperpocket_langgraph/pocket_langgraph.py +4 -4
- {hyperpocket_langgraph-0.4.4 → hyperpocket_langgraph-0.5.0}/pyproject.toml +1 -1
- {hyperpocket_langgraph-0.4.4 → hyperpocket_langgraph-0.5.0}/.gitignore +0 -0
- {hyperpocket_langgraph-0.4.4 → hyperpocket_langgraph-0.5.0}/__init__.py +0 -0
- {hyperpocket_langgraph-0.4.4 → hyperpocket_langgraph-0.5.0}/hyperpocket_langgraph/__init__.py +0 -0
- {hyperpocket_langgraph-0.4.4 → hyperpocket_langgraph-0.5.0}/tests/__init__.py +0 -0
- {hyperpocket_langgraph-0.4.4 → hyperpocket_langgraph-0.5.0}/tests/test_pocket_langgraph_no_profile.py +0 -0
- {hyperpocket_langgraph-0.4.4 → hyperpocket_langgraph-0.5.0}/tests/test_pocket_langgraph_use_profile.py +0 -0
- {hyperpocket_langgraph-0.4.4 → hyperpocket_langgraph-0.5.0}/uv.lock +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hyperpocket-langgraph
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.5.0
|
4
4
|
Author-email: Hyperpocket Team <hyperpocket@vessl.ai>
|
5
5
|
Requires-Python: >=3.10
|
6
6
|
Requires-Dist: hyperpocket>=0.0.3
|
@@ -22,7 +22,7 @@ Description-Content-Type: text/markdown
|
|
22
22
|
from hyperpocket_langgraph import PocketLanggraph
|
23
23
|
|
24
24
|
pocket = PocketLanggraph(tools=[
|
25
|
-
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-
|
25
|
+
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-messages",
|
26
26
|
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/post-message",
|
27
27
|
"https://github.com/my-org/some-awesome-tool",
|
28
28
|
])
|
@@ -41,7 +41,7 @@ from langchain_openai import ChatOpenAI
|
|
41
41
|
from hyperpocket_langgraph import PocketLanggraph
|
42
42
|
|
43
43
|
pocket = PocketLanggraph(tools=[
|
44
|
-
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-
|
44
|
+
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-messages",
|
45
45
|
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/post-message",
|
46
46
|
])
|
47
47
|
|
@@ -71,7 +71,7 @@ from hyperpocket_langgraph import PocketLanggraph
|
|
71
71
|
|
72
72
|
# Define pocket tools
|
73
73
|
pocket = PocketLanggraph(tools=[
|
74
|
-
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-
|
74
|
+
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-messages",
|
75
75
|
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/post-message",
|
76
76
|
])
|
77
77
|
|
@@ -135,7 +135,7 @@ from hyperpocket_langgraph import PocketLanggraph
|
|
135
135
|
|
136
136
|
# Define pocket tools
|
137
137
|
pocket = PocketLanggraph(tools=[
|
138
|
-
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-
|
138
|
+
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-messages",
|
139
139
|
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/post-message",
|
140
140
|
])
|
141
141
|
|
@@ -152,7 +152,7 @@ from hyperpocket_langgraph import PocketLanggraph
|
|
152
152
|
|
153
153
|
# Define pocket tools
|
154
154
|
pocket = PocketLanggraph(tools=[
|
155
|
-
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-
|
155
|
+
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-messages",
|
156
156
|
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/post-message",
|
157
157
|
])
|
158
158
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
from hyperpocket_langgraph import PocketLanggraph
|
14
14
|
|
15
15
|
pocket = PocketLanggraph(tools=[
|
16
|
-
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-
|
16
|
+
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-messages",
|
17
17
|
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/post-message",
|
18
18
|
"https://github.com/my-org/some-awesome-tool",
|
19
19
|
])
|
@@ -32,7 +32,7 @@ from langchain_openai import ChatOpenAI
|
|
32
32
|
from hyperpocket_langgraph import PocketLanggraph
|
33
33
|
|
34
34
|
pocket = PocketLanggraph(tools=[
|
35
|
-
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-
|
35
|
+
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-messages",
|
36
36
|
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/post-message",
|
37
37
|
])
|
38
38
|
|
@@ -62,7 +62,7 @@ from hyperpocket_langgraph import PocketLanggraph
|
|
62
62
|
|
63
63
|
# Define pocket tools
|
64
64
|
pocket = PocketLanggraph(tools=[
|
65
|
-
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-
|
65
|
+
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-messages",
|
66
66
|
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/post-message",
|
67
67
|
])
|
68
68
|
|
@@ -126,7 +126,7 @@ from hyperpocket_langgraph import PocketLanggraph
|
|
126
126
|
|
127
127
|
# Define pocket tools
|
128
128
|
pocket = PocketLanggraph(tools=[
|
129
|
-
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-
|
129
|
+
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-messages",
|
130
130
|
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/post-message",
|
131
131
|
])
|
132
132
|
|
@@ -143,7 +143,7 @@ from hyperpocket_langgraph import PocketLanggraph
|
|
143
143
|
|
144
144
|
# Define pocket tools
|
145
145
|
pocket = PocketLanggraph(tools=[
|
146
|
-
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-
|
146
|
+
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-messages",
|
147
147
|
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/post-message",
|
148
148
|
])
|
149
149
|
|
@@ -32,7 +32,7 @@ class PocketLanggraph(Pocket):
|
|
32
32
|
self.use_profile = use_profile
|
33
33
|
return [
|
34
34
|
self._get_langgraph_tool(tool_impl)
|
35
|
-
for tool_impl in self.
|
35
|
+
for tool_impl in self.tools.values()
|
36
36
|
]
|
37
37
|
|
38
38
|
def get_tool_node(
|
@@ -67,7 +67,7 @@ class PocketLanggraph(Pocket):
|
|
67
67
|
body = tool_args
|
68
68
|
profile = "default"
|
69
69
|
|
70
|
-
prepare = await self.
|
70
|
+
prepare = await self.prepare_auth(
|
71
71
|
tool_name, body=body, thread_id=thread_id, profile=profile
|
72
72
|
)
|
73
73
|
need_prepare |= True if prepare else False
|
@@ -124,7 +124,7 @@ class PocketLanggraph(Pocket):
|
|
124
124
|
body = json.loads(body)
|
125
125
|
|
126
126
|
try:
|
127
|
-
auth = await self.
|
127
|
+
auth = await self.authenticate(
|
128
128
|
tool_name, body=body, thread_id=thread_id, profile=profile
|
129
129
|
)
|
130
130
|
except Exception as e:
|
@@ -141,7 +141,7 @@ class PocketLanggraph(Pocket):
|
|
141
141
|
continue
|
142
142
|
|
143
143
|
try:
|
144
|
-
result = await self.
|
144
|
+
result = await self.tool_call(
|
145
145
|
tool_name,
|
146
146
|
body=body,
|
147
147
|
envs=auth,
|
File without changes
|
File without changes
|
{hyperpocket_langgraph-0.4.4 → hyperpocket_langgraph-0.5.0}/hyperpocket_langgraph/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|