Skip to main content

Prerequisites

The following example requires the boto3 library, an OpenAI API key, and AWS credentials for an IAM principal that can list and invoke Lambda functions.
For temporary AWS credentials, also set AWS_SESSION_TOKEN. Grant the IAM principal these permissions:

Example

The following agent lists Lambda functions in the configured AWS account and invokes a specific function.
cookbook/91_tools/aws_lambda_tools.py

Toolkit Params

Toolkit Functions

Developer Resources