feat: Add Python flow execution support for Assistant by Cristhianzl · Pull Request #11553 · langflow-ai/langflow (original) (raw)

…11446)

Enhances provider variable handling by introducing a metadata structure for all required variables per provider, including support for providers with multiple required variables (e.g., IBM WatsonX). Updates backend API to return full variable info, adapts frontend to dynamically render and save multiple variables, and adds comprehensive tests for the new API response. Also updates static mappings and introduces a new React hook for fetching provider variable metadata.

Replaces per-variable auto-save with a batch save for all provider variables, improving UX and reducing API calls. Updates input handling to show masked values for secrets, disables save button until all required fields are filled, and provides clearer feedback for configured variables.

Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com

Centralize MODEL_PROVIDER_METADATA in model_metadata.py and update unified_models.py to import and use it. Refactor provider validation to accept all required variables as a dictionary, supporting providers with multiple required credentials. Simplify and generalize validation logic for all providers.

Centralizes provider-specific parameter mappings in model_metadata.py and introduces get_provider_param_mapping for reuse. Updates unified_models.py to use this mapping, reducing duplication and improving maintainability for model class, API key, and other provider-specific parameters.

Replaces the API key-specific check with a more general configuration requirement, considering all required provider variables (not just secrets). Updates related UI logic and labels to reflect this broader configuration requirement.

Update logic to consider both secret and non-secret variables when determining enabled providers. Refactor to fetch all required provider variables, not just credentials, and ensure correct values are passed for validation. This improves accuracy for providers that require non-secret configuration variables.

Replaces provider-specific field toggling logic in starter project LanguageModelComponent definitions with a call to apply_provider_variable_config_to_build_config. This centralizes provider-specific configuration, improving maintainability and extensibility for new model providers.


Co-authored-by: keval shah kevalvirat@gmail.com

fix: add LM components to starter_projects in BPC

add Language Model components to Basic Prompt Chaining,json in starter_projects

This change enables proper vertex event streaming during loop execution by running each iteration as an isolated subgraph with its own context.

Reduced test complexity by removing excessive mocking while maintaining completeå event manager propagation coverage. Event manager tests are critical for ensuring UI updates work correctly during loop execution.

HandleInput fields (type="other") were receiving None instead of loop items because:

  1. Fields with type="other" are skipped during field param processing
  2. Loop->Parser edge is filtered out in subgraph creation
  3. updated_raw_params flag was reset too early by multiple build_params() calls

Fix:

Tests:


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

for distributed envs, diff backends may have diff autologin settings, so don't assume config


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

Applies the fix from PR #9422 (commit 18e2ff2d2d) to the lfx module, which was previously only applied to the backend module.

PR #9422 fixed a bug where environment variable fallback would fail when load_from_db=True inputs couldn't find variables in the database.

The fix properly distinguishes between two error cases:

However, this fix was only applied to:

And was missing from:

PR #9902 added table field support and reorganized the test imports to use the lfx module (which has table support). The test was updated to use "Database connection failed" error message to work with the existing code, rather than "variable not found." which would trigger the bug.

This commit:

  1. Applies the bug fix to the lfx module's regular field handler
  2. Restores the original test behavior using "variable not found." to properly validate that the fix works

Fixes: https://github.com/langflow-ai/langflow/issues/11422 Related: #9422, #9902


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: Cristhian Zanforlin Lousa cristhian.lousa@gmail.com Co-authored-by: Carlos Coelho 80289056+carlosrcoelho@users.noreply.github.com Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

build(deps-dev): bump @modelcontextprotocol/sdk in /src/frontend

Bumps @modelcontextprotocol/sdk from 1.25.3 to 1.26.0.


updated-dependencies:

Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gabriel Luiz Freitas Almeida gabriel@logspace.ai

Add sliding playground layout (SimpleSidebar + sliding container + store) and toolbar button integration to open it directly + chat header/session components and hooks (SessionSelector, SessionRename, ChatHeaderTitle, use-get-flow-id, playgroundStore).

This reverts commit ec3ed63fa8638a4b5d1777576aa7b4736e03c237.

This reverts commit 93637ae4de873af2f89424d536459fda13b0f67f.


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Olfa Maslah olfamaslah@Olfas-MacBook-Pro.local Co-authored-by: Lucas Oliveira 62335616+lucaseduoli@users.noreply.github.com Co-authored-by: Keval718 kevalvirat@gmail.com Co-authored-by: cristhianzl cristhian.lousa@gmail.com Co-authored-by: Lucas Oliveira lucas.edu.oli@hotmail.com


Co-authored-by: Olfa Maslah olfamaslah@Olfas-MacBook-Pro.local Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Lucas Oliveira 62335616+lucaseduoli@users.noreply.github.com Co-authored-by: Lucas Oliveira lucas.edu.oli@hotmail.com Co-authored-by: Keval718 kevalvirat@gmail.com Co-authored-by: cristhianzl cristhian.lousa@gmail.com


Co-authored-by: Olfa Maslah olfamaslah@Olfas-MacBook-Pro.local Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Lucas Oliveira 62335616+lucaseduoli@users.noreply.github.com Co-authored-by: Lucas Oliveira lucas.edu.oli@hotmail.com Co-authored-by: Keval718 kevalvirat@gmail.com Co-authored-by: cristhianzl cristhian.lousa@gmail.com


Co-authored-by: Olfa Maslah olfamaslah@Olfas-MacBook-Pro.local Co-authored-by: Lucas Oliveira 62335616+lucaseduoli@users.noreply.github.com Co-authored-by: Lucas Oliveira lucas.edu.oli@hotmail.com Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Keval718 kevalvirat@gmail.com Co-authored-by: cristhianzl cristhian.lousa@gmail.com

