ads4gpts-langchain
Version:
Ads for AI applications. Enabling the Freemium model for the AI era.
22 lines • 822 B
TypeScript
import { BaseToolkit } from '@langchain/core/tools';
import { ADS4GPTsTool } from './tools/ADS4GPTsTool';
declare class ADS4GPTsToolkit implements BaseToolkit {
private ads4gptsAPI;
tools: ADS4GPTsTool[];
/**
* Constructs the ADS4GPTsToolkit instance and initializes tools.
* @param args - A record of key-value pairs, including an optional API key.
* @param args.apiKey - Ads4GPTs API key. If not provided, it will attempt to retrieve it from the `ADS4GPTS_API_KEY` environment variable.
*/
constructor(args?: {
apiKey?: string;
rootUrl?: string;
});
/**
* Returns the list of initialized tools.
* @returns {ADS4GPTsTool[]} Array of tools.
*/
getTools(): ADS4GPTsTool[];
}
export default ADS4GPTsToolkit;
//# sourceMappingURL=toolkit.d.ts.map