langflow
langflow copied to clipboard
KeyError: 'allowed_tools'
Hey,
Unable to create a simple Agent with LLMChain like in the examples, always getting:
KeyError: 'allowed_tools' from:
def load_agent_executor(agent_class: type[agent_module.Agent], params, **kwargs):
"""Load agent executor from agent class, tools and chain"""
allowed_tools = params["allowed_tools"]
llm_chain = params["llm_chain"]
# if allowed_tools is not a list or set, make it a list
if not isinstance(allowed_tools, (list, set)):
allowed_tools = [allowed_tools]
tool_names = [tool.name for tool in allowed_tools]
file: src/backend/langflow/interface/loading.py
I see. Could you tell me what nodes you used? Just the LLMChain and its required components?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.