Clarify capability names and simplify documentation
Browse filesFiles changed (4)
- README.md+37-40
- index.html+5-5
- task.json+6-5
- tool.py+1-1
1234567891011121 unmodified line141516171819202122232425262728293031323334353637386 unmodified lines454647484950515253545556575859606162636465666768697071727374757677787980818283---title: "Google Search for AI agent research"emoji: 🔎colorFrom: bluecolorTo: indigosdk: staticapp_file: index.htmlpinned: falselicense: mittags:- smolagents- tool1 unmodified line- google-search---# Google Search for AI agent research — FlashDataGive a research agent current web evidence before it answers a question. Search a focused question, keep each title, snippet and source URL, and pass that evidence to your own agent for a cited answer.**Try this task:** Find official documentation about tool calling for an AI research assistant.[FlashData google search documentation](https://flashdata.dev/docs/sources/google_search?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=google-search-agent-flashdata) · [Create a FlashData account](https://flashdata.dev/signup)## Run itOpen the Space to edit a request and inspect a documentation response sample. The interactive page runs locally in your browser; it does not send a FlashData query or collect an API key. The Python tool runs in your own process.Use Python 3.10 or newer. Install the pinned dependencies:```shpython -m pip install "smolagents==1.26.0" "langchain-flashdata==0.2.1"```Create an API key in the FlashData console, fund the required credits, and supply the key in your local environment. Review `tool.py` before enabling remote code execution.```pythonimport getpass6 unmodified linesprint(result)```This is a native smolagents Tool with typed task inputs. Add the loaded tool to your own agent; model choice, prompts and model fees remain under your control. Direct calls above do not need a model.## Inputs| Parameter | Type | Required / default | Details || --- | --- | --- | --- || `query` | string | Required | Search query, between 1 and 2,000 characters. || `num` | integer | 10 | num minimum=1, maximum=100 || `page` | integer | 1 | page minimum=1, maximum=100 || `autocorrect` | boolean | True | autocorrect || `gl` | string | None | Two-letter country code, for example us. pattern=^[A-Za-z]{2}$ || `hl` | string | None | Interface language code, for example en. pattern=^[A-Za-z0-9-]{1,35}$ || `location` | string | None | Optional geographic search location. || `tbs` | string | None | Optional Google time filter, for example qdr:w. |Optional `None` values are omitted; the documented adapter defaults apply.Full validation rules are in `input-schema.json`.## Output and next stepThe useful data is at `results.0.organic`. Relevant fields: `title`, `link`, `snippet`, `position`.Keep the link with every claim in the agent context. Fetch and check the original page separately when full text or a direct quotation is needed.The Space includes a recorded documentation example and its original request. It is not a fresh result for the task prompt above. Optional fields may be absent.## Costs, limits and failuresReturns search results and available SERP fields, not arbitrary webpage full text. This tool supplies evidence; an agent and model are configured separately.The script/tool is MIT licensed and free to install. **FlashData API calls are paid**; installation does not include free data queries. Check current [FlashData pricing](https://flashdata.dev/pricing) and your console balance. Platform, model and customer storage charges are separate. Each search/page is a separate request; Extended Search has its own rate. Downloads are charged by delivered data volume.An uncertain timeout can still represent a charged request. Check Jobs in the FlashData console before trying again; this integration does not automatically retry paid submissions. A 401 means the key was rejected, 402 means insufficient credits, and 429 means a rate or quota limit.[Get started with this FlashData capability](https://flashdata.dev/docs/sources/google_search?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=google-search-agent-flashdata)123456789101112131 unmodified line1516171819202122232425262728293031323334353637383940416 unmodified lines484950515253545556575859606162636465666768697071727374757677787980---title: "Google Search"short_description: "Google results with titles, URLs, snippets and rankings."emoji: "🔎"colorFrom: "blue"colorTo: "indigo"sdk: "static"app_file: "index.html"pinned: falselicense: "mit"tags:- smolagents- tool1 unmodified line- google-search---# Google SearchSearch Google and return ranked titles, URLs, snippets and positions as JSON. Filter by country, language, location or date, and request additional pages.[API documentation](https://flashdata.dev/docs/sources/google_search?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=google-search-agent-flashdata) · [Get an API key](https://flashdata.dev/app/api-keys) · [Pricing](https://flashdata.dev/pricing)Requires your own FlashData API key and paid Credits. The Python tool is free to install.## Try the inputsEdit the JSON in this Space, generate a Python call, and inspect the included sample response or paste your own JSON. This page runs locally in your browser; it does not run a data query or collect your API key.## Run with PythonUse Python 3.10 or newer:```shpython -m pip install "smolagents==1.26.0" "langchain-flashdata==0.2.1"```Review [tool.py](tool.py) before enabling `trust_remote_code`. Run locally with your key:```pythonimport getpass6 unmodified linesprint(result)```The same loaded tool can be used with smolagents. A direct Python call does not require a model.## Inputs| Parameter | Required / default | Details || --- | --- | --- || `query` | Required | Search query, between 1 and 2,000 characters. || `num` | 10 | num minimum=1, maximum=100 || `page` | 1 | page minimum=1, maximum=100 || `autocorrect` | True | autocorrect || `gl` | None | Two-letter country code, for example us. || `hl` | None | Interface language code, for example en. || `location` | None | Optional geographic search location. || `tbs` | None | Optional Google time filter, for example qdr:w. |See [input-schema.json](input-schema.json) for full validation rules. Optional `None` values are omitted; adapter defaults apply.## OutputRead `results.0.organic`. Fields: `title`, `link`, `snippet`, `position`. Optional fields may be absent.[example.json](example.json) contains a recorded response and its original request, not a new result for the input shown in the Space.## Limits and costReturns search results, not webpage full text.Each data request uses FlashData Credits. Check [current pricing](https://flashdata.dev/pricing) before running. Any model or hosting charges are separate.For an uncertain timeout, check your FlashData Jobs before retrying; this tool does not automatically retry paid submissions.
2 unmodified lines345678910111213141516171819202 unmodified lines<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>FlashData research tool</title><link rel="stylesheet" href="style.css"></head><body><main><header><a href="https://flashdata.dev" class="brand" target="_blank" rel="noopener">FLASHDATA</a><span>Research tools for AI agents</span></header><section class="intro"><p class="eyebrow">SMOLAGENTS TOOL · PYTHON</p><h1 id="title">Loading tool…</h1><p id="scenario"></p><a id="docs" class="cta" target="_blank" rel="noopener">Get an API key and read the docs ↗</a></section><div class="grid"><section class="panel"><h2>Build a request</h2><p id="task"></p><label for="parameters">Tool inputs (JSON)</label><textarea id="parameters" spellcheck="false"></textarea><button id="generate" type="button">Generate Python call</button><p id="input-status" role="status"></p><pre><code id="python"></code></pre><p class="hint">Run this code in your Python environment. Your API key is entered there, not on this page.</p></section><section class="panel"><h2>Inspect the response</h2><p class="hint">This is a recorded documentation sample, not a live response to the request on the left. You can paste your own response JSON to explore its fields.</p><details><summary>Original sample request</summary><pre id="sample-request"></pre></details><label for="response">Response JSON</label><textarea id="response" spellcheck="false"></textarea><button id="inspect" type="button">Inspect results</button><p id="response-status" role="status"></p><div id="results"></div></section></div><section class="panel next"><h2>Use the result</h2><p id="next"></p><h3>Limits and costs</h3><p id="limit"></p><p>The tool is free to install. <strong>FlashData API calls are paid.</strong> Platform, model and customer storage costs are separate. No API or model call is made by this page. <a href="https://flashdata.dev/pricing" target="_blank" rel="noopener">Check pricing ↗</a></p><p>For an uncertain timeout, check Jobs before retrying a paid submission. Download jobs must be read with their saved ID; do not submit again while pending.</p></section><footer><a id="source" target="_blank" rel="noopener">Review tool.py</a><a id="readme" target="_blank" rel="noopener">Installation and input reference</a><span>MIT licensed integration · FlashData API terms apply separately</span></footer></main><script type="module" src="app.js"></script>2 unmodified lines345678910111213141516171819202 unmodified lines<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Search and video data tools</title><link rel="stylesheet" href="style.css"></head><body><main><header><a href="https://flashdata.dev" class="brand" target="_blank" rel="noopener">FLASHDATA</a><span>Search & video data</span></header><section class="intro"><p class="eyebrow">PYTHON TOOL · REQUEST EXAMPLES</p><h1 id="title">Loading tool…</h1><p id="scenario"></p><a id="docs" class="cta" target="_blank" rel="noopener">API documentation & setup ↗</a></section><div class="grid"><section class="panel"><h2>Build a request</h2><p id="task"></p><label for="parameters">Tool inputs (JSON)</label><textarea id="parameters" spellcheck="false"></textarea><button id="generate" type="button">Generate Python call</button><p id="input-status" role="status"></p><pre><code id="python"></code></pre><p class="hint">Run this code in your Python environment. Your API key is entered there, not on this page.</p></section><section class="panel"><h2>Inspect the response</h2><p class="hint">View the included sample or paste your own response JSON. Editing the request does not run a query.</p><details><summary>Original sample request</summary><pre id="sample-request"></pre></details><label for="response">Response JSON</label><textarea id="response" spellcheck="false"></textarea><button id="inspect" type="button">Inspect results</button><p id="response-status" role="status"></p><div id="results"></div></section></div><section class="panel next"><h2>Use the result</h2><p id="next"></p><h3>Limits and costs</h3><p id="limit"></p><p>Requires your FlashData API key. <strong>Data calls use paid Credits.</strong> This page only prepares code and displays JSON. <a href="https://flashdata.dev/pricing" target="_blank" rel="noopener">Check pricing ↗</a></p><p>Check FlashData Jobs before retrying a request that timed out.</p></section><footer><a id="source" target="_blank" rel="noopener">Review tool.py</a><a id="readme" target="_blank" rel="noopener">Installation and input reference</a><span>MIT licensed integration · FlashData API terms apply separately</span></footer></main><script type="module" src="app.js"></script>
123456787 unmodified lines1617181920212223{"slug": "google-search-agent-flashdata","title": "Google Search for AI agent research \u2014 FlashData","scenario": "Give a research agent current web evidence before it answers a question. Search a focused question, keep each title, snippet and source URL, and pass that evidence to your own agent for a cited answer.","task": "Find official documentation about tool calling for an AI research assistant.","input": {"query": "site:docs.langchain.com tool calling","num": 5,7 unmodified lines"snippet","position"],"next": "Keep the link with every claim in the agent context. Fetch and check the original page separately when full text or a direct quotation is needed.","limit": "Returns search results and available SERP fields, not arbitrary webpage full text. This tool supplies evidence; an agent and model are configured separately.","source": "google_search","repo_id": "flashdata-dev/google-search-agent-flashdata"}123456787 unmodified lines161718192021222324{"slug": "google-search-agent-flashdata","title": "Google Search","scenario": "Search Google and return ranked titles, URLs, snippets and positions as JSON. Filter by country, language, location or date, and request additional pages.","task": "Try a query with a country and language filter.","input": {"query": "site:docs.langchain.com tool calling","num": 5,7 unmodified lines"snippet","position"],"next": "Use results.0.organic to export titles, links, snippets and positions.","limit": "Returns search results, not webpage full text.","short_description": "Google results with titles, URLs, snippets and rankings.","source": "google_search","repo_id": "flashdata-dev/google-search-agent-flashdata"}
2 unmodified lines34567892 unmodified linesclass FlashDataTool(Tool):name = 'google_search'description = 'Give a research agent current web evidence before it answers a question. Search a focused question, keep each title, snippet and source URL, and pass that evidence to your own agent for a cited answer. Returns search results and available SERP fields, not arbitrary webpage full text. This tool supplies evidence; an agent and model are configured separately. Uses paid FlashData API credits. Never automatically retry an uncertain submission; check Jobs first.'inputs = {'autocorrect': {'description': 'Autocorrect. Default: True.', 'nullable': True, 'type': 'boolean'},'gl': {'description': 'Two-letter country code, for example us. pattern: ^[A-Za-z]{2}$. Default: ''None.',2 unmodified lines34567892 unmodified linesclass FlashDataTool(Tool):name = 'google_search'description = 'Search Google and return ranked titles, URLs, snippets and positions as JSON. Filter by country, language, location or date, and request additional pages. Returns search results, not webpage full text. Uses paid FlashData API credits. Never automatically retry an uncertain submission; check Jobs first.'inputs = {'autocorrect': {'description': 'Autocorrect. Default: True.', 'nullable': True, 'type': 'boolean'},'gl': {'description': 'Two-letter country code, for example us. pattern: ^[A-Za-z]{2}$. Default: ''None.',
README.md+37-40
index.html+5-5
task.json+6-5
tool.py+1-1