langflow
langflow copied to clipboard
feat: adding tool mode to LC model component
This pull request includes updates to the MessageInput
class and enhancements to the LCModelComponent
class to improve functionality and user experience.
Features:
- tool_mode added
- info for inputs updated
- added toolmixin for message input DataType.
Enhancements to LCModelComponent
:
-
src/backend/base/langflow/base/models/model.py
: Added additional attributes toMessageInput
, such asinfo
andtool_mode
, to provide more context and functionality for the input field.
Updates to MessageInput
class:
-
src/backend/base/langflow/inputs/inputs.py
: ModifiedMessageInput
to inherit fromToolModeMixin
, enhancing its capabilities by integrating tool mode functionality.