Skip to main content

strands-olostep

Olostep tools for Strands Agents — give your agents live web search, scraping, crawling, and cited AI answers.

Installation

pip install strands-olostep

Configuration

Set your Olostep API key as an environment variable. Get one from the Olostep dashboard — the free tier includes 500 credits.

export OLOSTEP_API_KEY="your-api-key"
Variable Required Description
OLOSTEP_API_KEY Yes Your Olostep API key
OLOSTEP_BASE_URL No Override the API base URL (defaults to https://api.olostep.com/v1)

Usage

from strands import Agent
from strands_olostep import (
    olostep_answers,
    olostep_crawl,
    olostep_get_crawl_results,
    olostep_map,
    olostep_scrape,
    olostep_search,
)

agent = Agent(
    tools=[
        olostep_search,
        olostep_scrape,
        olostep_answers,
        olostep_map,
        olostep_crawl,
        olostep_get_crawl_results,
    ]
)

agent("Find the three most recent posts on the Olostep blog and summarize each one.")

Import only the tools you need — an agent that just answers questions may only want olostep_answers.

Tools

Tool What it does
olostep_search Search the live web; returns deduplicated links with titles and descriptions
olostep_scrape Fetch a single page as clean markdown, HTML, JSON, or text
olostep_answers Ask a question and get an AI-synthesized answer with citations
olostep_map Discover the URLs on a site, optionally ranked by a query
olostep_crawl Start an async crawl that follows links from a start URL
olostep_get_crawl_results Poll a crawl and fetch its page content

Picking the right tool

  • Want a synthesized answer? Use olostep_answers. It searches, reads, and cross-validates, returning sources with the answer.
  • Want a list of links to explore? Use olostep_search, then olostep_scrape the ones worth reading.
  • Know the exact page? Go straight to olostep_scrape.
  • Want a whole site or section? Use olostep_crawl, then olostep_get_crawl_results. Crawl both discovers and scrapes.
  • Just want to see what URLs exist? Use olostep_map — discovery only, no scraping.

Notes

olostep_crawl is asynchronous. It returns a crawl id immediately and the job runs in the background — you must call olostep_get_crawl_results with that id to fetch pages. While the crawl is running, that tool reports progress so the agent knows to call again.

For JavaScript-heavy pages, pass wait_before_scraping (in milliseconds) to olostep_scrape:

olostep_scrape("https://example.com", wait_before_scraping=3000)

For geo-targeted content, pass a two-letter country code:

olostep_scrape("https://example.com", country="GB")

Error handling

Tools return an error result rather than raising, so a failed call doesn't break the agent loop:

{"status": "error", "content": [{"text": "Olostep API Error: 401 ..."}]}

A missing OLOSTEP_API_KEY produces a clear message pointing at the dashboard.

Development

pip install -e ".[dev]"
hatch run prepare   # format, lint, typecheck, test

Links

License

Apache 2.0 — see LICENSE.

Download files

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

Source Distribution

strands_olostep-0.1.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

strands_olostep-0.1.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: strands_olostep-0.1.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for strands_olostep-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d01609a0fa24a91103192964483b38b896607c06fbbfb6883474afa3196ecfa9
MD5 fe64976de3564ef10a8ccafbc2023761
BLAKE2b-256 1a8c1b9e74aacfff1996a34dfd212419c6316228d290e13aaf22ad0aef335c34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for strands_olostep-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3514e94b478e0a051f700d1435ab37e83c90f65c6f14d4754a9417917d873d12
MD5 f6e5e6486f376a3ec52e37eaca0eed5e
BLAKE2b-256 878aa90331a7bc22ce7f08c6f5114a9fe137b58e70551fd780d42c4870fb0069

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

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