hyperpocket-anthropic 0.3.6__py3-none-any.whl → 0.4.0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- hyperpocket_anthropic/pocket_anthropic.py +2 -8
- {hyperpocket_anthropic-0.3.6.dist-info → hyperpocket_anthropic-0.4.0.dist-info}/METADATA +2 -2
- {hyperpocket_anthropic-0.3.6.dist-info → hyperpocket_anthropic-0.4.0.dist-info}/RECORD +4 -4
- {hyperpocket_anthropic-0.3.6.dist-info → hyperpocket_anthropic-0.4.0.dist-info}/WHEEL +0 -0
@@ -1,8 +1,6 @@
|
|
1
1
|
import json
|
2
2
|
from typing import List, Optional
|
3
3
|
|
4
|
-
from pydantic import BaseModel
|
5
|
-
|
6
4
|
try:
|
7
5
|
from anthropic.types import ToolResultBlockParam, ToolUseBlock
|
8
6
|
except ImportError:
|
@@ -30,9 +28,7 @@ class PocketAnthropic(Pocket):
|
|
30
28
|
thread_id = "default"
|
31
29
|
profile = "default"
|
32
30
|
|
33
|
-
if isinstance(body,
|
34
|
-
body = body.model_dump()
|
35
|
-
elif isinstance(body, str):
|
31
|
+
if isinstance(body, str):
|
36
32
|
body = json.loads(body)
|
37
33
|
|
38
34
|
result, interrupted = self.invoke_with_state(
|
@@ -71,9 +67,7 @@ class PocketAnthropic(Pocket):
|
|
71
67
|
thread_id = "default"
|
72
68
|
profile = "default"
|
73
69
|
|
74
|
-
if isinstance(body,
|
75
|
-
body = body.model_dump()
|
76
|
-
elif isinstance(body, str):
|
70
|
+
if isinstance(body, str):
|
77
71
|
body = json.loads(body)
|
78
72
|
|
79
73
|
result, interrupted = await self.ainvoke_with_state(
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hyperpocket-anthropic
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.4.0
|
4
4
|
Author-email: Hyperpocket Team <hyperpocket@vessl.ai>
|
5
5
|
Requires-Python: >=3.10
|
6
|
-
Requires-Dist: anthropic>=0.
|
6
|
+
Requires-Dist: anthropic>=0.10.0
|
7
7
|
Requires-Dist: hyperpocket>=0.0.3
|
8
8
|
Description-Content-Type: text/markdown
|
9
9
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
hyperpocket_anthropic/__init__.py,sha256=XZl2uODSPMjSOO1LwrJOVMUD1qmGCuykx9SDePN7gLo,98
|
2
|
-
hyperpocket_anthropic/pocket_anthropic.py,sha256=
|
2
|
+
hyperpocket_anthropic/pocket_anthropic.py,sha256=ateIkVSBWkDO4Fg8pVdJ-QBJX9iqxpScEoTKoEDsVAo,3181
|
3
3
|
hyperpocket_anthropic/util/__init__.py,sha256=U8x3PBHTFMpbtbAA5-pQVsggQ3Yph4oeC13wfyzK21I,123
|
4
4
|
hyperpocket_anthropic/util/tool_to_anthropic_spec.py,sha256=Lnxs-RMdHkpswjG1aJeEXGuJe8vQfWsbZccsbdPb3_U,749
|
5
|
-
hyperpocket_anthropic-0.
|
6
|
-
hyperpocket_anthropic-0.
|
7
|
-
hyperpocket_anthropic-0.
|
5
|
+
hyperpocket_anthropic-0.4.0.dist-info/METADATA,sha256=AiclCEySVrqw-2_9MEAdjQUVfCfbt0AB25Bdv38-yDA,4563
|
6
|
+
hyperpocket_anthropic-0.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
7
|
+
hyperpocket_anthropic-0.4.0.dist-info/RECORD,,
|
File without changes
|