@smartagentkit/langchain
v0.1.10
Published
LangChain integration for SmartAgentKit — AI agent smart wallet tools
Maintainers
Readme
@smartagentkit/langchain
LangChain integration for SmartAgentKit. Provides pre-built tools that let LangChain agents interact with policy-governed smart wallets: check balances, send transactions, query spending allowances, and monitor wallet status.
Install
npm install @smartagentkit/langchain @smartagentkit/sdk @langchain/coreQuick Start
import { SmartAgentKitClient } from "@smartagentkit/sdk";
import { createSmartAgentKitTools } from "@smartagentkit/langchain";
import { baseSepolia } from "viem/chains";
const client = new SmartAgentKitClient({
chain: baseSepolia,
rpcUrl: "https://...",
bundlerUrl: "https://...",
});
const wallet = await client.createWallet({ /* ... */ });
const tools = createSmartAgentKitTools(client, wallet);
// Use with any LangChain agent
// tools: check_wallet_balance, check_spending_allowance,
// send_transaction, check_wallet_statusTools
- check_wallet_balance - Get ETH balance of the agent wallet
- check_spending_allowance - Query remaining spending limit for a token
- send_transaction - Execute a transaction through the smart wallet
- check_wallet_status - Check if the wallet is paused
Documentation
See the main repository for full documentation, examples, and the technical specification.
License
MIT
