Skip to main content

LangChain integration for Strale — 233 business capabilities as agent tools

Project description

langchain-strale

All 233 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()  # 233 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

Get an API key

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

Links

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.0.tar.gz (6.8 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.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for langchain_strale-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6005f1abb60bbfbcdeb839489aac7d125af60eae722489d295406a4dc42e2483
MD5 3c22478556e6bd8a1637328a13c94db4
BLAKE2b-256 da6b2a31f97d5d1a3e3e45036b953436f01771baeed8bbda43af671c9b0a43f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_strale-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db53939e083a1f2700a360a87e967e2130beaef2011c747d0cdb60db8a339c8c
MD5 70467480904a7bc7a7ab3b3ee0305086
BLAKE2b-256 cb051d137ae5e8c0925922c479f7b3f80d379f068ff3e1de3ee0689d33651808

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