sdk
Installation
bun add regent-sdkHigh-Level APIs
createRegentAgent()
import { createRegentAgent } from 'regent-sdk';
const agent = await createRegentAgent({
name: 'My Agent',
description: 'An intelligent assistant',
version: '1.0.0',
http: { port: 3000 },
identity: {
chainId: 84532,
rpcUrl: 'https://sepolia.base.org',
ipfs: 'pinata',
ipfsConfig: { pinataJwt: process.env.PINATA_JWT },
},
trust: { reputation: true },
});
// Register on-chain
const { agentId } = await agent.registerOnchain();
console.log('Registered:', agentId);
// Search for other agents
const agents = await agent.search({ mcp: true });RegentAgentConfig
RegentAgentResult
createRegentSDK()
Re-Exports
Core Runtime
HTTP Extension
A2A Extension
ERC-8004 SDK
Types
Usage Patterns
Full-Featured Agent with Identity
Read-Only Discovery
Multi-Chain Search
When to Use Each API
Scenario
API
Last updated