langchain-diffbot 0.1.1__tar.gz → 0.2.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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: langchain-diffbot
3
- Version: 0.1.1
3
+ Version: 0.2.0
4
4
  Summary: LangChain integration for the Diffbot Knowledge Graph and Extract APIs
5
5
  Project-URL: Homepage, https://www.diffbot.com/
6
6
  Project-URL: Repository, https://github.com/diffbot/langchain-diffbot
@@ -18,7 +18,7 @@ Classifier: Programming Language :: Python :: 3.12
18
18
  Classifier: Programming Language :: Python :: 3.13
19
19
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
20
  Requires-Python: <4.0,>=3.10
21
- Requires-Dist: diffbot-python>=0.2.1
21
+ Requires-Dist: diffbot>=3.0.0
22
22
  Requires-Dist: httpx<1.0,>=0.27
23
23
  Requires-Dist: langchain-core<2.0,>=1.0
24
24
  Provides-Extra: examples
@@ -34,6 +34,8 @@ Description-Content-Type: text/markdown
34
34
 
35
35
  [![CI](https://github.com/diffbot/langchain-diffbot/actions/workflows/ci.yml/badge.svg)](https://github.com/diffbot/langchain-diffbot/actions/workflows/ci.yml)
36
36
 
37
+ **LangChain docs:** [https://docs.langchain.com/oss/python/integrations/providers/diffbot](https://docs.langchain.com/oss/python/integrations/providers/diffbot)
38
+
37
39
  A thin LangChain integration over the official [`diffbot-python`](https://github.com/diffbot/diffbot-python) SDK. Every Diffbot API gets the closest LangChain primitive:
38
40
 
39
41
  | Diffbot API | LangChain class(es) |
@@ -202,7 +204,7 @@ Every Diffbot API is also exposed as an agent-callable `BaseTool`. Hand a tool-c
202
204
 
203
205
  ### DiffbotWebSearchTool
204
206
 
205
- Runs a Diffbot web search and returns the result list — each item with `title`, `pageUrl`, `score`, and `content`. (Use `DiffbotWebSearchRetriever` when you want `Document` output instead.)
207
+ Runs a [Diffbot web search](https://docs.diffbot.com/reference/web-search-get) and returns the result list — each item with `title`, `pageUrl`, `score`, and `content`. New accounts include 100,000 free web searches per month. (Use `DiffbotWebSearchRetriever` when you want `Document` output instead.)
206
208
 
207
209
  ```python
208
210
  import os
@@ -2,6 +2,8 @@
2
2
 
3
3
  [![CI](https://github.com/diffbot/langchain-diffbot/actions/workflows/ci.yml/badge.svg)](https://github.com/diffbot/langchain-diffbot/actions/workflows/ci.yml)
4
4
 
5
+ **LangChain docs:** [https://docs.langchain.com/oss/python/integrations/providers/diffbot](https://docs.langchain.com/oss/python/integrations/providers/diffbot)
6
+
5
7
  A thin LangChain integration over the official [`diffbot-python`](https://github.com/diffbot/diffbot-python) SDK. Every Diffbot API gets the closest LangChain primitive:
6
8
 
7
9
  | Diffbot API | LangChain class(es) |
@@ -170,7 +172,7 @@ Every Diffbot API is also exposed as an agent-callable `BaseTool`. Hand a tool-c
170
172
 
171
173
  ### DiffbotWebSearchTool
172
174
 
173
- Runs a Diffbot web search and returns the result list — each item with `title`, `pageUrl`, `score`, and `content`. (Use `DiffbotWebSearchRetriever` when you want `Document` output instead.)
175
+ Runs a [Diffbot web search](https://docs.diffbot.com/reference/web-search-get) and returns the result list — each item with `title`, `pageUrl`, `score`, and `content`. New accounts include 100,000 free web searches per month. (Use `DiffbotWebSearchRetriever` when you want `Document` output instead.)
174
176
 
175
177
  ```python
176
178
  import os
@@ -1,6 +1,6 @@
1
1
  """LangChain integration for Diffbot.
2
2
 
3
- Thin layer over the official `diffbot-python` SDK. Every public class takes a
3
+ Thin layer over the official `diffbot` SDK. Every public class takes a
4
4
  pre-built `diffbot.Diffbot` (sync) and/or `diffbot.DiffbotAsync` (async) client
5
5
  via the `client` / `async_client` fields — build the client yourself (token,
6
6
  `timeout`, `transport=`, custom URLs), pass it in, and share one across many
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "langchain-diffbot"
7
- version = "0.1.1"
7
+ version = "0.2.0"
8
8
  description = "LangChain integration for the Diffbot Knowledge Graph and Extract APIs"
9
9
  license = { text = "MIT" }
10
10
  readme = "README.md"
@@ -24,7 +24,7 @@ requires-python = ">=3.10,<4.0"
24
24
  dependencies = [
25
25
  "langchain-core>=1.0,<2.0",
26
26
  "httpx>=0.27,<1.0",
27
- "diffbot-python>=0.2.1",
27
+ "diffbot>=3.0.0",
28
28
  ]
29
29
 
30
30
  [project.optional-dependencies]
@@ -69,7 +69,7 @@ include = ["/langchain_diffbot", "/README.md", "/LICENSE", "/pyproject.toml"]
69
69
  disallow_untyped_defs = true
70
70
 
71
71
  [[tool.mypy.overrides]]
72
- # diffbot-python doesn't ship a `py.typed` marker yet. Follow-up: upstream the marker.
72
+ # The diffbot SDK doesn't ship a `py.typed` marker yet. Follow-up: upstream the marker.
73
73
  module = "diffbot.*"
74
74
  ignore_missing_imports = true
75
75