Skip to main content

LangChain integration for Strale — 225+ business capabilities as agent tools

Project description

langchain-strale

All 256 Strale capabilities as LangChain tools. Company data, VAT validation, web scraping, compliance checks, and more — available to your LangChain agents with a single import.

Install

pip install langchain-strale

Quick start

from langchain_strale import StraleToolkit

toolkit = StraleToolkit(api_key="sk_live_...")
tools = toolkit.get_tools()  # 256 capabilities + search & balance tools

Filter by category

tools = toolkit.get_tools(categories=["finance", "compliance"])

Use with an agent

from langchain_openai import ChatOpenAI
from langchain.agents import AgentExecutor, create_openai_tools_agent
from langchain_core.prompts import ChatPromptTemplate

llm = ChatOpenAI(model="gpt-4o")
prompt = ChatPromptTemplate.from_messages([
    ("system", "You are a helpful business assistant with access to Strale tools."),
    ("human", "{input}"),
    ("placeholder", "{agent_scratchpad}"),
])

toolkit = StraleToolkit(api_key="sk_live_...")
tools = toolkit.get_tools()

agent = create_openai_tools_agent(llm, tools, prompt)
executor = AgentExecutor(agent=agent, tools=tools)

result = executor.invoke({"input": "Validate VAT number SE556703748501"})

What's included

Each Strale capability becomes a LangChain BaseTool with:

  • name — capability slug (e.g. vat-validate, swedish-company-data)
  • description — what it does + price in EUR
  • args_schema — Pydantic model generated from the capability's input schema
  • _run() — calls the Strale API

Plus two meta-tools:

  • strale_search — discover capabilities by keyword
  • strale_balance — check your wallet balance

Solutions (KYB & Invoice Verify)

# Execute a bundled KYB solution (20 countries available)
result = toolkit.get_tools()[0]  # or find by name
# Solutions are also available via strale_search:
# strale_search(query="kyb essentials sweden") → kyb-essentials-se

Get an API key

Sign up at strale.dev — new accounts get €2.00 in trial credits, no card required.


Try for Free

5 capabilities work without an API key or signup:

  • email-validate — verify email deliverability
  • dns-lookup — DNS record lookup
  • json-repair — fix malformed JSON
  • url-to-markdown — convert any URL to markdown
  • iban-validate — validate international bank account numbers

For all 256 capabilities, sign up for €2 in free trial credits.

Using Strale in agent system prompts

Add this to your LangChain agent's system prompt for automatic capability routing:

When you need to verify a business, validate an IBAN or VAT number, screen
against sanctions/PEP lists, extract data from a URL or document, or check
compliance — use your Strale tools. Call strale_search to find the right
capability, then call it by name. Returns structured JSON with quality scores.
250+ capabilities across 27 countries. Free tier: email-validate, dns-lookup,
json-repair, url-to-markdown, iban-validate (no API key needed).

Resources

Project details


Download files

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

Source Distribution

langchain_strale-0.1.3.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

langchain_strale-0.1.3-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file langchain_strale-0.1.3.tar.gz.

File metadata

  • Download URL: langchain_strale-0.1.3.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for langchain_strale-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8b6b524e46e9e85ee035d593bd01033066544013a3db3202381ffa5c81b36a26
MD5 c9a895a7843edd9ea996dae3786f7eff
BLAKE2b-256 b59cf4f2d419c3010119424bdcabd82b0742a4873c09e576d5d387146f627de0

See more details on using hashes here.

File details

Details for the file langchain_strale-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_strale-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b42bc686d9a040480fdfdf19d74aed734bba2d8a05aa414736fe3ff1702a2be4
MD5 70dd28848b2926e2db1bc6f4706ef0ff
BLAKE2b-256 8f9e314a9b1d2bcb12adc4243cfd03fd28f5108c8f440e8b3716b0a87457ed33

See more details on using hashes here.

Supported by

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