langchain-agentra
LangChain integration for Agentra — the identity oracle and trust layer for autonomous AI agent transactions.
Installation
pip install langchain-agentra
Setup
Register at demo.agentrapay.ai to get your API key and agent ID.
Quick start
import os
from langchain_agentra import AgentraToolkit
from langchain_openai import ChatOpenAI
from langchain.agents import initialize_agent, AgentType
toolkit = AgentraToolkit(
api_key=os.environ["AGENTRA_API_KEY"],
agent_id=os.environ["AGENTRA_AGENT_ID"],
)
agent = initialize_agent(
tools=toolkit.get_tools(),
llm=ChatOpenAI(model="gpt-4o"),
agent=AgentType.OPENAI_FUNCTIONS,
)
agent.run(
"Check trust for ag_supplier_42, then authorize a $250 payment "
"for content moderation services."
)
Tools
agentra_trust_check— look up trust tier and limits for any agentagentra_authorize— gate a payment through the authorization layeragentra_settle— close the loop after payment executes
Full docs: agentrapay.ai
Metadata
Release files for langchain-agentra 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| langchain_agentra-0.1.0.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_agentra-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.6 kB
Release files / langchain_agentra-0.1.0.tar.gz
| Download URL | langchain_agentra-0.1.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
322670fb1b2bfcb385579aeaff71812af2489a50a9dd529173f1be838f0f0e04
|
|
BLAKE2b-256 checksum How to use checksums |
360ff339a3082cf3d4c81cc69e27720a563c4a94ad571406e2b6a96fc1d7c0a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.3 CPython/3.12.3 Linux/6.17.0-20-generic
|
Release files / langchain_agentra-0.1.0-py3-none-any.whl
| Download URL | langchain_agentra-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba0b43940552a9c62177b9a257ae5161f1ba6a0fe90a857dc6656f833bad5d13
|
|
BLAKE2b-256 checksum How to use checksums |
6c956589b60a7baa18c5d678dbb15b70ff5a441189bdc0103c7ea77fbdf1b220
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.3 CPython/3.12.3 Linux/6.17.0-20-generic
|