hyperpocket-anthropic 0.2.1__tar.gz → 0.3.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/PKG-INFO +1 -1
- {hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/pyproject.toml +1 -1
- {hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/tests/test_pocket_anthropic_no_profile.py +6 -18
- {hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/tests/test_pocket_anthropic_use_profile.py +6 -18
- {hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/.gitignore +0 -0
- {hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/README.md +0 -0
- {hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/__init__.py +0 -0
- {hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/hyperpocket_anthropic/__init__.py +0 -0
- {hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/hyperpocket_anthropic/pocket_anthropic.py +0 -0
- {hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/hyperpocket_anthropic/util/__init__.py +0 -0
- {hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/hyperpocket_anthropic/util/tool_to_anthropic_spec.py +0 -0
- {hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/tests/__init__.py +0 -0
- {hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/uv.lock +0 -0
@@ -1,11 +1,11 @@
|
|
1
1
|
import ast
|
2
|
+
import os
|
2
3
|
from unittest.async_case import IsolatedAsyncioTestCase
|
3
4
|
|
4
5
|
from anthropic import Anthropic
|
5
|
-
from hyperpocket.config import config, secret
|
6
|
-
from hyperpocket.tool import from_git
|
7
6
|
from pydantic import BaseModel
|
8
7
|
|
8
|
+
from hyperpocket.config import config
|
9
9
|
from hyperpocket_anthropic import PocketAnthropic
|
10
10
|
|
11
11
|
|
@@ -49,11 +49,7 @@ class TestPocketAnthropicNoProfile(IsolatedAsyncioTestCase):
|
|
49
49
|
|
50
50
|
self.pocket = PocketAnthropic(
|
51
51
|
tools=[
|
52
|
-
|
53
|
-
"https://github.com/vessl-ai/hyperawesometools",
|
54
|
-
"main",
|
55
|
-
"managed-tools/none/simple-echo-tool",
|
56
|
-
),
|
52
|
+
"https://github.com/vessl-ai/hyperpocket/main/tree/tools/none/simple-echo-tool",
|
57
53
|
self.add,
|
58
54
|
self.sub_pydantic_args,
|
59
55
|
],
|
@@ -61,7 +57,7 @@ class TestPocketAnthropicNoProfile(IsolatedAsyncioTestCase):
|
|
61
57
|
self.tool_specs_no_profile = self.pocket.get_anthropic_tool_specs(
|
62
58
|
use_profile=False
|
63
59
|
)
|
64
|
-
self.client = Anthropic(api_key=
|
60
|
+
self.client = Anthropic(api_key=os.getenv("ANTHROPIC_API_KEY"))
|
65
61
|
|
66
62
|
async def asyncTearDown(self):
|
67
63
|
self.pocket._teardown_server()
|
@@ -70,16 +66,8 @@ class TestPocketAnthropicNoProfile(IsolatedAsyncioTestCase):
|
|
70
66
|
# given
|
71
67
|
pocket = PocketAnthropic(
|
72
68
|
tools=[
|
73
|
-
|
74
|
-
|
75
|
-
"main",
|
76
|
-
"managed-tools/slack/get-message",
|
77
|
-
),
|
78
|
-
from_git(
|
79
|
-
"https://github.com/vessl-ai/hyperawesometools",
|
80
|
-
"main",
|
81
|
-
"managed-tools/slack/post-message",
|
82
|
-
),
|
69
|
+
"https://github.com/vessl-ai/hyperpocket/main/tree/tools/slack/get-message",
|
70
|
+
"https://github.com/vessl-ai/hyperpocket/main/tree/tools/slack/post-message",
|
83
71
|
]
|
84
72
|
)
|
85
73
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import ast
|
2
|
+
import os
|
2
3
|
from unittest.async_case import IsolatedAsyncioTestCase
|
3
4
|
|
4
5
|
from anthropic import Anthropic
|
5
|
-
from hyperpocket.config import config, secret
|
6
|
-
from hyperpocket.tool import from_git
|
7
6
|
from pydantic import BaseModel
|
8
7
|
|
8
|
+
from hyperpocket.config import config
|
9
9
|
from hyperpocket_anthropic import PocketAnthropic
|
10
10
|
|
11
11
|
|
@@ -49,11 +49,7 @@ class TestPocketAnthropicUseProfile(IsolatedAsyncioTestCase):
|
|
49
49
|
|
50
50
|
self.pocket = PocketAnthropic(
|
51
51
|
tools=[
|
52
|
-
|
53
|
-
"https://github.com/vessl-ai/hyperawesometools",
|
54
|
-
"main",
|
55
|
-
"managed-tools/none/simple-echo-tool",
|
56
|
-
),
|
52
|
+
"https://github.com/vessl-ai/hyperpocket/main/tree/tools/none/simple-echo-tool",
|
57
53
|
self.add,
|
58
54
|
self.sub_pydantic_args,
|
59
55
|
],
|
@@ -61,7 +57,7 @@ class TestPocketAnthropicUseProfile(IsolatedAsyncioTestCase):
|
|
61
57
|
self.tool_specs_use_profile = self.pocket.get_anthropic_tool_specs(
|
62
58
|
use_profile=True
|
63
59
|
)
|
64
|
-
self.client = Anthropic(api_key=
|
60
|
+
self.client = Anthropic(api_key=os.getenv("ANTHROPIC_API_KEY"))
|
65
61
|
|
66
62
|
async def asyncTearDown(self):
|
67
63
|
self.pocket._teardown_server()
|
@@ -70,16 +66,8 @@ class TestPocketAnthropicUseProfile(IsolatedAsyncioTestCase):
|
|
70
66
|
# given
|
71
67
|
pocket = PocketAnthropic(
|
72
68
|
tools=[
|
73
|
-
|
74
|
-
|
75
|
-
"main",
|
76
|
-
"managed-tools/slack/get-message",
|
77
|
-
),
|
78
|
-
from_git(
|
79
|
-
"https://github.com/vessl-ai/hyperawesometools",
|
80
|
-
"main",
|
81
|
-
"managed-tools/slack/post-message",
|
82
|
-
),
|
69
|
+
"https://github.com/vessl-ai/hyperpocket/main/tree/tools/slack/get-message",
|
70
|
+
"https://github.com/vessl-ai/hyperpocket/main/tree/tools/slack/post-message",
|
83
71
|
]
|
84
72
|
)
|
85
73
|
|
File without changes
|
File without changes
|
File without changes
|
{hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/hyperpocket_anthropic/__init__.py
RENAMED
File without changes
|
File without changes
|
{hyperpocket_anthropic-0.2.1 → hyperpocket_anthropic-0.3.0}/hyperpocket_anthropic/util/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|