LangChain integration for Oris: Compliant payment rails and KYA infrastructure for autonomous AI agents.
Project description
langchain-oris
LangChain integration for the Oris AI agent payment infrastructure.
Oris gives AI agents a verified financial identity, a non-custodial wallet, and programmable spending policies enforced on every transaction before execution.
Installation
pip install langchain-oris
Requirements
- Python 3.10+
langchain-core >= 0.2- An Oris API key from useoris.xyz
Quick start
from oris_langchain import OrisToolkit
toolkit = OrisToolkit(
api_key="oris_sk_live_...",
private_key="your_private_key",
agent_id="your_agent_uuid",
)
tools = toolkit.get_tools()
Pass tools to any LangChain agent or LangGraph node:
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
llm = ChatOpenAI(model="gpt-4o")
agent = create_react_agent(llm, tools)
result = agent.invoke({
"messages": [("user", "Pay 10 USDC to 0xABC... for the translation service.")]
})
Available tools
| Tool | Description |
|---|---|
oris_pay |
Execute a compliant stablecoin payment |
oris_check_balance |
Retrieve wallet balances |
oris_get_spending |
Get payment and spending history |
oris_get_tier_info |
Get KYA compliance tier and limits |
oris_get_did |
Retrieve the agent's W3C Decentralized Identifier |
oris_get_eas_attestation |
Retrieve the agent's latest on-chain EAS attestation |
oris_find_service |
Search the agent marketplace for services by capability |
oris_place_order |
Place an escrow-backed order on the agent marketplace |
oris_fiat_onramp |
Convert fiat currency to USDC via the fiat bridge |
Individual tool usage
from oris_langchain import OrisPayTool, OrisCheckBalanceTool
pay_tool = OrisPayTool(
api_key="oris_sk_live_...",
private_key="your_private_key",
agent_id="your_agent_uuid",
)
result = pay_tool.run({
"to": "0xRecipientAddress",
"amount": 10.0,
"stablecoin": "USDC",
"chain": "base",
"purpose": "vendor_payment",
})
Links
- Documentation: docs.useoris.xyz
- PyPI: pypi.org/project/langchain-oris
- GitHub: github.com/fluxaventures/oris
License
MIT
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_oris-0.1.3.tar.gz.
File metadata
- Download URL: langchain_oris-0.1.3.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1620d3ade96bda03ae93bce40f44d1e239aa846be82c1ac300e7641b0277eb0
|
|
| MD5 |
24589bf88b48169d1381625d2ac30306
|
|
| BLAKE2b-256 |
a262bbf7ea7f4b502223777c6198e47c9699a8c03dea0941dcbdb05ee30dbb1d
|
File details
Details for the file langchain_oris-0.1.3-py3-none-any.whl.
File metadata
- Download URL: langchain_oris-0.1.3-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad8cf39fbdd9a27c17503f4737334fb377f507de47bbe54e5b29664a74dd5fc6
|
|
| MD5 |
6c060f715fbcdee93380ae659a6c01e4
|
|
| BLAKE2b-256 |
6d9fc33fa5210a454b5f1e9e01ac1df37029766df2746750c7c8716543686236
|