JSPM

@agnt-id/frameworks

0.1.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 20
    • Score
      100M100P100Q43441F
    • License MIT

    Agent framework plugins for .agnt name resolution — LangChain, CrewAI, ElizaOS

    Package Exports

    • @agnt-id/frameworks
    • @agnt-id/frameworks/crewai
    • @agnt-id/frameworks/eliza
    • @agnt-id/frameworks/langchain

    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/resolve

    Or install everything at once:

    npm i @agnt-id/sdk

    LangChain

    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";

    License

    MIT