Open
Description
Bug Description
If I create a flow with an Agent component, the flow cannot run with the Python function "run_flow_from_json". That is due to the Agent component receiving a Chat History, which tries to access the Database. Since "run_flow_from_json" does not run the Database, the execution fails.
Reproduction
Steps to reproduce the behavior:
- Create a basic Agent flow
- Add the API keys
- Export the flow with the API keys
- Run this code on a Python file:
from langflow.load import run_flow_from_json
flow = run_flow_from_json(flow="simple_agent.json", input_value="hello")
print(flow)
- Receive the error:
ValueError: Error running graph: Error building Component Agent: (sqlite3.OperationalError) no such table: message
Expected behavior
The flow should run without a chat history and display an output.
Who can help?
@italojohnny @ogabrielluiz @erichare
Operating System
macOS Sequoia
Langflow Version
1.3.2
Python Version
3.12
Screenshot
