* refactor: enhance event polling to retrieve all available events and return in NDJSON format
Updated the event polling logic to collect all available events from the queue instead of just one. The response format has been changed to NDJSON, allowing multiple events to be returned in a single response. Improved error handling for timeouts by returning an empty response instead of raising an error.
* refactor: improve NDJSON event processing in build polling
Enhanced the event polling logic to handle NDJSON responses by processing multiple events in a single fetch. Updated the response handling to read the response as text, split it into individual JSON objects, and process each event accordingly. This change improves the efficiency of event handling and maintains a consistent polling interval.
* fix: change event list type from list[str] to list in get_flow_events_response
* refactor: enhance event stream consumption with timeout and error handling
Updated the consume_and_assert_stream function to include a timeout for processing events and improved error handling for JSON parsing failures. Added logging for better debugging and tracking of processed events. Adjusted the event validation logic to ensure both the first and last expected events are present.
* refactor: enhance event polling logic with improved limits and JSON validation
Updated the event polling mechanism to include configurable limits for total events and empty polls, along with a timeout for requests. Enhanced JSON validation for individual events and added logging for better debugging of polling behavior. This refactor aims to improve robustness and maintainability of the event consumption process.
* refactor: update polling interval and streamline event handling
Modified the polling interval constant to improve responsiveness and adjusted event handling logic in the get_flow_events_response function to simplify the processing of event values. This change enhances the efficiency of event consumption and maintains a consistent approach to handling NDJSON responses.
* refactor: simplify event retrieval in get_flow_events_response
Removed unused event_id and put_time variables from the event retrieval logic in the get_flow_events_response function. This change streamlines the code and enhances readability while maintaining the functionality of event handling.
* refactor: update consume_and_assert_stream to use asyncio.wait_for for timeout handling
Modified the consume_and_assert_stream function to utilize asyncio.wait_for for managing timeouts in event processing. This change improves compatibility with Python 3.10 and enhances the robustness of the event consumption logic while maintaining existing functionality.
* Changed backend to contain readonly props for tools
* Show name editing for not readonly tools
* Fixed edit-tools test
* Updated command to use "uvx" instead of "npx" for stability
* Fixed mcp code for authentication on auto_login=false
* removed args from component desc
* [autofix.ci] apply automated fixes
* making tool mode inputs the priority.
* fix: Clean up comments and whitespace in component_tool.py
* Fix column name
* update the dispaly name in composio
* fix format
* ✨ (get-started-progress.tsx): add data-testid attribute to improve testability and accessibility
🔧 (user-progress-track.spec.ts): update test assertions to use the new data-testid attribute for get started progress title
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* Update anthropic.py
* updates to templates
* [autofix.ci] apply automated fixes
* update the templates
* Refactor Anthropic API URL handling to use a constant. Introduced DEFAULT_ANTHROPIC_API_URL in anthropic_constants.py and updated references in anthropic.py for improved maintainability and clarity.
* [autofix.ci] apply automated fixes
* Refactor AnthropicModelComponent to streamline API URL handling. Removed unnecessary base_url checks and ensured consistent use of DEFAULT_ANTHROPIC_API_URL for improved clarity and maintainability.
* [autofix.ci] apply automated fixes
* Fix base_url check in update_build_config to ensure key existence before accessing value
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* ♻️ (appHeaderComponent/index.tsx): remove unused variables and condition for isEmpty to simplify the code and improve readability
* 📝 (empty-page.tsx): Update page title and descriptions to reflect the new branding and messaging for Langflow
🗑️ (github-bg.png): Delete unused background image file from the frontend assets folder
* 📝 (empty-page.tsx): update text size class from text-xs to text-sm for better readability
* 📝 (empty-page.tsx): Update EMPTY_PAGE_DESCRIPTION to remove extra period for consistency
📝 (empty-page.tsx): Increase font size for text elements for better readability and user experience
* 🐛 (empty-page.tsx): fix incorrect user tracking event name from "discord_joined" to "discord_clicked" to accurately track user actions
* ♻️ (get-started-progress.tsx): refactor height value from pixels to rem units for better consistency and maintainability
* Fix use drag and drop to check for playground page
* fix chat input to change file only if enable_image_on_playground is enabled and its on playground page
* change input wrapper to show upload file if constant is enabled
* changed onDrop to not allow sending files if enable_image_on_playground is disabled
* refactor: Update Simple Agent configuration and enhance tool integration
- Changed source and target handles to improve data flow between components.
- Updated input types for better compatibility with new data structures.
- Enhanced tool metadata and descriptions for clarity.
- Adjusted layout dimensions and properties for improved UI consistency.
- Updated agent and tool identifiers to reflect recent changes in the system.
* refactor: Update Invoice Summarizer project configuration and component identifiers
- Changed component IDs and source/target handles for improved data flow.
- Updated tool and agent identifiers to align with recent system changes.
- Adjusted layout properties and descriptions for better clarity and consistency.
- Enhanced metadata for tools and components to facilitate better integration.
* refactor: Update Pokédex Agent configuration and component identifiers
- Changed component IDs and source/target handles to enhance data flow.
- Updated input types and tool identifiers for improved compatibility with recent system changes.
- Enhanced layout properties and descriptions for better clarity and consistency.
- Adjusted metadata for tools and components to facilitate better integration.
* refactor: Update Search Agent configuration for improved compatibility
- Removed input types for the OpenAI API Key to streamline configuration.
- Added new model options including "gpt-4.1", "gpt-4.1-mini", and "gpt-4.1-nano" for enhanced flexibility.
- Updated default model value to "gpt-4.1" for better alignment with current capabilities.
* refactor: Update Financial Agent configuration and component identifiers
- Changed component IDs and source/target handles to enhance data flow.
- Updated tool and agent identifiers for improved compatibility with recent system changes.
- Adjusted layout properties and descriptions for better clarity and consistency.
- Enhanced metadata for tools and components to facilitate better integration.
* refactor: Update Gmail Agent configuration for improved model options
- Removed input types for the OpenAI API Key to streamline the configuration.
- Added new model options including "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", and "o1" for enhanced flexibility.
- Updated default model value to "gpt-4.1" for better alignment with current capabilities.
* refactor: Update Invoice Summarizer project configuration for improved clarity
- Standardized formatting of source and target handles for consistency.
- Adjusted score representation for better readability.
- Removed unnecessary hidden properties to streamline configuration.
- Enhanced metadata for components to facilitate better integration.
* refactor: Standardize source and target handles in agent configurations
- Updated formatting of source and target handles in both Pokédex and Simple Agent configurations for improved consistency.
- Removed unnecessary hidden properties to streamline the configuration.
- Enhanced metadata for components to facilitate better integration and clarity.
* refactor: Streamline OpenAI API Key configuration and enhance model options
- Removed input types for the OpenAI API Key to simplify the configuration.
- Added new model options including "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", and "o1" for increased flexibility.
- Updated default model value to "gpt-4.1" for better alignment with current capabilities.
* refactor: Simplify OpenAI API Key configuration and expand model options
- Removed input types for the OpenAI API Key to streamline the configuration.
- Added new model options "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", and "o1" for enhanced flexibility.
- Updated default model value to "gpt-4.1" for better alignment with current capabilities.
* refactor: Update YouTube Analysis project configuration for improved model options
- Removed input types for the OpenAI API Key to simplify the configuration.
- Added new model options "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", and "o1" for enhanced flexibility.
- Updated default model value to "gpt-4.1-mini" for better alignment with current capabilities.
* fix: update tools in Travel Planning Agents
* update mutateTemplate to be debounced by nodeId
* update fetch data on mount to fetch node data if its tool mode
* Update mutateTemplate instances to contain nodeId
* update starter projects to use gpt-4.1-mini model
* fix: update test expectation for Portfolio Website Code Generator
---------
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
* fix streaming for anthropic models and optimise the _extract_output_text
* Update src/backend/base/langflow/base/agents/events.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: improve handling of AIMessageChunk state and output text extraction
* fix: change ValueError to TypeError in output text extraction
* fix: ensure output text is appended only if it is valid and agent message text is a string
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* Added new animation
* Use animation on code button and make it appear just once
* fix tests
* Fix Mcp Icon
* Fix fill on white mode
* fixed tests
* Fixed mcp color on dark mode
* feat: update icon handling and version bump to 1.3.4
* feat: enhance icon rendering and add data-testid attributes for better testing
* revert backend and added change to frontend
* fixed jumping icons
* Fix MAC OS detection by checking if navigator is defined before accessing userAgent
* Remove uv.lock file and update package-lock.json
* Update Playwright and Playwright test dependencies to v1.52.0
* Refactor icon formatting logic into a separate variable for better readability
* Add uv.lock file with Python package dependencies
* Update UV dependencies lock file
* Skip group and ungroup test in workspace release tag
* Simplify data-testid logic in genericIconComponent using optional chaining
* Enable group and ungroup values test by removing test.skip
* Fix icon validation and update icon component data-testid logic
* Simplify icon validation by removing Font Awesome check and refactoring boolean logic
* Simplify MAC OS detection by removing unnecessary type check
* Fix icon case sensitivity in ListItem component by capitalizing first letter
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
🔧 (get-started-progress.tsx): Increase height of GetStartedProgress component for better visibility
🔧 (get-started-progress.tsx): Adjust text size for better readability and consistency
🔧 (get-started-progress.tsx): Update text size for certain elements to improve UI consistency
🔧 (index.tsx): Adjust text size for better readability and consistency in SideBarFoldersButtonsComponent
* Fix rapid update with already rendered components
* Added check to not re-render previously rendered icons
* Removed all loaded icons in favor of lazy loaded icons
* Fixed Share icon
* Updated Lucide
* Deleted Eager Icon Imports
* Added AWS Inverted to Lazy Icon Imports
* Added check if name contains a number to kebab case name
* fixed freeze path shortcut
* Added remaining icons to lazy icons mapping
* Removed unused icon mapping, added eager loading react icons, added replacing "icon" with "" on get lucide name
* removed unused import
* Update hook to not be used inside function call
* Updated package-lock
* feat: add google calendar component
* feat: add Composio Google Calendar Component
* fix: update field names to use '_' as separator & remove init
* fix: update field names to use '_' as separator & remove init
* feat: add google calendar test file & minor improvements
* fix: format
* fix: format
---------
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* Add tools input to the backend
* Add tools type
* Add tools component to parameter render
* Added tools to langflow supported types
* Add tools modal
* Instantiate tools component in parameter render
* Removed div when there is not any visible actions
* Added margin
* Add ComboBoxItem and ListItem components for enhanced selection UI
* Update ComboBoxItem to display item description and enhance ToolsModal layout
* Refactor ToolsModal header styling for improved layout and icon padding
* Enhance ComboBoxItem layout and styling; update ToolsModal size and class for better responsiveness
* Changed display name
* Adds truncate for badges
* Adds custom styling for table used for Tools modal
* Added Tools modal with AgGrid
* Changed button
* made name and description editable
* Parse values for saving
* Add focused row without triggering checkbox click
* [autofix.ci] apply automated fixes
* Added types for tools modal
* added toolsTable with sidebar on toolsModal
* Added changes to work with MCP
* update component.py to add display name and display description in tool mode
* removed editing directly
* Fixed editing
* removed to upper case
* Make editing apply filters
* Adds design changes for MCP
* Adds new design and null check
* 📝 (frontend): add data-testid attribute to elements for testing purposes
🔧 (frontend): update data-testid attribute values for consistency and clarity in testing
✅ (frontend): update tests to use correct selectors and improve test coverage for editing tools functionality
* ✅ (edit-tools.spec.ts): update test to use a more reliable method for checking visibility of an element
* ✅ (edit-tools.spec.ts): add "@components" tag to the test to categorize it under components for better organization and filtering in test suites.
* Updated design with new design
* update padding
* send args to tools data
* Implemented showing arguments passed to LLM in tool mode
* add componentg name to description
* update package lock
* fixed tests
* fixed backend test
* fixed backend test
* fixed formatting
* Fixed frontend tests
* updated font sizes for badges on actions and styling on sortable list
* Update tool mode design
* added tooltips for info
* tool name update
* Update component_tool.py
* styling utils
* default values change
* fixed tools test
* fix format issues
---------
Co-authored-by: deon-sanchez <deon.sanchez@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>