pydantic-ai-nestdaddy
Give your Pydantic AI agent today's internet. This package adds a capability with three tools backed by NestDaddy, a search service with its own crawler and index:
search_web: web results with title, url, snippet and domain.search_news: real-time news, filtered by age and country, newest and best match first.read_page: the clean full text of a page or article.
It also gives the model a short instruction on when to use each tool.
Install
pip install pydantic-ai-nestdaddy
Get an API key at nestdaddy.com/dashboard (a free plan is available) and set it:
export NESTDADDY_API_KEY=nd_...
Use it
from pydantic_ai import Agent
from pydantic_ai_nestdaddy import NestDaddyCapability
agent = Agent('openai:gpt-5', capabilities=[NestDaddyCapability()])
result = agent.run_sync('What happened in AI this week? Cite your sources.')
print(result.output)
Options (all optional): api_key, num_results (default 10), news_days (default 30), country (a default two-letter code such as GB), max_chars for read_page (default 8000), timeout.
Only the tools
If you prefer a plain toolset:
from pydantic_ai import Agent
from pydantic_ai_nestdaddy import nestdaddy_toolset
agent = Agent('openai:gpt-5', toolsets=[nestdaddy_toolset(country='US')])
Agent specs
Every field is serializable, so the capability works in agent specs:
model: openai:gpt-5
capabilities:
- NestDaddy:
country: GB
agent = Agent.from_file('agent.yaml', custom_capability_types=[NestDaddyCapability])
Behaviour
- Bad arguments (a one-character query, a malformed country code or URL) are checked locally and sent back to the model as a retry, without an API call.
- A 400 or 422 from the API is also a model retry. Quota, key and network problems raise
NestDaddyErrorwith a clear message. - Tool results are compact JSON objects, never raw API payloads.
Tests
pip install -e ".[test]"
pytest
The tests run offline through httpx.MockTransport.
Links
- API reference: https://nestdaddy.com/apis
- NestDaddy MCP server: https://nestdaddy.com/mcp
- Pydantic AI integration guide: https://nestdaddy.com/integrations/pydantic-ai
MIT licensed.
Metadata
Release files for pydantic-ai-nestdaddy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pydantic_ai_nestdaddy-0.1.0.tar.gz | 7.8 kB | Without provenance | Details for pydantic_ai_nestdaddy-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydantic_ai_nestdaddy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pydantic_ai_nestdaddy-0.1.0-py3-none-any.whl |
Total release size: 16.1 kB
Release files / pydantic_ai_nestdaddy-0.1.0.tar.gz
| Download URL | pydantic_ai_nestdaddy-0.1.0.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e36729707b141a366161f302223af3f15895cf258447d5aee58167d51d7a544
|
|
BLAKE2b-256 checksum How to use checksums |
8893df4fde62a40d600b3be2784e5019575ab59902d76d314d3728d448885a17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.2
|
Release files / pydantic_ai_nestdaddy-0.1.0-py3-none-any.whl
| Download URL | pydantic_ai_nestdaddy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
415c47b02eb1e43c926838ba0c802e76e6a08596bdbf779cca3b3000f9ba22dc
|
|
BLAKE2b-256 checksum How to use checksums |
03c247ae7aeae2db0ae2083a0cd1af6642926742968cf9b3ca89741a77fd60b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.2
|
Security for pydantic-ai-nestdaddy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.