@hashgraphonline/standards-agent-kit 0.0.37 → 0.2.0
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.
- package/dist/cjs/builders/hcs10/hcs10-builder.d.ts +262 -0
- package/dist/cjs/builders/index.d.ts +2 -0
- package/dist/cjs/builders/types.d.ts +10 -0
- package/dist/cjs/index.d.ts +3 -1
- package/dist/cjs/init/init.d.ts +21 -22
- package/dist/cjs/plugins/PluginInterface.d.ts +4 -80
- package/dist/cjs/plugins/PluginRegistry.d.ts +1 -47
- package/dist/cjs/plugins/defi/index.d.ts +7 -4
- package/dist/cjs/plugins/hedera/HbarPricePlugin.d.ts +7 -35
- package/dist/cjs/plugins/index.d.ts +0 -5
- package/dist/cjs/plugins/weather/index.d.ts +6 -5
- package/dist/cjs/standards-agent-kit.cjs +1 -1
- package/dist/cjs/standards-agent-kit.cjs.map +1 -1
- package/dist/cjs/state/state-types.d.ts +8 -8
- package/dist/cjs/tools/hcs10/AcceptConnectionRequestTool.d.ts +40 -0
- package/dist/cjs/tools/hcs10/CheckMessagesTool.d.ts +40 -0
- package/dist/cjs/tools/hcs10/ConnectionMonitorTool.d.ts +134 -0
- package/dist/cjs/tools/hcs10/FindRegistrationsTool.d.ts +34 -0
- package/dist/cjs/tools/hcs10/InitiateConnectionTool.d.ts +43 -0
- package/dist/cjs/tools/hcs10/ListConnectionsTool.d.ts +34 -0
- package/dist/cjs/tools/hcs10/ListUnapprovedConnectionRequestsTool.d.ts +15 -0
- package/dist/cjs/tools/hcs10/ManageConnectionRequestsTool.d.ts +34 -0
- package/dist/cjs/tools/hcs10/RegisterAgentTool.d.ts +218 -0
- package/dist/cjs/tools/hcs10/RetrieveProfileTool.d.ts +33 -0
- package/dist/cjs/tools/hcs10/SendMessageToConnectionTool.d.ts +40 -0
- package/dist/cjs/tools/hcs10/base-hcs10-tools.d.ts +28 -0
- package/dist/cjs/tools/hcs10/hcs10-tool-params.d.ts +18 -0
- package/dist/cjs/tools/hcs10/index.d.ts +13 -0
- package/dist/cjs/tools/index.d.ts +1 -13
- package/dist/es/builders/hcs10/hcs10-builder.d.ts +262 -0
- package/dist/es/builders/index.d.ts +2 -0
- package/dist/es/builders/types.d.ts +10 -0
- package/dist/es/index.d.ts +3 -1
- package/dist/es/init/init.d.ts +21 -22
- package/dist/es/plugins/PluginInterface.d.ts +4 -80
- package/dist/es/plugins/PluginRegistry.d.ts +1 -47
- package/dist/es/plugins/defi/index.d.ts +7 -4
- package/dist/es/plugins/hedera/HbarPricePlugin.d.ts +7 -35
- package/dist/es/plugins/index.d.ts +0 -5
- package/dist/es/plugins/weather/index.d.ts +6 -5
- package/dist/es/standards-agent-kit.es.js +10 -18
- package/dist/es/standards-agent-kit.es.js.map +1 -1
- package/dist/es/standards-agent-kit.es10.js +29 -76
- package/dist/es/standards-agent-kit.es10.js.map +1 -1
- package/dist/es/standards-agent-kit.es11.js +61 -384
- package/dist/es/standards-agent-kit.es11.js.map +1 -1
- package/dist/es/standards-agent-kit.es12.js +22 -190
- package/dist/es/standards-agent-kit.es12.js.map +1 -1
- package/dist/es/standards-agent-kit.es13.js +26 -138
- package/dist/es/standards-agent-kit.es13.js.map +1 -1
- package/dist/es/standards-agent-kit.es14.js +35 -59
- package/dist/es/standards-agent-kit.es14.js.map +1 -1
- package/dist/es/standards-agent-kit.es15.js +11 -117
- package/dist/es/standards-agent-kit.es15.js.map +1 -1
- package/dist/es/standards-agent-kit.es16.js +1 -1
- package/dist/es/standards-agent-kit.es16.js.map +1 -1
- package/dist/es/standards-agent-kit.es17.js +63 -46
- package/dist/es/standards-agent-kit.es17.js.map +1 -1
- package/dist/es/standards-agent-kit.es18.js +25 -74
- package/dist/es/standards-agent-kit.es18.js.map +1 -1
- package/dist/es/standards-agent-kit.es19.js +22 -13
- package/dist/es/standards-agent-kit.es19.js.map +1 -1
- package/dist/es/standards-agent-kit.es2.js +1381 -188
- package/dist/es/standards-agent-kit.es2.js.map +1 -1
- package/dist/es/standards-agent-kit.es20.js +3 -67
- package/dist/es/standards-agent-kit.es20.js.map +1 -1
- package/dist/es/standards-agent-kit.es3.js +285 -347
- package/dist/es/standards-agent-kit.es3.js.map +1 -1
- package/dist/es/standards-agent-kit.es4.js +22 -74
- package/dist/es/standards-agent-kit.es4.js.map +1 -1
- package/dist/es/standards-agent-kit.es5.js +127 -154
- package/dist/es/standards-agent-kit.es5.js.map +1 -1
- package/dist/es/standards-agent-kit.es6.js +21 -88
- package/dist/es/standards-agent-kit.es6.js.map +1 -1
- package/dist/es/standards-agent-kit.es7.js +28 -86
- package/dist/es/standards-agent-kit.es7.js.map +1 -1
- package/dist/es/standards-agent-kit.es8.js +27 -100
- package/dist/es/standards-agent-kit.es8.js.map +1 -1
- package/dist/es/standards-agent-kit.es9.js +35 -117
- package/dist/es/standards-agent-kit.es9.js.map +1 -1
- package/dist/es/state/state-types.d.ts +8 -8
- package/dist/es/tools/hcs10/AcceptConnectionRequestTool.d.ts +40 -0
- package/dist/es/tools/hcs10/CheckMessagesTool.d.ts +40 -0
- package/dist/es/tools/hcs10/ConnectionMonitorTool.d.ts +134 -0
- package/dist/es/tools/hcs10/FindRegistrationsTool.d.ts +34 -0
- package/dist/es/tools/hcs10/InitiateConnectionTool.d.ts +43 -0
- package/dist/es/tools/hcs10/ListConnectionsTool.d.ts +34 -0
- package/dist/es/tools/hcs10/ListUnapprovedConnectionRequestsTool.d.ts +15 -0
- package/dist/es/tools/hcs10/ManageConnectionRequestsTool.d.ts +34 -0
- package/dist/es/tools/hcs10/RegisterAgentTool.d.ts +218 -0
- package/dist/es/tools/hcs10/RetrieveProfileTool.d.ts +33 -0
- package/dist/es/tools/hcs10/SendMessageToConnectionTool.d.ts +40 -0
- package/dist/es/tools/hcs10/base-hcs10-tools.d.ts +28 -0
- package/dist/es/tools/hcs10/hcs10-tool-params.d.ts +18 -0
- package/dist/es/tools/hcs10/index.d.ts +13 -0
- package/dist/es/tools/index.d.ts +1 -13
- package/dist/umd/builders/hcs10/hcs10-builder.d.ts +262 -0
- package/dist/umd/builders/index.d.ts +2 -0
- package/dist/umd/builders/types.d.ts +10 -0
- package/dist/umd/index.d.ts +3 -1
- package/dist/umd/init/init.d.ts +21 -22
- package/dist/umd/plugins/PluginInterface.d.ts +4 -80
- package/dist/umd/plugins/PluginRegistry.d.ts +1 -47
- package/dist/umd/plugins/defi/index.d.ts +7 -4
- package/dist/umd/plugins/hedera/HbarPricePlugin.d.ts +7 -35
- package/dist/umd/plugins/index.d.ts +0 -5
- package/dist/umd/plugins/weather/index.d.ts +6 -5
- package/dist/umd/standards-agent-kit.umd.js +1 -164
- package/dist/umd/standards-agent-kit.umd.js.map +1 -1
- package/dist/umd/state/state-types.d.ts +8 -8
- package/dist/umd/tools/hcs10/AcceptConnectionRequestTool.d.ts +40 -0
- package/dist/umd/tools/hcs10/CheckMessagesTool.d.ts +40 -0
- package/dist/umd/tools/hcs10/ConnectionMonitorTool.d.ts +134 -0
- package/dist/umd/tools/hcs10/FindRegistrationsTool.d.ts +34 -0
- package/dist/umd/tools/hcs10/InitiateConnectionTool.d.ts +43 -0
- package/dist/umd/tools/hcs10/ListConnectionsTool.d.ts +34 -0
- package/dist/umd/tools/hcs10/ListUnapprovedConnectionRequestsTool.d.ts +15 -0
- package/dist/umd/tools/hcs10/ManageConnectionRequestsTool.d.ts +34 -0
- package/dist/umd/tools/hcs10/RegisterAgentTool.d.ts +218 -0
- package/dist/umd/tools/hcs10/RetrieveProfileTool.d.ts +33 -0
- package/dist/umd/tools/hcs10/SendMessageToConnectionTool.d.ts +40 -0
- package/dist/umd/tools/hcs10/base-hcs10-tools.d.ts +28 -0
- package/dist/umd/tools/hcs10/hcs10-tool-params.d.ts +18 -0
- package/dist/umd/tools/hcs10/index.d.ts +13 -0
- package/dist/umd/tools/index.d.ts +1 -13
- package/package.json +41 -41
- package/src/builders/hcs10/hcs10-builder.ts +2108 -0
- package/src/builders/index.ts +2 -0
- package/src/builders/types.ts +11 -0
- package/src/hcs10/HCS10Client.ts +3 -2
- package/src/index.ts +4 -2
- package/src/init/init.ts +85 -63
- package/src/plugins/PluginInterface.ts +15 -94
- package/src/plugins/PluginRegistry.ts +2 -98
- package/src/plugins/defi/index.ts +31 -118
- package/src/plugins/hedera/HbarPricePlugin.ts +19 -100
- package/src/plugins/index.ts +0 -5
- package/src/plugins/weather/index.ts +56 -40
- package/src/state/state-types.ts +9 -11
- package/src/tools/hcs10/AcceptConnectionRequestTool.ts +56 -0
- package/src/tools/hcs10/CheckMessagesTool.ts +73 -0
- package/src/tools/hcs10/ConnectionMonitorTool.ts +111 -0
- package/src/tools/hcs10/FindRegistrationsTool.ts +64 -0
- package/src/tools/hcs10/InitiateConnectionTool.ts +66 -0
- package/src/tools/hcs10/ListConnectionsTool.ts +58 -0
- package/src/tools/hcs10/ListUnapprovedConnectionRequestsTool.ts +26 -0
- package/src/tools/hcs10/ManageConnectionRequestsTool.ts +48 -0
- package/src/tools/hcs10/RegisterAgentTool.ts +213 -0
- package/src/tools/hcs10/RetrieveProfileTool.ts +61 -0
- package/src/tools/hcs10/SendMessageToConnectionTool.ts +45 -0
- package/src/tools/hcs10/base-hcs10-tools.ts +65 -0
- package/src/tools/hcs10/hcs10-tool-params.ts +21 -0
- package/src/tools/hcs10/index.ts +13 -0
- package/src/tools/index.ts +2 -13
- package/src/utils/HederaClient.ts +2 -2
- package/src/utils/ensure-agent-has-hbar.ts +3 -4
- package/dist/cjs/agents/index.d.ts +0 -0
- package/dist/cjs/plugins/BasePlugin.d.ts +0 -28
- package/dist/cjs/plugins/GenericPlugin.d.ts +0 -17
- package/dist/cjs/plugins/HCS10Plugin.d.ts +0 -13
- package/dist/cjs/plugins/PluginLoader.d.ts +0 -38
- package/dist/cjs/plugins/openconvai/OpenConvAIPlugin.d.ts +0 -23
- package/dist/cjs/plugins/openconvai/index.d.ts +0 -1
- package/dist/cjs/tools/AcceptConnectionRequestTool.d.ts +0 -33
- package/dist/cjs/tools/CheckMessagesTool.d.ts +0 -34
- package/dist/cjs/tools/ConnectionMonitorTool.d.ts +0 -100
- package/dist/cjs/tools/ConnectionTool.d.ts +0 -40
- package/dist/cjs/tools/FindRegistrationsTool.d.ts +0 -28
- package/dist/cjs/tools/InitiateConnectionTool.d.ts +0 -30
- package/dist/cjs/tools/ListConnectionsTool.d.ts +0 -33
- package/dist/cjs/tools/ListUnapprovedConnectionRequestsTool.d.ts +0 -41
- package/dist/cjs/tools/ManageConnectionRequestsTool.d.ts +0 -38
- package/dist/cjs/tools/RegisterAgentTool.d.ts +0 -188
- package/dist/cjs/tools/RetrieveProfileTool.d.ts +0 -34
- package/dist/cjs/tools/SendMessageToConnectionTool.d.ts +0 -34
- package/dist/cjs/tools/SendMessageTool.d.ts +0 -40
- package/dist/es/agents/index.d.ts +0 -0
- package/dist/es/plugins/BasePlugin.d.ts +0 -28
- package/dist/es/plugins/GenericPlugin.d.ts +0 -17
- package/dist/es/plugins/HCS10Plugin.d.ts +0 -13
- package/dist/es/plugins/PluginLoader.d.ts +0 -38
- package/dist/es/plugins/openconvai/OpenConvAIPlugin.d.ts +0 -23
- package/dist/es/plugins/openconvai/index.d.ts +0 -1
- package/dist/es/standards-agent-kit.es21.js +0 -92
- package/dist/es/standards-agent-kit.es21.js.map +0 -1
- package/dist/es/standards-agent-kit.es22.js +0 -7
- package/dist/es/standards-agent-kit.es22.js.map +0 -1
- package/dist/es/standards-agent-kit.es23.js +0 -106
- package/dist/es/standards-agent-kit.es23.js.map +0 -1
- package/dist/es/standards-agent-kit.es24.js +0 -7
- package/dist/es/standards-agent-kit.es24.js.map +0 -1
- package/dist/es/standards-agent-kit.es25.js +0 -7
- package/dist/es/standards-agent-kit.es25.js.map +0 -1
- package/dist/es/standards-agent-kit.es26.js +0 -85
- package/dist/es/standards-agent-kit.es26.js.map +0 -1
- package/dist/es/standards-agent-kit.es27.js +0 -28
- package/dist/es/standards-agent-kit.es27.js.map +0 -1
- package/dist/es/tools/AcceptConnectionRequestTool.d.ts +0 -33
- package/dist/es/tools/CheckMessagesTool.d.ts +0 -34
- package/dist/es/tools/ConnectionMonitorTool.d.ts +0 -100
- package/dist/es/tools/ConnectionTool.d.ts +0 -40
- package/dist/es/tools/FindRegistrationsTool.d.ts +0 -28
- package/dist/es/tools/InitiateConnectionTool.d.ts +0 -30
- package/dist/es/tools/ListConnectionsTool.d.ts +0 -33
- package/dist/es/tools/ListUnapprovedConnectionRequestsTool.d.ts +0 -41
- package/dist/es/tools/ManageConnectionRequestsTool.d.ts +0 -38
- package/dist/es/tools/RegisterAgentTool.d.ts +0 -188
- package/dist/es/tools/RetrieveProfileTool.d.ts +0 -34
- package/dist/es/tools/SendMessageToConnectionTool.d.ts +0 -34
- package/dist/es/tools/SendMessageTool.d.ts +0 -40
- package/dist/umd/agents/index.d.ts +0 -0
- package/dist/umd/plugins/BasePlugin.d.ts +0 -28
- package/dist/umd/plugins/GenericPlugin.d.ts +0 -17
- package/dist/umd/plugins/HCS10Plugin.d.ts +0 -13
- package/dist/umd/plugins/PluginLoader.d.ts +0 -38
- package/dist/umd/plugins/openconvai/OpenConvAIPlugin.d.ts +0 -23
- package/dist/umd/plugins/openconvai/index.d.ts +0 -1
- package/dist/umd/tools/AcceptConnectionRequestTool.d.ts +0 -33
- package/dist/umd/tools/CheckMessagesTool.d.ts +0 -34
- package/dist/umd/tools/ConnectionMonitorTool.d.ts +0 -100
- package/dist/umd/tools/ConnectionTool.d.ts +0 -40
- package/dist/umd/tools/FindRegistrationsTool.d.ts +0 -28
- package/dist/umd/tools/InitiateConnectionTool.d.ts +0 -30
- package/dist/umd/tools/ListConnectionsTool.d.ts +0 -33
- package/dist/umd/tools/ListUnapprovedConnectionRequestsTool.d.ts +0 -41
- package/dist/umd/tools/ManageConnectionRequestsTool.d.ts +0 -38
- package/dist/umd/tools/RegisterAgentTool.d.ts +0 -188
- package/dist/umd/tools/RetrieveProfileTool.d.ts +0 -34
- package/dist/umd/tools/SendMessageToConnectionTool.d.ts +0 -34
- package/dist/umd/tools/SendMessageTool.d.ts +0 -40
- package/src/agents/index.ts +0 -1
- package/src/plugins/BasePlugin.ts +0 -37
- package/src/plugins/GenericPlugin.ts +0 -19
- package/src/plugins/HCS10Plugin.ts +0 -14
- package/src/plugins/PluginLoader.ts +0 -121
- package/src/plugins/README.md +0 -113
- package/src/plugins/openconvai/OpenConvAIPlugin.ts +0 -124
- package/src/plugins/openconvai/index.ts +0 -1
- package/src/tools/AcceptConnectionRequestTool.ts +0 -196
- package/src/tools/CheckMessagesTool.ts +0 -194
- package/src/tools/ConnectionMonitorTool.ts +0 -550
- package/src/tools/ConnectionTool.ts +0 -231
- package/src/tools/FindRegistrationsTool.ts +0 -114
- package/src/tools/InitiateConnectionTool.ts +0 -137
- package/src/tools/ListConnectionsTool.ts +0 -158
- package/src/tools/ListUnapprovedConnectionRequestsTool.ts +0 -173
- package/src/tools/ManageConnectionRequestsTool.ts +0 -275
- package/src/tools/RegisterAgentTool.ts +0 -590
- package/src/tools/RetrieveProfileTool.ts +0 -94
- package/src/tools/SendMessageToConnectionTool.ts +0 -142
- package/src/tools/SendMessageTool.ts +0 -116
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BaseHCS10QueryTool } from './base-hcs10-tools';
|
|
3
|
+
import { HCS10QueryToolParams } from './hcs10-tool-params';
|
|
4
|
+
declare const RetrieveProfileZodSchema: z.ZodObject<{
|
|
5
|
+
accountId: z.ZodString;
|
|
6
|
+
disableCache: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
accountId: string;
|
|
9
|
+
disableCache?: boolean | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
accountId: string;
|
|
12
|
+
disableCache?: boolean | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* Tool to retrieve detailed profile information for a specific HCS-10 agent
|
|
16
|
+
*/
|
|
17
|
+
export declare class RetrieveProfileTool extends BaseHCS10QueryTool<typeof RetrieveProfileZodSchema> {
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
specificInputSchema: z.ZodObject<{
|
|
21
|
+
accountId: z.ZodString;
|
|
22
|
+
disableCache: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
accountId: string;
|
|
25
|
+
disableCache?: boolean | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
accountId: string;
|
|
28
|
+
disableCache?: boolean | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
constructor(params: HCS10QueryToolParams);
|
|
31
|
+
protected executeQuery({ accountId, disableCache, }: z.infer<typeof RetrieveProfileZodSchema>): Promise<unknown>;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BaseHCS10TransactionTool } from './base-hcs10-tools';
|
|
3
|
+
import { HCS10TransactionToolParams } from './hcs10-tool-params';
|
|
4
|
+
import { BaseServiceBuilder } from 'hedera-agent-kit';
|
|
5
|
+
declare const SendMessageToConnectionZodSchema: z.ZodObject<{
|
|
6
|
+
targetIdentifier: z.ZodString;
|
|
7
|
+
message: z.ZodString;
|
|
8
|
+
disableMonitoring: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
message: string;
|
|
11
|
+
targetIdentifier: string;
|
|
12
|
+
disableMonitoring: boolean;
|
|
13
|
+
}, {
|
|
14
|
+
message: string;
|
|
15
|
+
targetIdentifier: string;
|
|
16
|
+
disableMonitoring?: boolean | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* A tool to send a message to an agent over an established HCS-10 connection.
|
|
20
|
+
*/
|
|
21
|
+
export declare class SendMessageToConnectionTool extends BaseHCS10TransactionTool<typeof SendMessageToConnectionZodSchema> {
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
specificInputSchema: z.ZodObject<{
|
|
25
|
+
targetIdentifier: z.ZodString;
|
|
26
|
+
message: z.ZodString;
|
|
27
|
+
disableMonitoring: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
message: string;
|
|
30
|
+
targetIdentifier: string;
|
|
31
|
+
disableMonitoring: boolean;
|
|
32
|
+
}, {
|
|
33
|
+
message: string;
|
|
34
|
+
targetIdentifier: string;
|
|
35
|
+
disableMonitoring?: boolean | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
constructor(params: HCS10TransactionToolParams);
|
|
38
|
+
protected callBuilderMethod(builder: BaseServiceBuilder, specificArgs: z.infer<typeof SendMessageToConnectionZodSchema>): Promise<void>;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseHederaTransactionTool, BaseHederaQueryTool, BaseServiceBuilder } from 'hedera-agent-kit';
|
|
2
|
+
import { HCS10Builder } from '../../builders/hcs10/hcs10-builder';
|
|
3
|
+
import { HCS10TransactionToolParams, HCS10QueryToolParams } from './hcs10-tool-params';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
/**
|
|
6
|
+
* Base class for HCS10 transaction tools
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class BaseHCS10TransactionTool<T extends z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny> = z.ZodObject<z.ZodRawShape>> extends BaseHederaTransactionTool<T> {
|
|
9
|
+
protected hcs10Builder: HCS10Builder;
|
|
10
|
+
namespace: "hcs10";
|
|
11
|
+
constructor(params: HCS10TransactionToolParams);
|
|
12
|
+
/**
|
|
13
|
+
* Override to return the HCS10Builder
|
|
14
|
+
*/
|
|
15
|
+
protected getServiceBuilder(): BaseServiceBuilder;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Base class for HCS10 query tools
|
|
19
|
+
*/
|
|
20
|
+
export declare abstract class BaseHCS10QueryTool<T extends z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, Record<string, unknown>, Record<string, unknown>> = z.ZodObject<z.ZodRawShape>> extends BaseHederaQueryTool<T> {
|
|
21
|
+
protected hcs10Builder: HCS10Builder;
|
|
22
|
+
namespace: "hcs10";
|
|
23
|
+
constructor(params: HCS10QueryToolParams);
|
|
24
|
+
/**
|
|
25
|
+
* Override to return the HCS10Builder
|
|
26
|
+
*/
|
|
27
|
+
protected getServiceBuilder(): BaseServiceBuilder;
|
|
28
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HederaAgentKit, BasePluginContext } from 'hedera-agent-kit';
|
|
2
|
+
import { HCS10Builder } from '../../builders/hcs10/hcs10-builder';
|
|
3
|
+
/**
|
|
4
|
+
* Parameters for HCS10 transaction tools
|
|
5
|
+
*/
|
|
6
|
+
export interface HCS10TransactionToolParams {
|
|
7
|
+
hederaKit: HederaAgentKit;
|
|
8
|
+
hcs10Builder: HCS10Builder;
|
|
9
|
+
logger?: BasePluginContext['logger'];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Parameters for HCS10 query tools
|
|
13
|
+
*/
|
|
14
|
+
export interface HCS10QueryToolParams {
|
|
15
|
+
hederaKit: HederaAgentKit;
|
|
16
|
+
hcs10Builder: HCS10Builder;
|
|
17
|
+
logger?: BasePluginContext['logger'];
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './base-hcs10-tools';
|
|
2
|
+
export * from './hcs10-tool-params';
|
|
3
|
+
export * from './RegisterAgentTool';
|
|
4
|
+
export * from './SendMessageToConnectionTool';
|
|
5
|
+
export * from './InitiateConnectionTool';
|
|
6
|
+
export * from './ListConnectionsTool';
|
|
7
|
+
export * from './CheckMessagesTool';
|
|
8
|
+
export * from './FindRegistrationsTool';
|
|
9
|
+
export * from './ConnectionMonitorTool';
|
|
10
|
+
export * from './ManageConnectionRequestsTool';
|
|
11
|
+
export * from './AcceptConnectionRequestTool';
|
|
12
|
+
export * from './RetrieveProfileTool';
|
|
13
|
+
export * from './ListUnapprovedConnectionRequestsTool';
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './SendMessageTool';
|
|
3
|
-
export * from './ConnectionTool';
|
|
4
|
-
export * from './SendMessageToConnectionTool';
|
|
5
|
-
export * from './InitiateConnectionTool';
|
|
6
|
-
export * from './ListConnectionsTool';
|
|
7
|
-
export * from './CheckMessagesTool';
|
|
8
|
-
export * from './FindRegistrationsTool';
|
|
9
|
-
export * from './ConnectionMonitorTool';
|
|
10
|
-
export * from './ManageConnectionRequestsTool';
|
|
11
|
-
export * from './AcceptConnectionRequestTool';
|
|
12
|
-
export * from './RetrieveProfileTool';
|
|
13
|
-
export * from './ListUnapprovedConnectionRequestsTool';
|
|
1
|
+
export * from './hcs10';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashgraphonline/standards-agent-kit",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
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",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"import": "./dist/es/standards-agent-kit.es.js",
|
|
13
13
|
"require": "./dist/cjs/standards-agent-kit.cjs",
|
|
14
14
|
"default": "./dist/es/standards-agent-kit.es.js"
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
"./package.json": "./package.json"
|
|
16
17
|
},
|
|
17
18
|
"files": [
|
|
18
19
|
"dist",
|
|
@@ -20,32 +21,6 @@
|
|
|
20
21
|
"LICENSE",
|
|
21
22
|
"README.md"
|
|
22
23
|
],
|
|
23
|
-
"scripts": {
|
|
24
|
-
"clean": "rimraf dist",
|
|
25
|
-
"build:es": "BUILD_FORMAT=es vite build",
|
|
26
|
-
"build:cjs": "BUILD_FORMAT=cjs vite build",
|
|
27
|
-
"build:umd": "BUILD_FORMAT=umd vite build",
|
|
28
|
-
"build": "npm run clean && npm run build:es && npm run build:cjs && npm run build:umd",
|
|
29
|
-
"test": "jest",
|
|
30
|
-
"lint": "eslint . --ext .ts",
|
|
31
|
-
"lint:fix": "eslint . --ext .ts --fix",
|
|
32
|
-
"prepare": "npm run build",
|
|
33
|
-
"prepublishOnly": "npm run build",
|
|
34
|
-
"release": "npm publish --access public",
|
|
35
|
-
"release:canary": "npm run prepublishOnly && npm publish --tag canary --access public",
|
|
36
|
-
"version:canary": "npm version prerelease --preid canary --no-git-tag-version",
|
|
37
|
-
"publish:canary": "npm run version:canary && npm run release:canary",
|
|
38
|
-
"demo:cli": "tsx examples/cli-demo.ts",
|
|
39
|
-
"demo:interactive": "tsx examples/interactive-demo.ts",
|
|
40
|
-
"demo:langchain": "tsx examples/langchain-demo.ts",
|
|
41
|
-
"demo:plugin": "tsx examples/plugin-system-example.ts",
|
|
42
|
-
"demo:plugin:weather": "tsx examples/plugins/weather/index.ts",
|
|
43
|
-
"demo:plugin:defi": "tsx examples/plugins/defi/index.ts",
|
|
44
|
-
"demo:plugin:openconvai": "tsx examples/openconvai-plugin-example.ts",
|
|
45
|
-
"standards-agent:start": "tsx examples/standards-expert/cli.ts -- start",
|
|
46
|
-
"standards-agent:process-docs": "tsx examples/standards-expert/cli.ts -- process-docs --all-repos",
|
|
47
|
-
"typecheck": "tsc --noEmit"
|
|
48
|
-
},
|
|
49
24
|
"keywords": [
|
|
50
25
|
"hedera",
|
|
51
26
|
"hcs10",
|
|
@@ -87,30 +62,31 @@
|
|
|
87
62
|
"access": "public"
|
|
88
63
|
},
|
|
89
64
|
"dependencies": {
|
|
90
|
-
"@hashgraph/sdk": "^2.
|
|
91
|
-
"@hashgraphonline/standards-sdk": "^0.0.
|
|
92
|
-
"@langchain/community": "^0.3.
|
|
93
|
-
"@langchain/core": "^0.3.
|
|
94
|
-
"@langchain/openai": "^0.5.
|
|
65
|
+
"@hashgraph/sdk": "^2.67.0",
|
|
66
|
+
"@hashgraphonline/standards-sdk": "^0.0.148",
|
|
67
|
+
"@langchain/community": "^0.3.48",
|
|
68
|
+
"@langchain/core": "^0.3.62",
|
|
69
|
+
"@langchain/openai": "^0.5.18",
|
|
95
70
|
"@octokit/rest": "^21.1.1",
|
|
96
71
|
"axios": "^1.9.0",
|
|
97
72
|
"chromadb": "^2.4.6",
|
|
98
73
|
"commander": "^14.0.0",
|
|
99
74
|
"dotenv": "^16.5.0",
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"openai": "^
|
|
103
|
-
"prompts": "^2.4.2",
|
|
104
|
-
"ts-node": "^10.9.2",
|
|
75
|
+
"hedera-agent-kit": "^2.0.3",
|
|
76
|
+
"langchain": "^0.3.29",
|
|
77
|
+
"openai": "^5.8.2",
|
|
105
78
|
"typescript": "^5.8.3",
|
|
106
79
|
"zod": "^3.25.28"
|
|
107
80
|
},
|
|
108
81
|
"devDependencies": {
|
|
82
|
+
"@hashgraphonline/standards-agent-kit": "file:.yalc/@hashgraphonline/standards-agent-kit",
|
|
83
|
+
"@hashgraphonline/standards-agent-plugin": "^0.0.1",
|
|
84
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
109
85
|
"@swc/core": "^1.11.21",
|
|
110
86
|
"@swc/jest": "^0.2.36",
|
|
111
87
|
"@types/jest": "^29.5.12",
|
|
112
88
|
"@types/libsodium-wrappers": "^0.7.14",
|
|
113
|
-
"@types/node": "^20.
|
|
89
|
+
"@types/node": "^20.19.4",
|
|
114
90
|
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
115
91
|
"@typescript-eslint/parser": "^7.3.1",
|
|
116
92
|
"eslint": "^8.56.0",
|
|
@@ -120,10 +96,34 @@
|
|
|
120
96
|
"terser": "^5.39.2",
|
|
121
97
|
"text-encoding": "^0.7.0",
|
|
122
98
|
"tsconfig-paths": "^4.2.0",
|
|
123
|
-
"tsx": "^4.19.
|
|
99
|
+
"tsx": "^4.19.4",
|
|
124
100
|
"vite": "^6.3.5",
|
|
125
101
|
"vite-plugin-dts": "^4.5.4",
|
|
126
102
|
"vite-plugin-node-polyfills": "^0.23.0",
|
|
127
103
|
"vite-plugin-string-replace": "^1.1.3"
|
|
104
|
+
},
|
|
105
|
+
"scripts": {
|
|
106
|
+
"clean": "rimraf dist",
|
|
107
|
+
"build:es": "BUILD_FORMAT=es vite build",
|
|
108
|
+
"build:cjs": "BUILD_FORMAT=cjs vite build",
|
|
109
|
+
"build:umd": "BUILD_FORMAT=umd vite build",
|
|
110
|
+
"build": "pnpm run clean && pnpm run build:es && pnpm run build:cjs && pnpm run build:umd",
|
|
111
|
+
"test": "jest",
|
|
112
|
+
"lint": "eslint . --ext .ts",
|
|
113
|
+
"lint:fix": "eslint . --ext .ts --fix",
|
|
114
|
+
"release": "pnpm publish --access public",
|
|
115
|
+
"release:canary": "pnpm run prepublishOnly && pnpm publish --tag canary --access public",
|
|
116
|
+
"version:canary": "pnpm version prerelease --preid canary --no-git-tag-version",
|
|
117
|
+
"publish:canary": "pnpm run version:canary && pnpm run release:canary",
|
|
118
|
+
"demo:cli": "tsx examples/cli-demo.ts",
|
|
119
|
+
"demo:interactive": "tsx examples/interactive-demo.ts",
|
|
120
|
+
"demo:langchain": "tsx examples/langchain-demo.ts",
|
|
121
|
+
"demo:plugin": "tsx examples/plugin-system-example.ts",
|
|
122
|
+
"demo:plugin:weather": "tsx examples/plugins/weather/index.ts",
|
|
123
|
+
"demo:plugin:defi": "tsx examples/plugins/defi/index.ts",
|
|
124
|
+
"demo:plugin:openconvai": "tsx examples/openconvai-plugin-example.ts",
|
|
125
|
+
"standards-agent:start": "tsx examples/standards-expert/cli.ts -- start",
|
|
126
|
+
"standards-agent:process-docs": "tsx examples/standards-expert/cli.ts -- process-docs --all-repos",
|
|
127
|
+
"typecheck": "tsc --noEmit"
|
|
128
128
|
}
|
|
129
|
-
}
|
|
129
|
+
}
|