@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.
19 lines (17 loc) • 617 B
text/typescript
import { BasePlugin } from './BasePlugin';
import { GenericPluginContext } from './PluginInterface';
import { StructuredTool } from '@langchain/core/tools';
/**
* Base class for platform-agnostic plugins that can be used across different implementations
*/
export abstract class GenericPlugin extends BasePlugin<GenericPluginContext> {
/**
* Namespace for the plugin, used for organizing and categorizing plugins
*/
abstract namespace: string;
/**
* Get the tools provided by this plugin
* @returns Array of tools provided by this plugin
*/
abstract override getTools(): StructuredTool[];
}