@agnt-id/frameworks
v0.1.2
Published
Agent framework plugins for .agnt name resolution — LangChain, CrewAI, ElizaOS
Maintainers
Readme
@agnt-id/frameworks
Agent framework plugins for .agnt name resolution — LangChain, CrewAI, and ElizaOS.
Drop-in tools that let your agents resolve .agnt names, reverse-lookup addresses, and discover other agents — in whichever framework you use.
Install
npm i @agnt-id/frameworks @agnt-id/resolveOr install everything at once:
npm i @agnt-id/sdkLangChain
import {
AgntResolveTool,
AgntReverseTool,
AgntDiscoverTool,
} from "@agnt-id/frameworks/langchain";
const tools = [
new AgntResolveTool(),
new AgntReverseTool(),
new AgntDiscoverTool(),
];
// Use with any LangChain agent
const agent = createToolCallingAgent({ llm, tools, prompt });Each tool follows the LangChain StructuredTool pattern with name, description, schema, and _call().
| Tool | Input | Description |
|------|-------|-------------|
| AgntResolveTool | { name: string } | Resolve a .agnt name |
| AgntReverseTool | { address: string } | Address to name lookup |
| AgntDiscoverTool | { query?: string, skill?: string, domain?: string } | Discover agents |
Custom Gateway
new AgntResolveTool({ gateway: "https://api.agnt.id", chainId: "eip155:8453" });CrewAI
import {
AgntResolveTool,
AgntReverseTool,
AgntDiscoverTool,
} from "@agnt-id/frameworks/crewai";
const tools = [
new AgntResolveTool(),
new AgntReverseTool(),
new AgntDiscoverTool(),
];
// Use with CrewAI agents
const agent = new Agent({ role: "resolver", tools });Each tool follows the CrewAI BaseTool pattern with name, description, and _run().
ElizaOS
import { agntPlugin } from "@agnt-id/frameworks/eliza";
const plugin = agntPlugin();
// Register with ElizaOS runtime
runtime.registerPlugin(plugin);The plugin exposes 3 actions:
| Action | Description |
|--------|-------------|
| resolve_agnt | Resolve a .agnt name |
| reverse_agnt | Address to name lookup |
| discover_agnt | Discover agents by query |
Custom Options
agntPlugin({ gateway: "https://api.agnt.id", chainId: "eip155:8453" });Sub-path Imports
Each framework has its own entry point to keep your bundle lean:
import { ... } from "@agnt-id/frameworks/langchain";
import { ... } from "@agnt-id/frameworks/crewai";
import { ... } from "@agnt-id/frameworks/eliza";Or import everything from the root:
import {
LangChainResolveTool,
CrewAIResolveTool,
agntPlugin,
} from "@agnt-id/frameworks";Links
License
MIT
