Commit graph

16,321 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
13386d4118
chore: update pre-commit hooks to latest versions (#8938)
- Bumped pre-commit-hooks from v4.1.0 to v5.0.0.
- Updated ruff-pre-commit from v0.8.3 to v0.12.2 for improved linting capabilities.
2025-07-10 18:19:12 +00:00
Mendon Kissling
41216f8a65
docs: rag chatbot tutorial (#8929)
* minimal-working-code

* remove-old-files-and-add-new-content

* cleanup

* swap-in-faiss

* more-content

* initial-content

* remove-files

* remove-unused-image-file

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* differentiate-vector-db

* Apply suggestions from code review

Co-authored-by: Melissa Herrera <85907755+melienherrera@users.noreply.github.com>

* use-langflow-js-client

* next-steps

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* docs-review

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
Co-authored-by: Melissa Herrera <85907755+melienherrera@users.noreply.github.com>
2025-07-10 18:02:36 +00:00
Lucas Oliveira
87795931f0
fix: improved better health check and stream URL check on MCP, improved JSON recognition (#8982)
* Improved health check and stream URL check on MCP

* Improved health check by validating session connectivity

* Changed mcp servers from json checks

* Fixed imports

* Fixed mcp server tab test
2025-07-10 16:56:02 +00:00
Mendon Kissling
a9a5c3490c
docs: chatbot with files tutorial (#8813)
* minimal-working-code

* remove-old-files-and-add-new-content

* cleanup

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* intro-and-sidebars

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

* add-fake-resume

* docs: update chat-with-files tutorial to include Langflow API key and clarify file upload process

* docs: enhance chat-with-files tutorial to support multiple file uploads with example code

* move-file-and-fixpath

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* docs: update fake resume with new example details

* Apply suggestions from code review

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2025-07-10 16:55:40 +00:00
Mendon Kissling
b0729fa370
docs: remove duplicate intro text (#8987)
* remove-duplicate-input-text

* spacing
2025-07-10 16:37:43 +00:00
Mendon Kissling
abedcb0912
docs: docling integration (#8939)
* initial-content

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* peer-review

* fix-broken-link

* link

* language

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2025-07-10 16:37:18 +00:00
Mendon Kissling
63307ebc1c
docs: add unix note to api pane (#8951)
add-note-to-access-pane
2025-07-10 16:00:15 +00:00
Mendon Kissling
cc2468cfd3
docs: add windows related content (#8903)
* add-mac-uninstall-error

* windows-commands

* style

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* tabs-and-tab-groups

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2025-07-10 15:59:18 +00:00
Mendon Kissling
3fd8824806
docs: how to add a missing dependency to langflow desktop (#8942)
* add-package-management-for-lf-desktop

* username

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* combine-oss-dependency-management

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2025-07-10 15:57:05 +00:00
Mendon Kissling
955127469c
templates: Update Vector Store RAG.json (#8977)
Update Vector Store RAG.json

Co-authored-by: Eric Hare <ericrhare@gmail.com>
2025-07-10 15:44:44 +00:00
Mendon Kissling
afb82019bf
docs: add windows desktop back for 1.5 release (#8866)
add-windows-back
2025-07-10 15:34:49 +00:00
Lucas Oliveira
208bc27f11
fix: add scroll to update components review dialog (#8983)
Added overflow y to update
2025-07-10 15:26:41 +00:00
Mendon Kissling
10c788af67
docs: add required API key headers for 1.5 (#8721)
* add-api-key-header-to-examples

* api-examples-add-keys

* auth-login-behavior-changes

* no-all-endpoint

* syntax

* text

* cleanup

* notice-for-mcp

* include-instructions-for-exporting-key

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* chat-io-double-quotes

* auth-page-docs-review

* docs-review

* update-api-overview-page-docs-review

* docs-and-eng-review

* details-title

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* docs-review

* add-env-var-to-table

* clarify-cli-key-requirements

* docs: update API key creation instructions in CLI documentation

- Changed the requirement for creating API keys from needing superuser status to allowing `AUTO_LOGIN` to be set to `TRUE`.
- Added a reference to the API keys documentation for additional information.
- Updated command examples for clarity.

* public-server-update-env-vars

* reference-page

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2025-07-10 15:20:35 +00:00
Mendon Kissling
ea6bbc7666
docs: 1.5 release (#8387)
* publish-pane

* export-flow

* update-publish-page-for-input-schema

* input-schema

* mcp-one-click-install

* release-notes

* models-components-page

* components-updates

* url-example

* embedding-model-example

* models

* release-notes

* data-components-new-intro

* docs: update data components section for clarity and detail

* move-batch-run

* add-sql-component-example

* type-convert

* anchor

* type-convert-and-web-search-example

* fix-broken-links

* overview-and-screenshots

* playground-componente-and-overview

* import-and-export-flows

* fix-build-error

* move-em-and-em-bundled-components

* links-to-embeddings

* smart-filter

* python-repl

* processing-done

* screenshot-for-python-interpreter

* message-history-component

* include-imports

* merge-conflict

* fix: update link in memories documentation and add icon import to API example

* move-agent-components

* starter-flow-updates

* components-and-overview

* fix-links

* api-pane-screenshot

* quickstart

* link

* merge-conflicts-builds-successfully

* add-document-analysis-metadata

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* docs-review

* release-notes

* broken-links

* add-language-model-output-example-andupdate-screenshot

* add-auth-to-release-notes

* replace-astra-chat-memory

* move-memories-to-bundles

* component-screenshots

* component-screenshots

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* clarify-global-env-with-export

* further-explanation

* docs-review

* Add LLM Router component documentation and image

* remove-text-summarizer-example

* multiple-mcp-clients

* update-mcp-tools-client-use

* export-flow-api-keys

* uncomment-prompts-and-fix-build-error

* docs-review

* bundles-and-embeddings-docs-review

* language-model-docs-review

* restore-see-alsos

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* mcp-autoinstall

* template-explanations

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* release-notes

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* fix-links

* mcp-settings-page

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* update-actions-to-tools

* cleanup-mcp-nomenclature

* Update docs/docs/Support/release-notes.md

* output-type-selection

* replace-changelog-with-release-notes

* cleanup

* input-schema-name-endpoint

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2025-07-10 14:54:17 +00:00
Gabriel Luiz Freitas Almeida
8033f2c9d3
refactor: update imports and move functions out of MCPToolsComponent (#8976) 2025-07-10 10:53:56 -03:00
Gabriel Luiz Freitas Almeida
75e930d847
ci: update nightly script to support other version operators (#8980) 2025-07-10 10:02:04 -03:00
Gabriel Luiz Freitas Almeida
c5083a54ae
ci: update regex pattern for langflow-base dependency to support PEP 440 version suffixes (#8979) 2025-07-10 09:49:23 -03:00
Gabriel Luiz Freitas Almeida
d325fca054
refactor: update cache service type hints in MCPToolsComponent (#8975) 2025-07-10 08:52:25 -03:00
Lucas Oliveira
2fec8437b8
fix: make files be saved in unique path (#8965)
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-07-10 08:42:03 -03:00
Lucas Oliveira
85a1068c03
fix: make mcp server component handle cache miss gracefully (#8966)
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-07-10 08:24:10 -03:00
Eric Hare
8f315a29bc
fix: Update file component description for accuracy (#8960)
* fix: Update file component description for accuracy

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-09 23:34:53 +00:00
Rodrigo Nader
a0e484c0eb
feat: add DataFrame output to Structured Output component (#8842)
* feat: add DataFrame output to Structured Output component

- Add new DataFrame output alongside existing Data output for structured data
- Single output: creates DataFrame with one row
- Multiple outputs: creates DataFrame with multiple rows, each containing a Data object
- Maintains backward compatibility with existing Data output
- Includes comprehensive test coverage for both single and multiple output scenarios

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* [autofix.ci] apply automated fixes

* Update structured_output.py

* [autofix.ci] apply automated fixes

* udpate to tests

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* update to format instructions

* Update system prompt in structured output component test

Expanded the system prompt in the test for StructuredOutputComponent to provide more detailed extraction instructions, including handling of missing values, duplicates, and output format requirements. This improves test clarity and better simulates real-world extraction scenarios.

* [autofix.ci] apply automated fixes

* Update structured_output.py

* fix: return empty Data object instead of None in StructuredOutputComponent

Updated the return statement in the StructuredOutputComponent to return an empty Data object when there are no outputs, improving consistency in the output handling.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Claude <noreply@anthropic.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: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-07-09 21:57:07 +00:00
Rodrigo Nader
e0400f29eb
feat: enhance DataFrame Operations component with contains filter and modern UI (#8838)
* feat: enhance DataFrame Operations component with contains filter and modern UI

- Add "contains" filter operator for partial string matching in DataFrame filters
- Update UI to use SortableListInput with icons for consistent modern design
- Add 7 filter operators: equals, not equals, contains, starts with, ends with, greater than, less than
- Fix deselection handling to prevent "unhashable type: list" errors
- Improve dynamic field visibility when operations are deselected
- Add comprehensive test suite with 25 tests covering all operations and edge cases
- Update placeholder text from "Select DataFrame Operation" to "Select Operation"

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* [autofix.ci] apply automated fixes

* Update dataframe_operations.py

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-07-09 21:50:59 +00:00
Lucas Oliveira
f6a9e8fad4
fix: clean edges of same type but different name when switching outputs, update color when deleting edges (#8959)
* fix edges not being cleared if same type but different name

* removed console log

* removed console log

* made edges change trigger re-render of handle color

* Updated position of edges
2025-07-09 21:32:57 +00:00
Mike Fortman
4bd8aa63bf
fix: fix max height of template getting started cards (#8964)
* fix max height

* tiny height change
2025-07-09 21:20:19 +00:00
Harsha Vardhan Khurdula
8c72ea087c
feat: jigsawstack bundle integration (#8832)
* fix: formatting errors.

* fix: formmating errors for jigsawstack components.

* fix: bugs identified by coderabbitai.

* fix: formatting issues on JigsawStack icon gradient.

* fix: project starters.

* fix: value errors.

* fix: app startup

* fix: resolve merge conflicts, accept incoming changes.

* fix:  follow lexicographical order for bundle names.

Co-authored-by: Edwin Jose <edwinjose900@gmail.com>

* feat: add JigsawStack bundle to the sidebar, following lexographical order.

* fix: remove duplicate changes, by rebasing to main/src/.../styleUtils.ts

* fix: apply suggested fixes for potential issues identified from coderabbitai.

---------

Co-authored-by: Edwin Jose <edwinjose900@gmail.com>
2025-07-09 19:53:12 +00:00
Gabriel Luiz Freitas Almeida
ba9740f32a
chore: enable code guidelines in coderabbit configuration (#8958)
* Updated .coderabbit.yaml to enable code guidelines for improved code quality and consistency.
2025-07-09 19:26:25 +00:00
Gabriel Luiz Freitas Almeida
e13a3ca800
fix: Ensure flow_id is not None before logging vertex build details (#8954)
* fix: Update log_vertex_build to accept UUID for flow_id and improve error handling

* Changed flow_id type from str to str | UUID for better type safety.
* Added error handling to raise a ValueError if flow_id is invalid, enhancing robustness of the logging function.

* fix: Ensure flow_id is not None before logging vertex build details

* Updated log_vertex_build call to check if flow_id is not None, enhancing robustness and preventing potential errors when flow_id is absent.
2025-07-09 19:17:50 +00:00
Lucas Oliveira
ef41c71701
fix: update API Access codes to include only authenticated code (#8957)
* changed code tabs to show authenticated values

* Fixed file upload test
2025-07-09 18:54:40 +00:00
Gabriel Luiz Freitas Almeida
be25e88a97
chore: update package versions to include post-release tags (#8955)
* Bump langflow version to 1.5.0.post1 in pyproject.toml and uv.lock.
* Update langflow-base version to 0.5.0.post1 in related files for consistency.
2025-07-09 17:57:03 +00:00
Gabriel Luiz Freitas Almeida
d437d018ce
refactor(auth): simplify flow retrieval by removing settings_service dependency (#8956)
* refactor: Simplify flow reading logic by removing unnecessary settings service dependency

* 🛠️ (flows.py): Remove settings_service parameter from _read_flow and related functions to streamline flow retrieval logic.
* 🔧 (flows.py): Adjust query to directly filter by user_id, enhancing clarity and reducing complexity.

* test: Enhance flow retrieval tests with user isolation checks

* 🧪 (test_flows.py): Remove hardcoded user_id from flow creation tests to ensure user-specific data handling.
*  (test_flows.py): Add a new test to verify that users can only access their own flows, ensuring proper user isolation in flow retrieval.
* 🔧 (test_flows.py): Implement user creation and cleanup logic to maintain test integrity and avoid side effects.
2025-07-09 17:53:34 +00:00
Mendon Kissling
73c1f203b0
docs: update nv-ingest component (#8950)
* add-high-res-and-defaults

* Update docs/docs/Integrations/Nvidia/integrations-nvidia-ingest.md
2025-07-09 15:30:38 +00:00
Lucas Oliveira
1362aa1172
fix: make deletion of single file commit to DB, create tests for file deletion (#8953)
* Added commit to db session

* Changed order

* Deleted flush

* Added test to files
2025-07-09 15:17:54 +00:00
Cristhian Zanforlin Lousa
eb69cddc1c
fix: Improve flow export error handling and validation (#8943)
*  (exportModal/index.tsx): Refactor onSubmit function to improve flow export functionality and error handling
♻️ (reactflowUtils.ts): Refactor downloadFlow function to return a Promise and improve error handling

* 📝 (exportModal/index.tsx): remove unnecessary comment about handling error in export flow to improve code readability

* 🐛 (exportModal/index.tsx): remove unnecessary filePath variable and simplify logic for exporting flows
💡 (exportModal/index.tsx): refactor code to improve readability and remove redundant code for exporting flows
2025-07-09 12:57:02 +00:00
Cristhian Zanforlin Lousa
88803e31d2
refactor: Extract single file download logic to custom hook (#8944)
 (use-custom-handle-bulk-files-download.ts): add custom hook to handle bulk files download functionality
 (use-custom-handle-single-file-download.ts): add custom hook to handle single file download functionality
🔧 (index.tsx): fix import path for use-custom-handle-bulk-files-download hook in filesPage
🔧 (index.tsx): fix import path for use-custom-handle-single-file-download hook in filesContextMenuComponent

Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
2025-07-08 23:32:10 +00:00
Cristhian Zanforlin Lousa
f390d3a4e9
fix: Improve modal layout responsiveness and overflow handling (#8936)
 (switch-case-size.ts): Update modal sizes for better user experience and consistency
 (index.tsx, TemplateGetStartedCardComponent): Adjust styles for better layout and responsiveness
 (index.tsx): Improve modal layout and scrolling behavior for better usability
2025-07-08 23:12:16 +00:00
Cristhian Zanforlin Lousa
fc729cd7b5
feat: Add dynamic theming support to WatsonxAI icon (#8935)
*  (WatsonxAI.jsx): Add support for dynamic fill color based on isdark prop value
📝 (index.tsx): Import useDarkStore hook and pass isdark prop to SvgWatsonxAI component

*  (WatsonxAI.jsx): Remove unnecessary console.log statement
♻️ (index.tsx): Remove unnecessary console.log statement
2025-07-08 22:28:06 +00:00
Gabriel Luiz Freitas Almeida
24db0cdc73 fix: remove crewai dependency and add import guards in crewai components (#8923) 2025-07-08 09:59:46 -03:00
Gabriel Luiz Freitas Almeida
8fdd23a9b6 chore: update GitHub Actions workflow to inherit secrets (#8922) 2025-07-08 09:59:46 -03:00
Jordan Frazier
7ffec1a696 feat: add powershell curl tab to UI (#8889)
* chore: Bump version to 1.5.0 and update dependencies

- Updated langflow version to 1.5.0 in pyproject.toml, package.json, and package-lock.json.
- Updated langflow-base dependency to version 0.5.0.
- Added platform markers for several dependencies in uv.lock to improve compatibility across different systems.

* fix: fixes auth check for auto_login  (#8796)

* ref: improve docling template updates and error message (#8837)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>

* Attempt to provide powershell curl command

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Added OS selector to code tabs

* Added no select classes to API modal

*  (code-tabs.tsx): add data-testid attribute to API tab elements for testing purposes
🔧 (tweaksTest.spec.ts, curlApiGeneration.spec.ts, pythonApiGeneration.spec.ts, generalBugs-shard-3.spec.ts): update test scripts to use data-testid attribute for API tab elements instead of role attribute

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-07-08 09:59:46 -03:00
Jordan Frazier
be18f6d03a feat: add new openai reasoning models (#8786)
* Add new openai reasoning models

* [autofix.ci] apply automated fixes

* Updates language model, but FE doesn't send a POST for updating template atm

* use chatopenai constants

* [autofix.ci] apply automated fixes

* Add reasoning to language model test

* Remove temp from all reasoning models

* t [autofix.ci] apply automated fixes

* refactor: Update template notes (#8816)

* update templates

* small-changes

* template cleanup

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

* ruff

* uv lock

* starter projects update

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-07-08 09:59:46 -03:00
Jordan Frazier
15f2177c90 fix: handle EventLoopBlockError in CI to fix non-deterministic test failures (#8890)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
fix: fixes auth check for auto_login  (#8796)
2025-07-08 09:59:46 -03:00
Jordan Frazier
969afef523 ref: improve docling template updates and error message (#8837)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-07-08 09:59:46 -03:00
Jordan Frazier
fe58d69ae7 fix: fixes auth check for auto_login (#8796) 2025-07-08 09:59:46 -03:00
Gabriel Luiz Freitas Almeida
69ceaea739 chore: Bump version to 1.5.0 and update dependencies
- Updated langflow version to 1.5.0 in pyproject.toml, package.json, and package-lock.json.
- Updated langflow-base dependency to version 0.5.0.
- Added platform markers for several dependencies in uv.lock to improve compatibility across different systems.
2025-07-08 09:59:46 -03:00
Gabriel Luiz Freitas Almeida
7aeb687533
fix: don't send duplicate messages to Agent (#8909)
* fix: update message input handling in LCAgentComponent and improve memory data retrieval

* Refactor MessageTextInput to MessageInput for consistency.
* Enhance input dictionary construction to handle different input types in LCAgentComponent.
* Update get_memory_data method to filter out current input value from retrieved messages.

* fix: update AgentComponent to include documentation link and improve input handling

* Added documentation link for AgentComponent.
* Removed memory inputs from the agent component for cleaner input management.
* Enhanced error handling in message_response method to ensure better validation and logging of exceptions.

* fix: enhance input handling in LCAgentComponent by updating message conversion

* Updated input dictionary construction in LCAgentComponent to use to_lc_message() for Message instances, improving input handling consistency.

* test: add regression test for message duplication in agent component

* Introduced a new test to verify that mathematical expressions do not experience message duplication when processed by the agent component.
* The test checks both input and output JSON to ensure correct handling of expressions like "2+2" without duplication errors.

* test: add workspace tag to regression test for message duplication in agent component

* Updated the regression test for mathematical expressions to include the "@workspace" tag, enhancing test categorization and organization.
* This change ensures better tracking and management of tests related to the agent component.

* fix: add temporary comment in get_memory_data to address message duplication

* Added a TODO comment in the get_memory_data method of AgentComponent to indicate a temporary fix for message duplication issues. This serves as a reminder to develop a more robust solution in the future.

* feat: add message extraction utility for BaseMessage

* Introduced a new helper function, _get_message_from_base_message, to extract and concatenate text content from BaseMessage instances, improving message handling.
* Updated input handling in handle_on_chain_start to utilize the new extraction function, ensuring consistent processing of input messages.

* refactor: standardize code snippets across starter project JSON files

* Updated the "value" field in multiple starter project JSON files to ensure consistent formatting and structure of code snippets.
* This change enhances readability and maintainability of the code examples provided in the starter projects.

* feat: add caching and content dictionary creation for images

* Introduced a new function, create_image_content_dict, to generate a content dictionary for multimodal inputs from image files, enhancing image handling capabilities.
* Implemented LRU caching to optimize performance for repeated image processing.
* Added comprehensive error handling and documentation for better usability and maintainability.

* refactor: update message handling to utilize create_image_content_dict

* Replaced direct image URL creation with create_image_content_dict for improved image content handling in the Data and Message classes.
* Adjusted the order of content in human messages to ensure text appears first, enhancing message structure and clarity.
* Removed deprecated to_lc_message method to streamline the codebase and improve maintainability.

* docs: enhance _get_message_from_base_message docstring for clarity

* Expanded the docstring for the _get_message_from_base_message function to provide detailed information on input types, expected behavior, and examples of usage.
* Improved documentation aims to enhance usability and maintainability of the code by clarifying how to extract text content from BaseMessage instances.

* refactor: enhance image path handling and update message content structure

* Modified the get_file_paths function to support both Image objects and string paths for improved flexibility in file handling.
* Updated test cases to reflect changes in image content structure, ensuring consistency in type and source type attributes.
* Introduced new tests for create_image_content_dict to validate successful creation and error handling for image content dictionaries.

* refactor: streamline message extraction in handle_on_chain_start

* Removed the _get_message_from_base_message function to simplify the codebase.
* Updated handle_on_chain_start to directly use the text method of BaseMessage for extracting message content, enhancing clarity and maintainability.

* feat: enhance input handling for multimodal messages

* Added functionality to process image content within input messages, ensuring images are included in chat history as HumanMessage instances.
* Updated input handling logic to separate image types from text, improving the structure and clarity of message content.
* This enhancement supports better management of multimodal inputs in the agent's chat history.

* feat: add to_lc_message method for converting Data to BaseMessage

* Introduced the to_lc_message method in the Message class to facilitate conversion of Data instances to BaseMessage.
* Implemented logic to handle both HumanMessage and AIMessage based on the presence of required keys and sender type.
* Added logging for missing required keys to improve debugging and maintainability.

* refactor: simplify sender check in Message class

* Updated the sender validation logic in the Message class to remove unnecessary checks for missing sender values.
* This change enhances code clarity and maintains the intended functionality for handling user messages with associated files.

* test: update test_message_from_human_text to reflect content type change

* Modified the test for message conversion to assert that lc_message.content is a string instead of a list.
* Updated assertions to ensure the content matches the expected text, enhancing test accuracy and reliability.

* fix: update sender validation in Message class and adjust test case

* Modified the sender validation logic to handle cases where the sender is not specified, defaulting to HumanMessage.
* Updated the corresponding test case to reflect this change, ensuring accurate type assertion for lc_message when no sender is provided.

* refactor: update import statements for consistency and clarity

* Replaced the import of BaseModel from langchain.pydantic_v1 with the direct import from pydantic to streamline dependencies.
* This change enhances code clarity and aligns with best practices for managing imports in the codebase.

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
2025-07-08 01:36:39 +00:00
Lucas Oliveira
30c678b293
fix: add description to API Access dialog and link it to API Keys on settings (#8912)
* Add description to modal when autologin is on and change from A to CustomLink

* Changed place of custom link

* Made settings back button go back to previous page
2025-07-07 20:52:36 +00:00
Lucas Oliveira
e486f6ac21
fix: reset files count after deletion, enable files filtering by column (#8911)
* Fixed items count not resetting after deletion

* Fixed transparent div not allowing filters to be used

* remove setting quantity after downlaod
2025-07-07 20:52:25 +00:00
Gabriel Luiz Freitas Almeida
fd92d16553
fix: prevent message duplication in ProjectMCPServer and handle_call_tool (#8918)
* Updated the message processing logic in both ProjectMCPServer and handle_call_tool to ensure that duplicate messages are not added to the collected results.
* Introduced a helper function to manage the addition of results, enhancing code clarity and maintainability.

Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2025-07-07 20:47:21 +00:00
Cristhian Zanforlin Lousa
114a70eebd
refactor: Update useIsLocalConnection to useCustomIsLocalConnection (#8915)
 (use-custom-is-local-connection.ts): introduce a new hook to check if the current window is being accessed through a local connection
♻️ (McpServerTab.tsx): refactor to use the new useCustomIsLocalConnection hook instead of the deprecated useIsLocalConnection hook
2025-07-07 20:15:54 +00:00