Metadata-Version: 2.4
Name: sirenic-agents
Version: 0.3.0
Summary: LangChain and CrewAI tools for Sirenic: French and European company data from the official registers. Pay with an API key (prepaid credits) or per call via x402 (USDC or EURC on Base).
Author-email: Sirenic <contact@sirenic.eu>
License-Expression: MIT
Project-URL: Homepage, https://api.sirenic.eu/en/about?utm_source=forge&utm_campaign=sirenic-agents
Project-URL: Documentation, https://api.sirenic.eu/en/connectors?utm_source=forge&utm_campaign=sirenic-agents
Project-URL: Repository, https://github.com/sirenic-eu/sirenic-examples
Project-URL: Changelog, https://github.com/sirenic-eu/sirenic-examples/blob/main/sdk/python/CHANGELOG.md
Keywords: sirenic,langchain,crewai,agents,kyb,company-data,france,x402
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Office/Business :: Financial
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: sirenic<0.2,>=0.1
Requires-Dist: requests>=2.31
Provides-Extra: pay
Requires-Dist: sirenic[pay]<0.2,>=0.1; extra == "pay"
Requires-Dist: x402[evm,requests]<3,>=2.20; extra == "pay"
Provides-Extra: langchain
Requires-Dist: langchain-core<2,>=1; extra == "langchain"
Provides-Extra: crewai
Requires-Dist: crewai>=1.15; extra == "crewai"
Provides-Extra: test
Requires-Dist: pytest>=8; extra == "test"
Dynamic: license-file

# sirenic-agents (Python): LangChain and CrewAI tools for Sirenic

Company data from the official French and European registers in your agent: search, profile, KYB, sanctions
screening, licences, invoicing checks (France, Belgium, Poland), intelligence report and watchlists. Three ways
to pay a call:

- an **API key** (prepaid credits, 1 credit = 1 EUR): `api_key=` or the `SIRENIC_API_KEY` environment variable,
  with a per-call cap in credits;
- a **wallet** paying each call via [x402](https://x402.org) (USDC or EURC on Base), with a hard price cap;
- **neither**: every tool still works and returns the payment quote (discovery and dry runs).

Built on [`sirenic`](https://pypi.org/project/sirenic/), the Python client of the API.

```bash
pip install "sirenic-agents[langchain]"        # or [crewai]; add [pay] to pay with a wallet
```

## LangChain

```python
import os

from sirenic_agents import SirenicClient, build_langchain_tools

client = SirenicClient(api_key=os.environ["SIRENIC_API_KEY"])
tools = build_langchain_tools(client)   # 10 tools: search, profile, KYB, sanctions, licences, invoicing (FR/BE/PL), intelligence, watchlists, any path
```

## CrewAI

```python
import os

from crewai import Agent
from sirenic_agents import SirenicClient, build_crewai_tools

client = SirenicClient(wallet_key=os.environ["WALLET_KEY"], max_price_usd=0.25)   # x402: pip install "sirenic-agents[pay,crewai]"
agent = Agent(role="KYB analyst", tools=build_crewai_tools(client), ...)
```

CrewAI also speaks MCP natively: every Sirenic MCP tool in one line, no SDK (109 tools on 2026-10-05; the
[connectors page](https://api.sirenic.eu/en/connectors?utm_source=forge&utm_campaign=sirenic-agents) gives today's count):

```python
agent = Agent(role="KYB analyst", mcps=["https://api.sirenic.eu/mcp"], ...)
```

(The curated tools above add the API key or the automatic x402 payment with a hard price cap; via MCP, tools
return quotes that your agent settles itself, or pass your API key.)

Every tool returns a JSON string: the data, the quote (`payment_required: true`, with
`price_cap_exceeded: true` when the price is above your cap, or `unsupported_asset: true` when the wallet cannot
pay any offered asset) or the error. Responses with a status of 400 or above are not charged.

Safety model: with a wallet, payments are EIP-3009 authorizations signed locally by the official
[`x402`](https://pypi.org/project/x402/) package (x402 Foundation), in USDC or EURC on Base; the price cap
(`max_price_usd`, default 1.0) filters every quote before signing, and your wallet key never leaves the process.
With an API key, each call has its cap too, in credits (`max_credits`, default 1.0): the price is read in the
free quote of the same request, and a call above the cap is not made (`max_credits=None` removes the cap and
that extra request). The quote request is sent without the key, so it counts against the service's per-IP rate
limit for calls without a key (120 requests per minute): heavy use behind one IP address can get a 429 error
before the paid call, which is then not made; for heavy traffic or a shared IP address, pass
`max_credits=None`. Paid responses are Ed25519-signed by the server
([verify](https://api.sirenic.eu/.well-known/sirenic-signing-key)).

## Links

- [KYB checks with provenance on every block, step by step](https://api.sirenic.eu/en/use-cases/kyb-automated-business-verification-with-per-block?utm_source=forge&utm_campaign=sirenic-agents)
- [All use cases](https://api.sirenic.eu/en/use-cases?utm_source=forge&utm_campaign=sirenic-agents)
- [API reference, one page per route with its price](https://api.sirenic.eu/en/api?utm_source=forge&utm_campaign=sirenic-agents)
