hyperpocket-anthropic 0.1.10__py3-none-any.whl → 0.2.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,7 +36,11 @@ class PocketAnthropic(Pocket):
36
36
  body = json.loads(body)
37
37
 
38
38
  result, interrupted = self.invoke_with_state(
39
- tool_use_block.name, body=body, thread_id=thread_id, profile=profile, **kwargs
39
+ tool_use_block.name,
40
+ body=body,
41
+ thread_id=thread_id,
42
+ profile=profile,
43
+ **kwargs,
40
44
  )
41
45
  say = result
42
46
  if interrupted:
@@ -51,7 +55,7 @@ class PocketAnthropic(Pocket):
51
55
  return tool_result_block
52
56
 
53
57
  async def ainvoke(
54
- self, tool_use_block: ToolUseBlock, **kwargs
58
+ self, tool_use_block: ToolUseBlock, **kwargs
55
59
  ) -> ToolResultBlockParam:
56
60
  if isinstance(tool_use_block.input, str):
57
61
  arg = json.loads(tool_use_block.input)
@@ -73,7 +77,11 @@ class PocketAnthropic(Pocket):
73
77
  body = json.loads(body)
74
78
 
75
79
  result, interrupted = await self.ainvoke_with_state(
76
- tool_use_block.name, body=body, thread_id=thread_id, profile=profile, **kwargs
80
+ tool_use_block.name,
81
+ body=body,
82
+ thread_id=thread_id,
83
+ profile=profile,
84
+ **kwargs,
77
85
  )
78
86
  say = result
79
87
 
@@ -88,7 +96,9 @@ class PocketAnthropic(Pocket):
88
96
 
89
97
  return tool_result_block
90
98
 
91
- def get_anthropic_tool_specs(self, use_profile: Optional[bool] = None) -> List[dict]:
99
+ def get_anthropic_tool_specs(
100
+ self, use_profile: Optional[bool] = None
101
+ ) -> List[dict]:
92
102
  if use_profile is not None:
93
103
  self.use_profile = use_profile
94
104
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperpocket-anthropic
3
- Version: 0.1.10
3
+ Version: 0.2.0
4
4
  Author-email: Hyperpocket Team <hyperpocket@vessl.ai>
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: anthropic>=0.40.0
@@ -0,0 +1,7 @@
1
+ hyperpocket_anthropic/__init__.py,sha256=XZl2uODSPMjSOO1LwrJOVMUD1qmGCuykx9SDePN7gLo,98
2
+ hyperpocket_anthropic/pocket_anthropic.py,sha256=bzZijikVVrunQr9QLiUuJopUmKU79QU1AultkaGrBCM,3371
3
+ hyperpocket_anthropic/util/__init__.py,sha256=U8x3PBHTFMpbtbAA5-pQVsggQ3Yph4oeC13wfyzK21I,123
4
+ hyperpocket_anthropic/util/tool_to_anthropic_spec.py,sha256=Lnxs-RMdHkpswjG1aJeEXGuJe8vQfWsbZccsbdPb3_U,749
5
+ hyperpocket_anthropic-0.2.0.dist-info/METADATA,sha256=e9E0ubI78mCHPW6SIVYhv49_r8mAgaBKyAHXhAww75U,4563
6
+ hyperpocket_anthropic-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ hyperpocket_anthropic-0.2.0.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- hyperpocket_anthropic/__init__.py,sha256=XZl2uODSPMjSOO1LwrJOVMUD1qmGCuykx9SDePN7gLo,98
2
- hyperpocket_anthropic/pocket_anthropic.py,sha256=UViv8vIWJ88eItWMAIGUBhCXZQWCn2PYc2EuQdgoAPs,3263
3
- hyperpocket_anthropic/util/__init__.py,sha256=U8x3PBHTFMpbtbAA5-pQVsggQ3Yph4oeC13wfyzK21I,123
4
- hyperpocket_anthropic/util/tool_to_anthropic_spec.py,sha256=Lnxs-RMdHkpswjG1aJeEXGuJe8vQfWsbZccsbdPb3_U,749
5
- hyperpocket_anthropic-0.1.10.dist-info/METADATA,sha256=Xb5PiFhPFYeMb3NxOwxo4_a0X-7JCLSO2-6tGbqSPiM,4564
6
- hyperpocket_anthropic-0.1.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- hyperpocket_anthropic-0.1.10.dist-info/RECORD,,