@hashgraphonline/standards-agent-kit 0.0.31 → 0.0.33
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/src/init/index.d.ts +1 -0
- package/dist/cjs/src/{init.d.ts → 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/es/src/init/index.d.ts +1 -0
- package/dist/es/src/{init.d.ts → 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 +3 -24
- package/dist/es/standards-agent-kit.es24.js.map +1 -1
- package/dist/es/standards-agent-kit.es25.js +81 -3
- package/dist/es/standards-agent-kit.es25.js.map +1 -1
- package/dist/es/standards-agent-kit.es26.js +22 -79
- 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 +65 -64
- 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/umd/src/init/index.d.ts +1 -0
- package/dist/umd/src/{init.d.ts → init/init.d.ts} +16 -16
- package/dist/umd/standards-agent-kit.umd.js +2 -2
- package/dist/umd/standards-agent-kit.umd.js.map +1 -1
- package/package.json +2 -3
- package/src/index.ts +1 -1
- package/src/init/index.ts +1 -0
- package/src/{init.ts → init/init.ts} +22 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashgraphonline/standards-agent-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"description": "A modular SDK for building on-chain autonomous agents using Hashgraph Online Standards, including HCS-10 for agent discovery and communication.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/standards-agent-kit.cjs",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
98
|
"@hashgraph/sdk": "^2.65.1",
|
|
99
|
-
"@hashgraphonline/standards-sdk": "^0.0.
|
|
99
|
+
"@hashgraphonline/standards-sdk": "^0.0.119",
|
|
100
100
|
"@langchain/community": "^0.3.44",
|
|
101
101
|
"@langchain/core": "^0.3.57",
|
|
102
102
|
"@langchain/openai": "^0.5.11",
|
|
@@ -114,7 +114,6 @@
|
|
|
114
114
|
"zod": "^3.25.28"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
|
-
"@hashgraphonline/standards-agent-kit": "0.0.26",
|
|
118
117
|
"@swc/core": "^1.11.21",
|
|
119
118
|
"@swc/jest": "^0.2.36",
|
|
120
119
|
"@types/jest": "^29.5.12",
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './init';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { HCS10Client, StandardNetworkType } from '
|
|
2
|
-
import { RegisterAgentTool } from '
|
|
3
|
-
import { SendMessageTool } from '
|
|
4
|
-
import { ConnectionTool } from '
|
|
5
|
-
import { IStateManager } from '
|
|
6
|
-
import { OpenConvaiState } from '
|
|
7
|
-
import { FindRegistrationsTool } from '
|
|
8
|
-
import { InitiateConnectionTool } from '
|
|
9
|
-
import { ListConnectionsTool } from '
|
|
10
|
-
import { SendMessageToConnectionTool } from '
|
|
11
|
-
import { CheckMessagesTool } from '
|
|
12
|
-
import { ConnectionMonitorTool } from '
|
|
13
|
-
import { ManageConnectionRequestsTool } from '
|
|
14
|
-
import { AcceptConnectionRequestTool } from '
|
|
15
|
-
import { RetrieveProfileTool } from '
|
|
16
|
-
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 { OpenConvaiState } from '../state/open-convai-state';
|
|
7
|
+
import { FindRegistrationsTool } from '../tools/FindRegistrationsTool';
|
|
8
|
+
import { InitiateConnectionTool } from '../tools/InitiateConnectionTool';
|
|
9
|
+
import { ListConnectionsTool } from '../tools/ListConnectionsTool';
|
|
10
|
+
import { SendMessageToConnectionTool } from '../tools/SendMessageToConnectionTool';
|
|
11
|
+
import { CheckMessagesTool } from '../tools/CheckMessagesTool';
|
|
12
|
+
import { ConnectionMonitorTool } from '../tools/ConnectionMonitorTool';
|
|
13
|
+
import { ManageConnectionRequestsTool } from '../tools/ManageConnectionRequestsTool';
|
|
14
|
+
import { AcceptConnectionRequestTool } from '../tools/AcceptConnectionRequestTool';
|
|
15
|
+
import { RetrieveProfileTool } from '../tools/RetrieveProfileTool';
|
|
16
|
+
import { ListUnapprovedConnectionRequestsTool } from '../tools/ListUnapprovedConnectionRequestsTool';
|
|
17
17
|
import { Logger } from '@hashgraphonline/standards-sdk';
|
|
18
|
-
import { ENV_FILE_PATH } from '
|
|
18
|
+
import { ENV_FILE_PATH } from '../utils/state-tools';
|
|
19
19
|
|
|
20
20
|
export interface HCS10ClientConfig {
|
|
21
21
|
operatorId?: string;
|
|
@@ -58,12 +58,14 @@ export interface HCS10Tools {
|
|
|
58
58
|
* @param options - Initialization options
|
|
59
59
|
* @returns Object containing hcs10Client and requested tools
|
|
60
60
|
*/
|
|
61
|
-
export
|
|
61
|
+
export const initializeStandardsAgentKit = (
|
|
62
|
+
options?: HCS10InitializationOptions
|
|
63
|
+
): {
|
|
62
64
|
hcs10Client: HCS10Client;
|
|
63
65
|
monitoringClient?: HCS10Client;
|
|
64
66
|
tools: Partial<HCS10Tools>;
|
|
65
67
|
stateManager: IStateManager;
|
|
66
|
-
} {
|
|
68
|
+
} => {
|
|
67
69
|
const config = options?.clientConfig || {};
|
|
68
70
|
|
|
69
71
|
const operatorId = config.operatorId || process.env.HEDERA_OPERATOR_ID;
|
|
@@ -182,4 +184,4 @@ export function initializeHCS10Client(options?: HCS10InitializationOptions): {
|
|
|
182
184
|
tools,
|
|
183
185
|
stateManager,
|
|
184
186
|
};
|
|
185
|
-
}
|
|
187
|
+
};
|