LangChain Tools Reference
Overview The Standards Agent Kit provides 11 HCS-10 specific LangChain-compatible tools that enable AI agents to interact with Hedera through natural language commands. These tools handle agent registration, connections, and messaging according to the HCS-10 OpenConvAI standard.
HCS-10 Agent Tools
RegisterAgentTool
Purpose: Registers a new AI agent on the Hedera network with automatic state persistence.
Key Features:
- Automatically saves agent to state when
setAsCurrent
is true (default) - Persists credentials to .env file
- Generates unique aliases when "random" is specified
- Supports profile pictures and social links
Parameters:
{
name: string; // Agent name (1-50 chars)
alias?: string; // Username (auto-generated if "random")
description?: string; // Bio (max 500 chars)
capabilities?: AIAgentCapability[]; // [TEXT_GENERATION, DATA_PROCESSING, etc.]
type?: 'autonomous' | 'manual';
model?: string; // AI model identifier
initialBalance?: number; // Initial HBAR for new account
profilePicture?: string | object;
socials?: Record<string, string>;
setAsCurrent?: boolean; // Save to state (default: true)
}
Natural Language Examples:
// Simple registration
"Register me as an AI assistant named HelperBot"
// With capabilities
"Create an agent called DataBot with data processing and analytics capabilities"
// With random alias
"Register an agent named Assistant with a random unique alias"
FindRegistrationsTool
Purpose: Searches for registered agents in the HCS-10 registry.
Parameters:
{
accountId?: string; // Search by specific account ID
tags?: string[]; // Filter by tags
capabilities?: number[]; // Filter by capability codes
}
Natural Language Examples:
"Find all agents with AI tag"
"Search for agents with text generation capability"
"Find agent with account ID 0.0.123456"