Skip to main content

Scavio real-time Google search tool for Pydantic AI agents

Project description

pydantic-scavio

Real-time Google search for Pydantic AI agents, powered by Scavio — a unified search API for AI agents (Google, YouTube, Amazon, Walmart, Reddit, TikTok, Instagram).

Every search costs 1 credit and returns Google's live results as clean, typed JSON.

Install

pip install pydantic-scavio

Get a free API key (50 signup credits, no credit card) at dashboard.scavio.dev.

Usage

from pydantic_ai import Agent
from pydantic_scavio import scavio_search_tool

agent = Agent(
    "openai:gpt-5.5",
    tools=[scavio_search_tool(api_key="sk_live_...")],
    system_prompt="Search the web when you need current information.",
)

result = agent.run_sync("What changed in the latest Pydantic AI release?")
print(result.output)

Fixing parameters for the agent

Parameters you pass to the factory are fixed for all searches and hidden from the LLM's tool schema; parameters you leave unset stay available for the LLM to set per call.

# Always search from the US in English; the LLM only controls the query.
tool = scavio_search_tool(api_key="sk_live_...", country_code="us", language="en")

Sharing a client

from scavio import AsyncScavioClient
from pydantic_scavio import scavio_search_tool

client = AsyncScavioClient(api_key="sk_live_...")
tool = scavio_search_tool(client=client)

Result shape

The tool returns list[ScavioSearchResult]:

Field Type Description
position int Rank of the result on the page
title str Result title
url str Result URL
domain str Result domain
content str Snippet
date str | None Publication date when available

Beyond Google

The same scavio SDK covers YouTube, Amazon, Walmart, Reddit, TikTok, and Instagram, and Scavio also ships a hosted MCP server with 46 tools. See the docs.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydantic_scavio-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydantic_scavio-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pydantic_scavio-0.1.0.tar.gz.

File metadata

  • Download URL: pydantic_scavio-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pydantic_scavio-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d1455c0216f8705d2a35487b7ffd735c49766631a16cf76dbeac030bc8193c4e
MD5 5c7bdfd2a51793d73b13e7136dd59206
BLAKE2b-256 9daa51a656a090cf2c22c876a6be6299d113cc00cfc33935df0f221559abb72f

See more details on using hashes here.

File details

Details for the file pydantic_scavio-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pydantic_scavio-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78a2ac6f3b0d13e3fd70c9a83cd6ea5f5a71004a4d5a25e7c6271b409424fa71
MD5 6d42c31f0051a8fa405272a98bd20c24
BLAKE2b-256 fb301d2e6e1ef490525609bb514e1a10e6dc275bef8ef387ac7dd4bffe37cbf1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page