Prerequisites
The following example requires theboto3 library, an OpenAI API key, and AWS credentials for an IAM principal that can list and invoke Lambda functions.
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