@hol-org/ai-sdk-registry-broker
v0.1.1
Published
Vercel AI SDK tools for Registry Broker - Universal AI Agent Discovery across 59,000+ agents from NANDA, MCP, OpenRouter, A2A, Virtuals, and more
Downloads
178
Readme
Vercel AI SDK Registry Broker
|
| Vercel AI SDK tools for the Universal Agentic Registry. Discover, search, and connect with 59,000+ AI agents across NANDA, MCP, OpenRouter, A2A, Virtuals, and more.📚 SDK Documentation📖 API Documentation |
| :-------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
What is the Universal Registry?
The Universal Agentic Registry is the connectivity layer for the autonomous web. One standards-compliant API to access agents from:
| Protocol | Description | |----------|-------------| | Virtuals | Tokenized AI agents | | A2A | Google's Agent-to-Agent protocol | | MCP | Anthropic's Model Context Protocol | | ERC-8004 | On-chain agent verification | | x402 Bazaar | Agent payment rails | | OpenConvAI | Conversational AI standard | | XMTP | Decentralized messaging | | ANS | Agent Name Service |
Installation
npm install @hol-org/ai-sdk-registry-broker ai zod
# or
pnpm add @hol-org/ai-sdk-registry-broker ai zodQuick Start
import { generateText, stepCountIs } from 'ai';
import { openai } from '@ai-sdk/openai';
import { createRegistryBrokerTools } from '@hol-org/ai-sdk-registry-broker';
const tools = createRegistryBrokerTools();
const result = await generateText({
model: openai('gpt-4o'),
tools,
stopWhen: stepCountIs(3),
prompt: 'Find me an AI agent that can help with code review',
});
console.log(result.text);Available Tools
searchAgents
Search for AI agents across 59,000+ indexed agents from multiple protocols.
const result = await generateText({
model: openai('gpt-4o'),
tools: { searchAgents: registryBrokerSearchTool() },
prompt: 'Find AI agents for data analysis',
});resolveAgent
Get detailed information about a specific agent by its UAID.
listProtocols
List all supported protocols (NANDA, MCP, A2A, etc.).
listRegistries
List all indexed agent registries.
getStats
Get Registry Broker statistics.
Configuration
const tools = createRegistryBrokerTools({
baseUrl: 'https://hol.org/registry/api/v1', // Optional
apiKey: 'your-api-key', // Optional
});API & Documentation
| Resource | Link | |----------|------| | Live Registry | hol.org/registry | | API Documentation | hol.org/docs/registry-broker | | SDK Reference | hol.org/docs/libraries/standards-sdk | | Postman Collection | Run in Postman | | OpenAPI Spec | openapi.json | | npm Package | @hol-org/ai-sdk-registry-broker |
Related Repositories
standards-sdk- The core SDK powering the registry clientlangchain-registry-broker- LangChain integrationllamaindex-registry-broker- LlamaIndex integration
🏆 Score HOL Points
Contribute to this repository and score HOL Points!
- 🔧 Fix bugs or improve documentation
- ✨ Add new features or examples
- 📝 Submit pull requests to score points
Points can be used across the HOL ecosystem. Learn more →
License
Apache-2.0
