@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
|
@@ -86,7 +86,7 @@ export interface IStateManager {
|
|
|
86
86
|
/**
|
|
87
87
|
* Sets the current active agent, clearing any previous connections.
|
|
88
88
|
*/
|
|
89
|
-
setCurrentAgent(
|
|
89
|
+
setCurrentAgent(_agent: RegisteredAgent | null): void;
|
|
90
90
|
/**
|
|
91
91
|
* Gets the current active agent.
|
|
92
92
|
*/
|
|
@@ -95,12 +95,12 @@ export interface IStateManager {
|
|
|
95
95
|
* Adds a new active connection to the state.
|
|
96
96
|
* Will not add duplicates based on connectionTopicId.
|
|
97
97
|
*/
|
|
98
|
-
addActiveConnection(
|
|
98
|
+
addActiveConnection(_connection: ActiveConnection): void;
|
|
99
99
|
/**
|
|
100
100
|
* Updates an existing connection or adds it if not found.
|
|
101
101
|
* Preserves existing properties when updating.
|
|
102
102
|
*/
|
|
103
|
-
updateOrAddConnection(
|
|
103
|
+
updateOrAddConnection(_connection: ActiveConnection): void;
|
|
104
104
|
/**
|
|
105
105
|
* Lists all active connections for the current agent.
|
|
106
106
|
*/
|
|
@@ -111,26 +111,26 @@ export interface IStateManager {
|
|
|
111
111
|
* - A target account ID
|
|
112
112
|
* - A connection topic ID
|
|
113
113
|
*/
|
|
114
|
-
getConnectionByIdentifier(
|
|
114
|
+
getConnectionByIdentifier(_identifier: string): ActiveConnection | undefined;
|
|
115
115
|
/**
|
|
116
116
|
* Gets the last processed message timestamp for a connection.
|
|
117
117
|
*/
|
|
118
|
-
getLastTimestamp(
|
|
118
|
+
getLastTimestamp(_connectionTopicId: string): number;
|
|
119
119
|
/**
|
|
120
120
|
* Updates the last processed message timestamp for a connection.
|
|
121
121
|
*/
|
|
122
|
-
updateTimestamp(
|
|
122
|
+
updateTimestamp(_connectionTopicId: string, _timestampNanos: number): void;
|
|
123
123
|
/**
|
|
124
124
|
* Persists agent data to storage
|
|
125
125
|
* Implementation may vary depending on the state manager
|
|
126
126
|
*/
|
|
127
|
-
persistAgentData?(
|
|
127
|
+
persistAgentData?(_agent: RegisteredAgent, _options?: AgentPersistenceOptions): Promise<void>;
|
|
128
128
|
/**
|
|
129
129
|
* Initializes the ConnectionsManager with the provided client
|
|
130
130
|
* @param baseClient - The HCS10BaseClient instance to use
|
|
131
131
|
* @returns The initialized ConnectionsManager
|
|
132
132
|
*/
|
|
133
|
-
initializeConnectionsManager(
|
|
133
|
+
initializeConnectionsManager(_baseClient: HCS10BaseClient): IConnectionsManager;
|
|
134
134
|
/**
|
|
135
135
|
* Gets the ConnectionsManager instance
|
|
136
136
|
* @returns The ConnectionsManager instance or null if not initialized
|
|
@@ -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 AcceptConnectionRequestZodSchema: z.ZodObject<{
|
|
6
|
+
requestKey: z.ZodString;
|
|
7
|
+
hbarFee: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
requestKey: string;
|
|
11
|
+
exemptAccountIds?: string[] | undefined;
|
|
12
|
+
hbarFee?: number | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
requestKey: string;
|
|
15
|
+
exemptAccountIds?: string[] | undefined;
|
|
16
|
+
hbarFee?: number | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Tool for accepting incoming HCS-10 connection requests
|
|
20
|
+
*/
|
|
21
|
+
export declare class AcceptConnectionRequestTool extends BaseHCS10TransactionTool<typeof AcceptConnectionRequestZodSchema> {
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
specificInputSchema: z.ZodObject<{
|
|
25
|
+
requestKey: z.ZodString;
|
|
26
|
+
hbarFee: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
requestKey: string;
|
|
30
|
+
exemptAccountIds?: string[] | undefined;
|
|
31
|
+
hbarFee?: number | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
requestKey: string;
|
|
34
|
+
exemptAccountIds?: string[] | undefined;
|
|
35
|
+
hbarFee?: number | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
constructor(params: HCS10TransactionToolParams);
|
|
38
|
+
protected callBuilderMethod(builder: BaseServiceBuilder, specificArgs: z.infer<typeof AcceptConnectionRequestZodSchema>): Promise<void>;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BaseHCS10QueryTool } from './base-hcs10-tools';
|
|
3
|
+
import { HCS10QueryToolParams } from './hcs10-tool-params';
|
|
4
|
+
/**
|
|
5
|
+
* A tool to check for new messages on an active HCS-10 connection topic,
|
|
6
|
+
* or optionally fetch the latest messages regardless of timestamp.
|
|
7
|
+
*/
|
|
8
|
+
declare const CheckMessagesZodSchema: z.ZodObject<{
|
|
9
|
+
targetIdentifier: z.ZodString;
|
|
10
|
+
fetchLatest: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11
|
+
lastMessagesCount: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
targetIdentifier: string;
|
|
14
|
+
fetchLatest: boolean;
|
|
15
|
+
lastMessagesCount?: number | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
targetIdentifier: string;
|
|
18
|
+
fetchLatest?: boolean | undefined;
|
|
19
|
+
lastMessagesCount?: number | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export declare class CheckMessagesTool extends BaseHCS10QueryTool<typeof CheckMessagesZodSchema> {
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
specificInputSchema: z.ZodObject<{
|
|
25
|
+
targetIdentifier: z.ZodString;
|
|
26
|
+
fetchLatest: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
27
|
+
lastMessagesCount: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
targetIdentifier: string;
|
|
30
|
+
fetchLatest: boolean;
|
|
31
|
+
lastMessagesCount?: number | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
targetIdentifier: string;
|
|
34
|
+
fetchLatest?: boolean | undefined;
|
|
35
|
+
lastMessagesCount?: number | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
constructor(params: HCS10QueryToolParams);
|
|
38
|
+
protected executeQuery({ targetIdentifier, fetchLatest, lastMessagesCount, }: z.infer<typeof CheckMessagesZodSchema>): Promise<unknown>;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,134 @@
|
|
|
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 ConnectionMonitorZodSchema: z.ZodObject<{
|
|
6
|
+
acceptAll: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
targetAccountId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
hbarFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
|
+
amount: z.ZodNumber;
|
|
10
|
+
collectorAccount: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
amount: number;
|
|
13
|
+
collectorAccount?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
amount: number;
|
|
16
|
+
collectorAccount?: string | undefined;
|
|
17
|
+
}>, "many">>;
|
|
18
|
+
tokenFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
19
|
+
amount: z.ZodNumber;
|
|
20
|
+
tokenId: z.ZodString;
|
|
21
|
+
collectorAccount: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
amount: number;
|
|
24
|
+
tokenId: string;
|
|
25
|
+
collectorAccount?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
amount: number;
|
|
28
|
+
tokenId: string;
|
|
29
|
+
collectorAccount?: string | undefined;
|
|
30
|
+
}>, "many">>;
|
|
31
|
+
exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
32
|
+
monitorDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
defaultCollectorAccount: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
acceptAll?: boolean | undefined;
|
|
36
|
+
targetAccountId?: string | undefined;
|
|
37
|
+
monitorDurationSeconds?: number | undefined;
|
|
38
|
+
hbarFees?: {
|
|
39
|
+
amount: number;
|
|
40
|
+
collectorAccount?: string | undefined;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
tokenFees?: {
|
|
43
|
+
amount: number;
|
|
44
|
+
tokenId: string;
|
|
45
|
+
collectorAccount?: string | undefined;
|
|
46
|
+
}[] | undefined;
|
|
47
|
+
exemptAccountIds?: string[] | undefined;
|
|
48
|
+
defaultCollectorAccount?: string | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
acceptAll?: boolean | undefined;
|
|
51
|
+
targetAccountId?: string | undefined;
|
|
52
|
+
monitorDurationSeconds?: number | undefined;
|
|
53
|
+
hbarFees?: {
|
|
54
|
+
amount: number;
|
|
55
|
+
collectorAccount?: string | undefined;
|
|
56
|
+
}[] | undefined;
|
|
57
|
+
tokenFees?: {
|
|
58
|
+
amount: number;
|
|
59
|
+
tokenId: string;
|
|
60
|
+
collectorAccount?: string | undefined;
|
|
61
|
+
}[] | undefined;
|
|
62
|
+
exemptAccountIds?: string[] | undefined;
|
|
63
|
+
defaultCollectorAccount?: string | undefined;
|
|
64
|
+
}>;
|
|
65
|
+
/**
|
|
66
|
+
* A tool for monitoring incoming connection requests and accepting them with optional fee settings.
|
|
67
|
+
*/
|
|
68
|
+
export declare class ConnectionMonitorTool extends BaseHCS10TransactionTool<typeof ConnectionMonitorZodSchema> {
|
|
69
|
+
name: string;
|
|
70
|
+
description: string;
|
|
71
|
+
specificInputSchema: z.ZodObject<{
|
|
72
|
+
acceptAll: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
targetAccountId: z.ZodOptional<z.ZodString>;
|
|
74
|
+
hbarFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
75
|
+
amount: z.ZodNumber;
|
|
76
|
+
collectorAccount: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
amount: number;
|
|
79
|
+
collectorAccount?: string | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
amount: number;
|
|
82
|
+
collectorAccount?: string | undefined;
|
|
83
|
+
}>, "many">>;
|
|
84
|
+
tokenFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
85
|
+
amount: z.ZodNumber;
|
|
86
|
+
tokenId: z.ZodString;
|
|
87
|
+
collectorAccount: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
amount: number;
|
|
90
|
+
tokenId: string;
|
|
91
|
+
collectorAccount?: string | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
amount: number;
|
|
94
|
+
tokenId: string;
|
|
95
|
+
collectorAccount?: string | undefined;
|
|
96
|
+
}>, "many">>;
|
|
97
|
+
exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
98
|
+
monitorDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
defaultCollectorAccount: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
acceptAll?: boolean | undefined;
|
|
102
|
+
targetAccountId?: string | undefined;
|
|
103
|
+
monitorDurationSeconds?: number | undefined;
|
|
104
|
+
hbarFees?: {
|
|
105
|
+
amount: number;
|
|
106
|
+
collectorAccount?: string | undefined;
|
|
107
|
+
}[] | undefined;
|
|
108
|
+
tokenFees?: {
|
|
109
|
+
amount: number;
|
|
110
|
+
tokenId: string;
|
|
111
|
+
collectorAccount?: string | undefined;
|
|
112
|
+
}[] | undefined;
|
|
113
|
+
exemptAccountIds?: string[] | undefined;
|
|
114
|
+
defaultCollectorAccount?: string | undefined;
|
|
115
|
+
}, {
|
|
116
|
+
acceptAll?: boolean | undefined;
|
|
117
|
+
targetAccountId?: string | undefined;
|
|
118
|
+
monitorDurationSeconds?: number | undefined;
|
|
119
|
+
hbarFees?: {
|
|
120
|
+
amount: number;
|
|
121
|
+
collectorAccount?: string | undefined;
|
|
122
|
+
}[] | undefined;
|
|
123
|
+
tokenFees?: {
|
|
124
|
+
amount: number;
|
|
125
|
+
tokenId: string;
|
|
126
|
+
collectorAccount?: string | undefined;
|
|
127
|
+
}[] | undefined;
|
|
128
|
+
exemptAccountIds?: string[] | undefined;
|
|
129
|
+
defaultCollectorAccount?: string | undefined;
|
|
130
|
+
}>;
|
|
131
|
+
constructor(params: HCS10TransactionToolParams);
|
|
132
|
+
protected callBuilderMethod(builder: BaseServiceBuilder, specificArgs: z.infer<typeof ConnectionMonitorZodSchema>): Promise<void>;
|
|
133
|
+
}
|
|
134
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AIAgentCapability } from '@hashgraphonline/standards-sdk';
|
|
3
|
+
import { BaseHCS10QueryTool } from './base-hcs10-tools';
|
|
4
|
+
import { HCS10QueryToolParams } from './hcs10-tool-params';
|
|
5
|
+
/**
|
|
6
|
+
* A tool to search for registered HCS-10 agents using the configured registry.
|
|
7
|
+
*/
|
|
8
|
+
declare const FindRegistrationsZodSchema: z.ZodObject<{
|
|
9
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof AIAgentCapability>, "many">>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
accountId?: string | undefined;
|
|
13
|
+
tags?: AIAgentCapability[] | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
accountId?: string | undefined;
|
|
16
|
+
tags?: AIAgentCapability[] | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export declare class FindRegistrationsTool extends BaseHCS10QueryTool<typeof FindRegistrationsZodSchema> {
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
specificInputSchema: z.ZodObject<{
|
|
22
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof AIAgentCapability>, "many">>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
accountId?: string | undefined;
|
|
26
|
+
tags?: AIAgentCapability[] | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
accountId?: string | undefined;
|
|
29
|
+
tags?: AIAgentCapability[] | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
constructor(params: HCS10QueryToolParams);
|
|
32
|
+
protected executeQuery({ accountId, tags, }: z.infer<typeof FindRegistrationsZodSchema>): Promise<unknown>;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
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 InitiateConnectionZodSchema: z.ZodObject<{
|
|
6
|
+
targetAccountId: z.ZodString;
|
|
7
|
+
disableMonitor: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
memo: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
targetAccountId: string;
|
|
11
|
+
disableMonitor?: boolean | undefined;
|
|
12
|
+
memo?: string | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
targetAccountId: string;
|
|
15
|
+
disableMonitor?: boolean | undefined;
|
|
16
|
+
memo?: string | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* A tool to actively START a NEW HCS-10 connection TO a target agent.
|
|
20
|
+
* Requires the target agent's account ID.
|
|
21
|
+
* It retrieves their profile, sends a connection request, and optionally waits for confirmation.
|
|
22
|
+
* Use this tool ONLY to actively INITIATE an OUTGOING connection.
|
|
23
|
+
*/
|
|
24
|
+
export declare class InitiateConnectionTool extends BaseHCS10TransactionTool<typeof InitiateConnectionZodSchema> {
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
specificInputSchema: z.ZodObject<{
|
|
28
|
+
targetAccountId: z.ZodString;
|
|
29
|
+
disableMonitor: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
memo: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
targetAccountId: string;
|
|
33
|
+
disableMonitor?: boolean | undefined;
|
|
34
|
+
memo?: string | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
targetAccountId: string;
|
|
37
|
+
disableMonitor?: boolean | undefined;
|
|
38
|
+
memo?: string | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
constructor(params: HCS10TransactionToolParams);
|
|
41
|
+
protected callBuilderMethod(builder: BaseServiceBuilder, specificArgs: z.infer<typeof InitiateConnectionZodSchema>): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BaseHCS10QueryTool } from './base-hcs10-tools';
|
|
3
|
+
import { HCS10QueryToolParams } from './hcs10-tool-params';
|
|
4
|
+
/**
|
|
5
|
+
* A tool to list currently active HCS-10 connections stored in the state manager.
|
|
6
|
+
* Enhanced to show more details similar to moonscape's implementation.
|
|
7
|
+
*/
|
|
8
|
+
declare const ListConnectionsZodSchema: z.ZodObject<{
|
|
9
|
+
includeDetails: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
showPending: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
includeDetails?: boolean | undefined;
|
|
13
|
+
showPending?: boolean | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
includeDetails?: boolean | undefined;
|
|
16
|
+
showPending?: boolean | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export declare class ListConnectionsTool extends BaseHCS10QueryTool<typeof ListConnectionsZodSchema> {
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
specificInputSchema: z.ZodObject<{
|
|
22
|
+
includeDetails: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
showPending: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
includeDetails?: boolean | undefined;
|
|
26
|
+
showPending?: boolean | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
includeDetails?: boolean | undefined;
|
|
29
|
+
showPending?: boolean | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
constructor(params: HCS10QueryToolParams);
|
|
32
|
+
protected executeQuery(args: z.infer<typeof ListConnectionsZodSchema>): Promise<unknown>;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BaseHCS10QueryTool } from './base-hcs10-tools';
|
|
3
|
+
import { HCS10QueryToolParams } from './hcs10-tool-params';
|
|
4
|
+
declare const ListUnapprovedConnectionRequestsZodSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
5
|
+
/**
|
|
6
|
+
* Lists all connection requests that are not fully established
|
|
7
|
+
*/
|
|
8
|
+
export declare class ListUnapprovedConnectionRequestsTool extends BaseHCS10QueryTool<typeof ListUnapprovedConnectionRequestsZodSchema> {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
specificInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
12
|
+
constructor(params: HCS10QueryToolParams);
|
|
13
|
+
protected executeQuery(): Promise<unknown>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BaseHCS10QueryTool } from './base-hcs10-tools';
|
|
3
|
+
import { HCS10QueryToolParams } from './hcs10-tool-params';
|
|
4
|
+
declare const ManageConnectionRequestsZodSchema: z.ZodObject<{
|
|
5
|
+
action: z.ZodEnum<["list", "view", "reject"]>;
|
|
6
|
+
requestKey: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
action: "list" | "view" | "reject";
|
|
9
|
+
requestKey?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
action: "list" | "view" | "reject";
|
|
12
|
+
requestKey?: string | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* A tool for managing incoming connection requests in a LangChain-compatible way.
|
|
16
|
+
* This tool allows an agent to list, view details of, and reject incoming connection requests.
|
|
17
|
+
*/
|
|
18
|
+
export declare class ManageConnectionRequestsTool extends BaseHCS10QueryTool<typeof ManageConnectionRequestsZodSchema> {
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
specificInputSchema: z.ZodObject<{
|
|
22
|
+
action: z.ZodEnum<["list", "view", "reject"]>;
|
|
23
|
+
requestKey: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
action: "list" | "view" | "reject";
|
|
26
|
+
requestKey?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
action: "list" | "view" | "reject";
|
|
29
|
+
requestKey?: string | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
constructor(params: HCS10QueryToolParams);
|
|
32
|
+
protected executeQuery({ action, requestKey, }: z.infer<typeof ManageConnectionRequestsZodSchema>): Promise<unknown>;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { AIAgentCapability } from '@hashgraphonline/standards-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { BaseServiceBuilder } from 'hedera-agent-kit';
|
|
4
|
+
import { BaseHCS10TransactionTool } from './base-hcs10-tools';
|
|
5
|
+
import { HCS10TransactionToolParams } from './hcs10-tool-params';
|
|
6
|
+
declare const RegisterAgentZodSchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
10
|
+
type: z.ZodOptional<z.ZodEnum<["autonomous", "manual"]>>;
|
|
11
|
+
model: z.ZodOptional<z.ZodString>;
|
|
12
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof AIAgentCapability>, "many">>;
|
|
13
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
14
|
+
socials: z.ZodOptional<z.ZodRecord<z.ZodEnum<["twitter", "github", "discord", "telegram", "linkedin", "youtube", "website", "x"]>, z.ZodString>>;
|
|
15
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
+
profilePicture: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
17
|
+
url: z.ZodOptional<z.ZodString>;
|
|
18
|
+
path: z.ZodOptional<z.ZodString>;
|
|
19
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
filename?: string | undefined;
|
|
22
|
+
url?: string | undefined;
|
|
23
|
+
path?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
filename?: string | undefined;
|
|
26
|
+
url?: string | undefined;
|
|
27
|
+
path?: string | undefined;
|
|
28
|
+
}>]>>;
|
|
29
|
+
existingProfilePictureTopicId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
initialBalance: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
userAccountId: z.ZodOptional<z.ZodString>;
|
|
32
|
+
hbarFee: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
tokenFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
34
|
+
amount: z.ZodNumber;
|
|
35
|
+
tokenId: z.ZodString;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
amount: number;
|
|
38
|
+
tokenId: string;
|
|
39
|
+
}, {
|
|
40
|
+
amount: number;
|
|
41
|
+
tokenId: string;
|
|
42
|
+
}>, "many">>;
|
|
43
|
+
exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
44
|
+
setAsCurrent: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
persistence: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
prefix?: string | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
prefix?: string | undefined;
|
|
51
|
+
}>>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
name: string;
|
|
54
|
+
tokenFees?: {
|
|
55
|
+
amount: number;
|
|
56
|
+
tokenId: string;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
exemptAccountIds?: string[] | undefined;
|
|
59
|
+
type?: "autonomous" | "manual" | undefined;
|
|
60
|
+
description?: string | undefined;
|
|
61
|
+
alias?: string | undefined;
|
|
62
|
+
model?: string | undefined;
|
|
63
|
+
capabilities?: AIAgentCapability[] | undefined;
|
|
64
|
+
creator?: string | undefined;
|
|
65
|
+
socials?: Partial<Record<"twitter" | "github" | "discord" | "telegram" | "linkedin" | "youtube" | "website" | "x", string>> | undefined;
|
|
66
|
+
properties?: Record<string, unknown> | undefined;
|
|
67
|
+
profilePicture?: string | {
|
|
68
|
+
filename?: string | undefined;
|
|
69
|
+
url?: string | undefined;
|
|
70
|
+
path?: string | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
existingProfilePictureTopicId?: string | undefined;
|
|
73
|
+
initialBalance?: number | undefined;
|
|
74
|
+
userAccountId?: string | undefined;
|
|
75
|
+
hbarFee?: number | undefined;
|
|
76
|
+
setAsCurrent?: boolean | undefined;
|
|
77
|
+
persistence?: {
|
|
78
|
+
prefix?: string | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
name: string;
|
|
82
|
+
tokenFees?: {
|
|
83
|
+
amount: number;
|
|
84
|
+
tokenId: string;
|
|
85
|
+
}[] | undefined;
|
|
86
|
+
exemptAccountIds?: string[] | undefined;
|
|
87
|
+
type?: "autonomous" | "manual" | undefined;
|
|
88
|
+
description?: string | undefined;
|
|
89
|
+
alias?: string | undefined;
|
|
90
|
+
model?: string | undefined;
|
|
91
|
+
capabilities?: AIAgentCapability[] | undefined;
|
|
92
|
+
creator?: string | undefined;
|
|
93
|
+
socials?: Partial<Record<"twitter" | "github" | "discord" | "telegram" | "linkedin" | "youtube" | "website" | "x", string>> | undefined;
|
|
94
|
+
properties?: Record<string, unknown> | undefined;
|
|
95
|
+
profilePicture?: string | {
|
|
96
|
+
filename?: string | undefined;
|
|
97
|
+
url?: string | undefined;
|
|
98
|
+
path?: string | undefined;
|
|
99
|
+
} | undefined;
|
|
100
|
+
existingProfilePictureTopicId?: string | undefined;
|
|
101
|
+
initialBalance?: number | undefined;
|
|
102
|
+
userAccountId?: string | undefined;
|
|
103
|
+
hbarFee?: number | undefined;
|
|
104
|
+
setAsCurrent?: boolean | undefined;
|
|
105
|
+
persistence?: {
|
|
106
|
+
prefix?: string | undefined;
|
|
107
|
+
} | undefined;
|
|
108
|
+
}>;
|
|
109
|
+
export declare class RegisterAgentTool extends BaseHCS10TransactionTool<typeof RegisterAgentZodSchema> {
|
|
110
|
+
name: string;
|
|
111
|
+
description: string;
|
|
112
|
+
specificInputSchema: z.ZodObject<{
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
description: z.ZodOptional<z.ZodString>;
|
|
115
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
116
|
+
type: z.ZodOptional<z.ZodEnum<["autonomous", "manual"]>>;
|
|
117
|
+
model: z.ZodOptional<z.ZodString>;
|
|
118
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof AIAgentCapability>, "many">>;
|
|
119
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
120
|
+
socials: z.ZodOptional<z.ZodRecord<z.ZodEnum<["twitter", "github", "discord", "telegram", "linkedin", "youtube", "website", "x"]>, z.ZodString>>;
|
|
121
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
122
|
+
profilePicture: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
123
|
+
url: z.ZodOptional<z.ZodString>;
|
|
124
|
+
path: z.ZodOptional<z.ZodString>;
|
|
125
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
filename?: string | undefined;
|
|
128
|
+
url?: string | undefined;
|
|
129
|
+
path?: string | undefined;
|
|
130
|
+
}, {
|
|
131
|
+
filename?: string | undefined;
|
|
132
|
+
url?: string | undefined;
|
|
133
|
+
path?: string | undefined;
|
|
134
|
+
}>]>>;
|
|
135
|
+
existingProfilePictureTopicId: z.ZodOptional<z.ZodString>;
|
|
136
|
+
initialBalance: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
userAccountId: z.ZodOptional<z.ZodString>;
|
|
138
|
+
hbarFee: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
tokenFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
140
|
+
amount: z.ZodNumber;
|
|
141
|
+
tokenId: z.ZodString;
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
amount: number;
|
|
144
|
+
tokenId: string;
|
|
145
|
+
}, {
|
|
146
|
+
amount: number;
|
|
147
|
+
tokenId: string;
|
|
148
|
+
}>, "many">>;
|
|
149
|
+
exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
150
|
+
setAsCurrent: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
persistence: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
prefix?: string | undefined;
|
|
155
|
+
}, {
|
|
156
|
+
prefix?: string | undefined;
|
|
157
|
+
}>>;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
name: string;
|
|
160
|
+
tokenFees?: {
|
|
161
|
+
amount: number;
|
|
162
|
+
tokenId: string;
|
|
163
|
+
}[] | undefined;
|
|
164
|
+
exemptAccountIds?: string[] | undefined;
|
|
165
|
+
type?: "autonomous" | "manual" | undefined;
|
|
166
|
+
description?: string | undefined;
|
|
167
|
+
alias?: string | undefined;
|
|
168
|
+
model?: string | undefined;
|
|
169
|
+
capabilities?: AIAgentCapability[] | undefined;
|
|
170
|
+
creator?: string | undefined;
|
|
171
|
+
socials?: Partial<Record<"twitter" | "github" | "discord" | "telegram" | "linkedin" | "youtube" | "website" | "x", string>> | undefined;
|
|
172
|
+
properties?: Record<string, unknown> | undefined;
|
|
173
|
+
profilePicture?: string | {
|
|
174
|
+
filename?: string | undefined;
|
|
175
|
+
url?: string | undefined;
|
|
176
|
+
path?: string | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
existingProfilePictureTopicId?: string | undefined;
|
|
179
|
+
initialBalance?: number | undefined;
|
|
180
|
+
userAccountId?: string | undefined;
|
|
181
|
+
hbarFee?: number | undefined;
|
|
182
|
+
setAsCurrent?: boolean | undefined;
|
|
183
|
+
persistence?: {
|
|
184
|
+
prefix?: string | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
}, {
|
|
187
|
+
name: string;
|
|
188
|
+
tokenFees?: {
|
|
189
|
+
amount: number;
|
|
190
|
+
tokenId: string;
|
|
191
|
+
}[] | undefined;
|
|
192
|
+
exemptAccountIds?: string[] | undefined;
|
|
193
|
+
type?: "autonomous" | "manual" | undefined;
|
|
194
|
+
description?: string | undefined;
|
|
195
|
+
alias?: string | undefined;
|
|
196
|
+
model?: string | undefined;
|
|
197
|
+
capabilities?: AIAgentCapability[] | undefined;
|
|
198
|
+
creator?: string | undefined;
|
|
199
|
+
socials?: Partial<Record<"twitter" | "github" | "discord" | "telegram" | "linkedin" | "youtube" | "website" | "x", string>> | undefined;
|
|
200
|
+
properties?: Record<string, unknown> | undefined;
|
|
201
|
+
profilePicture?: string | {
|
|
202
|
+
filename?: string | undefined;
|
|
203
|
+
url?: string | undefined;
|
|
204
|
+
path?: string | undefined;
|
|
205
|
+
} | undefined;
|
|
206
|
+
existingProfilePictureTopicId?: string | undefined;
|
|
207
|
+
initialBalance?: number | undefined;
|
|
208
|
+
userAccountId?: string | undefined;
|
|
209
|
+
hbarFee?: number | undefined;
|
|
210
|
+
setAsCurrent?: boolean | undefined;
|
|
211
|
+
persistence?: {
|
|
212
|
+
prefix?: string | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
}>;
|
|
215
|
+
constructor(params: HCS10TransactionToolParams);
|
|
216
|
+
protected callBuilderMethod(builder: BaseServiceBuilder, specificArgs: z.infer<typeof RegisterAgentZodSchema>): Promise<void>;
|
|
217
|
+
}
|
|
218
|
+
export {};
|