hyperpocket-anthropic 0.1.10__py3-none-any.whl → 0.2.1__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 +14 -4
- {hyperpocket_anthropic-0.1.10.dist-info → hyperpocket_anthropic-0.2.1.dist-info}/METADATA +1 -1
- hyperpocket_anthropic-0.2.1.dist-info/RECORD +7 -0
- hyperpocket_anthropic-0.1.10.dist-info/RECORD +0 -7
- {hyperpocket_anthropic-0.1.10.dist-info → hyperpocket_anthropic-0.2.1.dist-info}/WHEEL +0 -0
@@ -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,
|
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
|
-
|
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,
|
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(
|
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
|
|
@@ -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.1.dist-info/METADATA,sha256=DC1XG4ycr1uJKuBRKxAkvsseBCbfbTrZg-r5Ing9cLQ,4563
|
6
|
+
hyperpocket_anthropic-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
7
|
+
hyperpocket_anthropic-0.2.1.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,,
|
File without changes
|