langchain-serpex-python 0.1.4__tar.gz → 0.1.5__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.4 → langchain_serpex_python-0.1.5}/PKG-INFO +7 -18
- {langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/README.md +6 -17
- {langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/pyproject.toml +1 -1
- {langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/.github/workflows/publish-pypi.yml +0 -0
- {langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/LICENSE +0 -0
- {langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/Makefile +0 -0
- {langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/langchain_serpex_python/__init__.py +0 -0
- {langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/langchain_serpex_python/py.typed +0 -0
- {langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/langchain_serpex_python/tools.py +0 -0
- {langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/tests/__init__.py +0 -0
- {langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/tests/integration_tests/__init__.py +0 -0
- {langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/tests/integration_tests/test_tools.py +0 -0
- {langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/tests/unit_tests/__init__.py +0 -0
- {langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/tests/unit_tests/test_tools.py +0 -0
- {langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/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.5
|
|
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
|
|
@@ -53,8 +53,7 @@ from langchain_serpex_python import SerpexSearchResults
|
|
|
53
53
|
# Initialize the tool
|
|
54
54
|
tool = SerpexSearchResults(
|
|
55
55
|
api_key="your-serpex-api-key",
|
|
56
|
-
engine="google"
|
|
57
|
-
num_results=10
|
|
56
|
+
engine="google"
|
|
58
57
|
)
|
|
59
58
|
|
|
60
59
|
# Perform a search
|
|
@@ -72,8 +71,7 @@ from langchain.agents import initialize_agent, AgentType
|
|
|
72
71
|
# Initialize the search tool
|
|
73
72
|
search_tool = SerpexSearchResults(
|
|
74
73
|
api_key="your-serpex-api-key",
|
|
75
|
-
engine="google"
|
|
76
|
-
num_results=5
|
|
74
|
+
engine="google"
|
|
77
75
|
)
|
|
78
76
|
|
|
79
77
|
# Initialize the LLM
|
|
@@ -101,12 +99,7 @@ from langchain_serpex_python import SerpexSearchResults
|
|
|
101
99
|
tool = SerpexSearchResults(
|
|
102
100
|
api_key="your-serpex-api-key",
|
|
103
101
|
engine="google",
|
|
104
|
-
|
|
105
|
-
gl="us", # Country code
|
|
106
|
-
hl="en", # Language code
|
|
107
|
-
location="New York", # Specific location
|
|
108
|
-
time_period="m", # Results from past month
|
|
109
|
-
safe_search="moderate"
|
|
102
|
+
time_range="month"
|
|
110
103
|
)
|
|
111
104
|
|
|
112
105
|
# Search for location-specific results
|
|
@@ -153,13 +146,9 @@ tool = SerpexSearchResults() # Will use SERPEX_API_KEY from environment
|
|
|
153
146
|
### Parameters
|
|
154
147
|
|
|
155
148
|
- `api_key` (str): Your SERPEX API key (required)
|
|
156
|
-
- `engine` (str): Search engine to use - "google", "bing", "duckduckgo", "
|
|
157
|
-
- `
|
|
158
|
-
- `
|
|
159
|
-
- `hl` (str): Language code (e.g., "en", "es", "fr")
|
|
160
|
-
- `location` (str): Specific location for localized results
|
|
161
|
-
- `time_period` (str): Time filter - "d" (day), "w" (week), "m" (month), "y" (year)
|
|
162
|
-
- `safe_search` (str): Safe search filter - "off", "moderate", "strict"
|
|
149
|
+
- `engine` (str): Search engine to use - "auto", "google", "bing", "duckduckgo", "brave", "yahoo", "yandex" (default: "auto")
|
|
150
|
+
- `category` (str): Search category - currently only "web" is supported (default: "web")
|
|
151
|
+
- `time_range` (str): Time filter - "all", "day", "week", "month", "year" (not supported by Brave)
|
|
163
152
|
|
|
164
153
|
## Documentation
|
|
165
154
|
|
|
@@ -38,8 +38,7 @@ from langchain_serpex_python import SerpexSearchResults
|
|
|
38
38
|
# Initialize the tool
|
|
39
39
|
tool = SerpexSearchResults(
|
|
40
40
|
api_key="your-serpex-api-key",
|
|
41
|
-
engine="google"
|
|
42
|
-
num_results=10
|
|
41
|
+
engine="google"
|
|
43
42
|
)
|
|
44
43
|
|
|
45
44
|
# Perform a search
|
|
@@ -57,8 +56,7 @@ from langchain.agents import initialize_agent, AgentType
|
|
|
57
56
|
# Initialize the search tool
|
|
58
57
|
search_tool = SerpexSearchResults(
|
|
59
58
|
api_key="your-serpex-api-key",
|
|
60
|
-
engine="google"
|
|
61
|
-
num_results=5
|
|
59
|
+
engine="google"
|
|
62
60
|
)
|
|
63
61
|
|
|
64
62
|
# Initialize the LLM
|
|
@@ -86,12 +84,7 @@ from langchain_serpex_python import SerpexSearchResults
|
|
|
86
84
|
tool = SerpexSearchResults(
|
|
87
85
|
api_key="your-serpex-api-key",
|
|
88
86
|
engine="google",
|
|
89
|
-
|
|
90
|
-
gl="us", # Country code
|
|
91
|
-
hl="en", # Language code
|
|
92
|
-
location="New York", # Specific location
|
|
93
|
-
time_period="m", # Results from past month
|
|
94
|
-
safe_search="moderate"
|
|
87
|
+
time_range="month"
|
|
95
88
|
)
|
|
96
89
|
|
|
97
90
|
# Search for location-specific results
|
|
@@ -138,13 +131,9 @@ tool = SerpexSearchResults() # Will use SERPEX_API_KEY from environment
|
|
|
138
131
|
### Parameters
|
|
139
132
|
|
|
140
133
|
- `api_key` (str): Your SERPEX API key (required)
|
|
141
|
-
- `engine` (str): Search engine to use - "google", "bing", "duckduckgo", "
|
|
142
|
-
- `
|
|
143
|
-
- `
|
|
144
|
-
- `hl` (str): Language code (e.g., "en", "es", "fr")
|
|
145
|
-
- `location` (str): Specific location for localized results
|
|
146
|
-
- `time_period` (str): Time filter - "d" (day), "w" (week), "m" (month), "y" (year)
|
|
147
|
-
- `safe_search` (str): Safe search filter - "off", "moderate", "strict"
|
|
134
|
+
- `engine` (str): Search engine to use - "auto", "google", "bing", "duckduckgo", "brave", "yahoo", "yandex" (default: "auto")
|
|
135
|
+
- `category` (str): Search category - currently only "web" is supported (default: "web")
|
|
136
|
+
- `time_range` (str): Time filter - "all", "day", "week", "month", "year" (not supported by Brave)
|
|
148
137
|
|
|
149
138
|
## Documentation
|
|
150
139
|
|
{langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/.github/workflows/publish-pypi.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/langchain_serpex_python/__init__.py
RENAMED
|
File without changes
|
{langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/langchain_serpex_python/py.typed
RENAMED
|
File without changes
|
{langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/langchain_serpex_python/tools.py
RENAMED
|
File without changes
|
|
File without changes
|
{langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/tests/integration_tests/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/tests/unit_tests/__init__.py
RENAMED
|
File without changes
|
{langchain_serpex_python-0.1.4 → langchain_serpex_python-0.1.5}/tests/unit_tests/test_tools.py
RENAMED
|
File without changes
|
|
File without changes
|