Skip to main content

LangChain integration for the Oris AI agent payment infrastructure

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for langchain_oris-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1cce1ffff7eff28c354f7b8be4a9980969c8a457a26d8bc59e3c102a9d54ace0
MD5 958c0b87e536446b9eccb5053c931623
BLAKE2b-256 92f9d40da07528937fa8b28689b00ceb2bc7f5febd237e12ee6ba7ce0f8fb08b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for langchain_oris-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9f83df78f3c9e66be6073a2354a80e6bbefb5bde49581629ab8ec43b5a17ef9
MD5 bdf1716867d07ccc2918eaae4f09158e
BLAKE2b-256 d2b5b74d0ef68bbe2a38f428088116ff611bc1836a8e525290364521dff0aacc

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