Skip to content

pip import file #1

Description

@crgarcia12

I am having troubles running some of your lines. For example:

from langchain.chains import PALChain

This does not work unless I use langchain-experimental instead of langchain
In the other hand, this otherone does not work for me:

tools = load_tools(["pal-math"], llm=llm)

File [c:\gitrepos\github\crgarcia12\langchain-day1\.venv\Lib\site-packages\langchain\agents\load_tools.py:616](file:///C:/gitrepos/github/crgarcia12/langchain-day1/.venv/Lib/site-packages/langchain/agents/load_tools.py:616), in load_tools(tool_names, llm, callbacks, **kwargs)
    [614](file:///C:/gitrepos/github/crgarcia12/langchain-day1/.venv/Lib/site-packages/langchain/agents/load_tools.py:614)         tools.append(tool)
    [615](file:///C:/gitrepos/github/crgarcia12/langchain-day1/.venv/Lib/site-packages/langchain/agents/load_tools.py:615)     else:
--> [616](file:///C:/gitrepos/github/crgarcia12/langchain-day1/.venv/Lib/site-packages/langchain/agents/load_tools.py:616)         raise ValueError(f"Got unknown tool {name}")
    [617](file:///C:/gitrepos/github/crgarcia12/langchain-day1/.venv/Lib/site-packages/langchain/agents/load_tools.py:617) if callbacks is not None:
    [618](file:///C:/gitrepos/github/crgarcia12/langchain-day1/.venv/Lib/site-packages/langchain/agents/load_tools.py:618)     for tool in tools:

ValueError: Got unknown tool pal-math

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions