Replies: 3 comments 4 replies
-
🤖 Hey @Khawlao! Great to see you back here, diving into another adventure with LangChain. Hope you're ready for some troubleshooting action! 🚀 Based on the error message you're seeing, it seems like the In the provided code, the To resolve this issue, you need to ensure that the arguments you are passing to Here is the relevant code: def create_csv_agent(
llm: LanguageModelLike,
path: Union[str, IOBase, List[Union[str, IOBase]]],
pandas_kwargs: Optional[dict] = None,
**kwargs: Any,
) -> AgentExecutor:
...
return create_pandas_dataframe_agent(llm, df, **kwargs) In this code, You can find the source code for this function in the LangChain repository. As for the
You can find the source code for this function in the LangChain repository. I hope this helps! If you have any other questions, feel free to ask. Sources
|
Beta Was this translation helpful? Give feedback.
-
@Khawlao make sure you have |
Beta Was this translation helpful? Give feedback.
-
hey @Khawlao , what is the llm that you are using? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I am trying to use the CSV agent to query my CSV but I keep getting the error: TypeError: Completions.create() got an unexpected keyword argument 'tools'. I tried different agent types but the error is still occuring ( i followed the example from the documentation)
if anyone has an idea how to fix this or encountered this issue before please reach out!
System Info
System Information
Package Information
Beta Was this translation helpful? Give feedback.
All reactions