Skip to main content

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_...",
    api_secret="your_api_secret",
    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

Individual tool usage

from oris_langchain import OrisPayTool, OrisCheckBalanceTool

pay_tool = OrisPayTool(
    api_key="oris_sk_live_...",
    api_secret="your_api_secret",
    agent_id="your_agent_uuid",
)

result = pay_tool.run({
    "to": "0xRecipientAddress",
    "amount": 10.0,
    "stablecoin": "USDC",
    "chain": "base",
    "purpose": "vendor_payment",
})

Links

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

langchain_oris-0.1.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

langchain_oris-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file langchain_oris-0.1.1.tar.gz.

File metadata

  • Download URL: langchain_oris-0.1.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for langchain_oris-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0b400133341c8e34d06a0c442d04853f62f39b68cf8fcfd0d70bd7874a8e2d82
MD5 f444bac5d7292adf6b9d5876f0e4f72d
BLAKE2b-256 a3509e0400429baf739b0b5a85f1780b7bb1aee74b0909756f7abc4e32b5b33b

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_oris-0.1.1.tar.gz:

Publisher: publish-python.yml on fluxaventures/oris

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file langchain_oris-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: langchain_oris-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for langchain_oris-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c40b0e58144a8945a00cf9f0cfccfe1a6a0d6120ae1f4ffb32c4e22889e6c21
MD5 60442257152c2ea75265515b9a51d317
BLAKE2b-256 e7250a80c50378ccf0d4925833c111021a60d9e8be4d0b2f1dc363ae5896eca0

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_oris-0.1.1-py3-none-any.whl:

Publisher: publish-python.yml on fluxaventures/oris

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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