hyperforge-google 1.0.0.post71__tar.gz → 1.0.0.post81__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.
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/PKG-INFO +1 -1
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/pyproject.toml +1 -1
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google/config.py +1 -1
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google.egg-info/PKG-INFO +1 -1
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/tests/test_google.py +18 -4
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/README.md +0 -0
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/setup.cfg +0 -0
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google/__init__.py +0 -0
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google/agent.py +0 -0
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google/driver.py +0 -0
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google/py.typed +0 -0
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google.egg-info/SOURCES.txt +0 -0
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google.egg-info/dependency_links.txt +0 -0
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google.egg-info/requires.txt +0 -0
- {hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "hyperforge_google"
|
|
7
|
-
version = "1.0.0.
|
|
7
|
+
version = "1.0.0.post81"
|
|
8
8
|
license = "Apache-2.0"
|
|
9
9
|
description = "Google Search Hyperforge agent"
|
|
10
10
|
authors = [{ name = "Nuclia", email = "nucliadb@nuclia.com" }]
|
{hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google/config.py
RENAMED
|
@@ -26,7 +26,7 @@ class GoogleDriverConfig(DriverConfig[GoogleInnerConfig]):
|
|
|
26
26
|
class GoogleAgentConfig(ContextAgentConfig):
|
|
27
27
|
model_config = ConfigDict(title="Google Gemini")
|
|
28
28
|
module: Literal["google"] = "google"
|
|
29
|
-
gen_model_id: str = "gemini-
|
|
29
|
+
gen_model_id: str = "gemini-3.6-flash"
|
|
30
30
|
source: str = "google"
|
|
31
31
|
published_functions: Optional[Tuple[str, ...]] = Field(
|
|
32
32
|
default=("internet_search",),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import json
|
|
1
2
|
import os
|
|
2
3
|
from uuid import uuid4
|
|
3
4
|
|
|
@@ -17,6 +18,18 @@ NUA_KEY = os.environ.get(
|
|
|
17
18
|
"NUA_KEY",
|
|
18
19
|
) or cassette_nua_key("https://europe-1.dp.progress.cloud/")
|
|
19
20
|
|
|
21
|
+
VERTEX_CREDENTIALS = json.dumps(
|
|
22
|
+
{
|
|
23
|
+
"type": "authorized_user",
|
|
24
|
+
"client_id": "DUMMY",
|
|
25
|
+
"client_secret": "DUMMY",
|
|
26
|
+
"refresh_token": "DUMMY",
|
|
27
|
+
"quota_project_id": "dummy-project",
|
|
28
|
+
"token": "DUMMY",
|
|
29
|
+
"expiry": "2999-01-01T00:00:00Z",
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
|
|
20
33
|
pytestmark = [
|
|
21
34
|
pytest.mark.vcr(
|
|
22
35
|
ignore_localhost=True,
|
|
@@ -32,8 +45,8 @@ DRIVERS = [
|
|
|
32
45
|
"identifier": "google-01",
|
|
33
46
|
"name": "google",
|
|
34
47
|
"config": {
|
|
35
|
-
"vertexai":
|
|
36
|
-
"
|
|
48
|
+
"vertexai": True,
|
|
49
|
+
"credentials": VERTEX_CREDENTIALS,
|
|
37
50
|
},
|
|
38
51
|
},
|
|
39
52
|
]
|
|
@@ -81,7 +94,8 @@ async def _run_question(
|
|
|
81
94
|
return memory.get_agent_contexts(flow_id=flow_id, agent_id=agent.agent_id), memory
|
|
82
95
|
|
|
83
96
|
|
|
84
|
-
async def test_google():
|
|
97
|
+
async def test_google(monkeypatch: pytest.MonkeyPatch):
|
|
98
|
+
monkeypatch.setenv("GOOGLE_CLOUD_PROJECT", "dummy-project")
|
|
85
99
|
contexts, memory = await _run_question(
|
|
86
100
|
DRIVERS,
|
|
87
101
|
"What is Nuclia?",
|
|
@@ -95,7 +109,7 @@ async def test_google():
|
|
|
95
109
|
event = usage[0]
|
|
96
110
|
assert event.operation == ExternalUsageOperation.INTERNET_SEARCH
|
|
97
111
|
assert event.provider == "google"
|
|
98
|
-
assert event.model == "gemini-
|
|
112
|
+
assert event.model == "gemini-3.6-flash"
|
|
99
113
|
assert event.input_tokens > 0
|
|
100
114
|
assert event.output_tokens > 0
|
|
101
115
|
assert event.requests == 1
|
|
File without changes
|
|
File without changes
|
{hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google/__init__.py
RENAMED
|
File without changes
|
{hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google/agent.py
RENAMED
|
File without changes
|
{hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google/driver.py
RENAMED
|
File without changes
|
{hyperforge_google-1.0.0.post71 → hyperforge_google-1.0.0.post81}/src/hyperforge_google/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|