ads4gpts-langchain
Version:
Ads for AI applications. Enabling the Freemium model for the AI era.
24 lines • 703 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ADS4GPTsTool = void 0;
const tools_1 = require("@langchain/core/tools");
class ADS4GPTsTool extends tools_1.StructuredTool {
ads4gptsAPI;
url;
name;
description;
schema;
constructor(ads4gptsAPI, name, url, description, schema) {
super();
this.ads4gptsAPI = ads4gptsAPI;
this.url = url;
this.name = name;
this.description = description;
this.schema = schema;
}
_call(arg, _runManager, _parentConfig) {
return this.ads4gptsAPI.run(this.url, arg);
}
}
exports.ADS4GPTsTool = ADS4GPTsTool;
//# sourceMappingURL=ADS4GPTsTool.js.map