Tools
AWS Lambda
Prerequisites
The following example requires the boto3
library.
Example
The following agent will use AWS Lambda to list all Lambda functions in our AWS account and invoke a specific Lambda function.
cookbook/tools/aws_lambda_tools.py
Toolkit Params
Parameter | Type | Default | Description |
---|---|---|---|
region_name | str | "us-east-1" | AWS region name where Lambda functions are located. |
Toolkit Functions
Function | Description |
---|---|
list_functions | Lists all Lambda functions available in the AWS account. |
invoke_function | Invokes a specific Lambda function with an optional payload. Takes function_name and optional payload parameters. |
Information
- View on Github
Was this page helpful?