Skip to main content

langchain-anakin

LangChain tools for Anakin: web scraping, site mapping and crawling, AI search, multi-stage agentic research, and Wire (pre-built structured actions for hundreds of sites). Built on the official anakin-sdk Python client (not a separate HTTP implementation).

Install

pip install -U langchain-anakin
export ANAKIN_API_KEY="ask-..."   # free at https://anakin.io/signup

No key yet? AnakinScrapeTool, AnakinWireDiscoverTool and AnakinWireRunTool (read-only actions) work without one on a free per-IP allowance. The other tools return a ConfigurationError message with a signup link.

Tools

Tool What it does Needs key
AnakinScrapeTool Scrape a URL to markdown, or AI-extract JSON (generate_json / output_schema) No
AnakinSearchTool Synchronous AI-powered web search with citations Yes
AnakinAgenticSearchTool Multi-stage research: search, scrape citations, extract structured data with a summary (1-5 min) Yes
AnakinMapTool List the URLs on a site, optionally filtered by a search term Yes
AnakinCrawlTool Crawl a site and return each page's markdown Yes
AnakinWireDiscoverTool Find a pre-built Wire action for a task on a site No
AnakinWireRunTool Run a Wire action and return its structured data No (read-only actions)
from langchain_anakin import (
    AnakinScrapeTool,
    AnakinSearchTool,
    AnakinWireDiscoverTool,
    AnakinWireRunTool,
)

AnakinScrapeTool().invoke({"url": "https://example.com"})

AnakinScrapeTool().invoke({
    "url": "https://example.com/product",
    "output_schema": {"type": "object", "properties": {"price": {"type": "number"}}},
})

AnakinSearchTool().invoke({"prompt": "latest developments in AI agents"})

actions = AnakinWireDiscoverTool().invoke({"query": "search products on walmart"})
AnakinWireRunTool().invoke({"action_id": "walmart_search", "params": {"query": "phones"}})

Every tool also supports async (await tool.ainvoke(...)), backed by anakin.AsyncAnakin.

Use with an agent:

from langchain.agents import create_agent
from langchain_anakin import (
    AnakinScrapeTool,
    AnakinSearchTool,
    AnakinWireDiscoverTool,
    AnakinWireRunTool,
)

agent = create_agent(
    model,
    tools=[
        AnakinSearchTool(),
        AnakinScrapeTool(),
        AnakinWireDiscoverTool(),
        AnakinWireRunTool(),
    ],
)

Errors (bad key, no credits, a Wire site that needs a connected account) come back to the agent as text instead of raising, including any URL it needs to fix the problem.

Development

Requires anakin-sdk 0.2.x.

uv sync --group test
uv run pytest

License

Apache-2.0.

Metadata

Release files for langchain-anakin 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-anakin 0.3.0
File Size Uploaded Provenance Actions
langchain_anakin-0.3.0.tar.gz 13.9 kB Without provenance Details for langchain_anakin-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-anakin 0.3.0
File Interpreter ABI Platform Actions
langchain_anakin-0.3.0-py3-none-any.whl Python 3 none any Details for langchain_anakin-0.3.0-py3-none-any.whl

Total release size: 26.5 kB

Release files / langchain_anakin-0.3.0.tar.gz

Download URL langchain_anakin-0.3.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5dafa59b3112d3c93479d4380747aa16cf7fb3aee3b9a4e7eeac27d073a5f63f
BLAKE2b-256 checksum
How to use checksums
d521b10b467a967c2607ae70c7f7c868ef7f68927940a4164ebcadef839c7084
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / langchain_anakin-0.3.0-py3-none-any.whl

Download URL langchain_anakin-0.3.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e3afc196580587fce2d36f4671d0f2a3e782367a8673e743e9760651f891fb5
BLAKE2b-256 checksum
How to use checksums
dc7ec65952720eb0cdf7d5d5575a1dcf835955ea384177b3eef88ac24baa5114
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for langchain-anakin 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page