agsamantha/node_modules/@langchain/community/dist/tools/aws_lambda.d.ts

26 lines
742 B
TypeScript
Raw Normal View History

2024-10-02 20:15:21 +00:00
import { DynamicTool, DynamicToolInput } from "./dynamic.js";
/**
* Interface for the configuration of the AWS Lambda function.
*/
interface LambdaConfig {
functionName: string;
region?: string;
accessKeyId?: string;
secretAccessKey?: string;
}
/**
* Class for invoking AWS Lambda functions within the LangChain framework.
* Extends the DynamicTool class.
*/
declare class AWSLambda extends DynamicTool {
get lc_namespace(): string[];
get lc_secrets(): {
[key: string]: string;
} | undefined;
private lambdaConfig;
constructor({ name, description, ...rest }: LambdaConfig & Omit<DynamicToolInput, "func">);
/** @ignore */
_func(input: string): Promise<string>;
}
export { AWSLambda };