feat: add tool_mode parameter to MessageTextInput in ID Generator Component (#5311)

* feat: add tool_mode parameter to MessageTextInput for enhanced functionality

* fix: update tool mode test to ensure correct functionality and response handling

- Adjusted test to wait for the "Toolset" element to appear before asserting its count.
- Modified code handling to replace "tool_mode=True" with "tool_mode=False" and verified the updated code is different.
- Added response check for the custom component to ensure a successful status (200) after submission.

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
VICTOR CORREA GOMES 2024-12-18 18:54:13 -03:00 • committed by GitHub
commit e79b1649a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 14 deletions

View file

@ -21,6 +21,7 @@ class IDGeneratorComponent(Component):
display_name="Value",
info="The generated unique ID.",
refresh_button=True,
tool_mode=True,
),
]