Skip to content

Add Spraay x402 partner notebook: payment-enabled AI agents with Oracle AI Database#131

Open
plagtech wants to merge 1 commit into
oracle-devrel:mainfrom
plagtech:add-spraay-x402-partner-notebook
Open

Add Spraay x402 partner notebook: payment-enabled AI agents with Oracle AI Database#131
plagtech wants to merge 1 commit into
oracle-devrel:mainfrom
plagtech:add-spraay-x402-partner-notebook

Conversation

@plagtech

Copy link
Copy Markdown

What this adds

A partner notebook and README under partners/spraay/ demonstrating how to build payment-enabled AI agents that combine Oracle AI Database with the Spraay x402 Gateway.

Why this belongs here

The existing notebooks cover agent memory, reasoning, RAG, and hybrid search — but none address how agents pay for external resources autonomously. This notebook fills that gap by showing the x402 payment protocol alongside Oracle AI Vector Search in a single agentic loop.

What the notebook covers

  • Oracle AI Database as the vector store for free RAG retrieval (langchain-oracledb)
  • Spraay x402 Gateway for paid AI inference (200+ models at $0.04 USDC), decentralized Bittensor inference (43+ models at $0.03 USDC), and web search (Tavily-powered at $0.02 USDC)
  • Cost-aware agent behavior — agent always checks Oracle AI DB first (free), only escalates to paid tools when local context is insufficient
  • Oracle hybrid search — combining vector similarity with SQL metadata filtering
  • Full payment audit trail — every micropayment is an on-chain USDC transfer on Base

About Spraay

Spraay Protocol is a multi-chain batch payment protocol (15 chains) and x402 payment gateway with 88 pay-per-call endpoints across 19 categories. Spraay's batch payment tool is an official community tool in Google's Agent Development Kit (merged PR #95).

   
Gateway gateway.spraay.app
Docs docs.spraay.app
Contract 0x1646452F98E36A3c9Cfc3eDD8868221E207B5eEC on Base
Google ADK google/adk-python-community — PR #95 (merged)
## What this adds

A partner notebook and README under partners/spraay/ demonstrating how to build payment-enabled AI agents that combine Oracle AI Database with the Spraay x402 Gateway.

Why this belongs here

The existing notebooks cover agent memory, reasoning, RAG, and hybrid search — but none address how agents pay for external resources autonomously. This notebook fills that gap by showing the x402 payment protocol alongside Oracle AI Vector Search in a single agentic loop.

What the notebook covers

  • Oracle AI Database as the vector store for free RAG retrieval (langchain-oracledb)
  • Spraay x402 Gateway for paid AI inference (200+ models at $0.04 USDC), decentralized Bittensor inference (43+ models at $0.03 USDC), and web search (Tavily-powered at $0.02 USDC)
  • Cost-aware agent behavior — agent always checks Oracle AI DB first (free), only escalates to paid tools when local context is insufficient
  • Oracle hybrid search — combining vector similarity with SQL metadata filtering
  • Full payment audit trail — every micropayment is an on-chain USDC transfer on Base

About Spraay

[Spraay Protocol](https://spraay.app) is a multi-chain batch payment protocol (15 chains) and x402 payment gateway with 88 pay-per-call endpoints across 19 categories. Spraay's batch payment tool is an official community tool in [Google's Agent Development Kit](https://github.com/google/adk-python-community) (merged PR #95).

Gateway [gateway.spraay.app](https://gateway.spraay.app)
Docs [docs.spraay.app](https://docs.spraay.app)
Contract [0x1646452F98E36A3c9Cfc3eDD8868221E207B5eEC](https://basescan.org/address/0x1646452F98E36A3c9Cfc3eDD8868221E207B5eEC) on Base
Google ADK [google/adk-python-community](https://github.com/google/adk-python-community) — PR #95 (merged)

Files changed

File Change
partners/spraay/README.md Partner overview and links
partners/spraay/spraay_x402_payment_agents_oracle.ipynb Full notebook (26 cells)
README.md Updated Partners table (replaced "Coming soon" placeholder)

@oracle-contributor-agreement

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label May 10, 2026
@oracle-contributor-agreement

Copy link
Copy Markdown

Thank you for signing the OCA.

@oracle-contributor-agreement oracle-contributor-agreement Bot added OCA Verified All contributors have signed the Oracle Contributor Agreement. and removed OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. labels May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant