langchain-serpex-python 0.1.0__tar.gz → 0.1.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.
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/PKG-INFO +3 -3
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/langchain_serpex_python/tools.py +4 -6
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/pyproject.toml +4 -4
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/.github/workflows/publish-pypi.yml +0 -0
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/LICENSE +0 -0
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/Makefile +0 -0
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/README.md +0 -0
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/langchain_serpex_python/__init__.py +0 -0
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/langchain_serpex_python/py.typed +0 -0
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/tests/__init__.py +0 -0
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/tests/integration_tests/__init__.py +0 -0
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/tests/integration_tests/test_tools.py +0 -0
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/tests/unit_tests/__init__.py +0 -0
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/tests/unit_tests/test_tools.py +0 -0
- {langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: langchain-serpex-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: An integration package connecting SERPEX and LangChain (Python)
|
|
5
5
|
Project-URL: Homepage, https://docs.langchain.com/oss/python/integrations/providers/serpex
|
|
6
6
|
Project-URL: Documentation, https://serpex.dev/docs
|
|
@@ -8,9 +8,9 @@ Project-URL: Source, https://github.com/divyeshradadiya/langchain-serpex
|
|
|
8
8
|
Project-URL: Repository, https://github.com/divyeshradadiya/langchain-serpex
|
|
9
9
|
License: MIT
|
|
10
10
|
License-File: LICENSE
|
|
11
|
-
Requires-Python: <4.0.0,>=3.
|
|
11
|
+
Requires-Python: <4.0.0,>=3.9.0
|
|
12
12
|
Requires-Dist: httpx>=0.27.0
|
|
13
|
-
Requires-Dist: langchain-core<
|
|
13
|
+
Requires-Dist: langchain-core<1.0.0,>=0.3.0
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
|
|
16
16
|
# langchain-serpex-python
|
{langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/langchain_serpex_python/tools.py
RENAMED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"""SERPEX Search Tool for LangChain."""
|
|
2
2
|
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
3
|
import os
|
|
6
|
-
from typing import Any
|
|
4
|
+
from typing import Any, Optional
|
|
7
5
|
|
|
8
6
|
import httpx
|
|
9
7
|
from langchain_core.callbacks import CallbackManagerForToolRun
|
|
@@ -94,7 +92,7 @@ class SerpexSearchResults(BaseTool):
|
|
|
94
92
|
default="web",
|
|
95
93
|
description="Search category (currently only 'web' supported)",
|
|
96
94
|
)
|
|
97
|
-
time_range: str
|
|
95
|
+
time_range: Optional[str] = Field(
|
|
98
96
|
default=None,
|
|
99
97
|
description=(
|
|
100
98
|
"Time range: all, day, week, month, year (not supported by Brave)"
|
|
@@ -214,7 +212,7 @@ class SerpexSearchResults(BaseTool):
|
|
|
214
212
|
def _run(
|
|
215
213
|
self,
|
|
216
214
|
query: str,
|
|
217
|
-
run_manager: CallbackManagerForToolRun
|
|
215
|
+
run_manager: Optional[CallbackManagerForToolRun] = None,
|
|
218
216
|
**kwargs: Any,
|
|
219
217
|
) -> str:
|
|
220
218
|
"""Execute the search."""
|
|
@@ -248,7 +246,7 @@ class SerpexSearchResults(BaseTool):
|
|
|
248
246
|
async def _arun(
|
|
249
247
|
self,
|
|
250
248
|
query: str,
|
|
251
|
-
run_manager: CallbackManagerForToolRun
|
|
249
|
+
run_manager: Optional[CallbackManagerForToolRun] = None,
|
|
252
250
|
**kwargs: Any,
|
|
253
251
|
) -> str:
|
|
254
252
|
"""Execute the search asynchronously."""
|
|
@@ -4,15 +4,15 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "langchain-serpex-python"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.4"
|
|
8
8
|
description = "An integration package connecting SERPEX and LangChain (Python)"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {text = "MIT"}
|
|
11
11
|
authors = []
|
|
12
|
-
requires-python = ">=3.
|
|
12
|
+
requires-python = ">=3.9.0,<4.0.0"
|
|
13
13
|
dependencies = [
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
"langchain-core>=0.3.0,<1.0.0",
|
|
15
|
+
"httpx>=0.27.0",
|
|
16
16
|
]
|
|
17
17
|
|
|
18
18
|
[project.urls]
|
{langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/.github/workflows/publish-pypi.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/langchain_serpex_python/__init__.py
RENAMED
|
File without changes
|
{langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/langchain_serpex_python/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
{langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/tests/integration_tests/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/tests/unit_tests/__init__.py
RENAMED
|
File without changes
|
{langchain_serpex_python-0.1.0 → langchain_serpex_python-0.1.4}/tests/unit_tests/test_tools.py
RENAMED
|
File without changes
|
|
File without changes
|