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

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.2.1.tar.gz (14.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_oris-0.2.1-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_oris-0.2.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for langchain_oris-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9bddc25ff1b836724cd2c7890e5fdeb7de3c667a30b5d02d626ae68ae38df44a
MD5 adcb3953c7681f731865f22f7466a569
BLAKE2b-256 f6e490a452b49ae5753a107aefd6fcc8265b7d08c55d432b3365ce7eccb7b756

See more details on using hashes here.

File details

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

File metadata

  • Download URL: langchain_oris-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for langchain_oris-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 19bda25a5ea00d31b1551042fd1f6fce48be5f8dda7f22e695878ee0df5f2496
MD5 507c4068ed5726f322cca5c7865f875c
BLAKE2b-256 9ef461941db77afab2241690d6b9f17c6b7ebd577171b2f769cce0b2dfb3b187

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