Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
from agno.agent import Agent from agno.tools.aws_lambda import AWSLambdaTools agent = Agent( tools=[AWSLambdaTools(region_name="us-east-1")], name="AWS Lambda Agent", show_tool_calls=True, ) agent.print_response("列出我们 AWS 账户中的所有 Lambda 函数", markdown=True) agent.print_response( "使用空负载调用 'hello-world' Lambda 函数", markdown=True )
创建虚拟环境
Terminal
python3 -m venv .venv source .venv/bin/activate
设置您的 AWS 凭证
export AWS_ACCESS_KEY_ID=xxx export AWS_SECRET_ACCESS_KEY=xxx export OPENAI_API_KEY=xxx
安装库
pip install -U boto3 openai agno
运行 Agent
python cookbook/tools/aws_lambda_tools.py