hyperpocket-llamaindex 0.3.5__py3-none-any.whl → 0.3.7__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- hyperpocket_llamaindex/pocket_llamaindex.py +5 -6
- {hyperpocket_llamaindex-0.3.5.dist-info → hyperpocket_llamaindex-0.3.7.dist-info}/METADATA +2 -2
- hyperpocket_llamaindex-0.3.7.dist-info/RECORD +5 -0
- hyperpocket_llamaindex-0.3.5.dist-info/RECORD +0 -5
- {hyperpocket_llamaindex-0.3.5.dist-info → hyperpocket_llamaindex-0.3.7.dist-info}/WHEEL +0 -0
@@ -1,7 +1,6 @@
|
|
1
|
+
import json
|
1
2
|
from typing import List, Optional
|
2
3
|
|
3
|
-
from pydantic import BaseModel
|
4
|
-
|
5
4
|
try:
|
6
5
|
from llama_index.core.tools import BaseTool, FunctionTool, ToolMetadata
|
7
6
|
except ImportError:
|
@@ -30,8 +29,8 @@ class PocketLlamaindex(Pocket):
|
|
30
29
|
thread_id = "default"
|
31
30
|
profile = "default"
|
32
31
|
|
33
|
-
if isinstance(body,
|
34
|
-
body =
|
32
|
+
if isinstance(body, str):
|
33
|
+
body = json.loads(body)
|
35
34
|
|
36
35
|
result, interrupted = self.invoke_with_state(
|
37
36
|
pocket_tool.name,
|
@@ -55,8 +54,8 @@ class PocketLlamaindex(Pocket):
|
|
55
54
|
thread_id = "default"
|
56
55
|
profile = "default"
|
57
56
|
|
58
|
-
if isinstance(body,
|
59
|
-
body =
|
57
|
+
if isinstance(body, str):
|
58
|
+
body = json.loads(body)
|
60
59
|
|
61
60
|
result, interrupted = await self.ainvoke_with_state(
|
62
61
|
pocket_tool.name,
|
@@ -1,10 +1,10 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hyperpocket-llamaindex
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.7
|
4
4
|
Author-email: Hyperpocket Team <hyperpocket@vessl.ai>
|
5
5
|
Requires-Python: >=3.10
|
6
6
|
Requires-Dist: hyperpocket>=0.0.3
|
7
|
-
Requires-Dist: llama-index>=0.
|
7
|
+
Requires-Dist: llama-index>=0.10.10
|
8
8
|
Description-Content-Type: text/markdown
|
9
9
|
|
10
10
|
## Anthropic extensions
|
@@ -0,0 +1,5 @@
|
|
1
|
+
hyperpocket_llamaindex/__init__.py,sha256=tZQ6ZnSlrc6zkUafpiYTbknXy7cac1fRLGJ6lBsGtvw,102
|
2
|
+
hyperpocket_llamaindex/pocket_llamaindex.py,sha256=EJAj0b3DAfZGtFPFzxrskvadGyroJL8lccH8VW5JMjo,2690
|
3
|
+
hyperpocket_llamaindex-0.3.7.dist-info/METADATA,sha256=gjxXrKx2m4J6vJRxzic_O3t2glFs6tf9QzN4MDsCWD0,1240
|
4
|
+
hyperpocket_llamaindex-0.3.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
5
|
+
hyperpocket_llamaindex-0.3.7.dist-info/RECORD,,
|
@@ -1,5 +0,0 @@
|
|
1
|
-
hyperpocket_llamaindex/__init__.py,sha256=tZQ6ZnSlrc6zkUafpiYTbknXy7cac1fRLGJ6lBsGtvw,102
|
2
|
-
hyperpocket_llamaindex/pocket_llamaindex.py,sha256=Q5pw_0ZVQWh3U2bkJeEr73v5goWEx20mhtx7blkPq98,2724
|
3
|
-
hyperpocket_llamaindex-0.3.5.dist-info/METADATA,sha256=A1WjebaHhYFq_9O29qYutvm8F1IkO-f7uopP0Cf9uEc,1239
|
4
|
-
hyperpocket_llamaindex-0.3.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
5
|
-
hyperpocket_llamaindex-0.3.5.dist-info/RECORD,,
|
File without changes
|