UNPKG

@hashgraphonline/standards-agent-kit

Version:

A modular SDK for building on-chain autonomous agents using Hashgraph Online Standards, including HCS-10 for agent discovery and communication.

54 lines (48 loc) 1.28 kB
// src/hcs10/types.ts import { FeeConfigBuilderInterface } from '@hashgraphonline/standards-sdk'; /** * Agent metadata interface used during registration. */ export interface AgentMetadata { name: string; description?: string; contact?: string; type?: 'autonomous' | 'manual'; model?: string; capabilities?: number[]; social?: Record<string, string>; properties?: Record<string, unknown>; socials?: Record<string, string>; creator?: string; feeConfig?: FeeConfigBuilderInterface; } /** * AgentChannels represents the communication topics for an agent. */ export interface AgentChannels { inboundTopicId: string; outboundTopicId: string; // Future: additional connection topics can be added. } /** * Represents a message in the HCS-10 protocol */ export interface HCS10Message { sender: string; recipient: string; content: string; timestamp: number; messageId: string; metadata?: Record<string, unknown>; } // export interface AgentRegistration { // id: string; // name: string; // capabilities: string[]; // createdAt: number; // publicKey: string; // } // export interface HCS10Config { // topicId: string; // network: 'mainnet' | 'testnet' | 'previewnet'; // }