hyperpocket-anthropic 0.3.6__py3-none-any.whl → 0.3.7__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.
@@ -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, BaseModel):
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, BaseModel):
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.6
3
+ Version: 0.3.7
4
4
  Author-email: Hyperpocket Team <hyperpocket@vessl.ai>
5
5
  Requires-Python: >=3.10
6
- Requires-Dist: anthropic>=0.40.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=bzZijikVVrunQr9QLiUuJopUmKU79QU1AultkaGrBCM,3371
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.3.6.dist-info/METADATA,sha256=7IoDiGraMvpybFrKCsrmykw6sPoU4EiSbVusFBYcmKg,4563
6
- hyperpocket_anthropic-0.3.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- hyperpocket_anthropic-0.3.6.dist-info/RECORD,,
5
+ hyperpocket_anthropic-0.3.7.dist-info/METADATA,sha256=k-n1gMX6Qxd1JhliXkFc1gPG3a1yYAdrWC3n--zf8Gs,4563
6
+ hyperpocket_anthropic-0.3.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ hyperpocket_anthropic-0.3.7.dist-info/RECORD,,