@hashgraphonline/standards-agent-kit 0.0.32 → 0.0.34
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/init/index.d.ts +1 -0
- package/dist/cjs/{src → init}/init.d.ts +16 -16
- package/dist/cjs/standards-agent-kit.cjs +1 -1
- package/dist/cjs/standards-agent-kit.cjs.map +1 -1
- package/dist/{umd/src → cjs}/tools/AcceptConnectionRequestTool.d.ts +6 -6
- package/dist/cjs/{src/tools → tools}/CheckMessagesTool.d.ts +6 -6
- package/dist/{umd/src → cjs}/tools/ConnectionMonitorTool.d.ts +34 -34
- package/dist/{umd/src → cjs}/tools/FindRegistrationsTool.d.ts +4 -4
- package/dist/cjs/{src/tools → tools}/InitiateConnectionTool.d.ts +2 -2
- package/dist/{umd/src → cjs}/tools/ListConnectionsTool.d.ts +4 -4
- package/dist/{es/src → cjs}/tools/ListUnapprovedConnectionRequestsTool.d.ts +4 -4
- package/dist/{es/src → cjs}/tools/ManageConnectionRequestsTool.d.ts +4 -4
- package/dist/cjs/{src/tools → tools}/RegisterAgentTool.d.ts +76 -76
- package/dist/{es/src → cjs}/tools/RetrieveProfileTool.d.ts +4 -4
- package/dist/{es/src → cjs}/tools/SendMessageToConnectionTool.d.ts +6 -6
- package/dist/cjs/{src/tools → tools}/SendMessageTool.d.ts +6 -6
- package/dist/es/index.d.ts +5 -2
- package/dist/es/init/index.d.ts +1 -0
- package/dist/{umd/src → es/init}/init.d.ts +16 -16
- package/dist/es/standards-agent-kit.es.js +17 -17
- package/dist/es/standards-agent-kit.es10.js +65 -104
- package/dist/es/standards-agent-kit.es10.js.map +1 -1
- package/dist/es/standards-agent-kit.es11.js +371 -66
- package/dist/es/standards-agent-kit.es11.js.map +1 -1
- package/dist/es/standards-agent-kit.es12.js +153 -348
- package/dist/es/standards-agent-kit.es12.js.map +1 -1
- package/dist/es/standards-agent-kit.es13.js +105 -161
- package/dist/es/standards-agent-kit.es13.js.map +1 -1
- package/dist/es/standards-agent-kit.es14.js +48 -126
- package/dist/es/standards-agent-kit.es14.js.map +1 -1
- package/dist/es/standards-agent-kit.es15.js +108 -50
- package/dist/es/standards-agent-kit.es15.js.map +1 -1
- package/dist/es/standards-agent-kit.es16.js +239 -117
- package/dist/es/standards-agent-kit.es16.js.map +1 -1
- package/dist/es/standards-agent-kit.es17.js +120 -245
- package/dist/es/standards-agent-kit.es17.js.map +1 -1
- package/dist/es/standards-agent-kit.es2.js +321 -114
- package/dist/es/standards-agent-kit.es2.js.map +1 -1
- package/dist/es/standards-agent-kit.es23.js +15 -15
- package/dist/es/standards-agent-kit.es24.js +79 -22
- package/dist/es/standards-agent-kit.es24.js.map +1 -1
- package/dist/es/standards-agent-kit.es25.js +24 -3
- package/dist/es/standards-agent-kit.es25.js.map +1 -1
- package/dist/es/standards-agent-kit.es26.js +3 -81
- package/dist/es/standards-agent-kit.es26.js.map +1 -1
- package/dist/es/standards-agent-kit.es3.js +347 -284
- package/dist/es/standards-agent-kit.es3.js.map +1 -1
- package/dist/es/standards-agent-kit.es4.js +56 -366
- package/dist/es/standards-agent-kit.es4.js.map +1 -1
- package/dist/es/standards-agent-kit.es5.js +142 -58
- package/dist/es/standards-agent-kit.es5.js.map +1 -1
- package/dist/es/standards-agent-kit.es6.js +73 -143
- package/dist/es/standards-agent-kit.es6.js.map +1 -1
- package/dist/es/standards-agent-kit.es7.js +63 -63
- package/dist/es/standards-agent-kit.es7.js.map +1 -1
- package/dist/es/standards-agent-kit.es8.js +91 -77
- package/dist/es/standards-agent-kit.es8.js.map +1 -1
- package/dist/es/standards-agent-kit.es9.js +109 -90
- package/dist/es/standards-agent-kit.es9.js.map +1 -1
- package/dist/es/{src/tools → tools}/AcceptConnectionRequestTool.d.ts +6 -6
- package/dist/{umd/src → es}/tools/CheckMessagesTool.d.ts +6 -6
- package/dist/es/{src/tools → tools}/ConnectionMonitorTool.d.ts +34 -34
- package/dist/{cjs/src → es}/tools/FindRegistrationsTool.d.ts +4 -4
- package/dist/{umd/src → es}/tools/InitiateConnectionTool.d.ts +2 -2
- package/dist/{cjs/src → es}/tools/ListConnectionsTool.d.ts +4 -4
- package/dist/{cjs/src → es}/tools/ListUnapprovedConnectionRequestsTool.d.ts +4 -4
- package/dist/{umd/src → es}/tools/ManageConnectionRequestsTool.d.ts +4 -4
- package/dist/{umd/src → es}/tools/RegisterAgentTool.d.ts +76 -76
- package/dist/{cjs/src → es}/tools/RetrieveProfileTool.d.ts +4 -4
- package/dist/{umd/src → es}/tools/SendMessageToConnectionTool.d.ts +6 -6
- package/dist/{umd/src → es}/tools/SendMessageTool.d.ts +6 -6
- package/dist/umd/init/index.d.ts +1 -0
- package/dist/{es/src → umd/init}/init.d.ts +16 -16
- package/dist/umd/standards-agent-kit.umd.js +15 -14
- package/dist/umd/standards-agent-kit.umd.js.map +1 -1
- package/dist/{cjs/src → umd}/tools/AcceptConnectionRequestTool.d.ts +6 -6
- package/dist/{es/src → umd}/tools/CheckMessagesTool.d.ts +6 -6
- package/dist/{cjs/src → umd}/tools/ConnectionMonitorTool.d.ts +34 -34
- package/dist/{es/src → umd}/tools/FindRegistrationsTool.d.ts +4 -4
- package/dist/{es/src → umd}/tools/InitiateConnectionTool.d.ts +2 -2
- package/dist/{es/src → umd}/tools/ListConnectionsTool.d.ts +4 -4
- package/dist/umd/{src/tools → tools}/ListUnapprovedConnectionRequestsTool.d.ts +4 -4
- package/dist/{cjs/src → umd}/tools/ManageConnectionRequestsTool.d.ts +4 -4
- package/dist/{es/src → umd}/tools/RegisterAgentTool.d.ts +76 -76
- package/dist/umd/{src/tools → tools}/RetrieveProfileTool.d.ts +4 -4
- package/dist/{cjs/src → umd}/tools/SendMessageToConnectionTool.d.ts +6 -6
- package/dist/{es/src → umd}/tools/SendMessageTool.d.ts +6 -6
- package/package.json +2 -2
- package/src/hcs10/HCS10Client.ts +3 -7
- package/src/init/index.ts +1 -0
- package/src/{init.ts → init/init.ts} +22 -20
- package/src/tools/InitiateConnectionTool.ts +13 -13
- package/dist/umd/src/index.d.ts +0 -5
- /package/dist/cjs/{src/agents → agents}/index.d.ts +0 -0
- /package/dist/cjs/{src/hcs10 → hcs10}/HCS10Client.d.ts +0 -0
- /package/dist/cjs/{src/hcs10 → hcs10}/index.d.ts +0 -0
- /package/dist/cjs/{src/hcs10 → hcs10}/types.d.ts +0 -0
- /package/dist/cjs/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/cjs/{src/plugins → plugins}/BasePlugin.d.ts +0 -0
- /package/dist/cjs/{src/plugins → plugins}/GenericPlugin.d.ts +0 -0
- /package/dist/cjs/{src/plugins → plugins}/HCS10Plugin.d.ts +0 -0
- /package/dist/cjs/{src/plugins → plugins}/PluginInterface.d.ts +0 -0
- /package/dist/cjs/{src/plugins → plugins}/PluginLoader.d.ts +0 -0
- /package/dist/cjs/{src/plugins → plugins}/PluginRegistry.d.ts +0 -0
- /package/dist/cjs/{src/plugins → plugins}/defi/index.d.ts +0 -0
- /package/dist/cjs/{src/plugins → plugins}/hedera/HbarPricePlugin.d.ts +0 -0
- /package/dist/cjs/{src/plugins → plugins}/hedera/index.d.ts +0 -0
- /package/dist/cjs/{src/plugins → plugins}/index.d.ts +0 -0
- /package/dist/cjs/{src/plugins → plugins}/openconvai/OpenConvAIPlugin.d.ts +0 -0
- /package/dist/cjs/{src/plugins → plugins}/openconvai/index.d.ts +0 -0
- /package/dist/cjs/{src/plugins → plugins}/weather/index.d.ts +0 -0
- /package/dist/cjs/{src/state → state}/index.d.ts +0 -0
- /package/dist/cjs/{src/state → state}/open-convai-state.d.ts +0 -0
- /package/dist/cjs/{src/state → state}/state-types.d.ts +0 -0
- /package/dist/cjs/{src/tools → tools}/ConnectionTool.d.ts +0 -0
- /package/dist/cjs/{src/tools → tools}/index.d.ts +0 -0
- /package/dist/cjs/{src/utils → utils}/Encryption.d.ts +0 -0
- /package/dist/cjs/{src/utils → utils}/HederaClient.d.ts +0 -0
- /package/dist/cjs/{src/utils → utils}/connectionUtils.d.ts +0 -0
- /package/dist/cjs/{src/utils → utils}/ensure-agent-has-hbar.d.ts +0 -0
- /package/dist/cjs/{src/utils → utils}/state-tools.d.ts +0 -0
- /package/dist/es/{src/agents → agents}/index.d.ts +0 -0
- /package/dist/es/{src/hcs10 → hcs10}/HCS10Client.d.ts +0 -0
- /package/dist/es/{src/hcs10 → hcs10}/index.d.ts +0 -0
- /package/dist/es/{src/hcs10 → hcs10}/types.d.ts +0 -0
- /package/dist/es/{src/plugins → plugins}/BasePlugin.d.ts +0 -0
- /package/dist/es/{src/plugins → plugins}/GenericPlugin.d.ts +0 -0
- /package/dist/es/{src/plugins → plugins}/HCS10Plugin.d.ts +0 -0
- /package/dist/es/{src/plugins → plugins}/PluginInterface.d.ts +0 -0
- /package/dist/es/{src/plugins → plugins}/PluginLoader.d.ts +0 -0
- /package/dist/es/{src/plugins → plugins}/PluginRegistry.d.ts +0 -0
- /package/dist/es/{src/plugins → plugins}/defi/index.d.ts +0 -0
- /package/dist/es/{src/plugins → plugins}/hedera/HbarPricePlugin.d.ts +0 -0
- /package/dist/es/{src/plugins → plugins}/hedera/index.d.ts +0 -0
- /package/dist/es/{src/plugins → plugins}/index.d.ts +0 -0
- /package/dist/es/{src/plugins → plugins}/openconvai/OpenConvAIPlugin.d.ts +0 -0
- /package/dist/es/{src/plugins → plugins}/openconvai/index.d.ts +0 -0
- /package/dist/es/{src/plugins → plugins}/weather/index.d.ts +0 -0
- /package/dist/es/{src/state → state}/index.d.ts +0 -0
- /package/dist/es/{src/state → state}/open-convai-state.d.ts +0 -0
- /package/dist/es/{src/state → state}/state-types.d.ts +0 -0
- /package/dist/es/{src/tools → tools}/ConnectionTool.d.ts +0 -0
- /package/dist/es/{src/tools → tools}/index.d.ts +0 -0
- /package/dist/es/{src/utils → utils}/Encryption.d.ts +0 -0
- /package/dist/es/{src/utils → utils}/HederaClient.d.ts +0 -0
- /package/dist/es/{src/utils → utils}/connectionUtils.d.ts +0 -0
- /package/dist/es/{src/utils → utils}/ensure-agent-has-hbar.d.ts +0 -0
- /package/dist/es/{src/utils → utils}/state-tools.d.ts +0 -0
- /package/dist/umd/{src/agents → agents}/index.d.ts +0 -0
- /package/dist/umd/{src/hcs10 → hcs10}/HCS10Client.d.ts +0 -0
- /package/dist/umd/{src/hcs10 → hcs10}/index.d.ts +0 -0
- /package/dist/umd/{src/hcs10 → hcs10}/types.d.ts +0 -0
- /package/dist/{es/src → umd}/index.d.ts +0 -0
- /package/dist/umd/{src/plugins → plugins}/BasePlugin.d.ts +0 -0
- /package/dist/umd/{src/plugins → plugins}/GenericPlugin.d.ts +0 -0
- /package/dist/umd/{src/plugins → plugins}/HCS10Plugin.d.ts +0 -0
- /package/dist/umd/{src/plugins → plugins}/PluginInterface.d.ts +0 -0
- /package/dist/umd/{src/plugins → plugins}/PluginLoader.d.ts +0 -0
- /package/dist/umd/{src/plugins → plugins}/PluginRegistry.d.ts +0 -0
- /package/dist/umd/{src/plugins → plugins}/defi/index.d.ts +0 -0
- /package/dist/umd/{src/plugins → plugins}/hedera/HbarPricePlugin.d.ts +0 -0
- /package/dist/umd/{src/plugins → plugins}/hedera/index.d.ts +0 -0
- /package/dist/umd/{src/plugins → plugins}/index.d.ts +0 -0
- /package/dist/umd/{src/plugins → plugins}/openconvai/OpenConvAIPlugin.d.ts +0 -0
- /package/dist/umd/{src/plugins → plugins}/openconvai/index.d.ts +0 -0
- /package/dist/umd/{src/plugins → plugins}/weather/index.d.ts +0 -0
- /package/dist/umd/{src/state → state}/index.d.ts +0 -0
- /package/dist/umd/{src/state → state}/open-convai-state.d.ts +0 -0
- /package/dist/umd/{src/state → state}/state-types.d.ts +0 -0
- /package/dist/umd/{src/tools → tools}/ConnectionTool.d.ts +0 -0
- /package/dist/umd/{src/tools → tools}/index.d.ts +0 -0
- /package/dist/umd/{src/utils → utils}/Encryption.d.ts +0 -0
- /package/dist/umd/{src/utils → utils}/HederaClient.d.ts +0 -0
- /package/dist/umd/{src/utils → utils}/connectionUtils.d.ts +0 -0
- /package/dist/umd/{src/utils → utils}/ensure-agent-has-hbar.d.ts +0 -0
- /package/dist/umd/{src/utils → utils}/state-tools.d.ts +0 -0
|
@@ -17,13 +17,13 @@ export declare class AcceptConnectionRequestTool extends StructuredTool {
|
|
|
17
17
|
hbarFee: z.ZodOptional<z.ZodNumber>;
|
|
18
18
|
exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
hbarFee?: number;
|
|
21
|
+
exemptAccountIds?: string[];
|
|
22
|
+
requestKey?: string;
|
|
23
23
|
}, {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
hbarFee?: number;
|
|
25
|
+
exemptAccountIds?: string[];
|
|
26
|
+
requestKey?: string;
|
|
27
27
|
}>;
|
|
28
28
|
private hcsClient;
|
|
29
29
|
private stateManager;
|
|
@@ -18,13 +18,13 @@ export declare class CheckMessagesTool extends StructuredTool {
|
|
|
18
18
|
fetchLatest: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
19
19
|
lastMessagesCount: z.ZodOptional<z.ZodNumber>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
targetIdentifier
|
|
22
|
-
fetchLatest
|
|
23
|
-
lastMessagesCount?: number
|
|
21
|
+
targetIdentifier?: string;
|
|
22
|
+
fetchLatest?: boolean;
|
|
23
|
+
lastMessagesCount?: number;
|
|
24
24
|
}, {
|
|
25
|
-
targetIdentifier
|
|
26
|
-
fetchLatest?: boolean
|
|
27
|
-
lastMessagesCount?: number
|
|
25
|
+
targetIdentifier?: string;
|
|
26
|
+
fetchLatest?: boolean;
|
|
27
|
+
lastMessagesCount?: number;
|
|
28
28
|
}>;
|
|
29
29
|
hcsClient: HCS10Client;
|
|
30
30
|
private stateManager;
|
|
@@ -26,58 +26,58 @@ export declare class ConnectionMonitorTool extends StructuredTool {
|
|
|
26
26
|
amount: z.ZodNumber;
|
|
27
27
|
collectorAccount: z.ZodOptional<z.ZodString>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
amount
|
|
30
|
-
collectorAccount?: string
|
|
29
|
+
amount?: number;
|
|
30
|
+
collectorAccount?: string;
|
|
31
31
|
}, {
|
|
32
|
-
amount
|
|
33
|
-
collectorAccount?: string
|
|
32
|
+
amount?: number;
|
|
33
|
+
collectorAccount?: string;
|
|
34
34
|
}>, "many">>;
|
|
35
35
|
tokenFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36
36
|
amount: z.ZodNumber;
|
|
37
37
|
tokenId: z.ZodString;
|
|
38
38
|
collectorAccount: z.ZodOptional<z.ZodString>;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
amount
|
|
41
|
-
tokenId
|
|
42
|
-
collectorAccount?: string
|
|
40
|
+
amount?: number;
|
|
41
|
+
tokenId?: string;
|
|
42
|
+
collectorAccount?: string;
|
|
43
43
|
}, {
|
|
44
|
-
amount
|
|
45
|
-
tokenId
|
|
46
|
-
collectorAccount?: string
|
|
44
|
+
amount?: number;
|
|
45
|
+
tokenId?: string;
|
|
46
|
+
collectorAccount?: string;
|
|
47
47
|
}>, "many">>;
|
|
48
48
|
exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
49
49
|
monitorDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
50
50
|
defaultCollectorAccount: z.ZodOptional<z.ZodString>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
52
|
hbarFees?: {
|
|
53
|
-
amount
|
|
54
|
-
collectorAccount?: string
|
|
55
|
-
}[]
|
|
53
|
+
amount?: number;
|
|
54
|
+
collectorAccount?: string;
|
|
55
|
+
}[];
|
|
56
56
|
tokenFees?: {
|
|
57
|
-
amount
|
|
58
|
-
tokenId
|
|
59
|
-
collectorAccount?: string
|
|
60
|
-
}[]
|
|
61
|
-
exemptAccountIds?: string[]
|
|
62
|
-
targetAccountId?: string
|
|
63
|
-
acceptAll?: boolean
|
|
64
|
-
monitorDurationSeconds?: number
|
|
65
|
-
defaultCollectorAccount?: string
|
|
57
|
+
amount?: number;
|
|
58
|
+
tokenId?: string;
|
|
59
|
+
collectorAccount?: string;
|
|
60
|
+
}[];
|
|
61
|
+
exemptAccountIds?: string[];
|
|
62
|
+
targetAccountId?: string;
|
|
63
|
+
acceptAll?: boolean;
|
|
64
|
+
monitorDurationSeconds?: number;
|
|
65
|
+
defaultCollectorAccount?: string;
|
|
66
66
|
}, {
|
|
67
67
|
hbarFees?: {
|
|
68
|
-
amount
|
|
69
|
-
collectorAccount?: string
|
|
70
|
-
}[]
|
|
68
|
+
amount?: number;
|
|
69
|
+
collectorAccount?: string;
|
|
70
|
+
}[];
|
|
71
71
|
tokenFees?: {
|
|
72
|
-
amount
|
|
73
|
-
tokenId
|
|
74
|
-
collectorAccount?: string
|
|
75
|
-
}[]
|
|
76
|
-
exemptAccountIds?: string[]
|
|
77
|
-
targetAccountId?: string
|
|
78
|
-
acceptAll?: boolean
|
|
79
|
-
monitorDurationSeconds?: number
|
|
80
|
-
defaultCollectorAccount?: string
|
|
72
|
+
amount?: number;
|
|
73
|
+
tokenId?: string;
|
|
74
|
+
collectorAccount?: string;
|
|
75
|
+
}[];
|
|
76
|
+
exemptAccountIds?: string[];
|
|
77
|
+
targetAccountId?: string;
|
|
78
|
+
acceptAll?: boolean;
|
|
79
|
+
monitorDurationSeconds?: number;
|
|
80
|
+
defaultCollectorAccount?: string;
|
|
81
81
|
}>;
|
|
82
82
|
private hcsClient;
|
|
83
83
|
private stateManager;
|
|
@@ -15,11 +15,11 @@ export declare class FindRegistrationsTool extends StructuredTool {
|
|
|
15
15
|
accountId: z.ZodOptional<z.ZodString>;
|
|
16
16
|
tags: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof AIAgentCapability>, "many">>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
accountId?: string
|
|
19
|
-
tags?: AIAgentCapability[]
|
|
18
|
+
accountId?: string;
|
|
19
|
+
tags?: AIAgentCapability[];
|
|
20
20
|
}, {
|
|
21
|
-
accountId?: string
|
|
22
|
-
tags?: AIAgentCapability[]
|
|
21
|
+
accountId?: string;
|
|
22
|
+
tags?: AIAgentCapability[];
|
|
23
23
|
}>;
|
|
24
24
|
private hcsClient;
|
|
25
25
|
private logger;
|
|
@@ -18,9 +18,9 @@ export declare class InitiateConnectionTool extends StructuredTool {
|
|
|
18
18
|
schema: z.ZodObject<{
|
|
19
19
|
targetAccountId: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
targetAccountId
|
|
21
|
+
targetAccountId?: string;
|
|
22
22
|
}, {
|
|
23
|
-
targetAccountId
|
|
23
|
+
targetAccountId?: string;
|
|
24
24
|
}>;
|
|
25
25
|
private hcsClient;
|
|
26
26
|
private stateManager;
|
|
@@ -17,11 +17,11 @@ export declare class ListConnectionsTool extends StructuredTool {
|
|
|
17
17
|
includeDetails: z.ZodOptional<z.ZodBoolean>;
|
|
18
18
|
showPending: z.ZodOptional<z.ZodBoolean>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
includeDetails?: boolean
|
|
21
|
-
showPending?: boolean
|
|
20
|
+
includeDetails?: boolean;
|
|
21
|
+
showPending?: boolean;
|
|
22
22
|
}, {
|
|
23
|
-
includeDetails?: boolean
|
|
24
|
-
showPending?: boolean
|
|
23
|
+
includeDetails?: boolean;
|
|
24
|
+
showPending?: boolean;
|
|
25
25
|
}>;
|
|
26
26
|
private stateManager;
|
|
27
27
|
private hcsClient?;
|
|
@@ -13,11 +13,11 @@ export declare class ListUnapprovedConnectionRequestsTool extends StructuredTool
|
|
|
13
13
|
sortBy: z.ZodOptional<z.ZodEnum<["time_asc", "time_desc", "name_asc", "name_desc"]>>;
|
|
14
14
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
sortBy?: "time_asc" | "time_desc" | "name_asc" | "name_desc"
|
|
17
|
-
limit?: number
|
|
16
|
+
sortBy?: "time_asc" | "time_desc" | "name_asc" | "name_desc";
|
|
17
|
+
limit?: number;
|
|
18
18
|
}, {
|
|
19
|
-
sortBy?: "time_asc" | "time_desc" | "name_asc" | "name_desc"
|
|
20
|
-
limit?: number
|
|
19
|
+
sortBy?: "time_asc" | "time_desc" | "name_asc" | "name_desc";
|
|
20
|
+
limit?: number;
|
|
21
21
|
}>;
|
|
22
22
|
private hcsClient;
|
|
23
23
|
private stateManager;
|
|
@@ -17,11 +17,11 @@ export declare class ManageConnectionRequestsTool extends StructuredTool {
|
|
|
17
17
|
action: z.ZodEnum<["list", "view", "reject"]>;
|
|
18
18
|
requestKey: z.ZodOptional<z.ZodString>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
action
|
|
21
|
-
requestKey?: string
|
|
20
|
+
action?: "list" | "view" | "reject";
|
|
21
|
+
requestKey?: string;
|
|
22
22
|
}, {
|
|
23
|
-
action
|
|
24
|
-
requestKey?: string
|
|
23
|
+
action?: "list" | "view" | "reject";
|
|
24
|
+
requestKey?: string;
|
|
25
25
|
}>;
|
|
26
26
|
private hcsClient;
|
|
27
27
|
private stateManager;
|
|
@@ -22,20 +22,20 @@ export declare class RegisterAgentTool extends StructuredTool {
|
|
|
22
22
|
url: z.ZodString;
|
|
23
23
|
filename: z.ZodString;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
url
|
|
26
|
-
filename
|
|
25
|
+
url?: string;
|
|
26
|
+
filename?: string;
|
|
27
27
|
}, {
|
|
28
|
-
url
|
|
29
|
-
filename
|
|
28
|
+
url?: string;
|
|
29
|
+
filename?: string;
|
|
30
30
|
}>, z.ZodObject<{
|
|
31
31
|
path: z.ZodString;
|
|
32
32
|
filename: z.ZodOptional<z.ZodString>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
path
|
|
35
|
-
filename?: string
|
|
34
|
+
path?: string;
|
|
35
|
+
filename?: string;
|
|
36
36
|
}, {
|
|
37
|
-
path
|
|
38
|
-
filename?: string
|
|
37
|
+
path?: string;
|
|
38
|
+
filename?: string;
|
|
39
39
|
}>]>>;
|
|
40
40
|
feeCollectorAccountId: z.ZodOptional<z.ZodString>;
|
|
41
41
|
hbarFee: z.ZodOptional<z.ZodNumber>;
|
|
@@ -43,110 +43,110 @@ export declare class RegisterAgentTool extends StructuredTool {
|
|
|
43
43
|
amount: z.ZodNumber;
|
|
44
44
|
tokenId: z.ZodString;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
amount
|
|
47
|
-
tokenId
|
|
46
|
+
amount?: number;
|
|
47
|
+
tokenId?: string;
|
|
48
48
|
}, {
|
|
49
|
-
amount
|
|
50
|
-
tokenId
|
|
49
|
+
amount?: number;
|
|
50
|
+
tokenId?: string;
|
|
51
51
|
}>>;
|
|
52
52
|
hbarFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
53
|
amount: z.ZodNumber;
|
|
54
54
|
collectorAccount: z.ZodOptional<z.ZodString>;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
|
-
amount
|
|
57
|
-
collectorAccount?: string
|
|
56
|
+
amount?: number;
|
|
57
|
+
collectorAccount?: string;
|
|
58
58
|
}, {
|
|
59
|
-
amount
|
|
60
|
-
collectorAccount?: string
|
|
59
|
+
amount?: number;
|
|
60
|
+
collectorAccount?: string;
|
|
61
61
|
}>, "many">>;
|
|
62
62
|
tokenFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
63
63
|
amount: z.ZodNumber;
|
|
64
64
|
tokenId: z.ZodString;
|
|
65
65
|
collectorAccount: z.ZodOptional<z.ZodString>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
amount
|
|
68
|
-
tokenId
|
|
69
|
-
collectorAccount?: string
|
|
67
|
+
amount?: number;
|
|
68
|
+
tokenId?: string;
|
|
69
|
+
collectorAccount?: string;
|
|
70
70
|
}, {
|
|
71
|
-
amount
|
|
72
|
-
tokenId
|
|
73
|
-
collectorAccount?: string
|
|
71
|
+
amount?: number;
|
|
72
|
+
tokenId?: string;
|
|
73
|
+
collectorAccount?: string;
|
|
74
74
|
}>, "many">>;
|
|
75
75
|
exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
76
76
|
setAsCurrent: z.ZodOptional<z.ZodBoolean>;
|
|
77
77
|
persistence: z.ZodOptional<z.ZodObject<{
|
|
78
78
|
prefix: z.ZodOptional<z.ZodString>;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
prefix?: string
|
|
80
|
+
prefix?: string;
|
|
81
81
|
}, {
|
|
82
|
-
prefix?: string
|
|
82
|
+
prefix?: string;
|
|
83
83
|
}>>;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
description?: string
|
|
89
|
-
model?: string
|
|
85
|
+
capabilities?: number[];
|
|
86
|
+
type?: "autonomous" | "manual";
|
|
87
|
+
name?: string;
|
|
88
|
+
description?: string;
|
|
89
|
+
model?: string;
|
|
90
90
|
profilePicture?: string | {
|
|
91
|
-
url
|
|
92
|
-
filename
|
|
91
|
+
url?: string;
|
|
92
|
+
filename?: string;
|
|
93
93
|
} | {
|
|
94
|
-
path
|
|
95
|
-
filename?: string
|
|
96
|
-
}
|
|
97
|
-
feeCollectorAccountId?: string
|
|
98
|
-
hbarFee?: number
|
|
94
|
+
path?: string;
|
|
95
|
+
filename?: string;
|
|
96
|
+
};
|
|
97
|
+
feeCollectorAccountId?: string;
|
|
98
|
+
hbarFee?: number;
|
|
99
99
|
tokenFee?: {
|
|
100
|
-
amount
|
|
101
|
-
tokenId
|
|
102
|
-
}
|
|
100
|
+
amount?: number;
|
|
101
|
+
tokenId?: string;
|
|
102
|
+
};
|
|
103
103
|
hbarFees?: {
|
|
104
|
-
amount
|
|
105
|
-
collectorAccount?: string
|
|
106
|
-
}[]
|
|
104
|
+
amount?: number;
|
|
105
|
+
collectorAccount?: string;
|
|
106
|
+
}[];
|
|
107
107
|
tokenFees?: {
|
|
108
|
-
amount
|
|
109
|
-
tokenId
|
|
110
|
-
collectorAccount?: string
|
|
111
|
-
}[]
|
|
112
|
-
exemptAccountIds?: string[]
|
|
113
|
-
setAsCurrent?: boolean
|
|
108
|
+
amount?: number;
|
|
109
|
+
tokenId?: string;
|
|
110
|
+
collectorAccount?: string;
|
|
111
|
+
}[];
|
|
112
|
+
exemptAccountIds?: string[];
|
|
113
|
+
setAsCurrent?: boolean;
|
|
114
114
|
persistence?: {
|
|
115
|
-
prefix?: string
|
|
116
|
-
}
|
|
115
|
+
prefix?: string;
|
|
116
|
+
};
|
|
117
117
|
}, {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
description?: string
|
|
122
|
-
model?: string
|
|
118
|
+
capabilities?: number[];
|
|
119
|
+
type?: "autonomous" | "manual";
|
|
120
|
+
name?: string;
|
|
121
|
+
description?: string;
|
|
122
|
+
model?: string;
|
|
123
123
|
profilePicture?: string | {
|
|
124
|
-
url
|
|
125
|
-
filename
|
|
124
|
+
url?: string;
|
|
125
|
+
filename?: string;
|
|
126
126
|
} | {
|
|
127
|
-
path
|
|
128
|
-
filename?: string
|
|
129
|
-
}
|
|
130
|
-
feeCollectorAccountId?: string
|
|
131
|
-
hbarFee?: number
|
|
127
|
+
path?: string;
|
|
128
|
+
filename?: string;
|
|
129
|
+
};
|
|
130
|
+
feeCollectorAccountId?: string;
|
|
131
|
+
hbarFee?: number;
|
|
132
132
|
tokenFee?: {
|
|
133
|
-
amount
|
|
134
|
-
tokenId
|
|
135
|
-
}
|
|
133
|
+
amount?: number;
|
|
134
|
+
tokenId?: string;
|
|
135
|
+
};
|
|
136
136
|
hbarFees?: {
|
|
137
|
-
amount
|
|
138
|
-
collectorAccount?: string
|
|
139
|
-
}[]
|
|
137
|
+
amount?: number;
|
|
138
|
+
collectorAccount?: string;
|
|
139
|
+
}[];
|
|
140
140
|
tokenFees?: {
|
|
141
|
-
amount
|
|
142
|
-
tokenId
|
|
143
|
-
collectorAccount?: string
|
|
144
|
-
}[]
|
|
145
|
-
exemptAccountIds?: string[]
|
|
146
|
-
setAsCurrent?: boolean
|
|
141
|
+
amount?: number;
|
|
142
|
+
tokenId?: string;
|
|
143
|
+
collectorAccount?: string;
|
|
144
|
+
}[];
|
|
145
|
+
exemptAccountIds?: string[];
|
|
146
|
+
setAsCurrent?: boolean;
|
|
147
147
|
persistence?: {
|
|
148
|
-
prefix?: string
|
|
149
|
-
}
|
|
148
|
+
prefix?: string;
|
|
149
|
+
};
|
|
150
150
|
}>;
|
|
151
151
|
/**
|
|
152
152
|
* Creates a new RegisterAgentTool instance
|
|
@@ -14,11 +14,11 @@ export declare class RetrieveProfileTool extends StructuredTool {
|
|
|
14
14
|
accountId: z.ZodOptional<z.ZodString>;
|
|
15
15
|
disableCache: z.ZodOptional<z.ZodBoolean>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
accountId?: string
|
|
18
|
-
disableCache?: boolean
|
|
17
|
+
accountId?: string;
|
|
18
|
+
disableCache?: boolean;
|
|
19
19
|
}, {
|
|
20
|
-
accountId?: string
|
|
21
|
-
disableCache?: boolean
|
|
20
|
+
accountId?: string;
|
|
21
|
+
disableCache?: boolean;
|
|
22
22
|
}>;
|
|
23
23
|
/**
|
|
24
24
|
* Creates a new RetrieveProfileTool instance.
|
|
@@ -17,13 +17,13 @@ export declare class SendMessageToConnectionTool extends StructuredTool {
|
|
|
17
17
|
message: z.ZodString;
|
|
18
18
|
disableMonitoring: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
message
|
|
21
|
-
disableMonitoring
|
|
22
|
-
targetIdentifier
|
|
20
|
+
message?: string;
|
|
21
|
+
disableMonitoring?: boolean;
|
|
22
|
+
targetIdentifier?: string;
|
|
23
23
|
}, {
|
|
24
|
-
message
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
message?: string;
|
|
25
|
+
disableMonitoring?: boolean;
|
|
26
|
+
targetIdentifier?: string;
|
|
27
27
|
}>;
|
|
28
28
|
private hcsClient;
|
|
29
29
|
private stateManager;
|
|
@@ -16,13 +16,13 @@ export declare class SendMessageTool extends StructuredTool {
|
|
|
16
16
|
message: z.ZodString;
|
|
17
17
|
disableMonitoring: z.ZodOptional<z.ZodBoolean>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
message
|
|
20
|
-
topicId
|
|
21
|
-
disableMonitoring?: boolean
|
|
19
|
+
message?: string;
|
|
20
|
+
topicId?: string;
|
|
21
|
+
disableMonitoring?: boolean;
|
|
22
22
|
}, {
|
|
23
|
-
message
|
|
24
|
-
topicId
|
|
25
|
-
disableMonitoring?: boolean
|
|
23
|
+
message?: string;
|
|
24
|
+
topicId?: string;
|
|
25
|
+
disableMonitoring?: boolean;
|
|
26
26
|
}>;
|
|
27
27
|
/**
|
|
28
28
|
* @param client - Instance of HCS10Client.
|
package/dist/es/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './init';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { HCS10Client, StandardNetworkType } from '
|
|
2
|
-
import { RegisterAgentTool } from '
|
|
3
|
-
import { SendMessageTool } from '
|
|
4
|
-
import { ConnectionTool } from '
|
|
5
|
-
import { IStateManager } from '
|
|
6
|
-
import { FindRegistrationsTool } from '
|
|
7
|
-
import { InitiateConnectionTool } from '
|
|
8
|
-
import { ListConnectionsTool } from '
|
|
9
|
-
import { SendMessageToConnectionTool } from '
|
|
10
|
-
import { CheckMessagesTool } from '
|
|
11
|
-
import { ConnectionMonitorTool } from '
|
|
12
|
-
import { ManageConnectionRequestsTool } from '
|
|
13
|
-
import { AcceptConnectionRequestTool } from '
|
|
14
|
-
import { RetrieveProfileTool } from '
|
|
15
|
-
import { ListUnapprovedConnectionRequestsTool } from '
|
|
1
|
+
import { HCS10Client, StandardNetworkType } from '../hcs10/HCS10Client';
|
|
2
|
+
import { RegisterAgentTool } from '../tools/RegisterAgentTool';
|
|
3
|
+
import { SendMessageTool } from '../tools/SendMessageTool';
|
|
4
|
+
import { ConnectionTool } from '../tools/ConnectionTool';
|
|
5
|
+
import { IStateManager } from '../state/state-types';
|
|
6
|
+
import { FindRegistrationsTool } from '../tools/FindRegistrationsTool';
|
|
7
|
+
import { InitiateConnectionTool } from '../tools/InitiateConnectionTool';
|
|
8
|
+
import { ListConnectionsTool } from '../tools/ListConnectionsTool';
|
|
9
|
+
import { SendMessageToConnectionTool } from '../tools/SendMessageToConnectionTool';
|
|
10
|
+
import { CheckMessagesTool } from '../tools/CheckMessagesTool';
|
|
11
|
+
import { ConnectionMonitorTool } from '../tools/ConnectionMonitorTool';
|
|
12
|
+
import { ManageConnectionRequestsTool } from '../tools/ManageConnectionRequestsTool';
|
|
13
|
+
import { AcceptConnectionRequestTool } from '../tools/AcceptConnectionRequestTool';
|
|
14
|
+
import { RetrieveProfileTool } from '../tools/RetrieveProfileTool';
|
|
15
|
+
import { ListUnapprovedConnectionRequestsTool } from '../tools/ListUnapprovedConnectionRequestsTool';
|
|
16
16
|
export interface HCS10ClientConfig {
|
|
17
17
|
operatorId?: string;
|
|
18
18
|
operatorKey?: string;
|
|
@@ -51,7 +51,7 @@ export interface HCS10Tools {
|
|
|
51
51
|
* @param options - Initialization options
|
|
52
52
|
* @returns Object containing hcs10Client and requested tools
|
|
53
53
|
*/
|
|
54
|
-
export declare
|
|
54
|
+
export declare const initializeStandardsAgentKit: (options?: HCS10InitializationOptions) => {
|
|
55
55
|
hcs10Client: HCS10Client;
|
|
56
56
|
monitoringClient?: HCS10Client;
|
|
57
57
|
tools: Partial<HCS10Tools>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
1
|
+
import { HCS10Client } from "./standards-agent-kit.es2.js";
|
|
2
|
+
import { RegisterAgentTool } from "./standards-agent-kit.es3.js";
|
|
3
|
+
import { SendMessageTool } from "./standards-agent-kit.es4.js";
|
|
4
|
+
import { ConnectionTool } from "./standards-agent-kit.es5.js";
|
|
5
|
+
import { SendMessageToConnectionTool } from "./standards-agent-kit.es6.js";
|
|
6
|
+
import { InitiateConnectionTool } from "./standards-agent-kit.es7.js";
|
|
7
|
+
import { ListConnectionsTool } from "./standards-agent-kit.es8.js";
|
|
8
|
+
import { CheckMessagesTool } from "./standards-agent-kit.es9.js";
|
|
9
|
+
import { FindRegistrationsTool } from "./standards-agent-kit.es10.js";
|
|
10
|
+
import { ConnectionMonitorTool } from "./standards-agent-kit.es11.js";
|
|
11
|
+
import { ManageConnectionRequestsTool } from "./standards-agent-kit.es12.js";
|
|
12
|
+
import { AcceptConnectionRequestTool } from "./standards-agent-kit.es13.js";
|
|
13
|
+
import { RetrieveProfileTool } from "./standards-agent-kit.es14.js";
|
|
14
|
+
import { ListUnapprovedConnectionRequestsTool } from "./standards-agent-kit.es15.js";
|
|
15
|
+
import { OpenConvaiState } from "./standards-agent-kit.es16.js";
|
|
16
|
+
import { initializeStandardsAgentKit } from "./standards-agent-kit.es17.js";
|
|
17
17
|
import { PluginRegistry } from "./standards-agent-kit.es18.js";
|
|
18
18
|
import { BasePlugin } from "./standards-agent-kit.es19.js";
|
|
19
19
|
import { PluginLoader } from "./standards-agent-kit.es20.js";
|
|
@@ -43,6 +43,6 @@ export {
|
|
|
43
43
|
RetrieveProfileTool,
|
|
44
44
|
SendMessageToConnectionTool,
|
|
45
45
|
SendMessageTool,
|
|
46
|
-
|
|
46
|
+
initializeStandardsAgentKit
|
|
47
47
|
};
|
|
48
48
|
//# sourceMappingURL=standards-agent-kit.es.js.map
|