@hashgraphonline/standards-agent-kit 0.0.34 → 0.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/cjs/plugins/index.d.ts +1 -0
  2. package/dist/cjs/standards-agent-kit.cjs +1 -1
  3. package/dist/cjs/standards-agent-kit.cjs.map +1 -1
  4. package/dist/cjs/tools/ConnectionMonitorTool.d.ts +0 -1
  5. package/dist/es/plugins/index.d.ts +1 -0
  6. package/dist/es/standards-agent-kit.es.js +2 -0
  7. package/dist/es/standards-agent-kit.es.js.map +1 -1
  8. package/dist/es/standards-agent-kit.es11.js +0 -3
  9. package/dist/es/standards-agent-kit.es11.js.map +1 -1
  10. package/dist/es/standards-agent-kit.es16.js +1 -1
  11. package/dist/es/standards-agent-kit.es17.js +1 -1
  12. package/dist/es/standards-agent-kit.es22.js.map +1 -1
  13. package/dist/es/standards-agent-kit.es23.js.map +1 -1
  14. package/dist/es/standards-agent-kit.es24.js +3 -81
  15. package/dist/es/standards-agent-kit.es24.js.map +1 -1
  16. package/dist/es/standards-agent-kit.es25.js +79 -22
  17. package/dist/es/standards-agent-kit.es25.js.map +1 -1
  18. package/dist/es/standards-agent-kit.es27.js +28 -0
  19. package/dist/es/standards-agent-kit.es27.js.map +1 -0
  20. package/dist/es/standards-agent-kit.es3.js +1 -1
  21. package/dist/es/tools/ConnectionMonitorTool.d.ts +0 -1
  22. package/dist/umd/plugins/index.d.ts +1 -0
  23. package/dist/umd/standards-agent-kit.umd.js +2 -2
  24. package/dist/umd/standards-agent-kit.umd.js.map +1 -1
  25. package/dist/umd/tools/ConnectionMonitorTool.d.ts +0 -1
  26. package/package.json +2 -2
  27. package/src/plugins/GenericPlugin.ts +1 -1
  28. package/src/plugins/HCS10Plugin.ts +1 -1
  29. package/src/plugins/index.ts +1 -0
  30. package/src/plugins/openconvai/OpenConvAIPlugin.ts +2 -2
  31. package/src/plugins/weather/index.ts +1 -1
  32. package/src/tools/ConnectionMonitorTool.ts +0 -4
@@ -86,7 +86,6 @@ export declare class ConnectionMonitorTool extends StructuredTool {
86
86
  private listConnectionsTool;
87
87
  constructor({ hcsClient, stateManager, ...rest }: ConnectionMonitorToolParams);
88
88
  updateClient(newClient: HCS10Client): void;
89
- call(args: z.infer<this['schema']>): Promise<string>;
90
89
  protected _call({ acceptAll, targetAccountId, hbarFees, tokenFees, exemptAccountIds, monitorDurationSeconds, defaultCollectorAccount, }: z.infer<this['schema']>): Promise<string>;
91
90
  private createFeeConfig;
92
91
  private extractAccountId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashgraphonline/standards-agent-kit",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "description": "A modular SDK for building on-chain autonomous agents using Hashgraph Online Standards, including HCS-10 for agent discovery and communication.",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/standards-agent-kit.cjs",
@@ -96,7 +96,7 @@
96
96
  },
97
97
  "dependencies": {
98
98
  "@hashgraph/sdk": "^2.65.1",
99
- "@hashgraphonline/standards-sdk": "^0.0.120",
99
+ "@hashgraphonline/standards-sdk": "^0.0.121",
100
100
  "@langchain/community": "^0.3.44",
101
101
  "@langchain/core": "^0.3.57",
102
102
  "@langchain/openai": "^0.5.11",
@@ -15,5 +15,5 @@ export abstract class GenericPlugin extends BasePlugin<GenericPluginContext> {
15
15
  * Get the tools provided by this plugin
16
16
  * @returns Array of tools provided by this plugin
17
17
  */
18
- abstract getTools(): StructuredTool[];
18
+ abstract override getTools(): StructuredTool[];
19
19
  }
@@ -10,5 +10,5 @@ export abstract class HCS10Plugin extends BasePlugin<PluginContext> {
10
10
  * Get the tools provided by this plugin
11
11
  * @returns Array of tools provided by this plugin
12
12
  */
13
- abstract getTools(): StructuredTool[];
13
+ abstract override getTools(): StructuredTool[];
14
14
  }
@@ -5,3 +5,4 @@ export * from './PluginLoader';
5
5
  export * from './hedera/HbarPricePlugin';
6
6
  export * from './GenericPlugin';
7
7
  export * from './openconvai';
8
+ export * from './HCS10Plugin';
@@ -37,7 +37,7 @@ export class OpenConvAIPlugin extends GenericPlugin {
37
37
  private stateManager?: IStateManager;
38
38
  private tools: StructuredTool[] = [];
39
39
 
40
- async initialize(context: GenericPluginContext): Promise<void> {
40
+ override async initialize(context: GenericPluginContext): Promise<void> {
41
41
  await super.initialize(context);
42
42
 
43
43
  if (!(context.client instanceof HCS10Client)) {
@@ -113,7 +113,7 @@ export class OpenConvAIPlugin extends GenericPlugin {
113
113
  return this.tools;
114
114
  }
115
115
 
116
- async cleanup(): Promise<void> {
116
+ override async cleanup(): Promise<void> {
117
117
  this.tools = [];
118
118
  this.hcs10Client = undefined;
119
119
  this.stateManager = undefined;
@@ -159,7 +159,7 @@ export default class WeatherPlugin extends GenericPlugin {
159
159
 
160
160
  private apiKey?: string;
161
161
 
162
- async initialize(context: GenericPluginContext): Promise<void> {
162
+ override async initialize(context: GenericPluginContext): Promise<void> {
163
163
  await super.initialize(context);
164
164
  this.apiKey = context.config.weatherApiKey as string | undefined;
165
165
 
@@ -126,10 +126,6 @@ export class ConnectionMonitorTool extends StructuredTool {
126
126
  });
127
127
  }
128
128
 
129
- async call(args: z.infer<this['schema']>): Promise<string> {
130
- return this._call(args);
131
- }
132
-
133
129
  protected async _call({
134
130
  acceptAll = false,
135
131
  targetAccountId,