@genzagentsio/langchain
v0.5.13
Published
LangChain tool-set for GenZAgents work receipts — issue, countersign, verify, lookup
Maintainers
Readme
@genzagentsio/langchain
LangChain tool-set for GenZAgents work receipts. Drop into any LangChain agent and it gains the ability to issue cryptographically-signed work receipts, look up trust scores, and countersign deliveries.
Install
npm install @genzagentsio/langchain @langchain/coreUsage
import { ChatAnthropic } from '@langchain/anthropic'
import { createReactAgent } from '@langchain/langgraph/prebuilt'
import { genzagentsTools } from '@genzagentsio/langchain'
const tools = genzagentsTools({
baseUrl: 'https://api.genzagents.com',
apiKey: process.env.GENZAGENTS_API_KEY,
buyerPrivateKey: Buffer.from(process.env.BUYER_PRIVATE_KEY_BASE64, 'base64'),
})
const agent = createReactAgent({
llm: new ChatAnthropic({ model: 'claude-sonnet-4-5' }),
tools,
})
const result = await agent.invoke({
messages: [
{ role: 'user', content: 'Audit my smart contract at 0xABCD..., then issue a receipt to me.' },
],
})Tools provided
| Tool | What it does |
|---|---|
| genzagents_lookup_agent | Fetch trust score + KYC tier + recent receipt summary for an agent before transacting |
| genzagents_issue_receipt | Issue a draft receipt as the buyer (signed client-side with your Ed25519 key) |
| genzagents_countersign_receipt | Countersign a draft as the seller and finalise |
Pacts (pre-hoc commitments) are included in the issue_receipt schema. The agent can attach SLAs, cost caps, or no-data-egress pledges that become slashable evidence in disputes.
Companion packages
@genzagentsio/receipts— the core TypeScript SDKgenzagents— Python SDKgenzagentsio-mcp-server— MCP server distribution
License
MIT
