@easynet/agent-tool 1.0.83 → 1.0.85
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/api/main.cjs +7 -9
- package/dist/api/main.cjs.map +1 -1
- package/dist/api/main.js +2 -11
- package/dist/api/main.js.map +1 -1
- package/dist/{chunk-XPQZLO4A.cjs → chunk-5HSGVA6S.cjs} +4 -6
- package/dist/{chunk-XPQZLO4A.cjs.map → chunk-5HSGVA6S.cjs.map} +1 -1
- package/dist/{chunk-GYN3JAMK.js → chunk-ACSGEQAY.js} +11 -26
- package/dist/chunk-ACSGEQAY.js.map +1 -0
- package/dist/{chunk-EHFXS4WP.js → chunk-W2WJOS5Z.js} +4 -4
- package/dist/{chunk-EHFXS4WP.js.map → chunk-W2WJOS5Z.js.map} +1 -1
- package/dist/{chunk-6NBQAFVB.cjs → chunk-XW52LOLP.cjs} +20 -37
- package/dist/chunk-XW52LOLP.cjs.map +1 -0
- package/dist/index.cjs +4 -8
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/utils/cli/index.cjs +12 -12
- package/dist/utils/cli/index.js +1 -1
- package/package.json +21 -1
- package/dist/chunk-6NBQAFVB.cjs.map +0 -1
- package/dist/chunk-GYN3JAMK.js.map +0 -1
package/dist/api/main.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXW52LOLP_cjs = require('../chunk-XW52LOLP.cjs');
|
|
4
4
|
require('../chunk-F4HS7H7K.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-5HSGVA6S.cjs');
|
|
6
6
|
require('../chunk-UUNG3GL3.cjs');
|
|
7
7
|
require('../chunk-V2RD4BHT.cjs');
|
|
8
8
|
require('../chunk-LHKEJNKL.cjs');
|
|
@@ -10,14 +10,12 @@ require('../chunk-ZDSZHEQU.cjs');
|
|
|
10
10
|
require('../chunk-PYCCJF7C.cjs');
|
|
11
11
|
require('../chunk-XPGHS4W7.cjs');
|
|
12
12
|
require('../chunk-QEJF3KDV.cjs');
|
|
13
|
-
var agentCommon = require('@easynet/agent-common');
|
|
14
13
|
|
|
15
|
-
function createAgentTools(options) {
|
|
16
|
-
const tools = chunk6NBQAFVB_cjs.createLangChainAgentTools(options);
|
|
17
|
-
agentCommon.getDefaultAgentContext().set(agentCommon.AgentContextTokens.Tools, tools);
|
|
18
|
-
return tools;
|
|
19
|
-
}
|
|
20
14
|
|
|
21
|
-
|
|
15
|
+
|
|
16
|
+
Object.defineProperty(exports, "createAgentTools", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkXW52LOLP_cjs.createAgentTools; }
|
|
19
|
+
});
|
|
22
20
|
//# sourceMappingURL=main.cjs.map
|
|
23
21
|
//# sourceMappingURL=main.cjs.map
|
package/dist/api/main.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"main.cjs"}
|
package/dist/api/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
export { createAgentTools } from '../chunk-ACSGEQAY.js';
|
|
2
2
|
import '../chunk-NEMGE573.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-W2WJOS5Z.js';
|
|
4
4
|
import '../chunk-NTWOVFEY.js';
|
|
5
5
|
import '../chunk-3D7XYAZO.js';
|
|
6
6
|
import '../chunk-HEVWKBBQ.js';
|
|
@@ -8,14 +8,5 @@ import '../chunk-QXQ4477T.js';
|
|
|
8
8
|
import '../chunk-WUMLZERG.js';
|
|
9
9
|
import '../chunk-RZTTO5MQ.js';
|
|
10
10
|
import '../chunk-ODEHUAR4.js';
|
|
11
|
-
import { getDefaultAgentContext, AgentContextTokens } from '@easynet/agent-common';
|
|
12
|
-
|
|
13
|
-
function createAgentTools(options) {
|
|
14
|
-
const tools = createLangChainAgentTools(options);
|
|
15
|
-
getDefaultAgentContext().set(AgentContextTokens.Tools, tools);
|
|
16
|
-
return tools;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { createAgentTools };
|
|
20
11
|
//# sourceMappingURL=main.js.map
|
|
21
12
|
//# sourceMappingURL=main.js.map
|
package/dist/api/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"main.js"}
|
|
@@ -1732,7 +1732,7 @@ function buildInputSchemaHint(inputSchema) {
|
|
|
1732
1732
|
if (names.length === 0) return null;
|
|
1733
1733
|
return `This tool expects input property ${names.length === 1 ? `'${names[0]}'` : `one of [${names.map((n) => `'${n}'`).join(", ")}]`}. Use the exact property names from the tool schema.`;
|
|
1734
1734
|
}
|
|
1735
|
-
var requireFromPackage = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-
|
|
1735
|
+
var requireFromPackage = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-5HSGVA6S.cjs', document.baseURI).href)));
|
|
1736
1736
|
function getProjectRequire() {
|
|
1737
1737
|
const cwd = process.cwd();
|
|
1738
1738
|
if (fs.existsSync(path.join(cwd, "package.json"))) return module$1.createRequire(path.join(cwd, "package.json"));
|
|
@@ -1898,7 +1898,7 @@ function parseNpmDescriptor(entry) {
|
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
1900
|
// src/api/runtimeFromConfig.ts
|
|
1901
|
-
var requireFromPackage2 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-
|
|
1901
|
+
var requireFromPackage2 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-5HSGVA6S.cjs', document.baseURI).href)));
|
|
1902
1902
|
var DEFAULT_EXTENSION_PACKAGES = [];
|
|
1903
1903
|
function resolveFileDescriptorPath(descriptor, configFilePath) {
|
|
1904
1904
|
const parsed = parseToolPath(descriptor.trim());
|
|
@@ -2726,9 +2726,7 @@ async function createHttpService(runtimeOrConfig, options = {}) {
|
|
|
2726
2726
|
}
|
|
2727
2727
|
|
|
2728
2728
|
exports.createHttpService = createHttpService;
|
|
2729
|
-
exports.createMCPServer = createMCPServer;
|
|
2730
2729
|
exports.createMCPServerStreamableHttp = createMCPServerStreamableHttp;
|
|
2731
|
-
exports.createOpenAPIHttpServer = createOpenAPIHttpServer;
|
|
2732
2730
|
exports.createRuntimeFromConfig = createRuntimeFromConfig;
|
|
2733
2731
|
exports.createRuntimeFromConfigSync = createRuntimeFromConfigSync;
|
|
2734
2732
|
exports.expandToolDescriptorsToRegistryNames = expandToolDescriptorsToRegistryNames;
|
|
@@ -2742,5 +2740,5 @@ exports.npmDescriptorToPackagePrefixWithVersion = npmDescriptorToPackagePrefixWi
|
|
|
2742
2740
|
exports.resolveSandboxedPath = resolveSandboxedPath;
|
|
2743
2741
|
exports.resolveToolDescriptor = resolveToolDescriptor;
|
|
2744
2742
|
exports.runMCPServerOverStdio = runMCPServerOverStdio;
|
|
2745
|
-
//# sourceMappingURL=chunk-
|
|
2746
|
-
//# sourceMappingURL=chunk-
|
|
2743
|
+
//# sourceMappingURL=chunk-5HSGVA6S.cjs.map
|
|
2744
|
+
//# sourceMappingURL=chunk-5HSGVA6S.cjs.map
|