Replies: 1 comment
-
🤖 Hello, The error you're encountering is due to the fact that the Here is the relevant code snippet from the def _get_functions_prompt_and_tools(
df: Any,
prefix: Optional[str] = None,
suffix: Optional[str] = None,
input_variables: Optional[List[str]] = None,
include_df_in_prompt: Optional[bool] = True,
number_of_head_rows: int = 5,
) -> Tuple[BasePromptTemplate, List[PythonAstREPLTool]]:
...
if input_variables is not None:
raise ValueError("`input_variables` is not supported at the moment.")
... As you can see, if The However, in the case of the You can find more details in the source code of the LangChain repository, specifically in the file libs/langchain/langchain/agents/agent_toolkits/pandas/base.py. I hope this clarifies the issue. If you have any other questions, feel free to ask. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@dosu-bot
i got this >> ValueError:
input_variables
is not supported at the moment. when modifing the create the pandas dataframe function to this >>Beta Was this translation helpful? Give feedback.
All reactions