langflow icon indicating copy to clipboard operation
langflow copied to clipboard

KeyError: 'allowed_tools'

Open guyschlider opened this issue 2 years ago • 1 comments

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

guyschlider avatar May 02 '23 15:05 guyschlider

I see. Could you tell me what nodes you used? Just the LLMChain and its required components?

ogabrielluiz avatar May 02 '23 17:05 ogabrielluiz

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.

stale[bot] avatar Jun 16 '23 18:06 stale[bot]