how can i load multiple aws lambda functions to a single agent using load_tools #7407
Unanswered
therealmmk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i need to provide multiple different lambda functions to my agent and but loading multiple tools in load_tools for lambda fails with syntax issues.
tools = load_tools([["awslambda"],
awslambda_tool_name = "ExecutionFunctionA",
awslambda_tool_description='this is a tool that calls lambda function A',
function_name="LambdaA" ],
[
["awslambda"],
awslambda_tool_name="ExecutionFunctionB",
awslambda_tool_description='this is a tool that calls lambda function B,
function_name=="LambdaB"
)
agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, max_iterations=1, verbose=True)
agent.run("execute function a")
Beta Was this translation helpful? Give feedback.
All reactions