-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLAgent requiring "chat_history"? #4663
Comments
The error you're encountering, "chat_history not found in SQLAgentComponent," suggests that the To resolve this issue, you should ensure that the If the issue persists, it might be helpful to check if there are any recent changes or updates in the codebase related to the |
Thanks for the report, @SavvySupport ! They were very helpful in pinpointing the bug. |
No worries @ogabrielluiz ! Do you know when the fixes will be released? |
this issue already had fixed ? |
Bug Description
The SQLAgent shows error "chat_history not found in SQLAgentComponent".
Reproduction
Error building Component SQLAgent:
chat_history not found in SQLAgentComponent
Traceback (most recent call last):
File "/langflow1.1.0/venv1.1.0/lib/python3.10/site-packages/langflow/graph/vertex/base.py", line 708, in _build_results
result = await initialize.loading.get_instance_results(
File "/langflow1.1.0/venv1.1.0/lib/python3.10/site-packages/langflow/interface/initialize/loading.py", line 68, in get_instance_results
return await build_component(params=custom_params, custom_component=custom_component)
File "/langflow1.1.0/venv1.1.0/lib/python3.10/site-packages/langflow/interface/initialize/loading.py", line 145, in build_component
build_results, artifacts = await custom_component.build_results()
File "/langflow1.1.0/venv1.1.0/lib/python3.10/site-packages/langflow/custom/custom_component/component.py", line 837, in build_results
return await self._build_with_tracing()
File "/langflow1.1.0/venv1.1.0/lib/python3.10/site-packages/langflow/custom/custom_component/component.py", line 819, in _build_with_tracing
_results, _artifacts = await self._build_results()
File "/langflow1.1.0/venv1.1.0/lib/python3.10/site-packages/langflow/custom/custom_component/component.py", line 883, in _build_results
result = await method()
File "/langflow1.1.0/venv1.1.0/lib/python3.10/site-packages/langflow/base/agents/agent.py", line 81, in message_response
message = await self.run_agent(agent=agent)
File "/langflow1.1.0/venv1.1.0/lib/python3.10/site-packages/langflow/base/agents/agent.py", line 136, in run_agent
if self.chat_history:
File "/langflow1.1.0/venv1.1.0/lib/python3.10/site-packages/langflow/custom/custom_component/component.py", line 665, in getattr
raise AttributeError(msg)
AttributeError: chat_history not found in SQLAgentComponent
Expected behavior
Expecting a response from the SQLAgent, instead of an error message for "chat_history"
Who can help?
No response
Operating System
MacOS
Langflow Version
1.1
Python Version
3.10
Screenshot
Flow File
No response
The text was updated successfully, but these errors were encountered: