* add pyinstrument and fastapi wrapper
* Truncate vertex build responses
* Truncate vertex response and transactions
* [autofix.ci] apply automated fixes
* Update test for vertex response structure to reflect new truncation logic
* Refactor profiling middleware to use environment variable for configuration
* Update test for vertex response structure to correct truncation logic
* move pyinstrument to dev dependencies
* Update serialization test to include max_items parameter for list truncation
* remove profiling from this PR, fix constants
* [autofix.ci] apply automated fixes
* Add asyncio configuration options to pyproject.toml
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* 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>
* 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>
* 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>
* fix: add event handling for AI message chunks in stream processing
* fix: integrate serialization in LangFuse and LangSmith tracers for improved data handling
* fix: Traces Export & Logs Type Casting For Arize & Phoenix Integration
* fix: Conditionally Set OTEL Headers for Arize Tracing
---------
Co-authored-by: Eric Hare <ericrhare@gmail.com>
* fix: correct typo in pyproject.toml timeout configuration
Updated the timeout_method key in the pytest.ini_options section from 'tiemout_method' to 'timeout_method' for proper functionality.
* chore: increase timeout for codspeed workflow to 600 seconds
Updated the codspeed workflow configuration to extend the timeout limit, ensuring more robust execution during CI processes.
* fix: Update assertion in TestGraphRAGComponent to use set comparison for improved clarity and performance
* fix: Change pytest timeout method from thread to signal for improved reliability
* 📝 (base.py): improve naming convention for task names in Graph class
🔧 (base.py): add error logging functionality in _execute_tasks method
🔧 (utils.py): update data parameter type in log_vertex_build function
🔧 (index.tsx): remove unused setCurrentFlow function call in StoreCardComponent
🔧 (use-get-builds-polling-mutation.ts): add error handling and display logic for build failures
🔧 (flowSidebarComponent/index.tsx): make showLegacy prop optional in FlowSidebarComponentProps interface
🔧 (index.tsx): remove commented out code related to branding in FlowPage component
* [autofix.ci] apply automated fixes
* fix: update URL construction in CopyFieldAreaComponent to handle undefined endpointName
- Modified the URL construction logic to use currentFlow.id when endpointName is not provided, ensuring a valid URL is always generated.
* 🔧 (base.py): add error logging method for vertex build failures
- Introduced `_log_vertex_build_from_exception` method to handle and log exceptions during vertex building, improving error reporting and output structure.
- Updated `_execute_tasks` method to utilize the new logging method for better exception handling.
* 🐛 (use-get-builds-polling-mutation.ts): fix error display count to only show errors once per build failure instead of multiple times
* 📝 (embedding_model.py): improve formatting of the info message for the 'dimensions' input to enhance readability and clarity
* [autofix.ci] apply automated fixes
* fix: add webhook component handling in task execution
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
fix: use correct logger and remove blanket logging config
* 🔧 (mcp.py, url.py, watsonx.py, langwatch.py, mem0_chat_memory.py, models/watsonx.py, schema.py): Remove standard logging and integrate loguru for enhanced logging functionality and consistency across components.
* ✨ (model.py): add UserOptin class to manage user opt-in actions for better organization and extensibility
♻️ (model.py): refactor User model to include user_optin field as a dictionary to store opt-in actions for users
* [autofix.ci] apply automated fixes
* change name optins
* [autofix.ci] apply automated fixes
* ✨ (add_optins_column_to_user.py): Add optins column to the user table to store user preferences
♻️ (model.py): Refactor UserOptin class to BaseModel for better type hinting and add optins field to User model with default values and proper typing
* [autofix.ci] apply automated fixes
* 🐛 (add_optins_column_to_user.py): fix an issue where the optins column was not being added if it already existed in the user table
* ✨ (empty-page.tsx): Add new page EmptyPageCommunity to display community information and actions
✨ (main-page.tsx): Add new page CollectionPage to manage collections and folders
🔧 (routes.tsx): Update import path for CollectionPage to point to the new main-page file
* ✨ (background-gradient.tsx): Add a new component BackgroundGradient to create a visually appealing background gradient effect for UI elements
📝 (empty-page.tsx): Refactor EmptyPageCommunity component to use the newly added BackgroundGradient component for GitHub and Discord sections to enhance visual appeal and consistency
* 📝 (tasks.mdc): Add concise task management protocol for sequential mode to improve task organization and execution
✨ (frontend): Introduce DotBackgroundDemo component for creating a visually appealing dot background effect
♻️ (frontend): Refactor BackgroundGradient component to improve gradient styling and border consistency
🔧 (frontend): Update motion import in background-gradient.tsx to use framer-motion instead of motion/react
🔧 (icons): Add missing newline at the end of Anthropic icon file
🔧 (empty-page.tsx): Adjust styling classes and z-index to improve layout and visual hierarchy in EmptyPageCommunity component
* ✨ (empty-page.tsx): add githubBg image import to use as background image for GitHub link
♻️ (empty-page.tsx): refactor positioning and styling of GitHub link elements for better alignment and readability
* 🔧 refactor(server.ts): change port variable case from lowercase port to uppercase PORT to improve semantics
✨ refactor(server.ts): add support for process.env.PORT environment variable to be able to run app on a configurable port
* 📝 (AccountMenu/index.tsx): Update imports and remove unused code for better organization and performance
🔧 (use-get-version.ts): Add functionality to refresh the latest version in darkStore after fetching version data
♻️ (darkStore.ts): Add refreshLatestVersion function to update the latest version in darkStore
📝 (dark/index.ts): Add latestVersion field and refreshLatestVersion function to DarkStoreType for better state management
* ✨ (AccountMenu/index.tsx): Add constants for Discord, Docs, GitHub, and Twitter URLs for better maintainability and reusability
📝 (constants.ts): Update Twitter URL to a new value for consistency with other URLs
📝 (TwitterX): Add new TwitterX icon and component for use in the application
📝 (styleUtils.ts): Import and use the new TwitterXIcon in the list of node icons
📝 (utils.ts): Update formatNumber function to handle undefined input values for better error handling
* [autofix.ci] apply automated fixes
* 📝 (add_optins_column_to_user.py): Update down_revision to '1b8b740a6fa3' for consistency
🔧 (AccountMenu/index.tsx): Adjust classNameSize prop value to 'w-[272px]' for styling consistency
🔧 (HeaderMenu/index.tsx): Update HeaderMenuItems component to accept classNameSize prop for dynamic styling
🔧 (langflow-counts.tsx): Adjust styling for better visual consistency and spacing
🔧 (index.tsx): Update className for Bell icon to include text-muted-foreground and strokeWidth
🔧 (get-started-progress.tsx): Update styling and spacing for better visual consistency
🔧 (header-buttons.tsx): Add Separator component for visual separation in HeaderButtons component
* 🔧 (AccountMenu/index.tsx): Adjust padding in AccountMenu component for better alignment and spacing. Fix ThemeButtons positioning for improved layout.
* ✨ (appHeaderComponent/index.tsx): Add support for managing flows and folders in the app header component
📝 (get-started-progress.tsx): Update heading tag to improve semantics
📝 (empty-page.tsx): Update text content in empty page to provide clearer instructions and information
* ✨ (background-gradient.tsx): Add support for dynamic border radius in BackgroundGradient component
🔧 (empty-page.tsx): Remove BackgroundGradient import and replace it with EnhancedBeamEffect component
🔧 (empty-page.tsx): Update styles and classes for EnhancedBeamEffect component and adjust layout
✨ (enchanced-beam-effect.tsx): Create EnhancedBeamEffect component to add enhanced beam effect to UI components
* ✨ (frontend): update text content and button labels in empty page component for better user experience
📝 (frontend): add data-testid attributes for testing purposes in various components
🔧 (frontend): add new test file for user progress tracking feature with Playwright tests
* ✨ (AccountMenu/index.tsx): Add Admin Page button for admin users in the account menu component
🔧 (user-progress-track.spec.ts): Add utility function addNewUserAndLogin to facilitate adding and logging in new users for testing purposes
* [autofix.ci] apply automated fixes
* 🐛 (get-started-progress.tsx): fix calculation of percentage to ensure it does not exceed 100%
* ✨ (empty-page.tsx): Add Lucide ExternalLink component for external links and update styling for external link icons
♻️ (empty-page.tsx): Refactor CSS classes for external link icons to improve readability and maintainability
📝 (index.css): Add custom CSS variable for Discord color
📝 (tailwind.config.mjs): Add Discord color to Tailwind CSS custom colors
* [autofix.ci] apply automated fixes
* add logo png
* ✨ (index.tsx): Add z-50 class to improve stacking context in CardsWrapComponent
✨ (empty-page.tsx): Add text-center class to center text elements in EmptyPageCommunity
✨ (empty-page.tsx): Adjust spacing and alignment in EmptyPageCommunity for better layout and readability
* 🐛 (AccountMenu/index.tsx): fix condition to show admin options only when isAdmin is true and autoLogin is false
* 🔧 (alertDropDown/index.tsx): update z-index value in PopoverContent class to z-50 for proper stacking order
* 🔧 (index.tsx): update z-index value to improve the stacking order of the component on the page
* ♻️ (index.tsx): refactor classNames in CardsWrapComponent to improve readability and maintainability
* 🐛 (empty-page.tsx): fix data-testid attribute value to match the updated element name for better consistency and clarity
🐛 (user-progress-track.spec.ts): fix test cases to match the updated data-testid attribute value for the main page title element to ensure accurate testing and assertions
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat: Update API key authentication logic and add deprecation warning
- Introduced a deprecation warning for the upcoming change in v1.5 regarding AUTO_LOGIN authentication, which will require a valid API key or JWT.
- Modified the authentication logic to check for API key or JWT in query parameters or headers before falling back to superuser credentials.
- Enhanced the clarity of authentication requirements for users integrating with Langflow.
* fix: Update deprecation warning message for API key authentication
* feat: add EmbeddingModelComponent for generating embeddings
- Introduced a new EmbeddingModelComponent to generate embeddings using specified providers, starting with OpenAI.
- Updated the __init__.py file to include the new component in the exports.
- The component includes various input fields for configuration, such as provider selection, model name, API key, and additional parameters.
* update the tests.
---------
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>