You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the API Request Component as a Tool and connected it to the Agent Component.
However, after reloading, the Tool mode of the API Request Component reverts to normal.
Reproduction
Create a flow
Add the Agent component and the API Request component
Turn on Tool Mode on the API Request component
Connect the API Request to the Agent component
Reload (F5)
The Tool Mode of the API Request component reverts to normal (off)
Expected behavior
The Tool Mode of the API Request Component should persist after reloading
Who can help?
No response
Operating System
Windows 11/Docker
Langflow Version
v1.1.1
Python Version
None
Screenshot
Flow File
No response
The text was updated successfully, but these errors were encountered:
Hey there, @vuminhluan! I'm here to help you with any bugs, questions, or contributions you might have. Let's work together to resolve this issue.
The issue you're experiencing, where the Tool Mode of the API Request Component reverts to normal after reloading, suggests that the state persistence for the Tool Mode might not be functioning correctly. The persistence of component states in Langflow is typically managed by the create_state_model_from_graph function, which generates a model representing the state of the entire graph, including individual components [1].
If the Tool Mode state is not being saved or loaded correctly, it could be due to a bug in how the state is being serialized or deserialized. Unfortunately, I couldn't find specific information on how the Tool Mode state is stored and retrieved during the flow save and load process, which might indicate a gap in the current implementation or documentation.
To address this issue, you might want to check the implementation of the state persistence logic, particularly focusing on whether the Tool Mode state is included in the model generated by create_state_model_from_graph. Additionally, reviewing any recent changes or known issues related to state persistence could provide further insights. If this persists, it might be worth investigating further in the codebase or reaching out to other contributors who might have more context on this specific functionality.
Bug Description
I used the API Request Component as a Tool and connected it to the Agent Component.
However, after reloading, the Tool mode of the API Request Component reverts to normal.
Reproduction
Expected behavior
The Tool Mode of the API Request Component should persist after reloading
Who can help?
No response
Operating System
Windows 11/Docker
Langflow Version
v1.1.1
Python Version
None
Screenshot
Flow File
No response
The text was updated successfully, but these errors were encountered: