Full docs here: https://docs.aws.amazon.com/lambda/index.html AWS Lambda is a serverless computing service provided by Amazon Web Services (AWS), designed to allow developers to build and run applications and services without the need for provisioning or managing servers. This serverless architecture enables you to focus on writing and deploying code, while AWS automatically takes care of scaling, patching, and managing the infrastructure required to run your applications. By including a AWSLambda in the list of tools provided to an Agent, you can grant your Agent the ability to invoke code running in your AWS Cloud for whatever purposes you need. When an Agent uses the AWSLambda tool, it will provide an argument of typeDocumentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
string which will in turn be passed into the Lambda function via the event parameter.
This quick start will demonstrate how an Agent could use a Lambda function to send an email via Amazon Simple Email Service. The lambda code which sends the email is not provided, but if you’d like to learn how this could be done, see how to send email with Lambda and SES. Keep in mind this is an intentionally simple example; Lambda can used to execute code for a near infinite number of other purposes (including executing more Langchains)!
Note about credentials:
- If you have not run
aws configurevia the AWS CLI, theregion,accessKeyId, andsecretAccessKeymust be provided to the AWSLambda constructor. - The IAM role corresponding to those credentials must have permission to invoke the lambda function.
npm
Related
- Tool conceptual guide
- Tool how-to guides
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

