rusticai-serpapi 0.0.2__tar.gz → 0.0.4__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.
- {rusticai_serpapi-0.0.2 → rusticai_serpapi-0.0.4}/PKG-INFO +6 -7
- {rusticai_serpapi-0.0.2 → rusticai_serpapi-0.0.4}/pyproject.toml +7 -5
- {rusticai_serpapi-0.0.2 → rusticai_serpapi-0.0.4}/src/rustic_ai/serpapi/agent.py +4 -4
- {rusticai_serpapi-0.0.2 → rusticai_serpapi-0.0.4}/README.md +0 -0
- {rusticai_serpapi-0.0.2 → rusticai_serpapi-0.0.4}/src/rustic_ai/serpapi/__init__.py +0 -0
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: rusticai-serpapi
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Rustic AI module supporting Search through SerpApi
|
|
5
|
-
Home-page: https://www.rustic.ai/
|
|
6
5
|
License: Apache-2.0
|
|
7
6
|
Author: Dragonscale Industries Inc.
|
|
8
7
|
Author-email: dev@dragonscale.ai
|
|
9
|
-
Requires-Python: >=3.12,<
|
|
8
|
+
Requires-Python: >=3.12,<3.13
|
|
10
9
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
10
|
Classifier: Programming Language :: Python :: 3
|
|
12
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
14
12
|
Provides-Extra: test
|
|
15
|
-
Requires-Dist: rusticai-core (>=0.0.
|
|
13
|
+
Requires-Dist: rusticai-core (>=0.0.8,<0.1.0)
|
|
16
14
|
Requires-Dist: serpapi (>=0.1.5,<0.2.0)
|
|
17
|
-
Project-URL:
|
|
15
|
+
Project-URL: Homepage, https://www.rustic.ai/
|
|
16
|
+
Project-URL: Repository, https://github.com/rustic-ai/rustic-ai
|
|
18
17
|
Project-URL: Rustic AI Core, https://pypi.org/project/rusticai-core/
|
|
19
18
|
Description-Content-Type: text/markdown
|
|
20
19
|
|
|
@@ -4,21 +4,21 @@ build-backend = "poetry.core.masonry.api"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "rusticai-serpapi"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.4"
|
|
8
8
|
description = "Rustic AI module supporting Search through SerpApi"
|
|
9
9
|
authors = ["Dragonscale Industries Inc. <dev@dragonscale.ai>"]
|
|
10
10
|
license = "Apache-2.0"
|
|
11
11
|
readme = "README.md"
|
|
12
12
|
homepage = "https://www.rustic.ai/"
|
|
13
|
-
repository = "https://github.com/rustic-ai/
|
|
13
|
+
repository = "https://github.com/rustic-ai/rustic-ai"
|
|
14
14
|
packages = [{ include = "rustic_ai", from = "src" }]
|
|
15
15
|
|
|
16
16
|
[tool.poetry.urls]
|
|
17
17
|
"Rustic AI Core" = "https://pypi.org/project/rusticai-core/"
|
|
18
18
|
|
|
19
19
|
[tool.poetry.dependencies]
|
|
20
|
-
python = "
|
|
21
|
-
rusticai-core = "
|
|
20
|
+
python = ">=3.12,<3.13"
|
|
21
|
+
rusticai-core = { version = "0.0.8"}
|
|
22
22
|
serpapi = "^0.1.5"
|
|
23
23
|
|
|
24
24
|
[tool.poetry-monorepo.deps]
|
|
@@ -34,7 +34,7 @@ flake8 = "^7.1.2"
|
|
|
34
34
|
tox = "^4.24.1"
|
|
35
35
|
isort = "^6.0.0"
|
|
36
36
|
mypy = "^1.15.0"
|
|
37
|
-
rusticai-testing = {
|
|
37
|
+
rusticai-testing = { version = "0.0.4"}
|
|
38
38
|
|
|
39
39
|
[tool.poetry.extras]
|
|
40
40
|
test = ["pytest", "rusticai-testing"]
|
|
@@ -66,6 +66,8 @@ explicit_package_bases = true
|
|
|
66
66
|
|
|
67
67
|
[tool.isort]
|
|
68
68
|
profile = "black"
|
|
69
|
+
force_sort_within_sections = true # For the sorting order issues
|
|
70
|
+
lines_between_sections = 1 # For the newline issue
|
|
69
71
|
known_third_party = ["pydantic"]
|
|
70
72
|
known_first_party = ["rustic_ai.core", "rustic_ai.serpapi"]
|
|
71
73
|
known_local_folder = ["rustic_ai.testing"]
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import os
|
|
2
1
|
from enum import Enum
|
|
2
|
+
import os
|
|
3
3
|
from typing import List, Optional
|
|
4
4
|
from urllib.parse import urlparse
|
|
5
5
|
|
|
6
|
-
import shortuuid
|
|
7
6
|
from pydantic import BaseModel, Field
|
|
8
|
-
|
|
9
7
|
import serpapi
|
|
8
|
+
import shortuuid
|
|
9
|
+
|
|
10
10
|
from rustic_ai.core.agents.commons.media import MediaLink
|
|
11
11
|
from rustic_ai.core.guild import Agent, AgentMode, AgentSpec, AgentType, agent
|
|
12
12
|
from rustic_ai.core.messaging.core import JsonDict
|
|
@@ -68,7 +68,7 @@ class SERPAgent(Agent):
|
|
|
68
68
|
|
|
69
69
|
self.serp_api_key = os.getenv("SERP_API_KEY", "")
|
|
70
70
|
assert self.serp_api_key, "SERP_API_KEY environment variable not set"
|
|
71
|
-
self.client = serpapi.Client(api_key=self.serp_api_key)
|
|
71
|
+
self.client = serpapi.Client(api_key=self.serp_api_key) # type: ignore
|
|
72
72
|
|
|
73
73
|
@agent.processor(SERPQuery)
|
|
74
74
|
def search(self, ctx: agent.ProcessContext[SERPQuery]) -> None:
|
|
File without changes
|
|
File without changes
|