@hashgraphonline/conversational-agent 0.2.216 → 0.2.218
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/cli/readme.md +181 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/SwarmPlugin.d.ts +17 -0
- package/dist/cjs/plugins/community/swarm/__tests__/SwarmPlugin.mocks.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/SwarmPlugin.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/CreatePostageStampTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/DownloadDataTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/DownloadFilesTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/ExtendPostageStampTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/GetPostageStampTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/ListPostageStampsTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/QueryUploadProgressTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/ReadFeedTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/SwarmTool.mocks.d.ts +14 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/UpdateFeedTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/UploadDataTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/UploadFileTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/UploadFolderTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/config.d.ts +6 -0
- package/dist/cjs/plugins/community/swarm/constants.d.ts +8 -0
- package/dist/cjs/plugins/community/swarm/index.d.ts +2 -0
- package/dist/cjs/plugins/community/swarm/model.d.ts +23 -0
- package/dist/cjs/plugins/community/swarm/tools/CreatePostageStampTool.d.ts +47 -0
- package/dist/cjs/plugins/community/swarm/tools/DownloadDataTool.d.ts +35 -0
- package/dist/cjs/plugins/community/swarm/tools/DownloadFilesTool.d.ts +41 -0
- package/dist/cjs/plugins/community/swarm/tools/ExtendPostageStampTool.d.ts +47 -0
- package/dist/cjs/plugins/community/swarm/tools/GetPostageStampTool.d.ts +35 -0
- package/dist/cjs/plugins/community/swarm/tools/ListPostageStampsTool.d.ts +53 -0
- package/dist/cjs/plugins/community/swarm/tools/QueryUploadProgressTool.d.ts +35 -0
- package/dist/cjs/plugins/community/swarm/tools/ReadFeedTool.d.ts +41 -0
- package/dist/cjs/plugins/community/swarm/tools/UpdateFeedTool.d.ts +47 -0
- package/dist/cjs/plugins/community/swarm/tools/UploadDataTool.d.ts +47 -0
- package/dist/cjs/plugins/community/swarm/tools/UploadFileTool.d.ts +53 -0
- package/dist/cjs/plugins/community/swarm/tools/UploadFolderTool.d.ts +47 -0
- package/dist/cjs/plugins/community/swarm/utils.d.ts +22 -0
- package/dist/cjs/plugins/index.d.ts +1 -0
- package/dist/esm/index.js +33 -31
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index10.js +13 -677
- package/dist/esm/index10.js.map +1 -1
- package/dist/esm/index11.js +601 -234
- package/dist/esm/index11.js.map +1 -1
- package/dist/esm/index12.js +296 -136
- package/dist/esm/index12.js.map +1 -1
- package/dist/esm/index13.js +127 -235
- package/dist/esm/index13.js.map +1 -1
- package/dist/esm/index14.js +247 -84
- package/dist/esm/index14.js.map +1 -1
- package/dist/esm/index15.js +81 -159
- package/dist/esm/index15.js.map +1 -1
- package/dist/esm/index16.js +155 -229
- package/dist/esm/index16.js.map +1 -1
- package/dist/esm/index17.js +238 -140
- package/dist/esm/index17.js.map +1 -1
- package/dist/esm/index18.js +139 -493
- package/dist/esm/index18.js.map +1 -1
- package/dist/esm/index19.js +479 -91
- package/dist/esm/index19.js.map +1 -1
- package/dist/esm/index20.js +88 -147
- package/dist/esm/index20.js.map +1 -1
- package/dist/esm/index21.js +127 -666
- package/dist/esm/index21.js.map +1 -1
- package/dist/esm/index22.js +698 -44
- package/dist/esm/index22.js.map +1 -1
- package/dist/esm/index23.js +45 -304
- package/dist/esm/index23.js.map +1 -1
- package/dist/esm/index24.js +303 -153
- package/dist/esm/index24.js.map +1 -1
- package/dist/esm/index25.js +150 -117
- package/dist/esm/index25.js.map +1 -1
- package/dist/esm/index26.js +154 -18
- package/dist/esm/index26.js.map +1 -1
- package/dist/esm/index27.js +18 -22
- package/dist/esm/index27.js.map +1 -1
- package/dist/esm/index28.js +15 -74
- package/dist/esm/index28.js.map +1 -1
- package/dist/esm/index29.js +70 -295
- package/dist/esm/index29.js.map +1 -1
- package/dist/esm/index30.js +279 -100
- package/dist/esm/index30.js.map +1 -1
- package/dist/esm/index31.js +86 -922
- package/dist/esm/index31.js.map +1 -1
- package/dist/esm/index32.js +904 -189
- package/dist/esm/index32.js.map +1 -1
- package/dist/esm/index33.js +185 -1169
- package/dist/esm/index33.js.map +1 -1
- package/dist/esm/index34.js +1218 -112
- package/dist/esm/index34.js.map +1 -1
- package/dist/esm/index35.js +111 -99
- package/dist/esm/index35.js.map +1 -1
- package/dist/esm/index36.js +113 -8
- package/dist/esm/index36.js.map +1 -1
- package/dist/esm/index37.js +8 -45
- package/dist/esm/index37.js.map +1 -1
- package/dist/esm/index38.js +41 -102
- package/dist/esm/index38.js.map +1 -1
- package/dist/esm/index39.js +96 -55
- package/dist/esm/index39.js.map +1 -1
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index40.js +58 -71
- package/dist/esm/index40.js.map +1 -1
- package/dist/esm/index41.js +79 -21
- package/dist/esm/index41.js.map +1 -1
- package/dist/esm/index42.js +21 -5
- package/dist/esm/index42.js.map +1 -1
- package/dist/esm/index43.js +26 -11
- package/dist/esm/index43.js.map +1 -1
- package/dist/esm/index44.js +12 -322
- package/dist/esm/index44.js.map +1 -1
- package/dist/esm/index45.js +66 -173
- package/dist/esm/index45.js.map +1 -1
- package/dist/esm/index46.js +69 -24
- package/dist/esm/index46.js.map +1 -1
- package/dist/esm/index47.js +47 -88
- package/dist/esm/index47.js.map +1 -1
- package/dist/esm/index48.js +100 -7
- package/dist/esm/index48.js.map +1 -1
- package/dist/esm/index49.js +79 -0
- package/dist/esm/index49.js.map +1 -0
- package/dist/esm/index5.js +2 -2
- package/dist/esm/index50.js +75 -0
- package/dist/esm/index50.js.map +1 -0
- package/dist/esm/index51.js +124 -0
- package/dist/esm/index51.js.map +1 -0
- package/dist/esm/index52.js +58 -0
- package/dist/esm/index52.js.map +1 -0
- package/dist/esm/index53.js +83 -0
- package/dist/esm/index53.js.map +1 -0
- package/dist/esm/index54.js +100 -0
- package/dist/esm/index54.js.map +1 -0
- package/dist/esm/index55.js +118 -0
- package/dist/esm/index55.js.map +1 -0
- package/dist/esm/index56.js +108 -0
- package/dist/esm/index56.js.map +1 -0
- package/dist/esm/index57.js +8 -0
- package/dist/esm/index57.js.map +1 -0
- package/dist/esm/index58.js +325 -0
- package/dist/esm/index58.js.map +1 -0
- package/dist/esm/index59.js +187 -0
- package/dist/esm/index59.js.map +1 -0
- package/dist/esm/index6.js +132 -833
- package/dist/esm/index6.js.map +1 -1
- package/dist/esm/index60.js +10 -0
- package/dist/esm/index60.js.map +1 -0
- package/dist/esm/index61.js +98 -0
- package/dist/esm/index61.js.map +1 -0
- package/dist/esm/index62.js +131 -0
- package/dist/esm/index62.js.map +1 -0
- package/dist/esm/index63.js +19 -0
- package/dist/esm/index63.js.map +1 -0
- package/dist/esm/index7.js +826 -75
- package/dist/esm/index7.js.map +1 -1
- package/dist/esm/index8.js +91 -13
- package/dist/esm/index8.js.map +1 -1
- package/dist/esm/index9.js +13 -17
- package/dist/esm/index9.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/plugins/community/swarm/SwarmPlugin.d.ts +17 -0
- package/dist/types/plugins/community/swarm/__tests__/SwarmPlugin.mocks.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/SwarmPlugin.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/CreatePostageStampTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/DownloadDataTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/DownloadFilesTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/ExtendPostageStampTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/GetPostageStampTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/ListPostageStampsTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/QueryUploadProgressTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/ReadFeedTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/SwarmTool.mocks.d.ts +14 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/UpdateFeedTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/UploadDataTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/UploadFileTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/UploadFolderTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/config.d.ts +6 -0
- package/dist/types/plugins/community/swarm/constants.d.ts +8 -0
- package/dist/types/plugins/community/swarm/index.d.ts +2 -0
- package/dist/types/plugins/community/swarm/model.d.ts +23 -0
- package/dist/types/plugins/community/swarm/tools/CreatePostageStampTool.d.ts +47 -0
- package/dist/types/plugins/community/swarm/tools/DownloadDataTool.d.ts +35 -0
- package/dist/types/plugins/community/swarm/tools/DownloadFilesTool.d.ts +41 -0
- package/dist/types/plugins/community/swarm/tools/ExtendPostageStampTool.d.ts +47 -0
- package/dist/types/plugins/community/swarm/tools/GetPostageStampTool.d.ts +35 -0
- package/dist/types/plugins/community/swarm/tools/ListPostageStampsTool.d.ts +53 -0
- package/dist/types/plugins/community/swarm/tools/QueryUploadProgressTool.d.ts +35 -0
- package/dist/types/plugins/community/swarm/tools/ReadFeedTool.d.ts +41 -0
- package/dist/types/plugins/community/swarm/tools/UpdateFeedTool.d.ts +47 -0
- package/dist/types/plugins/community/swarm/tools/UploadDataTool.d.ts +47 -0
- package/dist/types/plugins/community/swarm/tools/UploadFileTool.d.ts +53 -0
- package/dist/types/plugins/community/swarm/tools/UploadFolderTool.d.ts +47 -0
- package/dist/types/plugins/community/swarm/utils.d.ts +22 -0
- package/dist/types/plugins/index.d.ts +1 -0
- package/package.json +37 -27
- package/src/index.ts +1 -0
- package/src/plugins/community/swarm/README.md +279 -0
- package/src/plugins/community/swarm/SwarmPlugin.ts +178 -0
- package/src/plugins/community/swarm/__tests__/SwarmPlugin.mocks.ts +105 -0
- package/src/plugins/community/swarm/__tests__/SwarmPlugin.test.ts +93 -0
- package/src/plugins/community/swarm/__tests__/tools/CreatePostageStampTool.test.ts +152 -0
- package/src/plugins/community/swarm/__tests__/tools/DownloadDataTool.test.ts +93 -0
- package/src/plugins/community/swarm/__tests__/tools/DownloadFilesTool.test.ts +163 -0
- package/src/plugins/community/swarm/__tests__/tools/ExtendPostageStampTool.test.ts +132 -0
- package/src/plugins/community/swarm/__tests__/tools/GetPostageStampTool.test.ts +83 -0
- package/src/plugins/community/swarm/__tests__/tools/ListPostageStampsTool.test.ts +219 -0
- package/src/plugins/community/swarm/__tests__/tools/QueryUploadProgressTool.test.ts +169 -0
- package/src/plugins/community/swarm/__tests__/tools/ReadFeedTool.test.ts +133 -0
- package/src/plugins/community/swarm/__tests__/tools/SwarmTool.mocks.ts +67 -0
- package/src/plugins/community/swarm/__tests__/tools/UpdateFeedTool.test.ts +148 -0
- package/src/plugins/community/swarm/__tests__/tools/UploadDataTool.test.ts +125 -0
- package/src/plugins/community/swarm/__tests__/tools/UploadFileTool.test.ts +194 -0
- package/src/plugins/community/swarm/__tests__/tools/UploadFolderTool.test.ts +118 -0
- package/src/plugins/community/swarm/config.ts +6 -0
- package/src/plugins/community/swarm/constants.ts +12 -0
- package/src/plugins/community/swarm/index.ts +2 -0
- package/src/plugins/community/swarm/model.ts +23 -0
- package/src/plugins/community/swarm/tools/CreatePostageStampTool.ts +137 -0
- package/src/plugins/community/swarm/tools/DownloadDataTool.ts +79 -0
- package/src/plugins/community/swarm/tools/DownloadFilesTool.ts +155 -0
- package/src/plugins/community/swarm/tools/ExtendPostageStampTool.ts +112 -0
- package/src/plugins/community/swarm/tools/GetPostageStampTool.ts +92 -0
- package/src/plugins/community/swarm/tools/ListPostageStampsTool.ts +124 -0
- package/src/plugins/community/swarm/tools/QueryUploadProgressTool.ts +109 -0
- package/src/plugins/community/swarm/tools/ReadFeedTool.ts +110 -0
- package/src/plugins/community/swarm/tools/UpdateFeedTool.ts +149 -0
- package/src/plugins/community/swarm/tools/UploadDataTool.ts +109 -0
- package/src/plugins/community/swarm/tools/UploadFileTool.ts +163 -0
- package/src/plugins/community/swarm/tools/UploadFolderTool.ts +150 -0
- package/src/plugins/community/swarm/utils.ts +172 -0
- package/src/plugins/index.ts +1 -0
- package/cli/dist/CLIApp.d.ts +0 -11
- package/cli/dist/CLIApp.d.ts.map +0 -1
- package/cli/dist/CLIApp.js +0 -128
- package/cli/dist/CLIApp.js.map +0 -1
- package/cli/dist/LocalConversationalAgent.d.ts +0 -37
- package/cli/dist/LocalConversationalAgent.js +0 -58
- package/cli/dist/app.d.ts +0 -18
- package/cli/dist/app.d.ts.map +0 -1
- package/cli/dist/app.js +0 -14
- package/cli/dist/app.js.map +0 -1
- package/cli/dist/cli.d.ts +0 -3
- package/cli/dist/cli.d.ts.map +0 -1
- package/cli/dist/cli.js +0 -87
- package/cli/dist/cli.js.map +0 -1
- package/cli/dist/components/AppContainer.d.ts +0 -16
- package/cli/dist/components/AppContainer.js +0 -24
- package/cli/dist/components/AppScreens.d.ts +0 -2
- package/cli/dist/components/AppScreens.js +0 -259
- package/cli/dist/components/ChatScreen.d.ts +0 -21
- package/cli/dist/components/ChatScreen.d.ts.map +0 -1
- package/cli/dist/components/ChatScreen.js +0 -40
- package/cli/dist/components/ChatScreen.js.map +0 -1
- package/cli/dist/components/DebugLoadingScreen.d.ts +0 -5
- package/cli/dist/components/DebugLoadingScreen.js +0 -31
- package/cli/dist/components/LoadingScreen.d.ts +0 -3
- package/cli/dist/components/LoadingScreen.d.ts.map +0 -1
- package/cli/dist/components/LoadingScreen.js +0 -17
- package/cli/dist/components/LoadingScreen.js.map +0 -1
- package/cli/dist/components/LoadingScreenDebug.d.ts +0 -5
- package/cli/dist/components/LoadingScreenDebug.js +0 -27
- package/cli/dist/components/MCPConfigScreen.d.ts +0 -28
- package/cli/dist/components/MCPConfigScreen.d.ts.map +0 -1
- package/cli/dist/components/MCPConfigScreen.js +0 -186
- package/cli/dist/components/MCPConfigScreen.js.map +0 -1
- package/cli/dist/components/ScreenRouter.d.ts +0 -13
- package/cli/dist/components/ScreenRouter.d.ts.map +0 -1
- package/cli/dist/components/ScreenRouter.js +0 -23
- package/cli/dist/components/ScreenRouter.js.map +0 -1
- package/cli/dist/components/SetupScreen.d.ts +0 -16
- package/cli/dist/components/SetupScreen.d.ts.map +0 -1
- package/cli/dist/components/SetupScreen.js +0 -67
- package/cli/dist/components/SetupScreen.js.map +0 -1
- package/cli/dist/components/SingleLoadingScreen.d.ts +0 -5
- package/cli/dist/components/SingleLoadingScreen.js +0 -27
- package/cli/dist/components/StatusBadge.d.ts +0 -10
- package/cli/dist/components/StatusBadge.d.ts.map +0 -1
- package/cli/dist/components/StatusBadge.js +0 -24
- package/cli/dist/components/StatusBadge.js.map +0 -1
- package/cli/dist/components/TerminalWindow.d.ts +0 -9
- package/cli/dist/components/TerminalWindow.d.ts.map +0 -1
- package/cli/dist/components/TerminalWindow.js +0 -19
- package/cli/dist/components/TerminalWindow.js.map +0 -1
- package/cli/dist/components/WelcomeScreen.d.ts +0 -12
- package/cli/dist/components/WelcomeScreen.d.ts.map +0 -1
- package/cli/dist/components/WelcomeScreen.js +0 -47
- package/cli/dist/components/WelcomeScreen.js.map +0 -1
- package/cli/dist/context/AppContext.d.ts +0 -68
- package/cli/dist/context/AppContext.js +0 -363
- package/cli/dist/headless-runner.d.ts +0 -17
- package/cli/dist/headless-runner.d.ts.map +0 -1
- package/cli/dist/headless-runner.js +0 -128
- package/cli/dist/headless-runner.js.map +0 -1
- package/cli/dist/hooks/useInitializeAgent.d.ts +0 -19
- package/cli/dist/hooks/useInitializeAgent.d.ts.map +0 -1
- package/cli/dist/hooks/useInitializeAgent.js +0 -29
- package/cli/dist/hooks/useInitializeAgent.js.map +0 -1
- package/cli/dist/hooks/useStableState.d.ts +0 -38
- package/cli/dist/hooks/useStableState.d.ts.map +0 -1
- package/cli/dist/hooks/useStableState.js +0 -69
- package/cli/dist/hooks/useStableState.js.map +0 -1
- package/cli/dist/managers/AgentManager.d.ts +0 -58
- package/cli/dist/managers/AgentManager.d.ts.map +0 -1
- package/cli/dist/managers/AgentManager.js +0 -121
- package/cli/dist/managers/AgentManager.js.map +0 -1
- package/cli/dist/managers/ConfigManager.d.ts +0 -54
- package/cli/dist/managers/ConfigManager.d.ts.map +0 -1
- package/cli/dist/managers/ConfigManager.js +0 -188
- package/cli/dist/managers/ConfigManager.js.map +0 -1
- package/cli/dist/types.d.ts +0 -52
- package/cli/dist/types.d.ts.map +0 -1
- package/cli/dist/types.js +0 -34
- package/cli/dist/types.js.map +0 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { HCS10Plugin } from './plugins/hcs-10/HCS10Plugin';
|
|
|
2
2
|
export { HCS2Plugin } from './plugins/hcs-2/HCS2Plugin';
|
|
3
3
|
export { InscribePlugin } from './plugins/inscribe/InscribePlugin';
|
|
4
4
|
export { HbarPlugin } from './plugins/hbar/HbarPlugin';
|
|
5
|
+
export { SwarmPlugin, type SwarmConfig } from './plugins/community/swarm';
|
|
5
6
|
export { HCS10Plugin as OpenConvAIPlugin } from './plugins/hcs-10/HCS10Plugin';
|
|
6
7
|
export { ConversationalAgent } from './conversational-agent';
|
|
7
8
|
export type { ConversationalAgentOptions } from './conversational-agent';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BasePlugin, GenericPluginContext, HederaTool } from 'hedera-agent-kit';
|
|
2
|
+
import { SwarmConfig } from './config';
|
|
3
|
+
|
|
4
|
+
export declare class SwarmPlugin extends BasePlugin<GenericPluginContext> {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
version: string;
|
|
9
|
+
author: string;
|
|
10
|
+
namespace: string;
|
|
11
|
+
private config;
|
|
12
|
+
private tools;
|
|
13
|
+
constructor(config?: SwarmConfig);
|
|
14
|
+
initialize(context: GenericPluginContext): Promise<void>;
|
|
15
|
+
getTools(): HederaTool[];
|
|
16
|
+
cleanup(): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
2
|
+
import { GenericPluginContext } from 'hedera-agent-kit';
|
|
3
|
+
|
|
4
|
+
import * as utils from '../../utils';
|
|
5
|
+
declare let beeMock: jest.Mocked<Bee>;
|
|
6
|
+
declare const swarmConfigMock: {
|
|
7
|
+
beeApiUrl: string;
|
|
8
|
+
beeFeedPK: string;
|
|
9
|
+
autoAssignStamp: boolean;
|
|
10
|
+
deferredUploadSizeThresholdMB: number;
|
|
11
|
+
};
|
|
12
|
+
declare const contextMock: GenericPluginContext;
|
|
13
|
+
declare const mockedUtils: jest.Mocked<typeof utils>;
|
|
14
|
+
export { beeMock, contextMock, swarmConfigMock, mockedUtils, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const NOT_FOUND_STATUS = 404;
|
|
2
|
+
export declare const BAD_REQUEST_STATUS = 400;
|
|
3
|
+
export declare const GATEWAY_STAMP_ERROR_MESSAGE = "Endpoint not found. If using Swarm Gateway, postage stamp management endpoints are not available.";
|
|
4
|
+
export declare const GATEWAY_TAG_ERROR_MESSAGE = "If using Swarm Gateway, tag endpoints are not available.";
|
|
5
|
+
export declare const POSTAGE_CREATE_TIMEOUT_MESSAGE = "Purchase of postage batch is in progress, it may take a few minutes. Please list you batches after a few minutes to find it.";
|
|
6
|
+
export declare const CALL_TIMEOUT = 30000;
|
|
7
|
+
export declare const DEFAULT_DEFERRED_UPLOAD_SIZE_THRESHOLD_MB = 5;
|
|
8
|
+
export declare const DEFAULT_GATEWAY_BATCH_ID = "0000000000000000000000000000000000000000000000000000000000000000";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PostageBatch } from '@ethersphere/bee-js';
|
|
2
|
+
|
|
3
|
+
export type PostageBatchCurated = Omit<PostageBatch, "batchID"> & {
|
|
4
|
+
batchID: string;
|
|
5
|
+
};
|
|
6
|
+
export interface PostageBatchSummary {
|
|
7
|
+
stampID: string;
|
|
8
|
+
usage: string;
|
|
9
|
+
capacity: string;
|
|
10
|
+
ttl: string;
|
|
11
|
+
immutable: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ResponseContent<U, V> {
|
|
14
|
+
raw: U;
|
|
15
|
+
summary: V;
|
|
16
|
+
}
|
|
17
|
+
export interface ResponseWithStructuredContent<T> {
|
|
18
|
+
content: Array<{
|
|
19
|
+
type: "text";
|
|
20
|
+
text: string;
|
|
21
|
+
}>;
|
|
22
|
+
structuredContent: T;
|
|
23
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const CreatePostageStampSchema: z.ZodObject<{
|
|
8
|
+
size: z.ZodNumber;
|
|
9
|
+
duration: z.ZodString;
|
|
10
|
+
label: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
duration: string;
|
|
13
|
+
size: number;
|
|
14
|
+
label?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
duration: string;
|
|
17
|
+
size: number;
|
|
18
|
+
label?: string | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export declare class CreatePostageStampTool extends BaseHederaQueryTool<typeof CreatePostageStampSchema> {
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
namespace: string;
|
|
24
|
+
specificInputSchema: z.ZodObject<{
|
|
25
|
+
size: z.ZodNumber;
|
|
26
|
+
duration: z.ZodString;
|
|
27
|
+
label: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
duration: string;
|
|
30
|
+
size: number;
|
|
31
|
+
label?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
duration: string;
|
|
34
|
+
size: number;
|
|
35
|
+
label?: string | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
bee: Bee;
|
|
38
|
+
config: SwarmConfig;
|
|
39
|
+
constructor(params: {
|
|
40
|
+
hederaKit: HederaAgentKit;
|
|
41
|
+
config: SwarmConfig;
|
|
42
|
+
logger?: GenericPluginContext['logger'];
|
|
43
|
+
bee: Bee;
|
|
44
|
+
});
|
|
45
|
+
protected executeQuery(input: z.infer<typeof CreatePostageStampSchema>): Promise<ToolResponse | string>;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ToolResponse } from '../utils';
|
|
4
|
+
import { BaseHederaQueryTool, GenericPluginContext, HederaAgentKit } from 'hedera-agent-kit';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const DownloadDataSchema: z.ZodObject<{
|
|
8
|
+
reference: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
reference: string;
|
|
11
|
+
}, {
|
|
12
|
+
reference: string;
|
|
13
|
+
}>;
|
|
14
|
+
export declare class DownloadDataTool extends BaseHederaQueryTool<typeof DownloadDataSchema> {
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
namespace: string;
|
|
18
|
+
specificInputSchema: z.ZodObject<{
|
|
19
|
+
reference: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
reference: string;
|
|
22
|
+
}, {
|
|
23
|
+
reference: string;
|
|
24
|
+
}>;
|
|
25
|
+
bee: Bee;
|
|
26
|
+
config: SwarmConfig;
|
|
27
|
+
constructor(params: {
|
|
28
|
+
hederaKit: HederaAgentKit;
|
|
29
|
+
config: SwarmConfig;
|
|
30
|
+
logger?: GenericPluginContext['logger'];
|
|
31
|
+
bee: Bee;
|
|
32
|
+
});
|
|
33
|
+
protected executeQuery(input: z.infer<typeof DownloadDataSchema>): Promise<ToolResponse | string>;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { BaseHederaQueryTool, GenericPluginContext, HederaAgentKit } from 'hedera-agent-kit';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const DownloadFilesSchema: z.ZodObject<{
|
|
8
|
+
reference: z.ZodString;
|
|
9
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
reference: string;
|
|
12
|
+
filePath?: string | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
reference: string;
|
|
15
|
+
filePath?: string | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export declare class DownloadFilesTool extends BaseHederaQueryTool<typeof DownloadFilesSchema> {
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
namespace: string;
|
|
21
|
+
specificInputSchema: z.ZodObject<{
|
|
22
|
+
reference: z.ZodString;
|
|
23
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
reference: string;
|
|
26
|
+
filePath?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
reference: string;
|
|
29
|
+
filePath?: string | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
bee: Bee;
|
|
32
|
+
config: SwarmConfig;
|
|
33
|
+
constructor(params: {
|
|
34
|
+
hederaKit: HederaAgentKit;
|
|
35
|
+
config: SwarmConfig;
|
|
36
|
+
logger?: GenericPluginContext['logger'];
|
|
37
|
+
bee: Bee;
|
|
38
|
+
});
|
|
39
|
+
protected executeQuery(input: z.infer<typeof DownloadFilesSchema>): Promise<ToolResponse | string>;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const ExtendPostageStampSchema: z.ZodObject<{
|
|
8
|
+
postageBatchId: z.ZodString;
|
|
9
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
10
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
postageBatchId: string;
|
|
13
|
+
duration?: string | undefined;
|
|
14
|
+
size?: number | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
postageBatchId: string;
|
|
17
|
+
duration?: string | undefined;
|
|
18
|
+
size?: number | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export declare class ExtendPostageStampTool extends BaseHederaQueryTool<typeof ExtendPostageStampSchema> {
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
namespace: string;
|
|
24
|
+
specificInputSchema: z.ZodObject<{
|
|
25
|
+
postageBatchId: z.ZodString;
|
|
26
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
27
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
postageBatchId: string;
|
|
30
|
+
duration?: string | undefined;
|
|
31
|
+
size?: number | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
postageBatchId: string;
|
|
34
|
+
duration?: string | undefined;
|
|
35
|
+
size?: number | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
bee: Bee;
|
|
38
|
+
config: SwarmConfig;
|
|
39
|
+
constructor(params: {
|
|
40
|
+
hederaKit: HederaAgentKit;
|
|
41
|
+
config: SwarmConfig;
|
|
42
|
+
logger?: GenericPluginContext['logger'];
|
|
43
|
+
bee: Bee;
|
|
44
|
+
});
|
|
45
|
+
protected executeQuery(input: z.infer<typeof ExtendPostageStampSchema>): Promise<ToolResponse | string>;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { GenericPluginContext, BaseHederaQueryTool, HederaAgentKit } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const GetPostageStampSchema: z.ZodObject<{
|
|
8
|
+
postageBatchId: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
postageBatchId: string;
|
|
11
|
+
}, {
|
|
12
|
+
postageBatchId: string;
|
|
13
|
+
}>;
|
|
14
|
+
export declare class GetPostageStampTool extends BaseHederaQueryTool<typeof GetPostageStampSchema> {
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
namespace: string;
|
|
18
|
+
specificInputSchema: z.ZodObject<{
|
|
19
|
+
postageBatchId: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
postageBatchId: string;
|
|
22
|
+
}, {
|
|
23
|
+
postageBatchId: string;
|
|
24
|
+
}>;
|
|
25
|
+
bee: Bee;
|
|
26
|
+
config: SwarmConfig;
|
|
27
|
+
constructor(params: {
|
|
28
|
+
hederaKit: HederaAgentKit;
|
|
29
|
+
config: SwarmConfig;
|
|
30
|
+
logger?: GenericPluginContext['logger'];
|
|
31
|
+
bee: Bee;
|
|
32
|
+
});
|
|
33
|
+
protected executeQuery(input: z.infer<typeof GetPostageStampSchema>): Promise<ToolResponse | string>;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { GenericPluginContext, BaseHederaQueryTool, HederaAgentKit } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const ListPostageStampsSchema: z.ZodObject<{
|
|
8
|
+
leastUsed: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
minUsage: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
maxUsage: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
leastUsed?: boolean | undefined;
|
|
15
|
+
minUsage?: number | undefined;
|
|
16
|
+
maxUsage?: number | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
limit?: number | undefined;
|
|
19
|
+
leastUsed?: boolean | undefined;
|
|
20
|
+
minUsage?: number | undefined;
|
|
21
|
+
maxUsage?: number | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export declare class ListPostageStampsTool extends BaseHederaQueryTool<typeof ListPostageStampsSchema> {
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
namespace: string;
|
|
27
|
+
specificInputSchema: z.ZodObject<{
|
|
28
|
+
leastUsed: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
minUsage: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
maxUsage: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
limit?: number | undefined;
|
|
34
|
+
leastUsed?: boolean | undefined;
|
|
35
|
+
minUsage?: number | undefined;
|
|
36
|
+
maxUsage?: number | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
limit?: number | undefined;
|
|
39
|
+
leastUsed?: boolean | undefined;
|
|
40
|
+
minUsage?: number | undefined;
|
|
41
|
+
maxUsage?: number | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
bee: Bee;
|
|
44
|
+
config: SwarmConfig;
|
|
45
|
+
constructor(params: {
|
|
46
|
+
hederaKit: HederaAgentKit;
|
|
47
|
+
config: SwarmConfig;
|
|
48
|
+
logger?: GenericPluginContext['logger'];
|
|
49
|
+
bee: Bee;
|
|
50
|
+
});
|
|
51
|
+
protected executeQuery(input: z.infer<typeof ListPostageStampsSchema>): Promise<ToolResponse | string>;
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { GenericPluginContext, BaseHederaQueryTool, HederaAgentKit } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const QueryUploadProgressSchema: z.ZodObject<{
|
|
8
|
+
tagId: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
tagId: string;
|
|
11
|
+
}, {
|
|
12
|
+
tagId: string;
|
|
13
|
+
}>;
|
|
14
|
+
export declare class QueryUploadProgressTool extends BaseHederaQueryTool<typeof QueryUploadProgressSchema> {
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
namespace: string;
|
|
18
|
+
specificInputSchema: z.ZodObject<{
|
|
19
|
+
tagId: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
tagId: string;
|
|
22
|
+
}, {
|
|
23
|
+
tagId: string;
|
|
24
|
+
}>;
|
|
25
|
+
bee: Bee;
|
|
26
|
+
config: SwarmConfig;
|
|
27
|
+
constructor(params: {
|
|
28
|
+
hederaKit: HederaAgentKit;
|
|
29
|
+
config: SwarmConfig;
|
|
30
|
+
logger?: GenericPluginContext['logger'];
|
|
31
|
+
bee: Bee;
|
|
32
|
+
});
|
|
33
|
+
protected executeQuery(input: z.infer<typeof QueryUploadProgressSchema>): Promise<ToolResponse | string>;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ToolResponse } from '../utils';
|
|
4
|
+
import { BaseHederaQueryTool, GenericPluginContext, HederaAgentKit } from 'hedera-agent-kit';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const ReadFeedSchema: z.ZodObject<{
|
|
8
|
+
memoryTopic: z.ZodString;
|
|
9
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
memoryTopic: string;
|
|
12
|
+
owner?: string | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
memoryTopic: string;
|
|
15
|
+
owner?: string | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export declare class ReadFeedTool extends BaseHederaQueryTool<typeof ReadFeedSchema> {
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
namespace: string;
|
|
21
|
+
specificInputSchema: z.ZodObject<{
|
|
22
|
+
memoryTopic: z.ZodString;
|
|
23
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
memoryTopic: string;
|
|
26
|
+
owner?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
memoryTopic: string;
|
|
29
|
+
owner?: string | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
bee: Bee;
|
|
32
|
+
config: SwarmConfig;
|
|
33
|
+
constructor(params: {
|
|
34
|
+
hederaKit: HederaAgentKit;
|
|
35
|
+
config: SwarmConfig;
|
|
36
|
+
logger?: GenericPluginContext['logger'];
|
|
37
|
+
bee: Bee;
|
|
38
|
+
});
|
|
39
|
+
protected executeQuery(input: z.infer<typeof ReadFeedSchema>): Promise<ToolResponse | string>;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const UpdateFeedSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodString;
|
|
9
|
+
memoryTopic: z.ZodString;
|
|
10
|
+
postageBatchId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
data: string;
|
|
13
|
+
memoryTopic: string;
|
|
14
|
+
postageBatchId?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
data: string;
|
|
17
|
+
memoryTopic: string;
|
|
18
|
+
postageBatchId?: string | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export declare class UpdateFeedTool extends BaseHederaQueryTool<typeof UpdateFeedSchema> {
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
namespace: string;
|
|
24
|
+
specificInputSchema: z.ZodObject<{
|
|
25
|
+
data: z.ZodString;
|
|
26
|
+
memoryTopic: z.ZodString;
|
|
27
|
+
postageBatchId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
data: string;
|
|
30
|
+
memoryTopic: string;
|
|
31
|
+
postageBatchId?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
data: string;
|
|
34
|
+
memoryTopic: string;
|
|
35
|
+
postageBatchId?: string | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
bee: Bee;
|
|
38
|
+
config: SwarmConfig;
|
|
39
|
+
constructor(params: {
|
|
40
|
+
hederaKit: HederaAgentKit;
|
|
41
|
+
config: SwarmConfig;
|
|
42
|
+
logger?: GenericPluginContext['logger'];
|
|
43
|
+
bee: Bee;
|
|
44
|
+
});
|
|
45
|
+
protected executeQuery(input: z.infer<typeof UpdateFeedSchema>): Promise<ToolResponse | string>;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const UploadDataSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodString;
|
|
9
|
+
redundancyLevel: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
postageBatchId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
data: string;
|
|
13
|
+
redundancyLevel?: number | undefined;
|
|
14
|
+
postageBatchId?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
data: string;
|
|
17
|
+
redundancyLevel?: number | undefined;
|
|
18
|
+
postageBatchId?: string | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export declare class UploadDataTool extends BaseHederaQueryTool<typeof UploadDataSchema> {
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
namespace: string;
|
|
24
|
+
specificInputSchema: z.ZodObject<{
|
|
25
|
+
data: z.ZodString;
|
|
26
|
+
redundancyLevel: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
postageBatchId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
data: string;
|
|
30
|
+
redundancyLevel?: number | undefined;
|
|
31
|
+
postageBatchId?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
data: string;
|
|
34
|
+
redundancyLevel?: number | undefined;
|
|
35
|
+
postageBatchId?: string | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
bee: Bee;
|
|
38
|
+
config: SwarmConfig;
|
|
39
|
+
constructor(params: {
|
|
40
|
+
hederaKit: HederaAgentKit;
|
|
41
|
+
config: SwarmConfig;
|
|
42
|
+
logger?: GenericPluginContext['logger'];
|
|
43
|
+
bee: Bee;
|
|
44
|
+
});
|
|
45
|
+
protected executeQuery(input: z.infer<typeof UploadDataSchema>): Promise<ToolResponse | string>;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const UploadFileSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodString;
|
|
9
|
+
isPath: z.ZodBoolean;
|
|
10
|
+
redundancyLevel: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
postageBatchId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
data: string;
|
|
14
|
+
isPath: boolean;
|
|
15
|
+
redundancyLevel?: number | undefined;
|
|
16
|
+
postageBatchId?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
data: string;
|
|
19
|
+
isPath: boolean;
|
|
20
|
+
redundancyLevel?: number | undefined;
|
|
21
|
+
postageBatchId?: string | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export declare class UploadFileTool extends BaseHederaQueryTool<typeof UploadFileSchema> {
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
namespace: string;
|
|
27
|
+
specificInputSchema: z.ZodObject<{
|
|
28
|
+
data: z.ZodString;
|
|
29
|
+
isPath: z.ZodBoolean;
|
|
30
|
+
redundancyLevel: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
postageBatchId: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
data: string;
|
|
34
|
+
isPath: boolean;
|
|
35
|
+
redundancyLevel?: number | undefined;
|
|
36
|
+
postageBatchId?: string | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
data: string;
|
|
39
|
+
isPath: boolean;
|
|
40
|
+
redundancyLevel?: number | undefined;
|
|
41
|
+
postageBatchId?: string | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
bee: Bee;
|
|
44
|
+
config: SwarmConfig;
|
|
45
|
+
constructor(params: {
|
|
46
|
+
hederaKit: HederaAgentKit;
|
|
47
|
+
config: SwarmConfig;
|
|
48
|
+
logger?: GenericPluginContext['logger'];
|
|
49
|
+
bee: Bee;
|
|
50
|
+
});
|
|
51
|
+
protected executeQuery(input: z.infer<typeof UploadFileSchema>): Promise<ToolResponse | string>;
|
|
52
|
+
}
|
|
53
|
+
export {};
|