hyperpocket-anthropic 0.2.0__tar.gz → 0.3.0__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperpocket-anthropic
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Author-email: Hyperpocket Team <hyperpocket@vessl.ai>
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: anthropic>=0.40.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "hyperpocket-anthropic"
3
- version = "0.2.0"
3
+ version = "0.3.0"
4
4
  description = ""
5
5
  authors = [{ name = "Hyperpocket Team", email = "hyperpocket@vessl.ai" }]
6
6
  requires-python = ">=3.10"
@@ -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
- from_git(
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=secret["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
- from_git(
74
- "https://github.com/vessl-ai/hyperawesometools",
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
- from_git(
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=secret["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
- from_git(
74
- "https://github.com/vessl-ai/hyperawesometools",
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