hyperpocket-llamaindex 0.2.1__tar.gz → 0.3.0__tar.gz
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.
- {hyperpocket_llamaindex-0.2.1 → hyperpocket_llamaindex-0.3.0}/PKG-INFO +1 -1
- {hyperpocket_llamaindex-0.2.1 → hyperpocket_llamaindex-0.3.0}/pyproject.toml +1 -1
- {hyperpocket_llamaindex-0.2.1 → hyperpocket_llamaindex-0.3.0}/tests/test_pocket_llamaindex_no_profile.py +5 -9
- {hyperpocket_llamaindex-0.2.1 → hyperpocket_llamaindex-0.3.0}/tests/test_pocket_llamaindex_use_profile.py +5 -9
- {hyperpocket_llamaindex-0.2.1 → hyperpocket_llamaindex-0.3.0}/.gitignore +0 -0
- {hyperpocket_llamaindex-0.2.1 → hyperpocket_llamaindex-0.3.0}/README.md +0 -0
- {hyperpocket_llamaindex-0.2.1 → hyperpocket_llamaindex-0.3.0}/__init__.py +0 -0
- {hyperpocket_llamaindex-0.2.1 → hyperpocket_llamaindex-0.3.0}/hyperpocket_llamaindex/__init__.py +0 -0
- {hyperpocket_llamaindex-0.2.1 → hyperpocket_llamaindex-0.3.0}/hyperpocket_llamaindex/pocket_llamaindex.py +0 -0
- {hyperpocket_llamaindex-0.2.1 → hyperpocket_llamaindex-0.3.0}/tests/__init__.py +0 -0
- {hyperpocket_llamaindex-0.2.1 → hyperpocket_llamaindex-0.3.0}/uv.lock +0 -0
@@ -1,13 +1,13 @@
|
|
1
1
|
import ast
|
2
2
|
import json
|
3
|
+
import os
|
3
4
|
from unittest.async_case import IsolatedAsyncioTestCase
|
4
5
|
|
5
|
-
from hyperpocket.config import config, secret
|
6
|
-
from hyperpocket.tool import from_git
|
7
6
|
from llama_index.agent.openai import OpenAIAgent
|
8
7
|
from llama_index.llms.openai import OpenAI
|
9
8
|
from pydantic import BaseModel
|
10
9
|
|
10
|
+
from hyperpocket.config import config
|
11
11
|
from hyperpocket_llamaindex import PocketLlamaindex
|
12
12
|
|
13
13
|
|
@@ -21,18 +21,14 @@ class TestPocketLlamaindexNoProfile(IsolatedAsyncioTestCase):
|
|
21
21
|
|
22
22
|
self.pocket = PocketLlamaindex(
|
23
23
|
tools=[
|
24
|
-
|
25
|
-
"https://github.com/vessl-ai/hyperawesometools",
|
26
|
-
"main",
|
27
|
-
"managed-tools/none/simple-echo-tool",
|
28
|
-
),
|
24
|
+
"https://github.com/vessl-ai/hyperpocket/main/tree/tools/none/simple-echo-tool",
|
29
25
|
self.add,
|
30
26
|
self.sub_pydantic_args,
|
31
27
|
],
|
32
28
|
use_profile=False,
|
33
29
|
)
|
34
30
|
|
35
|
-
self.llm = OpenAI(model="gpt-4o", api_key=
|
31
|
+
self.llm = OpenAI(model="gpt-4o", api_key=os.getenv("OPENAI_API_KEY"))
|
36
32
|
|
37
33
|
async def asyncTearDown(self):
|
38
34
|
self.pocket._teardown_server()
|
@@ -41,7 +37,7 @@ class TestPocketLlamaindexNoProfile(IsolatedAsyncioTestCase):
|
|
41
37
|
# given
|
42
38
|
agent = OpenAIAgent.from_tools(
|
43
39
|
tools=self.pocket.get_tools(),
|
44
|
-
llm=OpenAI(model="gpt-4o", api_key=
|
40
|
+
llm=OpenAI(model="gpt-4o", api_key=os.getenv("OPENAI_API_KEY")),
|
45
41
|
verbose=True,
|
46
42
|
)
|
47
43
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import ast
|
2
2
|
import json
|
3
|
+
import os
|
3
4
|
from unittest.async_case import IsolatedAsyncioTestCase
|
4
5
|
|
5
|
-
from hyperpocket.config import config, secret
|
6
|
-
from hyperpocket.tool import from_git
|
7
6
|
from llama_index.agent.openai import OpenAIAgent
|
8
7
|
from llama_index.llms.openai import OpenAI
|
9
8
|
from pydantic import BaseModel
|
10
9
|
|
10
|
+
from hyperpocket.config import config
|
11
11
|
from hyperpocket_llamaindex import PocketLlamaindex
|
12
12
|
|
13
13
|
|
@@ -21,18 +21,14 @@ class TestPocketLlamaindexUseProfile(IsolatedAsyncioTestCase):
|
|
21
21
|
|
22
22
|
self.pocket = PocketLlamaindex(
|
23
23
|
tools=[
|
24
|
-
|
25
|
-
"https://github.com/vessl-ai/hyperawesometools",
|
26
|
-
"main",
|
27
|
-
"managed-tools/none/simple-echo-tool",
|
28
|
-
),
|
24
|
+
"https://github.com/vessl-ai/hyperpocket/main/tree/tools/none/simple-echo-tool",
|
29
25
|
self.add,
|
30
26
|
self.sub_pydantic_args,
|
31
27
|
],
|
32
28
|
use_profile=True,
|
33
29
|
)
|
34
30
|
|
35
|
-
self.llm = OpenAI(model="gpt-4o", api_key=
|
31
|
+
self.llm = OpenAI(model="gpt-4o", api_key=os.getenv("OPENAI_API_KEY"))
|
36
32
|
|
37
33
|
async def asyncTearDown(self):
|
38
34
|
self.pocket._teardown_server()
|
@@ -41,7 +37,7 @@ class TestPocketLlamaindexUseProfile(IsolatedAsyncioTestCase):
|
|
41
37
|
# given
|
42
38
|
agent = OpenAIAgent.from_tools(
|
43
39
|
tools=self.pocket.get_tools(),
|
44
|
-
llm=OpenAI(model="gpt-4o", api_key=
|
40
|
+
llm=OpenAI(model="gpt-4o", api_key=os.getenv("OPENAI_API_KEY")),
|
45
41
|
verbose=True,
|
46
42
|
)
|
47
43
|
|
File without changes
|
File without changes
|
File without changes
|
{hyperpocket_llamaindex-0.2.1 → hyperpocket_llamaindex-0.3.0}/hyperpocket_llamaindex/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|