Publish google_videos tool and request guide
Browse filesFiles changed (10)
- LICENSEAdded+21
- README.md+77-6
- app.jsAdded+75
- example.jsonAdded+154
- index.html+20-17
- input-schema.jsonAdded+119
- requirements.txtAdded+2
- style.css+1-28
- task.jsonAdded+22
- tool.pyAdded+36
123456789101112131415161718192021MIT License
Copyright (c) 2026 FlashData contributors
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.12345234567899101112131415161217181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283---title: Google Video Research Flashdataemoji: 📈colorFrom: yellowcolorTo: pinktitle: "Google Videos cross-site research"emoji: 🔎colorFrom: bluecolorTo: indigosdk: staticapp_file: index.htmlpinned: falselicense: mitshort_description: Google Videos cross-site researchtags: - smolagents - tool - flashdata - google-videos---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference# Google Videos cross-site research — FlashData
Find useful video explainers across websites for a research assistant. Collect video page links and available durations and publishers before selecting sources for a learning plan.
**Try this task:** Find video explainers about retrieval augmented generation across websites.
[FlashData google videos documentation](https://flashdata.dev/docs/sources/google_videos?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=google-video-research-flashdata) · [Create a FlashData account](https://flashdata.dev/signup)
## Run it
Open 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 getpassimport osfrom smolagents import load_tool
os.environ["FLASHDATA_API_KEY"] = getpass.getpass("FlashData API key: ")tool = load_tool("flashdata-dev/google-video-research-flashdata", trust_remote_code=True)result = tool(**{'num': 10, 'query': 'retrieval augmented generation explained'})print(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 | None | Requested result count. minimum=1, maximum=100 || `page` | integer | None | Search result page. minimum=1, maximum=100 || `autocorrect` | boolean | None | Enable spelling autocorrection. || `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 step
The useful data is at `results.0.videos`. Relevant fields: `title`, `link`, `duration`, `source`, `snippet`.
Review the linked video pages and keep their publishers in the learning plan. Retrieve transcripts through a separate supported capability when 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 failures
This is Google Videos search across websites. It does not retrieve transcripts or download videos.
The tool is MIT licensed. It is 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_videos?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=google-video-research-flashdata)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475const byId = id => document.getElementById(id);const pythonLiteral = value => { if (value === null) return 'None'; if (typeof value === 'boolean') return value ? 'True' : 'False'; if (Array.isArray(value)) return `[${value.map(pythonLiteral).join(', ')}]`; if (typeof value === 'object') return `{${Object.entries(value).map(([k,v]) => `${JSON.stringify(k)}: ${pythonLiteral(v)}`).join(', ')}}`; return JSON.stringify(value);};
const [task, example, schema] = await Promise.all(['task.json','example.json','input-schema.json'].map(async file => { const response = await fetch(file); if (!response.ok) throw new Error(`Unable to load ${file}`); return response.json();}));
document.title = task.title;for (const key of ['title','scenario','task','next','limit']) byId(key).textContent = task[key];byId('docs').href = `https://flashdata.dev/docs/sources/${task.source}?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=${task.slug}`;byId('source').href = `https://huggingface.co/spaces/${task.repo_id}/blob/main/tool.py`;byId('readme').href = `https://huggingface.co/spaces/${task.repo_id}/blob/main/README.md`;byId('parameters').value = JSON.stringify(task.input,null,2);byId('response').value = JSON.stringify(example.response,null,2);byId('sample-request').textContent = JSON.stringify(example.request,null,2);
function generate() { try { const args = JSON.parse(byId('parameters').value); if (!args || Array.isArray(args) || typeof args !== 'object') throw new Error('Enter a JSON object.'); const allowed = task.source === 'youtube_download' ? ['operation','parameters','job_id'] : Object.keys(schema.properties); if (Object.keys(args).some(key => !allowed.includes(key))) throw new Error('Use only the documented inputs; keep credentials in your local environment.'); const code = [ '# Install: python -m pip install smolagents==1.26.0 langchain-flashdata==0.2.1', 'import getpass', 'import os', 'from smolagents import load_tool', '', 'os.environ["FLASHDATA_API_KEY"] = getpass.getpass("FlashData API key: ")', ...(task.source === 'youtube_download' && args.operation === 'submit' ? ['os.environ["FLASHDATA_DOWNLOAD_STORAGE"] = getpass.getpass("Customer storage JSON: ")'] : []), `tool = load_tool(${JSON.stringify(task.repo_id)}, trust_remote_code=True)`, `result = tool(**${pythonLiteral(args)})`, 'print(result)' ]; byId('python').textContent = code.join('\n'); byId('input-status').textContent = 'Python call generated. The tool validates full parameter constraints before a request.'; } catch (error) { byId('python').textContent = ''; byId('input-status').textContent = error.message; }}
function inspect() { byId('results').replaceChildren(); try { const response = JSON.parse(byId('response').value); const selected = task.path.split('.').reduce((value, key) => value?.[key], response); if (selected === undefined || selected === null) throw new Error(`No value at ${task.path}. Check the response format; failed or pending requests may have different fields.`); const rows = Array.isArray(selected) ? selected : [selected]; byId('response-status').textContent = `${rows.length} item(s) at ${task.path}. Showing up to 10.`; for (const row of rows.slice(0,10)) { const card = document.createElement('div'); card.className = 'result'; const fields = typeof row === 'object' && row !== null ? task.fields.filter(key => Object.hasOwn(row,key)) : []; if (!fields.length) { const p=document.createElement('p'); p.className='field'; p.textContent=typeof row === 'string' ? row : JSON.stringify(row); card.append(p); } for (const key of fields) { const line=document.createElement('p'); line.className='field'; const label=document.createElement('b'); label.textContent=key+': '; line.append(label); const value=row[key]; if (typeof value === 'string' && /^https?:\/\//.test(value)) { const link=document.createElement('a'); link.href=value; link.textContent=value; link.target='_blank'; link.rel='noopener noreferrer'; line.append(link); } else line.append(document.createTextNode(typeof value === 'object' ? JSON.stringify(value) : String(value))); card.append(line); } byId('results').append(card); } } catch (error) { byId('response-status').textContent=error.message; }}
byId('generate').addEventListener('click',generate);byId('inspect').addEventListener('click',inspect);generate(); inspect();123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154{ "request": { "source": "google_videos", "query": "me at the zoo", "params": { "gl": "us", "hl": "en", "num": 10, "page": 1 } }, "response": { "source": "google_videos", "status": "done", "results": [ { "searchParameters": { "q": "me at the zoo", "gl": "us", "hl": "en", "type": "videos", "num": 10, "page": 1, "engine": "google" }, "videos": [ { "title": "Me at the zoo", "link": "https://www.youtube.com/watch?v=jNQXAC9IVRw&vl=en", "snippet": "Microplastics are accumulating in human brains at an alarming rate https://www.youtube.com/watch?v=0PT5c1z3LL8 \u201cNanoplastics and Human ...", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTNoybJBMfqr7vwH-saySvflZreMzBKZDBjW_zQMrY81E-xQZBBMzVuRw&s", "videoUrl": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcS8uZHJMduuLjzsxqOtyhx8VWeRlui2Fo0sUg", "duration": "0:19", "source": "YouTube", "channel": "jawed", "date": "Apr 23, 2005", "position": 1 }, { "title": "Me at the zoo - 20 Years Later", "link": "https://www.youtube.com/watch?v=ydEMNzksm2M", "snippet": "A FAN RECREATION. same location. same outfit kinda sorta. different guy. 20 years later @jawed New video: https://youtu.be/vRgvdCkzvws How ...", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR8mNQG1XbHxQwXcM0_B0L3wpgVPSmORnijKhh5knB2aRxvmApdoyigXw&s", "videoUrl": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcR1ZyuOVJiBgaK96Ew85Bx19aYKLXddf-dcDQ", "duration": "0:45", "source": "YouTube", "channel": "Cody Hales", "date": "Apr 23, 2025", "position": 2 }, { "title": "Me at the zoo", "link": "https://youtube.com/watch?v=jNQXAC9IVRw&si=EnSIkaIECMiOmarE", "snippet": "Microplastics are accumulating in human brains at an alarming rate https://www.youtube.com/watch?v=0PT5c1z3LL8 \u201cNanoplastics and Human ...", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTNoybJBMfqr7vwH-saySvflZreMzBKZDBjW_zQMrY81E-xQZBBMzVuRw&s", "videoUrl": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcS8uZHJMduuLjzsxqOtyhx8VWeRlui2Fo0sUg", "duration": "0:19", "source": "YouTube", "channel": "jawed", "date": "Apr 23, 2005", "position": 3 }, { "title": "Me at the Zoo 21 Years Later", "link": "https://www.youtube.com/watch?v=NiIqMwDDPQQ", "snippet": "YouTube's First Video: Me at the zoo by Jawed Karim in 2005 A Look back some history of Youtube's creation and what happened to the ...", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSELgaIiAXmIin2tym4YpTtUt3a9LT66r3qpMkg3Cm2erBOcUc_cOzfxQ&s", "videoUrl": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcRSNKT2ukHk51PE2iHMpOXn0Fk-NYYzcjdtzg", "duration": "2:37", "source": "YouTube", "channel": "AcidGlow", "date": "Apr 26, 2026", "position": 4 }, { "title": "Me at the Zoo | 20 years of YouTube", "link": "https://www.youtube.com/watch?v=SKcXEYqsX1M", "snippet": "20 years ago, the first video was uploaded to YouTube, by Jawed. This is my remake of that first video uploaded to YouTube back on 23rd ...", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRYk6-MZVYhxJohW4sXDVRGWjqp796KjEJgWqKeZtfQAhCtMkyiVfVVjQ&s", "videoUrl": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcSPcbOknGe09bBsfDEZ8OJXxOnYAFxeiMzRIg", "duration": "1:40", "source": "YouTube", "channel": "Alice Goss Travel", "date": "Apr 22, 2025", "position": 5 }, { "title": "happy 20th birthday YouTube! on this day, 2005, the first ever ...", "link": "https://www.facebook.com/lestwinsforsmartpeople/videos/happy-20th-birthday-youtube-on-this-day-2005-the-first-ever-video-was-uploaded-t/1174885864134048/", "snippet": "\u2764 on this day, 2005, the first ever video was uploaded to YouTube: \"Me at the Zoo\" by Jawed Karim, one of the founders of YouTube. I opened my ...", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQXK7QFFc7Ve5rxWu28XVD7PwN4wMGxFwBGODfb0inSiJkJXkLfspNBBQ&s", "videoUrl": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcQwaWPOAa18cvUeFQmJ83tHI75KwkZZXhcz1g", "duration": "0:20", "source": "Facebook", "channel": "Les Twins for smart people", "date": "Apr 23, 2025", "position": 6 }, { "title": "23rd April 2005: The first video uploaded to YouTube is \"Me at ...", "link": "https://www.youtube.com/watch?v=nW0JMJUW394&vl=en", "snippet": "... Me at the zoo\u201d shows Karim speaking in front of the elephant enclosure at the San Diego Zoo in San Diego, California. The video lasts ...", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQKL5tOeVLTkPnKgGJ-irZeBKXegrS3jv3aOmqfPRvnDnFDH0wlm6KTsQ&s", "videoUrl": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcT32pM4ScwLqW8pW44XEj6g02KCXVGZZU12oA", "duration": "2:30", "source": "YouTube", "channel": "HistoryPod", "date": "Apr 22, 2026", "position": 7 }, { "title": "Me at the zoo", "link": "https://www.youtube.com/shorts/bXz16dux7j0", "snippet": "Maybe it's time to go back to the zoo?", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTKNATyMcisc3lfWovvV89H6Pgk2EMqkA4wPBgN3hwB2D9r4c0vzj9qog&s", "videoUrl": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcRo2eKznhm-_ijvAmb_52BgREvjyQVWcJ5arQ", "duration": "0:17", "source": "YouTube", "channel": "Timeworks", "date": "Apr 23, 2025", "position": 8 }, { "title": "Me At The Zoo", "link": "https://www.youtube.com/watch?v=SfSsDBEs1yc", "snippet": "Me At The Zoo \u2022 20th Anniversary (24/04/2025) a huge shoutout to 'Me at the zoo' today as it becomes the first video on @YouTube to be 20 ...", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ6BBRlx150FgR3w89enIZwuSIm7gumK0O-yC7GqO_KF0zr8ZIGuNANHA&s", "videoUrl": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcSG5JQlJ3MiAYkmoTPoE-KLNrrS6rkWyAkJWw", "duration": "0:26", "source": "YouTube", "channel": "MrHaydnSir", "date": "Apr 24, 2025", "position": 9 }, { "title": "The first ever YouTube video, \"Me at the zoo\", turns 21 years ...", "link": "https://www.reddit.com/r/interesting/comments/1su0btj/the_first_ever_youtube_video_me_at_the_zoo_turns/", "snippet": "The first ever YouTube video, \"Me at the zoo\", turns 21 years old today. ... This video cannot be played. 0:00 0: ...", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR2us_fh54LqB7h_F3viDdnV4PCbByjapkYj5JO8I6SoErU3NPFrY5tYw&s", "duration": "0:18", "source": "Reddit", "channel": "Deleted User", "date": "Apr 24, 2026", "position": 10 } ] } ], "usage": { "credits": 0.02 }, "created_at": "2026-09-16T07:41:45.419Z" }}1234567891011121314151617182345678910111213141516171819202122<!doctype html><html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <title>My static Space</title> <link rel="stylesheet" href="style.css" /> </head> <body> <div class="card"> <h1>Welcome to your static Space!</h1> <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p> <p> Also don't forget to check the <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>. </p> </div> </body><html lang="en"><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">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">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">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">Review tool.py</a><a id="readme">Installation and input reference</a><span>MIT licensed integration · FlashData API terms apply separately</span></footer> </main> <script type="module" src="app.js"></script></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119{ "additionalProperties": false, "description": "Google source parameters; omitted settings use provider behavior.", "properties": { "query": { "description": "Search query, between 1 and 2,000 characters.", "maxLength": 2000, "minLength": 1, "title": "Query", "type": "string" }, "num": { "anyOf": [ { "maximum": 100, "minimum": 1, "type": "integer" }, { "type": "null" } ], "default": null, "description": "Requested result count.", "title": "Num" }, "page": { "anyOf": [ { "maximum": 100, "minimum": 1, "type": "integer" }, { "type": "null" } ], "default": null, "description": "Search result page.", "title": "Page" }, "autocorrect": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "description": "Enable spelling autocorrection.", "title": "Autocorrect" }, "gl": { "anyOf": [ { "pattern": "^[A-Za-z]{2}$", "type": "string" }, { "type": "null" } ], "default": null, "description": "Two-letter country code, for example us.", "title": "Gl" }, "hl": { "anyOf": [ { "pattern": "^[A-Za-z0-9-]{1,35}$", "type": "string" }, { "type": "null" } ], "default": null, "description": "Interface language code, for example en.", "title": "Hl" }, "location": { "anyOf": [ { "maxLength": 200, "minLength": 1, "type": "string" }, { "type": "null" } ], "default": null, "description": "Optional geographic search location.", "title": "Location" }, "tbs": { "anyOf": [ { "maxLength": 200, "minLength": 1, "type": "string" }, { "type": "null" } ], "default": null, "description": "Optional Google time filter, for example qdr:w.", "title": "Tbs" } }, "required": [ "query" ], "title": "GoogleInput", "type": "object"}12smolagents==1.26.0langchain-flashdata==0.2.1123456789101112131415161718192021222324252627281body { padding: 2rem; font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;}
h1 { font-size: 16px; margin-top: 0;}
p { color: rgb(107, 114, 128); font-size: 15px; margin-bottom: 10px; margin-top: 5px;}
.card { max-width: 620px; margin: 0 auto; padding: 16px; border: 1px solid lightgray; border-radius: 16px;}
.card p:last-child { margin-bottom: 0;}:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#14243b;background:#f4f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}main{max-width:1240px;margin:auto;padding:32px}a{color:#175bc1;text-underline-offset:3px}header{display:flex;align-items:center;gap:24px;border-bottom:1px solid #dce3ed;padding-bottom:24px;color:#64748b;font-size:14px}.brand{font-size:21px;letter-spacing:.1em;font-weight:850;text-decoration:none;color:#123364}.intro{max-width:900px;padding:52px 0 38px}.eyebrow{font-size:12px;letter-spacing:.13em;font-weight:750;color:#4977aa}h1{font-size:clamp(28px,4vw,46px);line-height:1.12;letter-spacing:-.035em;margin:18px 0}h2{font-size:22px;margin:0 0 14px}h3{font-size:17px;margin:28px 0 8px}p{line-height:1.65}.intro>p:not(.eyebrow){font-size:18px;color:#4d6077}.cta{display:inline-block;background:#164f9b;color:white;padding:12px 18px;border-radius:7px;text-decoration:none;font-weight:600;margin-top:12px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.panel{background:#fff;border:1px solid #dce3ed;border-radius:12px;padding:26px;min-width:0;box-shadow:0 5px 20px #12336405}.hint{color:#61738b;font-size:13px}label{display:block;font-size:13px;font-weight:650;margin:20px 0 8px}textarea{display:block;width:100%;height:190px;resize:vertical;border:1px solid #cbd6e6;border-radius:7px;padding:13px;font:13px/1.55 ui-monospace,SFMono-Regular,monospace;color:#253c58;background:#fbfcff}button{margin-top:12px;border:1px solid #b5c9e4;border-radius:7px;background:#edf4ff;color:#164f9b;padding:10px 15px;cursor:pointer;font:600 14px inherit}button:hover{background:#dfecff}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7fb;padding:15px;border-radius:7px;font:12px/1.6 ui-monospace,SFMono-Regular,monospace}details{font-size:13px}summary{cursor:pointer;color:#175bc1}.result{padding:14px 0;border-bottom:1px solid #e5ebf3}.result:first-child{padding-top:0}.field{font-size:13px;line-height:1.6;overflow-wrap:anywhere;margin:4px 0}.field b{color:#62758b;font-weight:500}.next{margin-top:22px}footer{display:flex;flex-wrap:wrap;gap:20px;padding:25px 0;color:#718096;font-size:12px}[role=status]{font-size:13px;color:#536b88}:focus-visible{outline:3px solid #7ea9ee;outline-offset:3px}@media(max-width:800px){main{padding:20px}.grid{grid-template-columns:1fr}.intro{padding-top:30px}header{flex-wrap:wrap;gap:8px}.panel{padding:20px}h1{font-size:32px}}12345678910111213141516171819202122{ "slug": "google-video-research-flashdata", "title": "Google Videos cross-site research \u2014 FlashData", "scenario": "Find useful video explainers across websites for a research assistant. Collect video page links and available durations and publishers before selecting sources for a learning plan.", "task": "Find video explainers about retrieval augmented generation across websites.", "input": { "query": "retrieval augmented generation explained", "num": 10 }, "path": "results.0.videos", "fields": [ "title", "link", "duration", "source", "snippet" ], "next": "Review the linked video pages and keep their publishers in the learning plan. Retrieve transcripts through a separate supported capability when needed.", "limit": "This is Google Videos search across websites. It does not retrieve transcripts or download videos.", "source": "google_videos", "repo_id": "flashdata-dev/google-video-research-flashdata"}123456789101112131415161718192021222324252627282930313233343536from smolagents import Tool
class FlashDataTool(Tool): name = 'google_videos' description = 'Find useful video explainers across websites for a research assistant. Collect video page links and available durations and publishers before selecting sources for a learning plan. This is Google Videos search across websites. It does not retrieve transcripts or download videos. Uses paid FlashData API credits. Never automatically retry an uncertain submission; check Jobs first.' inputs = {'autocorrect': {'description': 'Enable spelling autocorrection. Default: None.', 'nullable': True, 'type': 'boolean'}, 'gl': {'description': 'Two-letter country code, for example us. pattern: ^[A-Za-z]{2}$. Default: ' 'None.', 'nullable': True, 'type': 'string'}, 'hl': {'description': 'Interface language code, for example en. pattern: ^[A-Za-z0-9-]{1,35}$. ' 'Default: None.', 'nullable': True, 'type': 'string'}, 'location': {'description': 'Optional geographic search location. Default: None.', 'nullable': True, 'type': 'string'}, 'num': {'description': 'Requested result count. minimum: 1. maximum: 100. Default: None.', 'nullable': True, 'type': 'integer'}, 'page': {'description': 'Search result page. minimum: 1. maximum: 100. Default: None.', 'nullable': True, 'type': 'integer'}, 'query': {'description': 'Search query, between 1 and 2,000 characters.', 'type': 'string'}, 'tbs': {'description': 'Optional Google time filter, for example qdr:w. Default: None.', 'nullable': True, 'type': 'string'}} output_type = 'object'
def forward(self, query: str, num: int | None = None, page: int | None = None, autocorrect: bool | None = None, gl: str | None = None, hl: str | None = None, location: str | None = None, tbs: str | None = None) -> dict: from langchain_flashdata import FlashDataGoogleVideos values = {'query': query, 'num': num, 'page': page, 'autocorrect': autocorrect, 'gl': gl, 'hl': hl, 'location': location, 'tbs': tbs} return FlashDataGoogleVideos().invoke({key: value for key, value in values.items() if value is not None})LICENSEAdded+21
README.md+77-6
app.jsAdded+75
example.jsonAdded+154
index.html+20-17
input-schema.jsonAdded+119
requirements.txtAdded+2
style.css+1-28
task.jsonAdded+22
tool.pyAdded+36