refactor: reorganize CUGA and ALTK components into single-element bundles#10671
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis PR updates 30+ starter project JSON files to remove hardcoded dependency versions (setting them to null) and adds telemetry/UI configuration metadata. It also reorganizes the LFX component module structure by removing the backwards-compatibility agents module and introducing new altk and cuga component packages, while updating frontend sidebar bundles. Changes
Sequence DiagramsequenceDiagram
participant User
participant Frontend as Frontend (styleUtils)
participant Components as lfx.components
participant AltK as altk Package
participant Altk_Agent as altk_agent Module
User->>Frontend: Request sidebar bundle
Frontend->>Frontend: Include ALTK/CUGA entries
User->>Components: Import altk component
Components->>Components: Route to altk subpackage
AltK->>AltK: __getattr__ lazy-load trigger
AltK->>Altk_Agent: import ALTKAgentComponent
Altk_Agent-->>AltK: Return component
AltK->>Components: Expose component
Components-->>User: Provide ALTKAgentComponent
Note over Components,Altk_Agent: Old: components.agents → models_and_agents<br/>New: components.altk (dedicated package)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 error, 2 warnings)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (40.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #10671 +/- ##
==========================================
- Coverage 31.64% 31.62% -0.02%
==========================================
Files 1350 1350
Lines 61136 61154 +18
Branches 9138 9142 +4
==========================================
- Hits 19344 19340 -4
- Misses 40878 40897 +19
- Partials 914 917 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 8
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (24)
src/backend/base/langflow/initial_setup/starter_projects/Instagram Copywriter.json (2)
2329-2352: IntInput uses float range_spec — type mismatch.max_tokens is type "int" but min/max are floats and step_type is "float". This can cause UI validation/step glitches. Use integer bounds and step.
Apply:
- "range_spec": { "max": 128000.0, "min": 0.0, "step": 0.1, "step_type": "float" } + "range_spec": { "max": 128000, "min": 0, "step": 1, "step_type": "int" }
2373-2416: Add refresh_button: true and remove speculative model entries from Instagram Copywriter.json.The field lacks the refresh_button configuration despite the info text referencing it. Additionally, the model list includes unconfirmed entries (gpt-5.1, gpt-5-chat-latest, o3-pro, o4-mini-high) not in OpenAI's current API. Three instances require fixes:
src/backend/base/langflow/initial_setup/starter_projects/Instagram Copywriter.jsonlines ~2381, ~2849, ~3171: Add"refresh_button": trueto each model_name field and audit model options against OpenAI's current offerings. Set"real_time_refresh": trueor align with refresh_button behavior.src/backend/base/langflow/initial_setup/starter_projects/Search agent.json (3)
1292-1315: IntInput range_spec should be integer.max_tokens is “int” but uses float bounds/step. Align to ints to prevent UI quirks.
- "range_spec": { "max": 128000.0, "min": 0.0, "step": 0.1, "step_type": "float" } + "range_spec": { "max": 128000, "min": 0, "step": 1, "step_type": "int" }
1336-1379: Mismatch between UI text and configuration: enable dynamic refresh for model options.The model_name field has
"dynamic": falseand"real_time_refresh": false, yet the info text states "click the refresh button next to the model name." Additionally, there is norefresh_buttonfield configured. Models available in OpenAI's Chat Completions API include gpt-5, gpt-5-mini, gpt-5-nano, gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, o1, o3, o3-mini, and o4-mini, but the JSON lists speculative variants (gpt-5.1, o4-mini-high, gpt-5-chat-latest, o3-pro) not in the official API.Enable dynamic refresh by setting
"dynamic": true,"real_time_refresh": true, and adding the"refresh_button": truefield to align with the UI instruction and prevent stale model lists.
1268-1271: Telemetry allowlist — redact API/base URLs or opt them out.Multiple starter_project inputs set track_in_telemetry: true and include URL-like/base endpoints (example: src/backend/base/langflow/initial_setup/starter_projects/Nvidia Remix.json contains "https://us-south.ml.cloud.ibm.com"). The input-tracking check only auto-excludes SENSITIVE_FIELD_TYPES (PASSWORD, AUTH, FILE, CONNECTION), so base_url/ollama_base_url and similar fields are currently captured. Either set track_in_telemetry: false for those URL fields, add URL/endpoint fields to SENSITIVE_FIELD_TYPES, or implement value-level redaction (mask/remove URL-like and secret values) in the telemetry pipeline before sending. Share the telemetry policy/pointer and confirm which remediation you'll apply.
src/backend/base/langflow/initial_setup/starter_projects/Market Research.json (5)
1389-1393: Provider/options mismatch: add IBM watsonx.ai and Ollama to the template options.The code supports IBM/Ollama, but the template’s provider options only list OpenAI/Anthropic/Google. Users won’t be able to select IBM/Ollama from UI.
Apply in the template’s provider field:
- Add "IBM watsonx.ai" and "Ollama" to options and options_metadata (icons already present in code block).
Also applies to: 1278-1313
1897-1920: IntInput uses float range and empty string default.For
max_tokens(IntInput),range_spec.min/maxare floats andvalueis "". This causes validation/UX issues.
- Use integer
min/max/stepand set a numeric or null default:- "range_spec": { "max": 128000.0, "min": 0.0, "step": 0.1, "step_type": "float" }, + "range_spec": { "max": 128000, "min": 0, "step": 1, "step_type": "int" }, - "value": "" + "value": 0If “unlimited” is supported, treat 0 or null as unlimited consistently.
2311-2329: Parser convert_to_string: avoid False fallback.
safe_convert(self.input_data or False)emits “False” text if input_data is falsy. Prefer passing None.- result = safe_convert(self.input_data or False) + result = safe_convert(self.input_data)
537-553: I'll verify this by checking the project's Python version requirements and confirming the isinstance behavior across Python versions.Now let me search for the project's Python version requirements:Now let me check the actual behavior with custom classes on Python 3.10/3.11:
Based on my verification:
Langflow requires Python 3.10 to 3.13. The union syntax with
|operator is valid for isinstance starting Python 3.10, meaning the current code usingisinstance(x, Message | Data | DataFrame | str)will NOT raise a TypeError on Langflow's supported Python versions.However, there's an important correction needed: Edge case bugs in isinstance/issubclass with union types were documented in Python 3.10 and 3.11, with core developers noting the union form should have the same behavior as tuple form. The review's claim about Python <3.12 is technically inaccurate—the real incompatibility begins at Python <3.10, though subtle edge cases exist through 3.11.
That said, isinstance has always accepted tuples of classes, and using tuples instead of unions is recommended to avoid issues. The suggested fix is valid best practice for robustness.
Correct the Python version threshold: union syntax in isinstance fails on Python <3.10 (not <3.12). Since Langflow requires 3.10+, the code technically works, but tuple form is recommended best practice for robustness.
Apply inside the embedded code:
- if isinstance(self.input_value, list) and not all( - isinstance(item, Message | Data | DataFrame | str) for item in self.input_value - ): + if isinstance(self.input_value, list) and not all( + isinstance(item, (Message, Data, DataFrame, str)) for item in self.input_value + ): @@ - if not isinstance( - self.input_value, - Message | Data | DataFrame | str | list | Generator | type(None), - ): + if not isinstance( + self.input_value, + (Message, Data, DataFrame, str, list, Generator, type(None)), + ):
1211-1229: Add missing langchain_ibm and langchain_ollama to Market Research.json dependencies.The LanguageModelComponent in
src/lfx/src/lfx/components/models_and_agents/language_model.pyimports bothlangchain_ibm(ChatWatsonx) andlangchain_ollama(ChatOllama), but these packages are missing from the dependencies metadata in the JSON file. While components handle missing imports gracefully with try/except blocks and user-friendly error messages, the metadata should be consistent with the actual code to avoid misleading documentation and UI displays.Add to the dependencies array:
langchain_ibmlangchain_ollamasrc/backend/base/langflow/initial_setup/starter_projects/Pokédex Agent.json (2)
913-930: Redirects enabled + SSRF check warn‑only = risk.
follow_redirectsis true, and SSRF validation in the component useswarn_only=True. A public URL could redirect to internal metadata endpoints.
- Default
follow_redirectsto false in this starter.- Consider disallow‑list for link‑local/metadata IP ranges until SSRF is strictly enforced.
- "follow_redirects": { ..., "value": true } + "follow_redirects": { ..., "value": false }
1586-1609: IntInput uses float range and empty string default (Max Tokens).Same as Market Research; use integer step and numeric/null default.
- "range_spec": { "max": 128000.0, "min": 0.0, "step": 0.1, "step_type": "float" }, + "range_spec": { "max": 128000, "min": 0, "step": 1, "step_type": "int" }, - "value": "" + "value": 0src/backend/base/langflow/initial_setup/starter_projects/Travel Planning Agents.json (2)
560-576: Fix invalid isinstance usage with PEP 604 unions (runtime TypeError).Inside ChatOutput.code, replace union types in isinstance with tuples.
Apply this patch within the ChatOutput "value" code string:
- if isinstance(self.input_value, list) and not all( - isinstance(item, Message | Data | DataFrame | str) for item in self.input_value - ): + if isinstance(self.input_value, list) and not all( + isinstance(item, (Message, Data, DataFrame, str)) for item in self.input_value + ): invalid_types = [ type(item).__name__ for item in self.input_value - if not isinstance(item, Message | Data | DataFrame | str) + if not isinstance(item, (Message, Data, DataFrame, str)) ] msg = f"Expected Data or DataFrame or Message or str, got {invalid_types}" raise TypeError(msg) - if not isinstance( - self.input_value, - Message | Data | DataFrame | str | list | Generator | type(None), - ): + if not isinstance( + self.input_value, + (Message, Data, DataFrame, str, list, Generator, type(None)), + ):
2019-2033: Use integer range_spec for IntInput sliders (avoid float step/min/max).max_tokens is IntInput but has float min/max/step. Use integers and step 1.
"max_tokens": { "_input_type": "IntInput", @@ - "range_spec": { - "max": 128000.0, - "min": 0.0, - "step": 0.1, - "step_type": "float" - }, + "range_spec": { + "max": 128000, + "min": 0, + "step": 1, + "step_type": "int" + },Apply to all three Agent nodes' max_tokens fields (lines shown).
Also applies to: 2761-2775, 3501-3517
src/backend/base/langflow/initial_setup/starter_projects/Simple Agent.json (1)
1671-1687: Add lxml or change parser: BeautifulSoup is called with 'lxml' but lxml isn’t declared.At runtime, BeautifulSoup(..., "lxml") will fail if lxml isn’t installed. Either add lxml to dependencies or switch to the stdlib parser.
Apply one of:
Option A — declare lxml:
"dependencies": [ { "name": "requests", - "version": "2.32.5" + "version": "2.32.5" }, { "name": "bs4", "version": null }, + { + "name": "lxml", + "version": null + }, { "name": "langchain_community", "version": null },Option B — use built-in parser:
- extractor = (lambda x: x) if self.format == "HTML" else (lambda x: BeautifulSoup(x, "lxml").get_text()) + extractor = (lambda x: x) if self.format == "HTML" else (lambda x: BeautifulSoup(x, "html.parser").get_text())Also applies to: 1755-1771
src/backend/base/langflow/initial_setup/starter_projects/Price Deal Finder.json (3)
544-566: Fix ChatOutput input type: should be HandleInput, not MessageInput.The ChatOutput component class defines input_value as a HandleInput. Using MessageInput can break edge connections and runtime handling.
- "_input_type": "MessageInput", + "_input_type": "HandleInput", "display_name": "Inputs", "input_types": ["Data","DataFrame","Message"], - "type": "str", + "type": "other",
1421-1426: Use integer step for integer field.wait_for uses step_type "int" but step 0.1. Use step 1 for cleaner UX.
- "step": 0.1, - "step_type": "int" + "step": 1, + "step_type": "int"
1997-2040: Remove or verify 6 model IDs that are not in official OpenAI documentation.The static list includes models not documented in OpenAI's official Nov 2025 API reference:
gpt-5.1(no such model documented; onlygpt-5exists)gpt-5-nano(not documented)gpt-5-chat-latest(not documented; should begpt-5-chat)gpt-4-turbo-preview(dated alias; usegpt-4-turbo)o3-pro(not documented)o4-mini-high(not documented)Keep documented models:
gpt-4o-mini,gpt-4o,gpt-4.1,gpt-4.1-mini,gpt-4.1-nano,gpt-4-turbo,gpt-4,gpt-3.5-turbo,gpt-5,gpt-5-mini,o1,o3-mini,o3,o4-mini.src/backend/base/langflow/initial_setup/starter_projects/Youtube Analysis.json (1)
1105-1128: Fix type mismatch in max_tokens field: float step with integer type.Line 1127 declares
"type": "int"but the range_spec uses"step": 0.1and"step_type": "float". This semantic mismatch could cause validation errors or unexpected UI behavior.Options:
- If max_tokens should accept fractional values, change
"type": "int"to"type": "float"and remove the.0notation from the step value.- If max_tokens must be an integer, change
"step": 0.1to"step": 1and"step_type": "float"to"step_type": "int".src/backend/base/langflow/initial_setup/starter_projects/Nvidia Remix.json (2)
2321-2337: Defaulting dangerous deserialization to true is unsafe.Loading pickles from untrusted sources risks RCE. Ship starters with this OFF and let advanced users opt in.
- "display_name": "Allow Dangerous Deserialization", + "display_name": "Allow Dangerous Deserialization", ... - "value": true + "value": false
983-991: Hidden required field.
base_urlisrequired: truebutshow: false. This can block saves or confuse validation. Make it not required if hidden.- "required": true, + "required": false, "show": false,src/backend/base/langflow/initial_setup/starter_projects/Sequential Tasks Agents.json (3)
3805-3821: Wrong default for Tavily API Key; should reference TAVILY_API_KEY.The SecretStrInput for Tavily uses the OpenAI env key by mistake.
Apply:
- "value": "OPENAI_API_KEY" + "value": "TAVILY_API_KEY"
748-791: “Click the refresh button” UX mismatch: button disabled and real_time_refresh off.Info text tells users to refresh model list, but model_name lacks refresh_button and real_time_refresh is false.
Recommend:
"model_name": { "_input_type": "DropdownInput", "combobox": true, - "external_options": {}, + "external_options": {}, + "real_time_refresh": true, + "refresh_button": true, "info": "To see the model names, first choose a provider. Then, enter your API key and click the refresh button next to the model name.",Also applies to: 1497-1540, 3017-3060
757-778: Remove speculative GPT-5 series models and mark deprecated entries; consider dynamic model refresh instead of hardcoding.The current list includes entries not yet generally available: gpt-5.1, gpt-5, gpt-5-mini, gpt-5-nano, and gpt-5-chat-latest are not listed as currently available models as of November 2025. Additionally, o1 is being superseded by o3 in ChatGPT and API rollouts and should be marked as legacy or phased-out. gpt-4-turbo-preview should be replaced with the canonical gpt-4-turbo.
Remove all gpt-5* entries and gpt-4-turbo-preview from lines 757–778 (and mirror locations at 1506–1527 and 3026–3047). Keep o3, o3-pro, o3-mini, o4-mini, and o4-mini-high, but demote or remove o1. Hardcoding remains a long-term risk; prefer dynamic fetch from OpenAI's models endpoint.
🧹 Nitpick comments (29)
src/backend/base/langflow/initial_setup/starter_projects/Custom Component Generator.json (1)
2244-2250: Set version constraints for external dependencies used in ChatOutput componentThe concern is valid: the ChatOutput component's code (lines 2316+) imports and uses both
orjsonandfastapi.encoders, so null versions in the dependency specification create reproducibility risk. The proposed ranges (orjson >=3.10,<4andfastapi >=0.120,<1) align with current releases orjson 3.11.4 (Oct 2025) and fastapi 0.121.3 (Nov 2025), and the conservative major-version bounds are reasonable.However, verify these ranges work correctly:
- Confirm the suggested versions are compatible with the codebase's Python runtime and other dependencies
- Test the ChatOutput component with the proposed version constraints before committing
src/backend/base/langflow/initial_setup/starter_projects/Research Translation Loop.json (1)
409-415: <!-- [scratchpad_start]
[task review_file_2/3 verify_dependencies COMPLETE][observations]
- pandas version: null confirmed (original claim accurate)
- orjson, fastapi version: null confirmed in ChatOutput node (lines 409-415)
- ChatOutput-hmMTq affected: null versions for orjson, fastapi, lfx
- TypeConverterComponent-NClYY affected: null version for pandas
- Multiple other nodes affected: lfx with null version
[analysis]
- Review comment concerns are VERIFIED:
- orjson/fastapi null versions exist as cited (ChatOutput dependencies)
- pandas null version exists as cited (TypeConverterComponent)
- Pattern: Multiple runtime deps across components have no version constraints
- Reproducibility risk is real: null versions allow any version on install
- Runtime deps are critical (fastapi, orjson for REST layer; pandas for data ops)
- Recommendation (bounded ranges or central constraints) is sound practice
[done]
- File structure explored
- null-versioned deps identified across components
- Node context determined
- Review comment verified as accurate
- Concern validity confirmed
</scratchpad_end] -->Null-pinned dependencies confirmed across multiple components—reproducibility risk validated
Verification confirms the concern: ChatOutput uses orjson and fastapi with version null, TypeConverterComponent uses pandas with version null, and lfx appears null across multiple nodes. These runtime dependencies lack version constraints, creating reproducibility risk. Recommend applying bounded version ranges (e.g.,
">=1.0.0,<2.0.0") or implementing centralized dependency versioning at starter install time rather than per-component null constraints.src/backend/base/langflow/initial_setup/starter_projects/Vector Store RAG.json (4)
764-775: De-pinning langchain_text_splitters may break template determinism.Setting "version": null means “install latest”, which can drift and break the SplitText component code/behavior over time. Prefer a compatible floor (e.g., ">=0.3.11,<0.4") or central constraints to keep starter projects reproducible.
If this metadata field supports ranges, consider reverting to a bounded spec. Otherwise, keep null here but capture tested versions in a repo-wide constraints file used by the installer.
1908-1916: Second OpenAIEmbeddings node: keep dependency constraints consistent.Mirror whatever constraint policy you adopt for the other OpenAIEmbeddings to avoid solver picking divergent versions.
Confirm both nodes resolve to the same langchain_openai version during starter import/install.
4296-4313: Duplicate Astra DB node: enforce the same version policy.Ensure both AstraDB nodes resolve identical versions to avoid mixed APIs at runtime.
Add a quick check in your starter import path to log resolved versions for astrapy/langchain_astradb/langchain_core.
Centralize these constraints to a single source consumed by all starter JSONs.
3483-3500: Import paths and constructor params verified as compatible — consider pinning versions for stability.HybridSearchMode is still exposed at langchain_astradb.utils.astradb, and the code in
src/lfx/src/lfx/components/datastax/astradb_vectorstore.py(lines 262–264) correctly imports bothAstraDBVectorStoreandHybridSearchMode. AstraDBVectorStore accepts hybrid_search as a constructor kwarg, which matches the current usage pattern on line 304.Current code is compatible with confirmed APIs. However, unbounded dependencies (
version: nullfor astrapy, langchain_core, langchain_astradb) remain a stability risk. Adopt bounded version ranges or establish CI testing against latest to catch future drift.src/backend/base/langflow/initial_setup/starter_projects/Search agent.json (1)
1067-1087: Provider options/icons and refresh flag.Icons for WatsonxAI/Ollama look good. Also, agent_llm has refresh_button: false; ensure the actual refresh behavior lives on model_name (below) and help text matches the UI affordance.
src/backend/base/langflow/initial_setup/starter_projects/Market Research.json (2)
1347-1378: Speculative/invalid model names and refresh UX mismatch.OpenAI model list includes entries like “gpt-5”, “gpt-5.1”, “o4-mini-high”, etc. Also the info says “click the refresh button”, but
refresh_buttonisn’t enabled here and options are hardcoded.
- Prefer deriving
model_nameoptions from provider constants at runtime (as in the component code), or enablerefresh_button: truewithexternal_optionsto fetch live options.- Remove models that the provider doesn’t expose, or hide them behind refresh.
Would you like a follow-up patch that wiresexternal_optionsand setsrefresh_button: true?Also applies to: 1941-1984
1696-1712: API key label should be provider‑agnostic.This field reads “OpenAI API Key” but the Agent supports multiple providers. Use a generic label and let
update_build_configswap display names per provider.- "display_name": "OpenAI API Key", - "info": "The OpenAI API Key to use for the OpenAI model.", + "display_name": "API Key", + "info": "Model Provider API key",Confirm UI already updates this label dynamically; if so, set the default to generic for consistency.
src/backend/base/langflow/initial_setup/starter_projects/Pokédex Agent.json (4)
1630-1673: Hardcoded model list + no refresh button; info text suggests refresh.The Agent’s
model_namelists speculative models and hasexternal_options: {}andreal_time_refresh: false, but tooltip says to “click the refresh button.”
- Enable
refresh_button: trueand wireexternal_optionsto fetch provider models, or keep options empty until provider+key are set.- Remove/guard unverified models.
Would you like me to patch this field to use dynamic options?
1385-1401: API key label should be provider‑agnostic.Use a generic label; let provider‑specific labels come from dynamic config.
- "display_name": "OpenAI API Key", - "info": "The OpenAI API Key to use for the OpenAI model.", + "display_name": "API Key", + "info": "Model Provider API key",
870-886: Bytes fallback on JSON decode failure clutters output.When JSON parsing fails, code sets
result = response.text.encode("utf-8"). Prefer plain text to avoid bytes in UI.- result = response.text.encode("utf-8") + result = response.text
768-789: Mixed dependency pinning style.
validatorsis pinned (0.34.0) whileaiofiles/httpxare null. Align policy: either pin critical libs or allow ranges consistently.Confirm whether this metadata drives install resolution; if so, consider compatible pins for network libs to avoid breaking changes.
src/backend/base/langflow/initial_setup/starter_projects/Travel Planning Agents.json (2)
2054-2097: Enable dynamic refresh for “Model Name” to match the help text.The info says “click the refresh button,” but model_name has real_time_refresh: false and no refresh_button. Turn on both.
"model_name": { "_input_type": "DropdownInput", @@ - "real_time_refresh": false, + "real_time_refresh": true, + "refresh_button": true,Repeat in all three Agent nodes’ model_name blocks (ranges above).
Please confirm the backend supports on-demand model listing for each provider when refresh is triggered.
Also applies to: 2796-2839, 3538-3581
2003-2010: Telemetry flags: confirm consent and redaction.Tracking fields like max_retries, max_tokens, timeout, seed is fine if user consent is enforced and values aren’t tied to identifiers.
- Ensure telemetry honors a global “send analytics” toggle.
- Confirm values are anonymized/aggregated and exclude session_id, base_url, project_id, api_key (already non-tracked here).
Also applies to: 2130-2135, 2231-2236
src/backend/base/langflow/initial_setup/starter_projects/Simple Agent.json (4)
907-928: Remove dangling 'json_mode' from field_order.You filter this input at runtime, but it remains in field_order. Drop it to avoid UI confusion.
"field_order": [ "agent_llm", "max_tokens", "model_kwargs", - "json_mode", "model_name", "openai_api_base",
1671-1676: Align dependency pinning policy for 'requests'.Most deps in this PR are version: null; here requests is pinned to 2.32.5. Make it null (or document why it must be pinned).
- { - "name": "requests", - "version": "2.32.5" - }, + { + "name": "requests", + "version": null + },If you must pin, please reference the reason (compat or security) in a brief comment or ADR.
1076-1092: Rename API key label to be provider‑agnostic.Label reads “OpenAI API Key” while provider is selectable. Prefer “API Key” to match the component code and avoid confusion.
- "display_name": "OpenAI API Key", + "display_name": "API Key", - "info": "The OpenAI API Key to use for the OpenAI model.", + "info": "The API key to use for the selected model provider.",
1277-1299: Minor: IntInput with float step.max_tokens is IntInput but uses step 0.1 and step_type float. Harmless, but set step 1 for clarity.
- "step": 0.1, - "step_type": "float" + "step": 1, + "step_type": "int"src/backend/base/langflow/initial_setup/starter_projects/Price Deal Finder.json (2)
90-99: Align edge target handle type with HandleInput.After changing ChatOutput.input_value to HandleInput, set this edge handle type to "other" for consistency.
- "type": "str" + "type": "other"
1752-1768: Rename API key label to generic “API Key”.Same rationale as in Simple Agent: provider is selectable.
- "display_name": "OpenAI API Key", + "display_name": "API Key", - "info": "The OpenAI API Key to use for the OpenAI model.", + "info": "The API key to use for the selected model provider.",src/backend/base/langflow/initial_setup/starter_projects/Research Agent.json (1)
2935-2939: Range spec max/min values should remain as integers, not floats, for integer-typed fields.The
range_specformax_tokens(line 2936–2937) andtemperature(line 3191–3192) use floating-point bounds, butmax_tokensandtimeoutare integer fields. While this may not break functionality, it creates a type mismatch. The range spec bounds should match the field type:
- For
max_tokens(int field): use"max": 128000, "min": 0(integers)- For
temperature(slider): floating-point bounds are appropriateConsider reverting max/min to integers for integer-typed fields to maintain type consistency.
Also applies to: 3190-3194
src/backend/base/langflow/initial_setup/starter_projects/Blog Writer.json (1)
480-495: Confirm mixed dependency pinning strategy in starter configThese changes unpin several dependencies by setting versions to
null:
orjson,fastapiinChatOutputmetadatabs4,langchain_communityinURLComponentmetadatawhile still keeping
requestspinned to2.32.5. This looks aligned with the PR-wide move away from hardcoded versions, but it does introduce a mixed strategy within the same starter flow.If the intent is “no pins in starter projects except where strictly required,” you may want to revisit whether
requests(and other remaining pins here) should also be set tonull; if those pins are deliberate (e.g., for known compatibility), the current state is fine but worth documenting.Also applies to: 976-995
src/backend/base/langflow/initial_setup/starter_projects/Nvidia Remix.json (2)
955-971: Provider‑neutral API key label.The label/info are OpenAI‑specific; users can switch providers. Make the text generic to avoid UX confusion.
- "display_name": "OpenAI API Key", + "display_name": "API Key", ... - "info": "The OpenAI API Key to use for the OpenAI model.", + "info": "API key for the selected model provider.",
2721-2729: Inconsistent default for MCP tool.
toolis hidden and has nooptions, butvalueis set (remix_lock_layer). Clear the default to avoid stale selection/validation edge cases.- "value": "remix_lock_layer" + "value": ""src/backend/base/langflow/initial_setup/starter_projects/Sequential Tasks Agents.json (4)
505-519: API key field label is provider‑specific (“OpenAI API Key”).Since agent_llm can be Anthropic, Google, IBM, etc., this label is misleading. Use a provider‑agnostic label.
- "display_name": "OpenAI API Key", + "display_name": "API Key",Also applies to: 1252-1268, 2772-2788
713-718: Int input uses float stepping.max_tokens is type int but step_type is float with 0.1 step. Use integer stepping to avoid UI/type inconsistencies.
- "range_spec": { "max": 128000.0, "min": 0.0, "step": 0.1, "step_type": "float" } + "range_spec": { "max": 128000, "min": 0, "step": 1, "step_type": "int" }Also applies to: 1463-1467, 2983-2987
521-539: Hidden fields marked required:true can create validation traps.base_url and project_id are required but show:false globally. Prefer provider‑scoped required flags via dynamic build_config to avoid hidden‑required failures.
- "required": true, + "required": false,Let provider components add required fields when applicable (OpenAI base_url off; Vertex project_id on), as you already do in update_build_config.
Also applies to: 1269-1288, 2790-2808, 892-911, 1641-1660, 3161-3180
3536-3560: Avoid string round‑trip + literal_eval for yfinance news.pprint → ast.literal_eval is fragile and slow. Return parsed objects directly from yfinance and build Data from them.
- def _fetch_yfinance_data(self, ticker: yf.Ticker, method: YahooFinanceMethod, num_news: int | None) -> str: + def _fetch_yfinance_data(self, ticker: yf.Ticker, method: YahooFinanceMethod, num_news: int | None): try: if method == YahooFinanceMethod.GET_INFO: - result = ticker.info + return ticker.info elif method == YahooFinanceMethod.GET_NEWS: - result = ticker.news[:num_news] + return ticker.news[:num_news] else: - result = getattr(ticker, method.value)() - return pprint.pformat(result) + return getattr(ticker, method.value)() except Exception as e: ... - def _yahoo_finance_tool(... ) -> list[Data]: + def _yahoo_finance_tool(... ) -> list[Data]: ticker = yf.Ticker(symbol) - result = self._fetch_yfinance_data(ticker, method, num_news) + result = self._fetch_yfinance_data(ticker, method, num_news) if method == YahooFinanceMethod.GET_NEWS: - data_list = [ - Data(text=f"{article['title']}: {article['link']}", data=article) - for article in ast.literal_eval(result) - ] + data_list = [Data(text=f"{a.get('title')}: {a.get('link')}", data=a) for a in (result or [])] else: - data_list = [Data(text=result, data={"result": result})] + data_list = [Data(text=str(result), data={"result": result})]
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (40)
src/backend/base/langflow/initial_setup/starter_projects/Basic Prompt Chaining.json(1 hunks)src/backend/base/langflow/initial_setup/starter_projects/Basic Prompting.json(1 hunks)src/backend/base/langflow/initial_setup/starter_projects/Blog Writer.json(2 hunks)src/backend/base/langflow/initial_setup/starter_projects/Custom Component Generator.json(1 hunks)src/backend/base/langflow/initial_setup/starter_projects/Document Q&A.json(1 hunks)src/backend/base/langflow/initial_setup/starter_projects/Financial Report Parser.json(2 hunks)src/backend/base/langflow/initial_setup/starter_projects/Hybrid Search RAG.json(3 hunks)src/backend/base/langflow/initial_setup/starter_projects/Image Sentiment Analysis.json(2 hunks)src/backend/base/langflow/initial_setup/starter_projects/Instagram Copywriter.json(15 hunks)src/backend/base/langflow/initial_setup/starter_projects/Invoice Summarizer.json(15 hunks)src/backend/base/langflow/initial_setup/starter_projects/Knowledge Ingestion.json(4 hunks)src/backend/base/langflow/initial_setup/starter_projects/Knowledge Retrieval.json(2 hunks)src/backend/base/langflow/initial_setup/starter_projects/Market Research.json(16 hunks)src/backend/base/langflow/initial_setup/starter_projects/Meeting Summary.json(3 hunks)src/backend/base/langflow/initial_setup/starter_projects/Memory Chatbot.json(1 hunks)src/backend/base/langflow/initial_setup/starter_projects/News Aggregator.json(16 hunks)src/backend/base/langflow/initial_setup/starter_projects/Nvidia Remix.json(23 hunks)src/backend/base/langflow/initial_setup/starter_projects/Pokédex Agent.json(15 hunks)src/backend/base/langflow/initial_setup/starter_projects/Portfolio Website Code Generator.json(2 hunks)src/backend/base/langflow/initial_setup/starter_projects/Price Deal Finder.json(16 hunks)src/backend/base/langflow/initial_setup/starter_projects/Research Agent.json(15 hunks)src/backend/base/langflow/initial_setup/starter_projects/Research Translation Loop.json(2 hunks)src/backend/base/langflow/initial_setup/starter_projects/SEO Keyword Generator.json(1 hunks)src/backend/base/langflow/initial_setup/starter_projects/SaaS Pricing.json(14 hunks)src/backend/base/langflow/initial_setup/starter_projects/Search agent.json(15 hunks)src/backend/base/langflow/initial_setup/starter_projects/Sequential Tasks Agents.json(42 hunks)src/backend/base/langflow/initial_setup/starter_projects/Simple Agent.json(15 hunks)src/backend/base/langflow/initial_setup/starter_projects/Social Media Agent.json(16 hunks)src/backend/base/langflow/initial_setup/starter_projects/Text Sentiment Analysis.json(2 hunks)src/backend/base/langflow/initial_setup/starter_projects/Travel Planning Agents.json(41 hunks)src/backend/base/langflow/initial_setup/starter_projects/Twitter Thread Generator.json(1 hunks)src/backend/base/langflow/initial_setup/starter_projects/Vector Store RAG.json(6 hunks)src/backend/base/langflow/initial_setup/starter_projects/Youtube Analysis.json(17 hunks)src/frontend/src/utils/styleUtils.ts(2 hunks)src/lfx/src/lfx/base/agents/altk_base_agent.py(1 hunks)src/lfx/src/lfx/components/__init__.py(4 hunks)src/lfx/src/lfx/components/agents/__init__.py(0 hunks)src/lfx/src/lfx/components/altk/__init__.py(1 hunks)src/lfx/src/lfx/components/cuga/__init__.py(1 hunks)src/lfx/src/lfx/components/models_and_agents/__init__.py(0 hunks)
💤 Files with no reviewable changes (2)
- src/lfx/src/lfx/components/models_and_agents/init.py
- src/lfx/src/lfx/components/agents/init.py
🧰 Additional context used
🧬 Code graph analysis (3)
src/lfx/src/lfx/base/agents/altk_base_agent.py (1)
src/lfx/src/lfx/components/models_and_agents/agent.py (1)
AgentComponent(37-644)
src/lfx/src/lfx/components/cuga/__init__.py (1)
src/lfx/src/lfx/components/cuga/cuga_agent.py (1)
CugaComponent(60-995)
src/lfx/src/lfx/components/altk/__init__.py (1)
src/lfx/src/lfx/components/altk/altk_agent.py (1)
ALTKAgentComponent(36-193)
🪛 GitHub Actions: Ruff Style Check
src/lfx/src/lfx/components/__init__.py
[error] 15-15: F401 'lfx.components.altk' imported but unused; consider removing, adding to all, or using a redundant alias. Command: uv run --only-dev ruff check --output-format=github .
🪛 GitHub Check: Ruff Style Check (3.13)
src/lfx/src/lfx/components/__init__.py
[failure] 15-15: Ruff (F401)
src/lfx/src/lfx/components/init.py:15:9: F401 lfx.components.altk imported but unused; consider removing, adding to __all__, or using a redundant alias
[failure] 35-35: Ruff (F401)
src/lfx/src/lfx/components/init.py:35:9: F401 lfx.components.cuga imported but unused; consider removing, adding to __all__, or using a redundant alias
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (50)
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 33/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 39/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 5/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 18/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 26/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 40/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 36/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 35/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 38/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 37/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 28/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 30/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 21/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 29/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 25/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 34/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 31/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 23/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 19/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 27/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 24/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 16/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 22/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 13/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 6/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 12/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 20/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 14/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 11/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 8/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 17/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 3/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 4/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 10/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 1/40
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 2/40
- GitHub Check: Lint Backend / Run Mypy (3.13)
- GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 2
- GitHub Check: Lint Backend / Run Mypy (3.10)
- GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 3
- GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 1
- GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 4
- GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 5
- GitHub Check: Run Backend Tests / Integration Tests - Python 3.10
- GitHub Check: Run Frontend Unit Tests / Frontend Jest Unit Tests
- GitHub Check: Run Backend Tests / LFX Tests - Python 3.10
- GitHub Check: Test Starter Templates
- GitHub Check: Optimize new Python code in this PR
- GitHub Check: test-starter-projects
- GitHub Check: Update Component Index
Adam-Aghili
left a comment
There was a problem hiding this comment.
LGTM! thanks @deon-sanchez
Screen.Recording.2025-11-20.at.1.24.05.PM.mov
erichare
left a comment
There was a problem hiding this comment.
LGTM! I’m not exactly qualified to review the frontend portions of this but the backend structure looks nice and well done.
|
|
||
|
|
||
| def __dir__() -> list[str]: | ||
| return list(__all__) |
There was a problem hiding this comment.
👨🏼🦯 I am flying blind here, but curious.
The change looks good. I am unsure about the reason behind the directory change on the backend? Is it purely because the structure make more logical sense and this is moving the module importing logic to a dedicated file, or there are other technicalities around this @deon-sanchez?
…nputs in test_helper_functions
* docs: Improve README Quickstart section and add dark mode logo (#10358) * Improve README Quickstart section and reorganize installation options - Add prominent Desktop download section before Quickstart - Remove $ symbols from shell commands to fix copy button functionality - Add clear 'Run from source' option with make run_cli for developers - Improve Docker installation instructions with usage details - Move security warnings to after installation options for better flow - Remove redundant star/issues badges These changes address common user confusion when trying to run Langflow, especially for developers who clone the repo first and then struggle with the package installation instructions. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Add dark mode logo support - Added picture element for automatic dark/light mode logo switching - Dark mode shows blue background logo, light mode shows black logo 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Final README improvements - Made 'Other install options' a proper section with emoji - Updated deployment section with rocket emoji - Fixed single-line formatting for subsections - Added new star animation gif - Changed 'tool' to 'platform' in description * Improve Desktop download section messaging - Made text more concise and action-oriented - Changed download emoji from arrow to inbox - Removed redundant 'built-in' and bold formatting - Cleaner parenthetical for OS availability * Revise README for Langflow Desktop and deployment info Updated sections for clarity and added details about Langflow Desktop and deployment options. * Revert star gif to GitHub attachment URL Testing if local file path issue or markdown previewer issue * Apply suggestion from @mendonk * Apply suggestion from @mendonk * Apply suggestion from @mendonk * Apply suggestion from @mendonk * readme-changes * Apply suggestion from @mendonk --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org> * fix: require active user for monitor endpoints (#10568) Require active user for monitor endpoints * refactor: Reorganize sidebar categories (#10180) * Reorganize sidebar categories * finishing touches * templates * ruff check fix * merge fix * filter out knowledge when ff'd off * BE tests * [autofix.ci] apply automated fixes * more test fixes * integration test fix * Unit tests * more test fixes * reorg tests * [autofix.ci] apply automated fixes * update ui tests * [autofix.ci] apply automated fixes * mcp and playwright tests * [autofix.ci] apply automated fixes * BE test fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * test fix --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Edwin Jose <edwin.jose@datastax.com> * fix(agent): handle missing message id for disconnected agents (#10560) * fix(agent): handle missing message id for disconnected agents * [autofix.ci] apply automated fixes * will this update comp index * comp index --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com> * fix: Langflow logo on home page when s3 is enabled (#10352) * fixed and added tests * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * fix(playground): preserve timer start time when playground is reopened (#10516) * Fix playground timer * add jest unit tests --------- Co-authored-by: cristhianzl <cristhian.lousa@gmail.com> * fix: MCP component auto reset issue in non Tool Mode (#10440) * Optimize tool dropdown handling and output processing Improves logic for updating tool dropdown options by checking if the server has changed and whether tool mode is active, reducing unnecessary updates. Adds a process_output_item method to parse tool output as JSON when appropriate, enhancing output handling. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * Update component_index.json * Update Nvidia Remix.json * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Update component_index.json * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * use cache enabled even for the no tool mode * Update component_index.json * [autofix.ci] apply automated fixes * Update Nvidia Remix.json * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * Add Notion integration components to index Updated component_index.json to include new Notion integration components: AddContentToPage, NotionDatabaseProperties, NotionListPages, NotionPageContent, NotionPageCreator, NotionPageUpdate, and NotionSearch. These components provide functionality for interacting with Notion databases and pages, including querying, creating, updating, and retrieving content. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * fix: add selector to let dropdown load add Select a tool selector to let dropdown load before interacting * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Update MCPToolsComponent code and metadata Updated the code and code_hash for MCPToolsComponent in Nvidia Remix starter project and synchronized the component_index.json to reflect the latest code and metadata. This ensures consistency and includes recent improvements or fixes to the MCPToolsComponent implementation. --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Adam Aghili <Adam.Aghili@ibm.com> * fix: Switch to browser-compatible MathJax import (#10563) add browser support to rehype package build * feat: patch icons to support dark theme and Composio Slack component fix. (#10577) * feat: add Composio Components & logos tweak * Display name consistency * update init * fix: format * fix: suggested changes by Mike * feat: add Composio Components & logos tweak * Display name consistency * update init * fix: format * fix: suggested changes by Mike * updates components JSON * fix: format * updates components JSON * Remove unnecessary blank lines in __init__.py Cleaned up formatting by deleting extra blank lines in the _dynamic_imports dictionary for improved readability. * Update component_index.json * Update component_index.json * Update component_index.json * Update component_index.json * fix: Slack component issue * fix: icons update to support dark theme * fix: Klaviyo imports * Update component_index.json --------- Co-authored-by: Edwin Jose <edwin.jose@datastax.com> * feat: add toolkit_versions and updated composio and composio_langchain versions. (#10578) * feat: added toolkit versions and updated composio and composio_langchain packages * fix: format --------- Co-authored-by: Edwin Jose <edwin.jose@datastax.com> * fix: marked required fields for fields with MultilineInput input types. (#10579) fix: marked required fields with MultilineInputs Co-authored-by: Edwin Jose <edwin.jose@datastax.com> * feat: replaced initiate method with link method. (#10580) feat: replaced .initiate() with .link() Co-authored-by: Edwin Jose <edwin.jose@datastax.com> * feat: Add ALTK Agent with tool validation and comprehensive tests (#10587) * Add ALTK Agent with tool validation and comprehensive tests - Added agent-lifecycle-toolkit~=0.4.1 dependency to pyproject.toml - Implemented ALTKBaseAgent with comprehensive error handling and tool validation - Added ALTKToolWrappers for SPARC integration and tool execution safety - Created ALTK Agent component with proper LangChain integration - Added comprehensive test suite covering tool validation, conversation context, and edge cases - Fixed docstring formatting to comply with ruff linting standards * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * minor fix to execute_tool that was left out. * Fixes following coderabbitai comments. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * Update component_index.json * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Add custom message to dict conversion in ValidatedTool * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Add Notion integration components to index Updated component_index.json to include new Notion integration components: AddContentToPage, NotionDatabaseProperties, NotionListPages, NotionPageContent, NotionPageCreator, NotionPageUpdate, and NotionSearch. These components provide functionality for interacting with Notion databases and pages, including querying, creating, updating, and retrieving content. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- Co-authored-by: Koren Lazar <koren.lazar@ibm.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Edwin Jose <edwin.jose@datastax.com> * feat: Add MCP server config sanitization for sensitive data (#10552) add clean mcp config function * feat: Implement dynamic model discovery system (#10523) * add dynamic model request * add description to groq * add cache folder to store cache models json * change git ignore description * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * add comprehensive tests for Groq dynamic model discovery - Add 101 unit tests covering success, error, and edge cases - Test model discovery, caching, tool calling detection - Test fallback models and backward compatibility - Add support for real GROQ_API_KEY from environment - Fix all lint errors and improve code quality * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * fix Python 3.10 compatibility - replace UTC with timezone.utc Python 3.10 doesn't have datetime.UTC, need to use timezone.utc instead * fix pytest hook signature - use config instead of _config * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * fix conftest config.py * fix timezone UTC on tests * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * feat: remove `code` from Transactions to reduce clutter in logs (#10400) * refactor: remove code from transaction model inputs * refactor: remove code from transaction model inputs * tests: add tests to make sure code is not added to transactions data * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * refactor: improve code removal from logs with explicit dict copying --------- Co-authored-by: Edwin Jose <edwin.jose@datastax.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * refactor(service_manager): implement lazy initalization of service manager (#8828) * refactor: implement lazy initialization for ServiceManager with thread safety - Replaced direct instantiation of ServiceManager with a lazy initialization approach using a global variable and threading lock. - Updated the public API to expose `get_service_manager` for retrieving the singleton instance. - Ensured thread-safe access to the ServiceManager instance to prevent issues during module import. * refactor: update service manager imports to use get_service_manager - Replaced direct imports of service_manager with get_service_manager in multiple files to ensure consistent access to the singleton instance. - This change enhances code clarity and maintains the lazy initialization approach for the ServiceManager. * refactor: remove deprecated Enhanced ServiceManager implementation * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * refactor: implement thread-safe lazy initialization for ServiceManager * feat: add filelock dependency in lfx * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * update component index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * feat: new release for cuga component (#10591) * feat: new release of cuga * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * fix: address review * fix: fixed more bugs * fix: build component index * [autofix.ci] apply automated fixes * fix: update test * chore: update component index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * ci: upgrade playwright to 1.56 and fix second time imports (#10284) * chore: update Playwright and related dependencies to version 1.56.0 in package.json and package-lock.json * refactor: update addLegacyComponents function to improve selector checks - Replaced the expect assertion with a waitForSelector call to ensure the sidebar legacy switch is checked, enhancing reliability in tests. - Updated import statement for Page from "@playwright/test" for consistency with current practices. * fix playwright imports * chore: update Playwright version in CI workflow to 1.56.0 for consistency with project dependencies * refactor: enhance lockFlow and unlockFlow functions for improved visibility checks - Replaced isVisible calls with waitFor to ensure elements are visible before proceeding, enhancing test reliability. - Removed unnecessary waitForTimeout calls to streamline the flow execution process. * test(playwright): add validation for settings menu header text * refactor(playwright): improve lock flow test with expect assertions * refactor(playwright): simplify legacy component toggle validation * feat: adds Component Inputs telemetry (#10254) * feat: Introduce telemetry tracking for sensitive field types Added a new set of field types that should not be tracked in telemetry due to their sensitive nature, including PASSWORD, AUTH, FILE, CONNECTION, and MCP. Updated relevant input classes to ensure telemetry tracking is disabled for these sensitive fields, enhancing data privacy and security. * feat: Enhance telemetry payloads with additional fields and serialization support Added new fields to the ComponentPayload and ComponentInputsPayload classes, including component_id and component_run_id, to improve telemetry data tracking. Introduced a serialize_input_values function to handle JSON serialization of component input values, ensuring robust handling of input data for telemetry purposes. * feat: Implement telemetry input tracking and caching Added functionality to track and cache telemetry input values within the Component class. Introduced a method to determine if inputs should be tracked based on sensitivity and an accessor for retrieving cached telemetry data, enhancing the robustness of telemetry handling. * feat: Add logging for component input telemetry Introduced a new method, log_package_component_inputs, to the TelemetryService for logging telemetry data related to component inputs. This enhancement improves the tracking capabilities of the telemetry system, allowing for more detailed insights into component interactions. * feat: Enhance telemetry logging for component execution Added functionality to log component input telemetry both during successful execution and error cases. Introduced a unique component_run_id for each execution to improve tracking. This update ensures comprehensive telemetry data collection, enhancing the robustness of the telemetry system. * feat: Extend telemetry payload tests and enhance serialization Added tests for the new component_id and component_run_id fields in ComponentPayload and ComponentInputsPayload classes. Introduced a new test suite for ComponentInputTelemetry, covering serialization of various data types and handling of edge cases. This update improves the robustness and coverage of telemetry data handling in the system. * fix: Update default telemetry tracking behavior in BaseInputMixin Changed the default value of track_in_telemetry from True to False in the BaseInputMixin class. Updated documentation to clarify that telemetry tracking is now opt-in and can be explicitly enabled for individual input types, enhancing data privacy and control. * fix: Update telemetry tracking defaults for input types Modified the default value of `track_in_telemetry` for various input classes to enhance data privacy. Regular inputs now default to False, while safe inputs like `IntInput` and `BoolInput` default to True, ensuring explicit opt-in for telemetry tracking. Updated related tests to reflect these changes. * feat: add chunk_index and total_chunks fields to ComponentInputsPayload This commit adds two new optional fields to ComponentInputsPayload: - chunk_index: Index of this chunk in a split payload sequence - total_chunks: Total number of chunks in the split sequence Both fields default to None and use camelCase aliases for serialization. This is Task 1 of the telemetry query parameter splitting implementation. Tests included: - Verify fields exist and can be set - Verify camelCase serialization aliases work correctly - Verify fields default to None when not provided Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * refactor: update ComponentInputsPayload to support automatic splitting of oversized inputs This commit enhances the ComponentInputsPayload class by implementing functionality to automatically split input values into multiple chunks if they exceed the maximum URL size limit. Key changes include: - Added methods for calculating URL size, truncating oversized values, and splitting payloads. - Updated component_inputs field to accept a dictionary instead of a string for better handling of input values. - Improved documentation for the ComponentInputsPayload class to reflect the new splitting behavior and usage examples. These changes aim to improve telemetry data handling and ensure compliance with URL length restrictions. * refactor: enhance log_package_component_inputs to handle oversized payloads This commit updates the log_package_component_inputs method in the TelemetryService class to split component input payloads into multiple requests if they exceed the maximum URL size limit. Key changes include: - Added logic to split the payload using the new split_if_needed method. - Each chunk is queued separately for telemetry logging. These improvements ensure better handling of telemetry data while adhering to URL length restrictions. * refactor: centralize maximum telemetry URL size constant This commit introduces a centralized constant, MAX_TELEMETRY_URL_SIZE, to define the maximum URL length for telemetry GET requests. Key changes include: - Added MAX_TELEMETRY_URL_SIZE constant to schema.py for better maintainability. - Updated split_if_needed method in ComponentInputsPayload to use the new constant instead of a hardcoded value. - Adjusted the TelemetryService to reference the centralized constant for URL size limits. These changes enhance code clarity and ensure consistent handling of URL size limits across the telemetry service. * refactor: update ComponentInputsPayload tests to use dictionary inputs This commit modifies the tests for ComponentInputsPayload to utilize a dictionary for component inputs instead of a serialized JSON string. Key changes include: - Renamed the test method to reflect the new input type. - Removed unnecessary serialization steps and assertions related to JSON strings. - Added assertions to verify the correct handling of dictionary inputs. These changes streamline the testing process and improve clarity in how component inputs are represented. * test: add integration tests for telemetry service payload splitting This commit introduces integration tests for the TelemetryService to verify its handling of large and small payloads. Key changes include: - Added tests to ensure large payloads are split into multiple chunks and queued correctly. - Implemented a test to confirm that small payloads are not split and result in a single queued event. - Created a mock settings service for testing purposes. These tests enhance the reliability of the telemetry service by ensuring proper payload management. * test: enhance ComponentInputsPayload tests with additional scenarios This commit expands the test suite for ComponentInputsPayload by adding various scenarios to ensure robust handling of input payloads. Key changes include: - Introduced tests for calculating URL size, ensuring it returns a positive integer and accounts for encoding. - Added tests to verify the splitting logic for large payloads, including checks for chunk metadata and preservation of fixed fields. - Implemented property-based tests using Hypothesis to validate that all chunks respect the maximum URL size and preserve original data. These enhancements improve the reliability and coverage of the ComponentInputsPayload tests, ensuring proper functionality under various conditions. * [autofix.ci] apply automated fixes * optimize query param encoding Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com> * refactor: extract telemetry logging logic into a separate function This commit introduces a new function, _log_component_input_telemetry, to centralize the logic for logging component input telemetry. The function is called in two places within the generate_flow_events function, improving code readability and maintainability by reducing duplication. This change enhances the clarity of telemetry handling in the flow generation process. * refactor: optimize truncation logic in ComponentInputsPayload This commit refines the truncation logic for input values in the ComponentInputsPayload class. The previous binary search method for string values has been simplified, allowing for direct truncation of both string and non-string values. This change enhances code clarity and maintains functionality while ensuring optimal handling of oversized inputs. * refactor: update telemetry tracking logic to respect opt-in flag This commit modifies the telemetry tracking logic in the Component class to change the default behavior of the `track_in_telemetry` attribute from True to False. This adjustment enhances user privacy by requiring explicit consent for tracking input objects in telemetry. The change ensures that sensitive field types are still auto-excluded from tracking, maintaining the integrity of the telemetry data. * refactor: update tests to use dictionary format for component inputs This commit modifies the integration tests for telemetry payload validation and component input telemetry to utilize dictionaries for component inputs instead of serialized JSON strings. Key changes include: - Updated assertions to compare dictionary inputs directly. - Enhanced clarity and maintainability of the test cases by removing unnecessary serialization steps. These changes improve the representation of component inputs in tests, aligning with recent refactoring efforts. * [autofix.ci] apply automated fixes * refactor: specify type for current_chunk_inputs in ComponentInputsPayload This commit updates the type annotation for the current_chunk_inputs variable in the ComponentInputsPayload class to explicitly define it as a dictionary. This change enhances code clarity and maintainability by providing better type information for developers working with the code. * test: add component_id to ComponentPayload tests This commit enhances the test cases for the ComponentPayload class by adding a component_id parameter to various initialization tests. The updates ensure that the component_id is properly tested across different scenarios, including valid parameters, error messages, and edge cases. This change improves the robustness of the tests and aligns with recent updates to the ComponentPayload structure. * [autofix.ci] apply automated fixes * feat: add component_id to ComponentPayload in build_vertex function * fix: update MAX_TELEMETRY_URL_SIZE to 2048 and adjust related tests This commit increases the maximum URL size for telemetry GET requests from 2000 to 2048 bytes to align with Scarf's specifications. Corresponding test assertions have been updated to reference the new constant, ensuring consistency across the codebase. * [autofix.ci] apply automated fixes * feat(telemetry): add track_in_telemetry field to starter project configurations * refactor(telemetry): remove unused blank line in test imports * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * update starter templates * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- Co-authored-by: Claude <noreply@anthropic.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> * fix(telemetry): resolve cyclic import in telemetry service (#10598) * fix(telemetry): resolve cyclic import by moving get_email_model * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * feat: Add gpt-5.1 model to Language models (#10590) * Add gpt-5.1 model to starter projects Added 'gpt-5.1' to the list of available models in all starter project JSON files to support the new model version. This update ensures users can select gpt-5.1 in agent configurations. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Update component_index.json * [autofix.ci] apply automated fixes * Update component_index.json * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * fix: Use the proper Embeddings import for Qdrant vector store (#10613) * Use the proper Embeddings import for Qdrant vector store * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: Madhavan <cxo@ibm.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * fix: Ensure split text test is more robust (#10622) * fix: Ensure split text test is more robust * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * docs: security notice (#10555) * docs-security-notice * Apply suggestions from code review Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> * code-review * link-to-security-bulletin * Apply suggestions from code review Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> --------- Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> * fix: use issubclass in the pool creation (#10232) * use issubclass in the pool creation * [autofix.ci] apply automated fixes * add poolclass pytests * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: Hamza Rashid <74062092+HzaRashid@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: cristhianzl <cristhian.lousa@gmail.com> * docs: OpenAPI spec version upgraded from 1.6.5 to 1.6.8 (#10627) Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com> Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com> * chore: Fix indentation on bundles-docling.mdx (#10640) * feat: make it possible to load graphs using `get_graph` function in scripts (#9913) * feat: Enhance graph loading functionality to support async retrieval - Updated `load_graph_from_script` to be an async function, allowing for the retrieval of the graph via an async `get_graph` function if available. - Implemented fallback to the existing `graph` variable for backward compatibility. - Enhanced `find_graph_variable` to identify both `get_graph` function definitions and `graph` variable assignments, improving flexibility in script handling. * feat: Update load_graph_from_script to support async graph retrieval - Refactored `load_graph_from_script` to be an async function, enabling the use of an async `get_graph` function for graph retrieval. - Implemented a fallback mechanism to access the `graph` variable for backward compatibility. - Enhanced error handling to provide clearer messages when neither `graph` nor `get_graph()` is found in the script. * feat: Refactor simple_agent.py to support async graph creation - Introduced an async `get_graph` function to handle the initialization of components and graph creation without blocking. - Updated the logging configuration and component setup to be part of the async function, improving the overall flow and responsiveness. - Enhanced documentation for the `get_graph` function to clarify its purpose and return type. * feat: Update serve_command and run functions to support async graph loading - Refactored `serve_command` to be an async function using `syncify`, allowing for non-blocking execution. - Updated calls to `load_graph_from_path` and `load_graph_from_script` within `serve_command` and `run` to await their results, enhancing performance and responsiveness. - Improved overall async handling in the CLI commands for better integration with async workflows. * feat: Refactor load_graph_from_path to support async execution - Changed `load_graph_from_path` to an async function, enabling non-blocking graph loading. - Updated the call to `load_graph_from_script` to use await, improving performance during graph retrieval. - Enhanced the overall async handling in the CLI for better integration with async workflows. * feat: Enhance async handling in simple_agent and related tests - Updated `get_graph` function in `simple_agent.py` to utilize async component initialization for improved responsiveness. - Modified test cases in `test_simple_agent_in_lfx_run.py` to validate the async behavior of `get_graph`. - Refactored various test functions across multiple files to support async execution, ensuring compatibility with the new async workflows. - Improved documentation for async functions to clarify their purpose and usage. * docs: Implement async get_graph function for improved component initialization - Introduced an async `get_graph` function in `README.md` to facilitate non-blocking component initialization. - Enhanced the logging configuration and component setup within the async function, ensuring a smoother flow. - Updated documentation to clarify the purpose and return type of the `get_graph` function, aligning with the async handling improvements. * refactor: reorder imports in simple_agent test file * style: reorder imports in simple_agent test file * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * update component index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * feat: Add custom download node function (#10659) * add custom download node * use download node * feat: Add type check before issubclass in service discovery (#10636) * Add type check before issubclass in service discovery Added an isinstance(obj, type) check before issubclass to prevent errors when inspecting module members for Service and ServiceFactory subclasses. This improves robustness when dynamically importing services and factories. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * docs: readme update (#10657) * dep-management * are * fix: minor redesign of guardrails for disabling components in LF Astra cloud (#10662) * create cloud validation util file disable local_db if in astra cloud disable split_video if in astra cloud disable video_file component if in astra cloud ruff (video_file.py) correct the error message in video_file.py disable mem0 and composio in astra cloud update astra disable component util fn name to be more descriptive add tests for disabling components minor docs patch remove component disable check in places that interact with building the component index replace init test with execution in composio unit test suite remove dotenv from validate_cloud * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * fix: prevent autofix workflow loop from bot commits (#10673) fix(ci): prevent autofix workflow loop from bot commits * fix(lfx-dev): reload specific modules while preserving index cache (#10629) * fix(lfx-dev): reload specific modules while preserving index cache * refactor: restructure component loading with strategy pattern for dev mode * fix: improve cache loading error handling in component index loading * refactor: reorganize CUGA and ALTK components into single-element bundles (#10671) * moved cuga and altk * reverted starter templates * [autofix.ci] apply automated fixes * updated import * [autofix.ci] apply automated fixes * revert starter templates * fixed some python tests * fix: update import assertions for backward compatibility in dynamic import tests * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: update import paths for set_advanced_true and get_parent_agent_inputs in test_helper_functions --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * feat: fix cuga component with new release (#10646) * bufix(cuga_agent): fixed no output chat bug * fix: remove structured output feature * fix: stablize component * fix: chat output component not working * fix: add strategy flag * fix: update cuga version * feat: add component index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * update some imports to use lfx * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: update review * chore: build component index * chore: build component * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * fix(cuga): ensure message id exists when not connected to output * fix: component result id on chat output * chore: fix component index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Revert test_agent_component.py back to origin/main * fix: remove unwanted tests * chore: new build index * [autofix.ci] apply automated fixes * fix: update test * chore: build index * [autofix.ci] apply automated fixes * fix: update package of cuga * chore: build component index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * update comp index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * trying comp index again? * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes --------- Co-authored-by: Offer Akrabi <offer.akrabi@il.ibm.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com> * fix: Add IBM watsonx.ai support to EmbeddingModel (#10677) * Add IBM watsonx.ai support to EmbeddingModel Added IBM watsonx.ai as a supported provider in EmbeddingModelComponent, updated dependencies and code to integrate ibm_watsonx_ai and pydantic. Updated starter project and component index metadata to reflect new dependencies and code changes. * update watsonx default models * update index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Update test_embedding_model_component.py * Update component_index.json * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * fix: rename LLM router to LLM selector (#10650) * fix: rename LLM router to LLM selector * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: rename LLMRouter component to LLMSelector * fix: resolved merge conflicts * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: resolved merge conflicts * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: refactor file name * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: resolve merge conflict * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: resolve merge conflict * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * Fix: add environment variable flag to log alembic to stdout (#10620) * fix: add flag to log alembic to stdout fix indentation refine docs mypy (db service.py) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * fix: move sql database to data source category (#10651) * fix: move sql database to data source category * [autofix.ci] apply automated fixes * fix: resolve merge conflict --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * fix: fixes YouTube Icon name in lazyloadingMapping (#10628) * fix lazyloadingMapping component name * fix: merge conflicts * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes * fix: resolve merge conflict --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * Fix: rename sidebar category flow controls to flow control (#10649) * rename sidebar category flow controls to flow control * fix: addressed PR comments * fix: expose logger functions at module level for backwards comp (#10670) * Expose logger functions at module level for backwards comp * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * feat: agentic UX (#10567) * Add empty __init__.py files for agentic modules Created empty __init__.py files in agentic, core, tools, and utils directories to initialize them as Python packages. * Add agentic template search utilities and tests Introduces a new agentic utilities module for Langflow, including template search, tag extraction, and template count functions. Adds a README, demo script, and comprehensive unit tests for template search functionality. * Add Langflow Agentic MCP server with FastMCP tools Introduces a new MCP (Model Context Protocol) server for Langflow agentic tools using FastMCP. Adds server, CLI, example usage, tests, and comprehensive documentation. Exposes four MCP tools: search_templates, get_template, list_all_tags, and count_templates, enabling AI assistants to query and filter Langflow templates programmatically. * Handle unparameterized list types in schema inputs Adds support for unparameterized list annotations by treating them as lists of strings when converting schemas to Langflow inputs. This ensures nullable array schemas without explicit item types are handled gracefully. * Refactor search_templates to simplify parameters Removed the 'tags' parameter from the search_templates function and set a default value for 'fields'. Updated the call to list_templates to match the new signature, streamlining template search functionality. * Add output item processing for tool results Introduced process_output_item to handle tool output items, attempting to parse text-type items as JSON. This improves downstream handling of tool outputs by converting JSON strings to dictionaries when possible. * Refactor knowledge base path initialization Replaces direct settings access with a lazy-loading function for the knowledge bases root path in Knowledge Ingestion and Knowledge Retrieval starter projects. This improves reliability and consistency when accessing the knowledge base directory, and updates all usages to the new helper function. * Update component_index.json * Add IBM watsonx.ai support to starter projects Introduces IBM watsonx.ai as a selectable model provider in multiple starter project JSONs. Adds new input fields for 'base_url', 'project_id', and 'max_output_tokens' to support IBM watsonx.ai integration. Updates agent component code to handle new provider and its required parameters. * Add Ollama to supported LLM providers in starter projects Ollama has been added as a supported provider alongside Anthropic, Google Generative AI, OpenAI, and IBM watsonx.ai in all starter project JSON files. This expands the available options for LLM integration in initial setup templates. * Update Ollama model input constants and logic Refactored model_input_constants.py to update the OLLAMA_MODEL_INPUTS and OLLAMA_MODEL_INPUTS_MAP. Modified ollama.py to use the new input mapping and improved input handling for Ollama components. * Add flow creation from template MCP tool Introduces a new MCP tool for creating flows from starter templates in Langflow Agentic. Adds the utility function `create_flow_from_template_and_get_link` and exposes it via the FastMCP server, allowing users to create flows by template id and receive a UI link. Updates imports and documentation accordingly. * Add component search utilities and MCP tools to server Introduces new component search and retrieval tools to the MCP server, including endpoints for searching, listing, and counting components. Adds support functions in support.py for data normalization and a new component_search.py utility module. Updates the Nvidia Remix starter project to use the latest MCPToolsComponent code. * Add flow graph visualization utilities Introduces async utility functions for generating ASCII and text representations of flow graphs, as well as metadata summaries. These utilities support fetching flows by ID or name, error handling, and integration with Langflow's graph and logging modules. * Add flow component operations utilities and MCP tools Introduces flow component management utilities in `flow_component.py` for retrieving, updating, and listing component field values. Exposes new MCP tools in `server.py` for accessing component details, field values, updating fields, and listing all fields within a flow component. * Add SystemMessageGen flow and update MCPTools Introduces SystemMessageGen.json flow for agentic system message generation and updates MCPTools component logic in flow_component.py to support new flow structure and tool handling. * feat: init aiButton create an aiButton that opens the prompt modal for demoing add multiinput mixin * Update component_index.json * Refactor SystemMessageGen flow and remove unused init files Updated SystemMessageGen.json to support custom instructions, OpenAI model configuration, and improved agent settings. Removed unused __init__.py files from agentic, core, tools, and utils directories to clean up the codebase. * update to the mcp component * Add verify_ssl option to MCPToolsComponent Introduces a 'verify_ssl' boolean input to MCPToolsComponent for controlling SSL certificate verification in HTTPS connections. The option is added to the server config if not present, allowing users to disable verification for development or testing with self-signed certificates. * Optimize tool dropdown handling and output processing Improves logic for updating tool dropdown options by checking if the server has changed and whether tool mode is active, reducing unnecessary updates. Adds a process_output_item method to parse tool output as JSON when appropriate, enhancing output handling. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * feat: init onclick assistant prompt generation first pass at on button click generate input and auto fill a field * Replace MCPTools with Prompt Template in SystemMessageGen flow Updated the SystemMessageGen.json flow to use the Prompt Template and Parser components instead of MCPTools. Adjusted edges, nodes, and component configurations to reflect the new prompt-based workflow, removing tool selection and execution logic in favor of prompt generation and parsing. * Update SystemMessageGen flow and frontend dependencies Refactored edge connections and metadata in SystemMessageGen.json to improve flow logic and updated endpoint name. Added new optional and peer dependencies to package-lock.json, including @mapbox/node-pre-gyp and related packages, to support canvas and other modules. * Update user authentication in simplified_run_flow endpoint Replaces the dependency on api_key_security with CurrentActiveUser for the api_key_user parameter in the simplified_run_flow endpoint. This change is part of a TODO to create a new endpoint and may affect how user authentication is handled. * feat: hook everything up and have onclick prompt hook up commit * Add auto-configuration for Agentic MCP server Introduces utilities and startup logic to automatically configure the Langflow Agentic MCP server for all users when the agentic experience is enabled. Adds a new settings flag `agentic_experience` to control this feature, and updates the main server startup to trigger configuration. This enables agentic tools for flow/component operations, template search, and graph visualization in MCP clients. * Enable agentic MCP server and improve initialization Set agentic_experience to True by default in settings. Refactor agentic MCP server initialization in main.py to run in the background with a delay and retry logic, improving startup reliability. Update function calls to use 'current_user' instead of 'user' in agentic_mcp.py for consistency. * Update user authentication in simplified_run_flow Modified the api_key_user parameter to accept either CurrentActiveUser or UserRead from api_key_security, supporting both Bearer and session authentication methods. * revert the apikeu_user changes * test new api endpoint * Refactor agent flow and update component inputs Updated SystemMessageGen.json to refactor edge connections and node IDs for agentic flow. Added 'base_url' as a required input, enabled 'ai_enabled' for agent description, and replaced static memory input handling with dynamic retrieval via get_base_inputs(). Also improved tool callback setup and updated code hash and last_updated metadata. * Improve agentic flow creation and updating logic Enhances the agentic flow setup to extract flow_id and endpoint_name from JSON, update existing flows by ID or endpoint_name, and create new flows if they don't exist. Adds detailed logging and ensures flows are up-to-date in the user's Langflow Assistant folder. * chore: aibutton clean up * chore: add assistant store * Update SystemMessageGen.json * Update agentic_mcp.py * Update component_index.json * Fix agent input extraction from Message objects Agents now correctly extract and use the text content from Message objects, rather than passing the entire object or its string representation. This resolves issues where agents received verbose message representations instead of just the intended string input, and includes improved handling for multimodal content. Corresponding unit and integration tests have been added to verify this behavior for both OpenAI and Anthropic agents. * Add TemplateAssistant Langflow flow definition Introduces TemplateAssistant.json, a comprehensive Langflow flow configuration for agentic workflows. This flow integrates AstraDB, MCP Tools, and user input/output nodes, enabling document ingestion, search, and tool orchestration within the Langflow backend. * Improve MCPToolsComponent server/tool config refresh Refactored MCPToolsComponent to better handle tool and server config refreshes, especially when the MCP server changes. Added logic to avoid unnecessary clearing of tool inputs and options, and improved caching and UI update behavior for tool selection. Also updated related flow and starter project JSON files to reflect these changes. * auto add Global Variables for Agentic Experience * chore: clean up and get button working again * cleanup .md * fix:ruff, Refactor agentic utils and improve error handling Introduces shared default field lists for template/component search, refactors exception handling to use logger and add finally/else blocks, and improves type hinting with TYPE_CHECKING. Updates file opening to use Path objects, enhances error logging in template search, and removes the unused test_template_search.py file. * fix:ruff Expand exception handling in agentic MCP utilities Broadened exception handling in agentic MCP server and variable management functions to catch specific errors such as HTTPException, SQLAlchemyError, and common system exceptions. This improves robustness and error logging during server configuration, removal, and variable initialization. * aka-clean-up-1 * Remove duplicate process_output_item method Deleted two redundant definitions of the process_output_item method from MCPToolsComponent to clean up the code and prevent confusion. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes * Refactor service usage and improve project deletion logging Refactored login API to reuse a single settings service instance. Enhanced logging and error messaging when attempting to delete the Langflow Assistant folder. Minor variable usage cleanup in agentic flows setup and agent component test. * [autofix.ci] apply automated fixes (attempt 2/3) * Update test_template_search.py * Handle specific exceptions in agentic flow loading Updated the exception handling in load_agentic_flows to catch only OSError and orjson.JSONDecodeError instead of all exceptions, improving error specificity and logging. * Update component_index.json * [autofix.ci] apply automated fixes * revert loading setting service * Update login.py * Update SystemMessageGen.json * Update TemplateAssistant.json * [autofix.ci] apply automated fixes * Update constants.py * chore: seperate templateassistant and sysmessgen seperate templateassistant and sysmessgen frontend queries * chore: add header feature flag * use feature flag for all ui * [autofix.ci] apply automated fixes * package-lcok update * [autofix.ci] apply automated fixes * chore: LANGFLOW_AGENTIC_EXPERIENCE fe ff name * Update login.py * lint fix * [autofix.ci] apply automated fixes * Update component_index.json * chore: fix adjust-screan-view click * chore: same force issue as adjust-screen-view * chore: playwright pass 2 * revert package-lock * add type to langflow_modules * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * Handle TypeError in class-based serialization Adds a try-except block to catch TypeError when checking issubclass for objects that are types but not proper classes, such as typing special forms. This prevents serialization errors for generic aliases and similar constructs. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * Refactor type handling in field update and serialization Changed 'new_value' parameter type to str in update_flow_component_field for stricter typing. Simplified exception handling in serialize by removing unnecessary try/except around issubclass checks for class-based Pydantic types. --------- Co-authored-by: Adam Aghili <Adam.Aghili@ibm.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * ci: bump actions/checkout to v6 (#10697) * feat: Improve OAuth error handling and frontend sync behavior (#10626) * updates for version comp * migrate mcp composer fix to main * migrate mcp composer fix to main * version constraints * go back to pydantic 2.11 * remove logging * directly pin to new version * add instant feedback on error * improve callback function behavior ux * fix tests and mypy issues * bump mcp composer version * fixed latest version mcp * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * revert pydantic changes * computed models pydantic fix * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Hamza Rashid <hzarashid@gmail.com> * fix: Fix TypeError when LANGFLOW_ENABLE_LOG_RETRIEVAL is enabled (#10681) * fix serialize issue when LANGFLOW_ENABLE_LOG_RETRIEVAL is true * add logger tests * [autofix.ci] apply automated fixes * add multiple buffer checker * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * use serialize instead * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Edwin Jose <edwin.jose@datastax.com> * docs: update component documentation links to individual pages * Revert "docs: update component documentation links to individual pages" This reverts commit 1da51d4ccba9458506da6ff5b1ab7af23f09c2b6. * test: catch import errors upfront (#10632) * Convert to async and ruff-friendly print * Implement the checking into existing test file itself * Remove the newly introduced lfx test which is now incorporated into existing tests * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Run make build_component_index after merging latest from main * [autofix.ci] apply automated fixes * Revert "docs: update component documentation links to individual pages" This reverts commit 1da51d4ccba9458506da6ff5b1ab7af23f09c2b6. * build component index after origin/main merge into feature branch * [autofix.ci] apply automated fixes --------- Co-authored-by: Madhavan <cxo@ibm.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com> * feat: Support appending files when saving (#10631) * feat: Support appending files when saving * Update save_file.py * Update News Aggregator.json * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Update save_file.py * Update save_file.py * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes * Overwrite existing file if append mode is true * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Update test_mcp_servers_file.py * [autofix.ci] apply automated fixes * Update save_file.py * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * chore: Update pip and setuptools version constraints (#10708) * update setuptools and pip * remove from lfx pypoetry * feat: Display node name in download error message (#10707) add component name on download error * feat: Add Message Support for Input of Loop Component (#10160) * feat: Add support for messages in Loop Component * feat: Add Message support for input of Loop Component * [autofix.ci] apply automated fixes * Update src/frontend/src/utils/reactflowUtils.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * [autofix.ci] apply automated fixes * More cleanup of looping * Fix ruff errors * [autofix.ci] apply automated fixes * Update loop-component.spec.ts * Make loop types generic * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Fixes from gabriel review * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org> * fix: Support tool mode in File Component properly (#10520) * Support tool mode in dynamic outputs * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Tool mode and ruff fixes * Template updates * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Update test_mcp_servers_file.py * Revert "Update test_mcp_servers_file.py" This reverts commit 25f24d0d8aa5a7c95c913f862d86513749195ad1. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * add possibility for the agent to access the processed output file * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: cristhianzl <cristhian.lousa@gmail.com> Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com> * docs: include regex for sanitized input types (#10712) include-regex-for-sanitized-input * feat: Version 1.2 - comprehensive database migration guidelines using… (#10519) * feat: Version 1.2 - comprehensive database migration guidelines using the Expand-Contract pattern * Update src/backend/base/langflow/alembic/DB-MIGRATION-GUIDE.MD Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: Cleanup text and typos * feat: Implement migration validation workflow and add migration validator scripts * Update src/backend/base/langflow/alembic/migration_validator.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/backend/base/langflow/alembic/migration_validator.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/backend/base/langflow/alembic/migration_validator.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: moved the test_migrations directory to under tests * feat: Added migration validator to pre-commit check. * fix: improved test performance. * fix: optimized attribute resolution in migration validator * feat: add comprehensive tests for migration validator and guidelines * fix: Lint is complaining about shebang declared but not being used. * fix: Shebang reinstated. * Update src/backend/base/langflow/alembic/DB-MIGRATION-GUIDE.MD Co-authored-by: Copilot <175728472+Copilot@users.…
* docs: Improve README Quickstart section and add dark mode logo (#10358) * Improve README Quickstart section and reorganize installation options - Add prominent Desktop download section before Quickstart - Remove $ symbols from shell commands to fix copy button functionality - Add clear 'Run from source' option with make run_cli for developers - Improve Docker installation instructions with usage details - Move security warnings to after installation options for better flow - Remove redundant star/issues badges These changes address common user confusion when trying to run Langflow, especially for developers who clone the repo first and then struggle with the package installation instructions. 🤖 Generated with [Claude Code](https://claude.ai/code) * Add dark mode logo support - Added picture element for automatic dark/light mode logo switching - Dark mode shows blue background logo, light mode shows black logo 🤖 Generated with [Claude Code](https://claude.ai/code) * Final README improvements - Made 'Other install options' a proper section with emoji - Updated deployment section with rocket emoji - Fixed single-line formatting for subsections - Added new star animation gif - Changed 'tool' to 'platform' in description * Improve Desktop download section messaging - Made text more concise and action-oriented - Changed download emoji from arrow to inbox - Removed redundant 'built-in' and bold formatting - Cleaner parenthetical for OS availability * Revise README for Langflow Desktop and deployment info Updated sections for clarity and added details about Langflow Desktop and deployment options. * Revert star gif to GitHub attachment URL Testing if local file path issue or markdown previewer issue * Apply suggestion from @mendonk * Apply suggestion from @mendonk * Apply suggestion from @mendonk * Apply suggestion from @mendonk * readme-changes * Apply suggestion from @mendonk --------- * fix: require active user for monitor endpoints (#10568) Require active user for monitor endpoints * refactor: Reorganize sidebar categories (#10180) * Reorganize sidebar categories * finishing touches * templates * ruff check fix * merge fix * filter out knowledge when ff'd off * BE tests * [autofix.ci] apply automated fixes * more test fixes * integration test fix * Unit tests * more test fixes * reorg tests * [autofix.ci] apply automated fixes * update ui tests * [autofix.ci] apply automated fixes * mcp and playwright tests * [autofix.ci] apply automated fixes * BE test fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * test fix --------- * fix(agent): handle missing message id for disconnected agents (#10560) * fix(agent): handle missing message id for disconnected agents * [autofix.ci] apply automated fixes * will this update comp index * comp index --------- * fix: Langflow logo on home page when s3 is enabled (#10352) * fixed and added tests * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- * fix(playground): preserve timer start time when playground is reopened (#10516) * Fix playground timer * add jest unit tests --------- * fix: MCP component auto reset issue in non Tool Mode (#10440) * Optimize tool dropdown handling and output processing Improves logic for updating tool dropdown options by checking if the server has changed and whether tool mode is active, reducing unnecessary updates. Adds a process_output_item method to parse tool output as JSON when appropriate, enhancing output handling. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * Update component_index.json * Update Nvidia Remix.json * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Update component_index.json * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * use cache enabled even for the no tool mode * Update component_index.json * [autofix.ci] apply automated fixes * Update Nvidia Remix.json * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * Add Notion integration components to index Updated component_index.json to include new Notion integration components: AddContentToPage, NotionDatabaseProperties, NotionListPages, NotionPageContent, NotionPageCreator, NotionPageUpdate, and NotionSearch. These components provide functionality for interacting with Notion databases and pages, including querying, creating, updating, and retrieving content. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * fix: add selector to let dropdown load add Select a tool selector to let dropdown load before interacting * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Update MCPToolsComponent code and metadata Updated the code and code_hash for MCPToolsComponent in Nvidia Remix starter project and synchronized the component_index.json to reflect the latest code and metadata. This ensures consistency and includes recent improvements or fixes to the MCPToolsComponent implementation. --------- * fix: Switch to browser-compatible MathJax import (#10563) add browser support to rehype package build * feat: patch icons to support dark theme and Composio Slack component fix. (#10577) * feat: add Composio Components & logos tweak * Display name consistency * update init * fix: format * fix: suggested changes by Mike * feat: add Composio Components & logos tweak * Display name consistency * update init * fix: format * fix: suggested changes by Mike * updates components JSON * fix: format * updates components JSON * Remove unnecessary blank lines in __init__.py Cleaned up formatting by deleting extra blank lines in the _dynamic_imports dictionary for improved readability. * Update component_index.json * Update component_index.json * Update component_index.json * Update component_index.json * fix: Slack component issue * fix: icons update to support dark theme * fix: Klaviyo imports * Update component_index.json --------- * feat: add toolkit_versions and updated composio and composio_langchain versions. (#10578) * feat: added toolkit versions and updated composio and composio_langchain packages * fix: format --------- * fix: marked required fields for fields with MultilineInput input types. (#10579) fix: marked required fields with MultilineInputs * feat: replaced initiate method with link method. (#10580) feat: replaced .initiate() with .link() * feat: Add ALTK Agent with tool validation and comprehensive tests (#10587) * Add ALTK Agent with tool validation and comprehensive tests - Added agent-lifecycle-toolkit~=0.4.1 dependency to pyproject.toml - Implemented ALTKBaseAgent with comprehensive error handling and tool validation - Added ALTKToolWrappers for SPARC integration and tool execution safety - Created ALTK Agent component with proper LangChain integration - Added comprehensive test suite covering tool validation, conversation context, and edge cases - Fixed docstring formatting to comply with ruff linting standards * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * minor fix to execute_tool that was left out. * Fixes following coderabbitai comments. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * Update component_index.json * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Add custom message to dict conversion in ValidatedTool * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Add Notion integration components to index Updated component_index.json to include new Notion integration components: AddContentToPage, NotionDatabaseProperties, NotionListPages, NotionPageContent, NotionPageCreator, NotionPageUpdate, and NotionSearch. These components provide functionality for interacting with Notion databases and pages, including querying, creating, updating, and retrieving content. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- * feat: Add MCP server config sanitization for sensitive data (#10552) add clean mcp config function * feat: Implement dynamic model discovery system (#10523) * add dynamic model request * add description to groq * add cache folder to store cache models json * change git ignore description * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * add comprehensive tests for Groq dynamic model discovery - Add 101 unit tests covering success, error, and edge cases - Test model discovery, caching, tool calling detection - Test fallback models and backward compatibility - Add support for real GROQ_API_KEY from environment - Fix all lint errors and improve code quality * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * fix Python 3.10 compatibility - replace UTC with timezone.utc Python 3.10 doesn't have datetime.UTC, need to use timezone.utc instead * fix pytest hook signature - use config instead of _config * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * fix conftest config.py * fix timezone UTC on tests * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- * feat: remove `code` from Transactions to reduce clutter in logs (#10400) * refactor: remove code from transaction model inputs * refactor: remove code from transaction model inputs * tests: add tests to make sure code is not added to transactions data * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * refactor: improve code removal from logs with explicit dict copying --------- * refactor(service_manager): implement lazy initalization of service manager (#8828) * refactor: implement lazy initialization for ServiceManager with thread safety - Replaced direct instantiation of ServiceManager with a lazy initialization approach using a global variable and threading lock. - Updated the public API to expose `get_service_manager` for retrieving the singleton instance. - Ensured thread-safe access to the ServiceManager instance to prevent issues during module import. * refactor: update service manager imports to use get_service_manager - Replaced direct imports of service_manager with get_service_manager in multiple files to ensure consistent access to the singleton instance. - This change enhances code clarity and maintains the lazy initialization approach for the ServiceManager. * refactor: remove deprecated Enhanced ServiceManager implementation * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * refactor: implement thread-safe lazy initialization for ServiceManager * feat: add filelock dependency in lfx * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * update component index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- * feat: new release for cuga component (#10591) * feat: new release of cuga * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * fix: address review * fix: fixed more bugs * fix: build component index * [autofix.ci] apply automated fixes * fix: update test * chore: update component index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- * ci: upgrade playwright to 1.56 and fix second time imports (#10284) * chore: update Playwright and related dependencies to version 1.56.0 in package.json and package-lock.json * refactor: update addLegacyComponents function to improve selector checks - Replaced the expect assertion with a waitForSelector call to ensure the sidebar legacy switch is checked, enhancing reliability in tests. - Updated import statement for Page from "@playwright/test" for consistency with current practices. * fix playwright imports * chore: update Playwright version in CI workflow to 1.56.0 for consistency with project dependencies * refactor: enhance lockFlow and unlockFlow functions for improved visibility checks - Replaced isVisible calls with waitFor to ensure elements are visible before proceeding, enhancing test reliability. - Removed unnecessary waitForTimeout calls to streamline the flow execution process. * test(playwright): add validation for settings menu header text * refactor(playwright): improve lock flow test with expect assertions * refactor(playwright): simplify legacy component toggle validation * feat: adds Component Inputs telemetry (#10254) * feat: Introduce telemetry tracking for sensitive field types Added a new set of field types that should not be tracked in telemetry due to their sensitive nature, including PASSWORD, AUTH, FILE, CONNECTION, and MCP. Updated relevant input classes to ensure telemetry tracking is disabled for these sensitive fields, enhancing data privacy and security. * feat: Enhance telemetry payloads with additional fields and serialization support Added new fields to the ComponentPayload and ComponentInputsPayload classes, including component_id and component_run_id, to improve telemetry data tracking. Introduced a serialize_input_values function to handle JSON serialization of component input values, ensuring robust handling of input data for telemetry purposes. * feat: Implement telemetry input tracking and caching Added functionality to track and cache telemetry input values within the Component class. Introduced a method to determine if inputs should be tracked based on sensitivity and an accessor for retrieving cached telemetry data, enhancing the robustness of telemetry handling. * feat: Add logging for component input telemetry Introduced a new method, log_package_component_inputs, to the TelemetryService for logging telemetry data related to component inputs. This enhancement improves the tracking capabilities of the telemetry system, allowing for more detailed insights into component interactions. * feat: Enhance telemetry logging for component execution Added functionality to log component input telemetry both during successful execution and error cases. Introduced a unique component_run_id for each execution to improve tracking. This update ensures comprehensive telemetry data collection, enhancing the robustness of the telemetry system. * feat: Extend telemetry payload tests and enhance serialization Added tests for the new component_id and component_run_id fields in ComponentPayload and ComponentInputsPayload classes. Introduced a new test suite for ComponentInputTelemetry, covering serialization of various data types and handling of edge cases. This update improves the robustness and coverage of telemetry data handling in the system. * fix: Update default telemetry tracking behavior in BaseInputMixin Changed the default value of track_in_telemetry from True to False in the BaseInputMixin class. Updated documentation to clarify that telemetry tracking is now opt-in and can be explicitly enabled for individual input types, enhancing data privacy and control. * fix: Update telemetry tracking defaults for input types Modified the default value of `track_in_telemetry` for various input classes to enhance data privacy. Regular inputs now default to False, while safe inputs like `IntInput` and `BoolInput` default to True, ensuring explicit opt-in for telemetry tracking. Updated related tests to reflect these changes. * feat: add chunk_index and total_chunks fields to ComponentInputsPayload This commit adds two new optional fields to ComponentInputsPayload: - chunk_index: Index of this chunk in a split payload sequence - total_chunks: Total number of chunks in the split sequence Both fields default to None and use camelCase aliases for serialization. This is Task 1 of the telemetry query parameter splitting implementation. Tests included: - Verify fields exist and can be set - Verify camelCase serialization aliases work correctly - Verify fields default to None when not provided Generated with Claude Code (https://claude.com/claude-code) * refactor: update ComponentInputsPayload to support automatic splitting of oversized inputs This commit enhances the ComponentInputsPayload class by implementing functionality to automatically split input values into multiple chunks if they exceed the maximum URL size limit. Key changes include: - Added methods for calculating URL size, truncating oversized values, and splitting payloads. - Updated component_inputs field to accept a dictionary instead of a string for better handling of input values. - Improved documentation for the ComponentInputsPayload class to reflect the new splitting behavior and usage examples. These changes aim to improve telemetry data handling and ensure compliance with URL length restrictions. * refactor: enhance log_package_component_inputs to handle oversized payloads This commit updates the log_package_component_inputs method in the TelemetryService class to split component input payloads into multiple requests if they exceed the maximum URL size limit. Key changes include: - Added logic to split the payload using the new split_if_needed method. - Each chunk is queued separately for telemetry logging. These improvements ensure better handling of telemetry data while adhering to URL length restrictions. * refactor: centralize maximum telemetry URL size constant This commit introduces a centralized constant, MAX_TELEMETRY_URL_SIZE, to define the maximum URL length for telemetry GET requests. Key changes include: - Added MAX_TELEMETRY_URL_SIZE constant to schema.py for better maintainability. - Updated split_if_needed method in ComponentInputsPayload to use the new constant instead of a hardcoded value. - Adjusted the TelemetryService to reference the centralized constant for URL size limits. These changes enhance code clarity and ensure consistent handling of URL size limits across the telemetry service. * refactor: update ComponentInputsPayload tests to use dictionary inputs This commit modifies the tests for ComponentInputsPayload to utilize a dictionary for component inputs instead of a serialized JSON string. Key changes include: - Renamed the test method to reflect the new input type. - Removed unnecessary serialization steps and assertions related to JSON strings. - Added assertions to verify the correct handling of dictionary inputs. These changes streamline the testing process and improve clarity in how component inputs are represented. * test: add integration tests for telemetry service payload splitting This commit introduces integration tests for the TelemetryService to verify its handling of large and small payloads. Key changes include: - Added tests to ensure large payloads are split into multiple chunks and queued correctly. - Implemented a test to confirm that small payloads are not split and result in a single queued event. - Created a mock settings service for testing purposes. These tests enhance the reliability of the telemetry service by ensuring proper payload management. * test: enhance ComponentInputsPayload tests with additional scenarios This commit expands the test suite for ComponentInputsPayload by adding various scenarios to ensure robust handling of input payloads. Key changes include: - Introduced tests for calculating URL size, ensuring it returns a positive integer and accounts for encoding. - Added tests to verify the splitting logic for large payloads, including checks for chunk metadata and preservation of fixed fields. - Implemented property-based tests using Hypothesis to validate that all chunks respect the maximum URL size and preserve original data. These enhancements improve the reliability and coverage of the ComponentInputsPayload tests, ensuring proper functionality under various conditions. * [autofix.ci] apply automated fixes * optimize query param encoding * refactor: extract telemetry logging logic into a separate function This commit introduces a new function, _log_component_input_telemetry, to centralize the logic for logging component input telemetry. The function is called in two places within the generate_flow_events function, improving code readability and maintainability by reducing duplication. This change enhances the clarity of telemetry handling in the flow generation process. * refactor: optimize truncation logic in ComponentInputsPayload This commit refines the truncation logic for input values in the ComponentInputsPayload class. The previous binary search method for string values has been simplified, allowing for direct truncation of both string and non-string values. This change enhances code clarity and maintains functionality while ensuring optimal handling of oversized inputs. * refactor: update telemetry tracking logic to respect opt-in flag This commit modifies the telemetry tracking logic in the Component class to change the default behavior of the `track_in_telemetry` attribute from True to False. This adjustment enhances user privacy by requiring explicit consent for tracking input objects in telemetry. The change ensures that sensitive field types are still auto-excluded from tracking, maintaining the integrity of the telemetry data. * refactor: update tests to use dictionary format for component inputs This commit modifies the integration tests for telemetry payload validation and component input telemetry to utilize dictionaries for component inputs instead of serialized JSON strings. Key changes include: - Updated assertions to compare dictionary inputs directly. - Enhanced clarity and maintainability of the test cases by removing unnecessary serialization steps. These changes improve the representation of component inputs in tests, aligning with recent refactoring efforts. * [autofix.ci] apply automated fixes * refactor: specify type for current_chunk_inputs in ComponentInputsPayload This commit updates the type annotation for the current_chunk_inputs variable in the ComponentInputsPayload class to explicitly define it as a dictionary. This change enhances code clarity and maintainability by providing better type information for developers working with the code. * test: add component_id to ComponentPayload tests This commit enhances the test cases for the ComponentPayload class by adding a component_id parameter to various initialization tests. The updates ensure that the component_id is properly tested across different scenarios, including valid parameters, error messages, and edge cases. This change improves the robustness of the tests and aligns with recent updates to the ComponentPayload structure. * [autofix.ci] apply automated fixes * feat: add component_id to ComponentPayload in build_vertex function * fix: update MAX_TELEMETRY_URL_SIZE to 2048 and adjust related tests This commit increases the maximum URL size for telemetry GET requests from 2000 to 2048 bytes to align with Scarf's specifications. Corresponding test assertions have been updated to reference the new constant, ensuring consistency across the codebase. * [autofix.ci] apply automated fixes * feat(telemetry): add track_in_telemetry field to starter project configurations * refactor(telemetry): remove unused blank line in test imports * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * update starter templates * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- * fix(telemetry): resolve cyclic import in telemetry service (#10598) * fix(telemetry): resolve cyclic import by moving get_email_model * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- * feat: Add gpt-5.1 model to Language models (#10590) * Add gpt-5.1 model to starter projects Added 'gpt-5.1' to the list of available models in all starter project JSON files to support the new model version. This update ensures users can select gpt-5.1 in agent configurations. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Update component_index.json * [autofix.ci] apply automated fixes * Update component_index.json * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- * fix: Use the proper Embeddings import for Qdrant vector store (#10613) * Use the proper Embeddings import for Qdrant vector store * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- * fix: Ensure split text test is more robust (#10622) * fix: Ensure split text test is more robust * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- * docs: security notice (#10555) * docs-security-notice * Apply suggestions from code review * code-review * link-to-security-bulletin * Apply suggestions from code review --------- * fix: use issubclass in the pool creation (#10232) * use issubclass in the pool creation * [autofix.ci] apply automated fixes * add poolclass pytests * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- * docs: OpenAPI spec version upgraded from 1.6.5 to 1.6.8 (#10627) * chore: Fix indentation on bundles-docling.mdx (#10640) * feat: make it possible to load graphs using `get_graph` function in scripts (#9913) * feat: Enhance graph loading functionality to support async retrieval - Updated `load_graph_from_script` to be an async function, allowing for the retrieval of the graph via an async `get_graph` function if available. - Implemented fallback to the existing `graph` variable for backward compatibility. - Enhanced `find_graph_variable` to identify both `get_graph` function definitions and `graph` variable assignments, improving flexibility in script handling. * feat: Update load_graph_from_script to support async graph retrieval - Refactored `load_graph_from_script` to be an async function, enabling the use of an async `get_graph` function for graph retrieval. - Implemented a fallback mechanism to access the `graph` variable for backward compatibility. - Enhanced error handling to provide clearer messages when neither `graph` nor `get_graph()` is found in the script. * feat: Refactor simple_agent.py to support async graph creation - Introduced an async `get_graph` function to handle the initialization of components and graph creation without blocking. - Updated the logging configuration and component setup to be part of the async function, improving the overall flow and responsiveness. - Enhanced documentation for the `get_graph` function to clarify its purpose and return type. * feat: Update serve_command and run functions to support async graph loading - Refactored `serve_command` to be an async function using `syncify`, allowing for non-blocking execution. - Updated calls to `load_graph_from_path` and `load_graph_from_script` within `serve_command` and `run` to await their results, enhancing performance and responsiveness. - Improved overall async handling in the CLI commands for better integration with async workflows. * feat: Refactor load_graph_from_path to support async execution - Changed `load_graph_from_path` to an async function, enabling non-blocking graph loading. - Updated the call to `load_graph_from_script` to use await, improving performance during graph retrieval. - Enhanced the overall async handling in the CLI for better integration with async workflows. * feat: Enhance async handling in simple_agent and related tests - Updated `get_graph` function in `simple_agent.py` to utilize async component initialization for improved responsiveness. - Modified test cases in `test_simple_agent_in_lfx_run.py` to validate the async behavior of `get_graph`. - Refactored various test functions across multiple files to support async execution, ensuring compatibility with the new async workflows. - Improved documentation for async functions to clarify their purpose and usage. * docs: Implement async get_graph function for improved component initialization - Introduced an async `get_graph` function in `README.md` to facilitate non-blocking component initialization. - Enhanced the logging configuration and component setup within the async function, ensuring a smoother flow. - Updated documentation to clarify the purpose and return type of the `get_graph` function, aligning with the async handling improvements. * refactor: reorder imports in simple_agent test file * style: reorder imports in simple_agent test file * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * update component index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- * feat: Add custom download node function (#10659) * add custom download node * use download node * feat: Add type check before issubclass in service discovery (#10636) * Add type check before issubclass in service discovery Added an isinstance(obj, type) check before issubclass to prevent errors when inspecting module members for Service and ServiceFactory subclasses. This improves robustness when dynamically importing services and factories. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes --------- * docs: readme update (#10657) * dep-management * are * fix: minor redesign of guardrails for disabling components in LF Astra cloud (#10662) * create cloud validation util file disable local_db if in astra cloud disable split_video if in astra cloud disable video_file component if in astra cloud ruff (video_file.py) correct the error message in video_file.py disable mem0 and composio in astra cloud update astra disable component util fn name to be more descriptive add tests for disabling components minor docs patch remove component disable check in places that interact with building the component index replace init test with execution in composio unit test suite remove dotenv from validate_cloud * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- * fix: prevent autofix workflow loop from bot commits (#10673) fix(ci): prevent autofix workflow loop from bot commits * fix(lfx-dev): reload specific modules while preserving index cache (#10629) * fix(lfx-dev): reload specific modules while preserving index cache * refactor: restructure component loading with strategy pattern for dev mode * fix: improve cache loading error handling in component index loading * refactor: reorganize CUGA and ALTK components into single-element bundles (#10671) * moved cuga and altk * reverted starter templates * [autofix.ci] apply automated fixes * updated import * [autofix.ci] apply automated fixes * revert starter templates * fixed some python tests * fix: update import assertions for backward compatibility in dynamic import tests * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: update import paths for set_advanced_true and get_parent_agent_inputs in test_helper_functions --------- * feat: fix cuga component with new release (#10646) * bufix(cuga_agent): fixed no output chat bug * fix: remove structured output feature * fix: stablize component * fix: chat output component not working * fix: add strategy flag * fix: update cuga version * feat: add component index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * update some imports to use lfx * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: update review * chore: build component index * chore: build component * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * fix(cuga): ensure message id exists when not connected to output * fix: component result id on chat output * chore: fix component index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Revert test_agent_component.py back to origin/main * fix: remove unwanted tests * chore: new build index * [autofix.ci] apply automated fixes * fix: update test * chore: build index * [autofix.ci] apply automated fixes * fix: update package of cuga * chore: build component index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * update comp index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * trying comp index again? * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes --------- * fix: Add IBM watsonx.ai support to EmbeddingModel (#10677) * Add IBM watsonx.ai support to EmbeddingModel Added IBM watsonx.ai as a supported provider in EmbeddingModelComponent, updated dependencies and code to integrate ibm_watsonx_ai and pydantic. Updated starter project and component index metadata to reflect new dependencies and code changes. * update watsonx default models * update index * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Update test_embedding_model_component.py * Update component_index.json * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- * fix: rename LLM router to LLM selector (#10650) * fix: rename LLM router to LLM selector * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: rename LLMRouter component to LLMSelector * fix: resolved merge conflicts * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: resolved merge conflicts * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: refactor file name * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: resolve merge conflict * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: resolve merge conflict * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- * Fix: add environment variable flag to log alembic to stdout (#10620) * fix: add flag to log alembic to stdout fix indentation refine docs mypy (db service.py) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- * fix: move sql database to data source category (#10651) * fix: move sql database to data source category * [autofix.ci] apply automated fixes * fix: resolve merge conflict --------- * fix: fixes YouTube Icon name in lazyloadingMapping (#10628) * fix lazyloadingMapping component name * fix: merge conflicts * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes * fix: resolve merge conflict --------- * Fix: rename sidebar category flow controls to flow control (#10649) * rename sidebar category flow controls to flow control * fix: addressed PR comments * fix: expose logger functions at module level for backwards comp (#10670) * Expose logger functions at module level for backwards comp * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes --------- * feat: agentic UX (#10567) * Add empty __init__.py files for agentic modules Created empty __init__.py files in agentic, core, tools, and utils directories to initialize them as Python packages. * Add agentic template search utilities and tests Introduces a new agentic utilities module for Langflow, including template search, tag extraction, and template count functions. Adds a README, demo script, and comprehensive unit tests for template search functionality. * Add Langflow Agentic MCP server with FastMCP tools Introduces a new MCP (Model Context Protocol) server for Langflow agentic tools using FastMCP. Adds server, CLI, example usage, tests, and comprehensive documentation. Exposes four MCP tools: search_templates, get_template, list_all_tags, and count_templates, enabling AI assistants to query and filter Langflow templates programmatically. * Handle unparameterized list types in schema inputs Adds support for unparameterized list annotations by treating them as lists of strings when converting schemas to Langflow inputs. This ensures nullable array schemas without explicit item types are handled gracefully. * Refactor search_templates to simplify parameters Removed the 'tags' parameter from the search_templates function and set a default value for 'fields'. Updated the call to list_templates to match the new signature, streamlining template search functionality. * Add output item processing for tool results Introduced process_output_item to handle tool output items, attempting to parse text-type items as JSON. This improves downstream handling of tool outputs by converting JSON strings to dictionaries when possible. * Refactor knowledge base path initialization Replaces direct settings access with a lazy-loading function for the knowledge bases root path in Knowledge Ingestion and Knowledge Retrieval starter projects. This improves reliability and consistency when accessing the knowledge base directory, and updates all usages to the new helper function. * Update component_index.json * Add IBM watsonx.ai support to starter projects Introduces IBM watsonx.ai as a selectable model provider in multiple starter project JSONs. Adds new input fields for 'base_url', 'project_id', and 'max_output_tokens' to support IBM watsonx.ai integration. Updates agent component code to handle new provider and its required parameters. * Add Ollama to supported LLM providers in starter projects Ollama has been added as a supported provider alongside Anthropic, Google Generative AI, OpenAI, and IBM watsonx.ai in all starter project JSON files. This expands the available options for LLM integration in initial setup templates. * Update Ollama model input constants and logic Refactored model_input_constants.py to update the OLLAMA_MODEL_INPUTS and OLLAMA_MODEL_INPUTS_MAP. Modified ollama.py to use the new input mapping and improved input handling for Ollama components. * Add flow creation from template MCP tool Introduces a new MCP tool for creating flows from starter templates in Langflow Agentic. Adds the utility function `create_flow_from_template_and_get_link` and exposes it via the FastMCP server, allowing users to create flows by template id and receive a UI link. Updates imports and documentation accordingly. * Add component search utilities and MCP tools to server Introduces new component search and retrieval tools to the MCP server, including endpoints for searching, listing, and counting components. Adds support functions in support.py for data normalization and a new component_search.py utility module. Updates the Nvidia Remix starter project to use the latest MCPToolsComponent code. * Add flow graph visualization utilities Introduces async utility functions for generating ASCII and text representations of flow graphs, as well as metadata summaries. These utilities support fetching flows by ID or name, error handling, and integration with Langflow's graph and logging modules. * Add flow component operations utilities and MCP tools Introduces flow component management utilities in `flow_component.py` for retrieving, updating, and listing component field values. Exposes new MCP tools in `server.py` for accessing component details, field values, updating fields, and listing all fields within a flow component. * Add SystemMessageGen flow and update MCPTools Introduces SystemMessageGen.json flow for agentic system message generation and updates MCPTools component logic in flow_component.py to support new flow structure and tool handling. * feat: init aiButton create an aiButton that opens the prompt modal for demoing add multiinput mixin * Update component_index.json * Refactor SystemMessageGen flow and remove unused init files Updated SystemMessageGen.json to support custom instructions, OpenAI model configuration, and improved agent settings. Removed unused __init__.py files from agentic, core, tools, and utils directories to clean up the codebase. * update to the mcp component * Add verify_ssl option to MCPToolsComponent Introduces a 'verify_ssl' boolean input to MCPToolsComponent for controlling SSL certificate verification in HTTPS connections. The option is added to the server config if not present, allowing users to disable verification for development or testing with self-signed certificates. * Optimize tool dropdown handling and output processing Improves logic for updating tool dropdown options by checking if the server has changed and whether tool mode is active, reducing unnecessary updates. Adds a process_output_item method to parse tool output as JSON when appropriate, enhancing output handling. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * feat: init onclick assistant prompt generation first pass at on button click generate input and auto fill a field * Replace MCPTools with Prompt Template in SystemMessageGen flow Updated the SystemMessageGen.json flow to use the Prompt Template and Parser components instead of MCPTools. Adjusted edges, nodes, and component configurations to reflect the new prompt-based workflow, removing tool selection and execution logic in favor of prompt generation and parsing. * Update SystemMessageGen flow and frontend dependencies Refactored edge connections and metadata in SystemMessageGen.json to improve flow logic and updated endpoint name. Added new optional and peer dependencies to package-lock.json, including @mapbox/node-pre-gyp and related packages, to support canvas and other modules. * Update user authentication in simplified_run_flow endpoint Replaces the dependency on api_key_security with CurrentActiveUser for the api_key_user parameter in the simplified_run_flow endpoint. This change is part of a TODO to create a new endpoint and may affect how user authentication is handled. * feat: hook everything up and have onclick prompt hook up commit * Add auto-configuration for Agentic MCP server Introduces utilities and startup logic to automatically configure the Langflow Agentic MCP server for all users when the agentic experience is enabled. Adds a new settings flag `agentic_experience` to control this feature, and updates the main server startup to trigger configuration. This enables agentic tools for flow/component operations, template search, and graph visualization in MCP clients. * Enable agentic MCP server and improve initialization Set agentic_experience to True by default in settings. Refactor agentic MCP server initialization in main.py to run in the background with a delay and retry logic, improving startup reliability. Update function calls to use 'current_user' instead of 'user' in agentic_mcp.py for consistency. * Update user authentication in simplified_run_flow Modified the api_key_user parameter to accept either CurrentActiveUser or UserRead from api_key_security, supporting both Bearer and session authentication methods. * revert the apikeu_user changes * test new api endpoint * Refactor agent flow and update component inputs Updated SystemMessageGen.json to refactor edge connections and node IDs for agentic flow. Added 'base_url' as a required input, enabled 'ai_enabled' for agent description, and replaced static memory input handling with dynamic retrieval via get_base_inputs(). Also improved tool callback setup and updated code hash and last_updated metadata. * Improve agentic flow creation and updating logic Enhances the agentic flow setup to extract flow_id and endpoint_name from JSON, update existing flows by ID or endpoint_name, and create new flows if they don't exist. Adds detailed logging and ensures flows are up-to-date in the user's Langflow Assistant folder. * chore: aibutton clean up * chore: add assistant store * Update SystemMessageGen.json * Update agentic_mcp.py * Update component_index.json * Fix agent input extraction from Message objects Agents now correctly extract and use the text content from Message objects, rather than passing the entire object or its string representation. This resolves issues where agents received verbose message representations instead of just the intended string input, and includes improved handling for multimodal content. Corresponding unit and integration tests have been added to verify this behavior for both OpenAI and Anthropic agents. * Add TemplateAssistant Langflow flow definition Introduces TemplateAssistant.json, a comprehensive Langflow flow configuration for agentic workflows. This flow integrates AstraDB, MCP Tools, and user input/output nodes, enabling document ingestion, search, and tool orchestration within the Langflow backend. * Improve MCPToolsComponent server/tool config refresh Refactored MCPToolsComponent to better handle tool and server config refreshes, especially when the MCP server changes. Added logic to avoid unnecessary clearing of tool inputs and options, and improved caching and UI update behavior for tool selection. Also updated related flow and starter project JSON files to reflect these changes. * auto add Global Variables for Agentic Experience * chore: clean up and get button working again * cleanup .md * fix:ruff, Refactor agentic utils and improve error handling Introduces shared default field lists for template/component search, refactors exception handling to use logger and add finally/else blocks, and improves type hinting with TYPE_CHECKING. Updates file opening to use Path objects, enhances error logging in template search, and removes the unused test_template_search.py file. * fix:ruff Expand exception handling in agentic MCP utilities Broadened exception handling in agentic MCP server and variable management functions to catch specific errors such as HTTPException, SQLAlchemyError, and common system exceptions. This improves robustness and error logging during server configuration, removal, and variable initialization. * aka-clean-up-1 * Remove duplicate process_output_item method Deleted two redundant definitions of the process_output_item method from MCPToolsComponent to clean up the code and prevent confusion. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes * Refactor service usage and improve project deletion logging Refactored login API to reuse a single settings service instance. Enhanced logging and error messaging when attempting to delete the Langflow Assistant folder. Minor variable usage cleanup in agentic flows setup and agent component test. * [autofix.ci] apply automated fixes (attempt 2/3) * Update test_template_search.py * Handle specific exceptions in agentic flow loading Updated the exception handling in load_agentic_flows to catch only OSError and orjson.JSONDecodeError instead of all exceptions, improving error specificity and logging. * Update component_index.json * [autofix.ci] apply automated fixes * revert loading setting service * Update login.py * Update SystemMessageGen.json * Update TemplateAssistant.json * [autofix.ci] apply automated fixes * Update constants.py * chore: seperate templateassistant and sysmessgen seperate templateassistant and sysmessgen frontend queries * chore: add header feature flag * use feature flag for all ui * [autofix.ci] apply automated fixes * package-lcok update * [autofix.ci] apply automated fixes * chore: LANGFLOW_AGENTIC_EXPERIENCE fe ff name * Update login.py * lint fix * [autofix.ci] apply automated fixes * Update component_index.json * chore: fix adjust-screan-view click * chore: same force issue as adjust-screen-view * chore: playwright pass 2 * revert package-lock * add type to langflow_modules * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * Handle TypeError in class-based serialization Adds a try-except block to catch TypeError when checking issubclass for objects that are types but not proper classes, such as typing special forms. This prevents serialization errors for generic aliases and similar constructs. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * Refactor type handling in field update and serialization Changed 'new_value' parameter type to str in update_flow_component_field for stricter typing. Simplified exception handling in serialize by removing unnecessary try/except around issubclass checks for class-based Pydantic types. --------- * ci: bump actions/checkout to v6 (#10697) * feat: Improve OAuth error handling and frontend sync behavior (#10626) * updates for version comp * migrate mcp composer fix to main * migrate mcp composer fix to main * version constraints * go back to pydantic 2.11 * remove logging * directly pin to new version * add instant feedback on error * improve callback function behavior ux * fix tests and mypy issues * bump mcp composer version * fixed latest version mcp * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * revert pydantic changes * computed models pydantic fix * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- * fix: Fix TypeError when LANGFLOW_ENABLE_LOG_RETRIEVAL is enabled (#10681) * fix serialize issue when LANGFLOW_ENABLE_LOG_RETRIEVAL is true * add logger tests * [autofix.ci] apply automated fixes * add multiple buffer checker * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * use serialize instead * [autofix.ci] apply automated fixes --------- * docs: update component documentation links to individual pages * Revert "docs: update component documentation links to individual pages" This reverts commit 1da51d4ccba9458506da6ff5b1ab7af23f09c2b6. * test: catch import errors upfront (#10632) * Convert to async and ruff-friendly print * Implement the checking into existing test file itself * Remove the newly introduced lfx test which is now incorporated into existing tests * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Run make build_component_index after merging latest from main * [autofix.ci] apply automated fixes * Revert "docs: update component documentation links to individual pages" This reverts commit 1da51d4ccba9458506da6ff5b1ab7af23f09c2b6. * build component index after origin/main merge into feature branch * [autofix.ci] apply automated fixes --------- * feat: Support appending files when saving (#10631) * feat: Support appending files when saving * Update save_file.py * Update News Aggregator.json * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Update save_file.py * Update save_file.py * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes * Overwrite existing file if append mode is true * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Update test_mcp_servers_file.py * [autofix.ci] apply automated fixes * Update save_file.py * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- * chore: Update pip and setuptools version constraints (#10708) * update setuptools and pip * remove from lfx pypoetry * feat: Display node name in download error message (#10707) add component name on download error * feat: Add Message Support for Input of Loop Component (#10160) * feat: Add support for messages in Loop Component * feat: Add Message support for input of Loop Component * [autofix.ci] apply automated fixes * Update src/frontend/src/utils/reactflowUtils.ts * [autofix.ci] apply automated fixes * More cleanup of looping * Fix ruff errors * [autofix.ci] apply automated fixes * Update loop-component.spec.ts * Make loop types generic * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Fixes from gabriel review * [autofix.ci] apply automated fixes --------- * fix: Support tool mode in File Component properly (#10520) * Support tool mode in dynamic outputs * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Tool mode and ruff fixes * Template updates * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * Update test_mcp_servers_file.py * Revert "Update test_mcp_servers_file.py" This reverts commit 25f24d0d8aa5a7c95c913f862d86513749195ad1. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * add possibility for the agent to access the processed output file * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- * docs: include regex for sanitized input types (#10712) include-regex-for-sanitized-input * feat: Version 1.2 - comprehensive database migration guidelines using… (#10519) * feat: Version 1.2 - comprehensive database migration guidelines using the Expand-Contract pattern * Update src/backend/base/langflow/alembic/DB-MIGRATION-GUIDE.MD * fix: Cleanup text and typos * feat: Implement migration validation workflow and add migration validator scripts * Update src/backend/base/langflow/alembic/migration_validator.py * Update src/backend/base/langflow/alembic/migration_validator.py * Update src/backend/base/langflow/alembic/migration_validator.py * fix: moved the test_migrations directory to under tests * feat: Added migration validator to pre-commit check. * fix: improved test performance. * fix: optimized attribute resolution in migration validator * feat: add comprehensive tests for migration validator and guidelines * fix: Lint is complaining about shebang declared but not being used. * fix: Shebang reinstated. * Update src/backend/base/langflow/alembic/DB-MIGRATION-GUIDE.MD Co-authored-by: Copilot <175728472+Copilot@users.… Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org> Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com> Co-authored-by: Mike Fortman <michael.fortman@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: Jordan Frazier <jordan.frazier@datastax.com> Co-authored-by: Deon Sanchez <69873175+deon-sanchez@users.noreply.github.com> Co-authored-by: Tejas Kumar <tejas.kumar@datastax.com> Co-authored-by: cristhianzl <cristhian.lousa@gmail.com> Co-authored-by: Adam Aghili <Adam.Aghili@ibm.com> Co-authored-by: Uday Sidagana <129588963+Uday-sidagana@users.noreply.github.com> Co-authored-by: Koren Lazar <44236526+korenLazar@users.noreply.github.com> Co-authored-by: Koren Lazar <koren.lazar@ibm.com> Co-authored-by: Sami Marreed <sami.marreed@ibm.com> Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com> Co-authored-by: Madhavan <msmygit@users.noreply.github.com> Co-authored-by: Madhavan <cxo@ibm.com> Co-authored-by: Eric Hare <ericrhare@gmail.com> Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> Co-authored-by: ming <itestmycode@gmail.com> Co-authored-by: Hamza Rashid <74062092+HzaRashid@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com> Co-authored-by: Himavarsha <40851462+HimavarshaVS@users.noreply.github.com> Co-authored-by: Offer Akrabi <offer.akrabi@il.ibm.com> Co-authored-by: keval shah <kevalvirat@gmail.com> Co-authored-by: Rej Ect <99460023+rejected-l@users.noreply.github.com> Co-authored-by: Hamza Rashid <hzarashid@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com> Co-authored-by: Rico Furtado <hfurtado@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Cristhian Zanforlin <criszl@192.168.15.88> Co-authored-by: Wallgau <46035189+Wallgau@users.noreply.github.com> Co-authored-by: Olfa Maslah <olfamaslah@Olfas-MacBook-Pro.local> Co-authored-by: Cristhian Zanforlin <criszl@MacBook-Pro-di-Cristhian.local> Co-authored-by: Olfa Maslah <olfamaslah@macbookpro.war.can.ibm.com> Co-authored-by: kiran-kate <40038037+kiran-kate@users.noreply.github.com> Co-authored-by: olayinkaadelakun <olayinka.adelakun@ibm.com> Co-authored-by: Olayinka Adelakun <olayinkaadelakun@Olayinkas-MacBook-Pro.local> Co-authored-by: Olayinka Adelakun <olayinkaadelakun@mac.war.can.ibm.com> Co-authored-by: Joao Paulo Ramos <joao.oramos11@gmail.com> Co-authored-by: phact <estevezsebastian@gmail.com> Co-authored-by: Steve Haertel <stevehaertel@users.noreply.github.com> Co-authored-by: Steve Haertel <shaertel@ca.ibm.com> Co-authored-by: Simon Steinbeiß <simon.steinbeiss@elfenbeinturm.at> Co-authored-by: Mike Pawlowski <mpawlow@ca.ibm.com> Co-authored-by: Viktor Avelino <64113566+viktoravelino@users.noreply.github.com> Co-authored-by: himavarshagoutham <himavarshajan17@gmail.com> Co-authored-by: Jason Tsay <jsntsay@gmail.com> Co-authored-by: andifilhohub <115162146+andifilhohub@users.noreply.github.com> Co-authored-by: Ali Saleh <saleh.a@turing.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: phact <1313220+phact@users.noreply.github.com> Co-authored-by: avonian <ara@soundstage.fm> Co-authored-by: Ara Kevonian <avonian@users.noreply.github.com> Co-authored-by: Adam-Aghili <149833988+Adam-Aghili@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Lucas Democh <ldgoularte@gmail.com> Co-authored-by: Jason Tsay <jason.tsay@ibm.com> Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com> Co-authored-by: Janardan Singh Kavia <janardankavia@ibm.com> Co-authored-by: Janardan S Kavia <janardanskavia@mac.myfiosgateway.com> Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com> Co-authored-by: Rodrigo Nader <rodrigonader@MacBook-Pro-de-Rodrigo.local> Co-authored-by: Janardan S Kavia <janardanskavia@Janardans-MacBook-Pro.local> Co-authored-by: Janardan S Kavia <janardanskavia@mac.war.can.ibm.com> Co-authored-by: Antônio Alexandre Borges Lima <104531655+AntonioABLima@users.noreply.github.com> Co-authored-by: Antônio Alexandre Borges Lima <antonio@Antonios-MacBook-Pro.local> Co-authored-by: Debojit Kaushik <Kaushik.debojit@gmail.com> Co-authored-by: Debojit Kaushik <debojitkaushik@Debojits-MacBook-Pro.local> Co-authored-by: necrophcodr <necrophcodr@users.noreply.github.com> Co-authored-by: Phil Nash <philnash@gmail.com>
Description
Move CUGA and ALTK agent components from the "Models & Agents" category into separate single-element bundles to improve component discoverability and organization.
Issue
Screen.Recording.2025-11-20.at.10.54.23.AM.mov
Fix
Screen.Recording.2025-11-20.at.10.51.14.AM.mov
Summary by CodeRabbit
New Features
Improvements
✏️ Tip: You can customize this high-level summary in your review settings.
This pull request updates the starter project configuration files in
src/backend/base/langflow/initial_setup/starter_projects. The main changes are the removal of explicit dependency version numbers and enhancements to the configuration options for model selection and telemetry tracking. These changes help simplify dependency management and improve the flexibility and observability of the starter projects.Dependency management updates:
orjson,fastapi,pydantic,langchain_core, etc.) have been removed and set tonullacross multiple starter project JSON files. This affects projects likeBasic Prompt Chaining,Blog Writer,Custom Component Generator,Document Q&A,Financial Report Parser,Hybrid Search RAG,Image Sentiment Analysis,Instagram Copywriter, andInvoice Summarizer. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19]Model selection and configuration enhancements:
WatsonxAI,Ollama) to theInstagram CopywriterandInvoice Summarizerprojects, and updated related configuration options (e.g.,refresh_button,external_options). [1] [2] [3]"gpt-4o"to"gpt-4o-mini"inInstagram Copywriter.Telemetry and traceability improvements:
track_in_telemetryfield to various configuration parameters, allowing for better tracking and analytics of user interactions and configuration changes. [1] [2] [3] [4] [5] [6] [7]Configuration consistency fixes:
max_tokensandtemperatureto use floating-point values forminandmaxfields. [1] [2]Other minor improvements:
refresh_buttontofalsefor model selection fields and made minor adjustments to input field properties for better UX. [1] [2]Let me know if you need more details on any specific change!