Upload SpecStream tool
Browse files- README.md +1 -1
- index.html +1 -1
- tool.py +2 -2
README.md
CHANGED
|
@@ -7,6 +7,6 @@ tags:
|
|
| 7 |
- tool
|
| 8 |
---
|
| 9 |
|
| 10 |
-
SpecStream
|
| 11 |
|
| 12 |
Load it with `Tool.from_hub("SpecStreamAI/specstream-get-rows", trust_remote_code=True)`.
|
|
|
|
| 7 |
- tool
|
| 8 |
---
|
| 9 |
|
| 10 |
+
SpecStream is the live web data engine for teams and agents. One platform to build, search, extract, enrich, map, and monitor data across the entire web. Tool one shows how SpecStream read the request and the maximum price, and runs only after the person approves that maximum. Tool two reads the rows. Source URL and read time on every value. Set SPECSTREAM_API_KEY. Start at https://specstream.ai/?utm_source=smolagents
|
| 11 |
|
| 12 |
Load it with `Tool.from_hub("SpecStreamAI/specstream-get-rows", trust_remote_code=True)`.
|
index.html
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
<!doctype html><html><head><meta charset="utf-8"><title>SpecStream get rows</title></head><body style="font-family:system-ui;max-width:40rem;margin:3rem auto;padding:0 1rem"><h1>SpecStream get rows</h1><p>SpecStream
|
|
|
|
| 1 |
+
<!doctype html><html><head><meta charset="utf-8"><title>SpecStream get rows</title></head><body style="font-family:system-ui;max-width:40rem;margin:3rem auto;padding:0 1rem"><h1>SpecStream get rows</h1><p>SpecStream is the live web data engine for teams and agents. One platform to build, search, extract, enrich, map, and monitor data across the entire web. Tool one shows how SpecStream read the request and the maximum price, and runs only after the person approves that maximum. Tool two reads the rows. Source URL and read time on every value. Set SPECSTREAM_API_KEY. Start at https://specstream.ai/?utm_source=smolagents</p><p><code>Tool.from_hub("SpecStreamAI/specstream-get-rows", trust_remote_code=True)</code></p></body></html>
|
tool.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
from typing import Any, Optional
|
| 2 |
from smolagents.tools import Tool
|
| 3 |
-
import json
|
| 4 |
-
import urllib
|
| 5 |
import os
|
|
|
|
|
|
|
| 6 |
|
| 7 |
class SpecStreamGetRows(Tool):
|
| 8 |
name = "specstream_get_rows"
|
|
|
|
| 1 |
from typing import Any, Optional
|
| 2 |
from smolagents.tools import Tool
|
|
|
|
|
|
|
| 3 |
import os
|
| 4 |
+
import urllib
|
| 5 |
+
import json
|
| 6 |
|
| 7 |
class SpecStreamGetRows(Tool):
|
| 8 |
name = "specstream_get_rows"
|