This reverts commit f230c8c6dd25a88b47739f8a83c0c8296f24778c.


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

reset playground state when leaving the flow

fix(frontend): prevent Message Logs table from dropping columns with falsy values


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

Co-authored-by: Olayinka Adelakun olayinkaadelakun@mac.war.can.ibm.com


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

fix: pass renameLocalSession to ChatHeader to fix session rename creating new session

The session rename from the chat header's more menu was creating a new session instead of renaming the existing one. This was because renameLocalSession was not being passed to useEditSessionInfo in chat-header.tsx.


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

fix(frontend): prevent duplicate session creation when renaming in non-fullscreen mode

Memory Chatbot:

Simple Agent Memory:

Memory Chatbot:

Simple Agent Memory:


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Lucas Oliveira lucas.edu.oli@hotmail.com Co-authored-by: keval shah kevalvirat@gmail.com Co-authored-by: Olfa Maslah olfamaslah@Olfas-MacBook-Pro.local Co-authored-by: Lucas Oliveira 62335616+lucaseduoli@users.noreply.github.com Co-authored-by: cristhianzl cristhian.lousa@gmail.com Co-authored-by: Viktor Avelino viktor.avelino@gmail.com Co-authored-by: olayinkaadelakun olayinka.adelakun@ibm.com Co-authored-by: Olayinka Adelakun olayinkaadelakun@mac.war.can.ibm.com Co-authored-by: Viktor Avelino 64113566+viktoravelino@users.noreply.github.com

fix: Fix link visibility and URL in save flow modal

Co-authored-by: Viktor Avelino 64113566+viktoravelino@users.noreply.github.com

refactor runflow

remove print calls

allow Data inputs and refactoring of runflow component with updated tests

misc

misc

persist tweaks in multi-input scenario

add regression tests

chore: update component index

ruff (tests)

checkout component index from main

chore: update component index

obfuscate error message

chore: update component index

chore: update component index


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Carlos Coelho 80289056+carlosrcoelho@users.noreply.github.com


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Olayinka Adelakun olayinkaadelakun@mac.war.can.ibm.com

allow prerelease versions dedicated to qa

use a python script to auto incremenet rc version so we do not have to manually maintain what rc version we are on. add it to both release.yml and docker-build-v2.yml for pypi, docker and ghrc.

use ./local-packages --index-strategy unsafe-best-match

add a dynamic constriant for langflow base during build-main. if this works I will need to go back and remove any unneeded cross-platform test changes

ragstack-ai-knowledge-store does not support pythong 3.13

hopeffuly fixes Found 1 incompatibility The package ragstack-ai-knowledge-store requires Python >=3.9, <3.13, but 3.13.11 is installed

add OBJC_DISABLE_INITIALIZE_FORK_SAFETY: YES to macos cross-platform test builds

This reverts commit 22737729a2d0ed64ea774a30af070f0010cba9e1.


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: vijay kumar katuri vijaykaturi@vijays-MacBook-Air.local Co-authored-by: vijay kumar katuri vijay.katuri@ibm.com

Co-authored-by: Adam-Aghili 149833988+Adam-Aghili@users.noreply.github.com


Co-authored-by: Adam-Aghili 149833988+Adam-Aghili@users.noreply.github.com

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

This reverts commit acf21900017ad2b459340c73becde06a894adf83.


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Cristhian Zanforlin Lousa cristhian.lousa@gmail.com Co-authored-by: Olfa Maslah olfamaslah@Olfas-MacBook-Pro.local Co-authored-by: Rodrigo Nader rodrigonader@Mac.localdomain Co-authored-by: Claude Opus 4.5 noreply@anthropic.com

Add LLM-based guardrails component for detecting PII, tokens/passwords, jailbreak attempts, and custom guardrail rules, along with comprehensive unit tests.


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Viktor Avelino viktor.avelino@gmail.com Co-authored-by: Viktor Avelino 64113566+viktoravelino@users.noreply.github.com


Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local Co-authored-by: Carlos Coelho 80289056+carlosrcoelho@users.noreply.github.com Co-authored-by: Olayinka Adelakun olayinkaadelakun@mac.war.can.ibm.com

During rebase, the teardown method was added in two locations (lines 57 and 220). Removed the duplicate at line 57, keeping the one at the end of the class (line 220) which is the more appropriate location for cleanup methods.

These changes fix test failures caused by LocalStorageService requiring session_service and settings_service parameters instead of just data_dir.

This refactor enhances the clarity and maintainability of the authentication logic.

These additions improve the reliability and maintainability of the authentication system.

These changes improve the accuracy and maintainability of the authentication tests.

Co-authored-by: ogabrielluiz 24829397+ogabrielluiz@users.noreply.github.com Co-authored-by: copilot-swe-agent[bot] 198982749+Copilot@users.noreply.github.com

After the pluggable auth refactor, encrypt_api_key and decrypt_api_key no longer take a settings_service argument - they get it internally.

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Mike Pawlowski mike.pawlowski@datastax.com Co-authored-by: Mike Pawlowski mpawlow@ca.ibm.com Co-authored-by: Himavarsha 40851462+HimavarshaVS@users.noreply.github.com Co-authored-by: Copilot 198982749+Copilot@users.noreply.github.com Co-authored-by: ogabrielluiz 24829397+ogabrielluiz@users.noreply.github.com Co-authored-by: himavarshagoutham himavarshajan17@gmail.com Co-authored-by: Deon Sanchez 69873175+deon-sanchez@users.noreply.github.com Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>