Commit graph

13,274 commits

Author SHA1 Message Date
Lucas Oliveira
caae43bc9b
fix: empty input message on empty streaming (#2729)
Fixed streaming bug where it shows a message before starting streaming
2024-07-16 17:26:55 +00:00
anovazzi1
b7223063c7
refactor: update edit messages text on Session view compoenent (#2715)
* feat: Add useUpdateMessages hook for updating messages

* refactor: Update useUpdateMessages hook to use singular naming convention

* refactor: update on session view

* [autofix.ci] apply automated fixes

* refactor: delete unused function

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-16 17:44:04 +02:00
Carlos Coelho
afc11e1fa7
feat: update bug report template for better issue reporting (#2727)
* feat: update bug report template for better issue reporting

* feat: Update bug report template for better issue reporting

* Create bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update and rename bug-report.yaml to bug-report

* Rename bug-report to bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Create feature-request.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update bug-report.yaml

* Update feature-request.yaml

* Update bug-report.yaml

* Delete .github/ISSUE_TEMPLATE/bug_report.yaml

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-07-16 07:45:30 -07:00
Igor Carvalho
c4b86e9d63
Fix: Clicking tags on share modal updates store immediately (#2720)
* Fix: Click tags on share modal share component to the store immediately

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-07-16 14:41:28 +00:00
Jinwoo Park (Curt)
8291aa9c24
docs: fix invalid hyperlinks in README.md (#2719)
Fix invalid hyperlinks in README.md
2024-07-16 07:29:16 -07:00
Ítalo Johnny
a534ac7619
chore: make error messages more generic (#2726)
* chore: make error messages more generic

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-16 14:24:08 +00:00
Gabriel Luiz Freitas Almeida
7d3fac6f10
fix: update chat components to make them backwards compatible (#2725)
* feat: Add conditional check for storing message in ChatOutput

* refactor: Update store_message method in ChatComponent for backward compatibility

* refactor: update input name to not collide with method name
2024-07-16 11:19:53 -03:00
Daniel Gines
e56a1c1e10
Improve Makefile: color output, clean commands, dependency checks (#2672)
* feat: Add Gemma 2 to Groq model list (#2586)

Add gemma2 to groq_constants.py

* Improve Makefile: color output, clean commands, dependency checks

- Add colored output to 'make help' for various shells.
- Add 'clean_all', 'clean_python_cache', and 'clean_npm_cache' commands.
- Check for installed tools: 'poetry', 'docker', 'pipx', and 'npm'.

* Added success message at the end of the check_tools target to indicate all required tools are installed.
2024-07-16 09:56:05 +00:00
Gabriel Luiz Freitas Almeida
5ef84f7911
feat: add CrewAI components and refactor codebase (#2647)
* feat: Add CrewAI icon component

This commit adds the CrewAI icon component to the project. The component is imported and used in the styleUtils file, allowing it to be used throughout the application. This addition enhances the visual representation of the CrewAI feature in the user interface.

* feat: Add CrewAI[tools] dependency to project

This commit adds the CrewAI dependency to the project by including it in the pyproject.toml file. The version specified is "^0.36.0" and the "tools" extras are included. This addition allows the project to utilize the features provided by CrewAI.

* fix: update crewai icon size

* feat: Add CrewAIAgent component

This commit adds the CrewAIAgent component to the project. The component represents an agent of CrewAI and includes various inputs and outputs for role, goal, backstory, tools, language model, memory, verbosity, and delegation. This addition enhances the functionality of the project by integrating with CrewAI and allows for more advanced agent-based interactions.

* feat: Add CrewAICrew component

This commit adds the CrewAICrew component to the project. The component represents a group of agents and defines how they should collaborate and the tasks they should perform. It includes various inputs and outputs for tasks, agents, topic, verbosity, memory, cache, max RPM, process, and more. This addition enhances the functionality of the project by integrating with CrewAI and allows for more advanced agent-based interactions.

* feat: Add CrewAITask component

This commit adds the CrewAITask component to the project. The component represents a task in CrewAI and includes inputs for description, expected output, tools, agent, and async execution. It also provides an output for the task itself. This addition enhances the functionality of the project by integrating with CrewAI and allows for the creation and execution of tasks within the system.

* refactor: Update build configuration in custom_component_update endpoint

This commit updates the build configuration in the custom_component_update endpoint of the endpoints.py file. The previous implementation was assigning the result of code_request.get_template() directly to the build_config parameter, which caused an issue. The updated code now assigns the result to the updated_build_config variable before passing it to the cc_instance.update_build_config() method. This change ensures that the correct build configuration is used and improves the functionality of the custom_component_update endpoint.

* feat: Add SequentialTask and HierarchicalTask classes

This commit adds the SequentialTask and HierarchicalTask classes to the tasks.py file in the base/agents/crewai directory. These classes represent different types of tasks in the CrewAI system. The SequentialTask class is used for sequential tasks, while the HierarchicalTask class is used for hierarchical tasks. This addition enhances the functionality of the project by providing the necessary classes for implementing different types of tasks in CrewAI.

* refactor: Update CrewAIAgentComponent class name

This commit updates the class name from "CrewAIAgent" to "CrewAIAgentComponent" in the CrewAIAgent.py file. The new name better reflects the nature of the class as a component and improves the clarity of the codebase.

* refactor: Update CrewAICrewSequential component

This commit adds the CrewAICrewSequential component to the project. The component represents a group of agents and defines how they should collaborate and the tasks they should perform in a sequential manner. It includes various inputs and outputs for tasks, verbosity, memory, cache, max RPM, and more. This addition enhances the functionality of the project by providing a specific component for sequential tasks in the CrewAI system.

* feat: Add CrewAICrewHierarchical component

This commit adds the CrewAICrewHierarchical component to the project. The component represents a group of agents and defines how they should collaborate and the tasks they should perform in a hierarchical manner. It includes various inputs and outputs for tasks, verbosity, memory, cache, max RPM, and more. This addition enhances the functionality of the project by providing a specific component for hierarchical tasks in the CrewAI system.

* refactor: Rename CrewAITask.py to CrewAITaskHierarchical.py

This commit renames the file "CrewAITask.py" to "CrewAITaskHierarchical.py" in the "helpers" directory of the "langflow/components/helpers" package. The new name better reflects the purpose of the file, which is to define the "CrewAITaskHierarchical" component. This change improves the clarity and organization of the codebase.

* feat: Add CrewAITaskSequential component

This commit adds the CrewAITaskSequential component to the project. The component represents a sequential task in CrewAI and includes inputs for task description, expected output, tools, agent, and async execution. It also provides an output for the task itself. This addition enhances the functionality of the project by integrating with CrewAI and allows for the creation and execution of sequential tasks within the system.

* feat: Add BaseCrewComponent class

This commit adds the BaseCrewComponent class to the project. The class represents a group of agents, defining how they should collaborate and the tasks they should perform. It includes various inputs and outputs for tasks, verbosity, memory, cache, max RPM, and more. This addition enhances the functionality of the project by providing a base component for creating and managing crews in the CrewAI system.

* refactor: Update display name of CrewAIAgentComponent to "CrewAI Agent"

* refactor: Remove CrewAICrewHierarchical component

This commit removes the CrewAICrewHierarchical component from the project. The component represented a group of agents and defined how they should collaborate and the tasks they should perform in a hierarchical manner. However, it is no longer needed and has been deemed unnecessary for the current project requirements. This removal streamlines the codebase and improves the clarity of the project.

* refactor: make Crew use BaseCrew class

* refactor: Replace CrewAICrewSequential with SequentialCrew

This commit replaces the deprecated CrewAICrewSequential component with the new SequentialCrew component. The SequentialCrew component represents a group of agents and defines how they should collaborate and the tasks they should perform in a sequential manner. This change improves the clarity and organization of the codebase by using a more descriptive and consistent naming convention for the component. It also aligns with the recent refactorings in the project, such as the removal of the CrewAICrewHierarchical component and the addition of the BaseCrewComponent class. Overall, this update enhances the functionality and maintainability of the project.

* refactor: Rename CrewAITaskHierarchical.py to HierarchicalTask.py

This commit renames the file "CrewAITaskHierarchical.py" to "HierarchicalTask.py" in the "helpers" directory of the "langflow/components/helpers" package. The new name better reflects the purpose of the file, which is to define the "HierarchicalTask" component. This change improves the clarity and organization of the codebase.

* refactor: Rename CrewAITaskSequential.py to SequentialTask.py

This commit renames the file "CrewAITaskSequential.py" to "SequentialTask.py" in the "helpers" directory of the "langflow/components/helpers" package. The new name better reflects the purpose of the file, which is to define the "SequentialTaskComponent" component. This change improves the clarity and organization of the codebase.

* style: reorder imports

* chore: update lock

* refactor: Refactor build_crew method in BaseCrewComponent

This commit refactors the build_crew method in the BaseCrewComponent class. The method was previously taking tasks and agents as arguments, but it was not using them correctly. This update removes the unnecessary arguments and fixes the method to correctly build a Crew object. This refactor improves the clarity and functionality of the codebase.

* refactor: Update status assignment in CrewAIAgentComponent

This commit updates the status assignment in the CrewAIAgentComponent class. Previously, the status was set using the `model_dump()` method of the agent, but it has been changed to use the `repr()` method instead. This change improves the clarity and consistency of the codebase.

* refactor: Add agents input to HierarchicalCrewComponent

This commit adds the "agents" input to the HierarchicalCrewComponent class in the "HierarchicalCrew.py" file. The "agents" input is a list of "Agent" objects and allows for better management and collaboration between agents within the crew. This addition enhances the functionality and flexibility of the HierarchicalCrewComponent, improving the overall codebase.

* refactor: Fix post_process_raw function in artifact.py

This commit fixes the post_process_raw function in the artifact.py file. Previously, the function was not correctly handling the case when the raw data was a BaseModel or a dictionary. This update ensures that the raw data is properly encoded using jsonable_encoder and updates the artifact_type accordingly. This fix improves the functionality and reliability of the codebase.

* refactor: Update CustomComponent's repr_value handling

This commit updates the repr_value handling in the CustomComponent class. Previously, the repr_value was being modified directly within the class, which could lead to unexpected behavior. This update ensures that the repr_value is returned instead of modifying it directly. Additionally, it adds proper handling for different types of repr_value, such as dictionaries and BaseModel objects. This refactor improves the clarity and maintainability of the codebase.

* update lock

* refactor: Add task input to SequentialTaskComponent

This commit adds the "task" input to the SequentialTaskComponent class in the "SequentialTask.py" file. The "task" input is a SequentialTask object that will perform the task. This addition enhances the functionality and flexibility of the SequentialTaskComponent, improving the overall codebase.

* refactor: Change log level of file retrieval message in LocalStorageService

* refactor(crew.py): update import statement to include InputTypes from langflow.inputs.inputs module to enhance code readability and maintainability

* chore: Update cachetools dependency to version 5.4.0

* feat(crew.py): add new methods get_task_callback and get_step_callback to handle task and step callbacks respectively

* refactor: Add allow_code_execution input to CrewAIAgentComponent

This commit adds the "allow_code_execution" input to the CrewAIAgentComponent class in the "CrewAIAgent.py" file. The "allow_code_execution" input is a boolean value that determines whether the agent is allowed to execute code. This addition enhances the functionality and flexibility of the CrewAIAgentComponent, improving the overall codebase.

* Add step_callback and task_callback inputs to HierarchicalCrewComponent and SequentialCrewComponent

* style(SequentialTask.py): remove unnecessary 'required' attribute from input definition in SequentialTaskComponent class

* chore: fix lint issues
2024-07-15 16:56:47 -07:00
Gabriel Luiz Freitas Almeida
e1542dc672
chore: update setuptools dependency to version 70 or higher (#2713)
* chore: Update setuptools dependency to version 70 or higher

* chore: new lock
2024-07-15 15:22:03 -07:00
Gabriel Luiz Freitas Almeida
b811dcc34c
chore: move test-cli job to run separately from unit tests (#2712) 2024-07-15 13:33:30 -07:00
Gabriel Luiz Freitas Almeida
3edc782545
fix: Update telemetry schema to allow for optional error message (#2711) 2024-07-15 20:18:07 +00:00
Gabriel Luiz Freitas Almeida
6e006354c3
fix: update telemetry schema and fix telemtry calls (#2708) 2024-07-15 16:16:23 -03:00
Gabriel Luiz Freitas Almeida
4268ee4d56
chore: Update python_test.yml to include splitCount and group arguments in make unit_tests command (#2709) 2024-07-15 16:13:26 -03:00
Gabriel Luiz Freitas Almeida
c8d04af533
refactor(CustomComponent): make initialization separate from constructor (#2704) 2024-07-15 18:37:10 +00:00
Ítalo Johnny
d93382e90a
refactor: runnable_vertices_manager.py (#2646)
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-07-15 17:57:00 +00:00
Gabriel Luiz Freitas Almeida
537e358b65
fix: update condition to run end_all_traces (#2707) 2024-07-15 09:13:49 -07:00
Igor Carvalho
a3959650fc
refactor: store tags API (#2678)
* feat: create useGetTags hook to handle tags API

* refactor: use useGetTagsQuery hook to handle tags

* [autofix.ci] apply automated fixes

* refactor: remove unnecessary state handling

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-07-15 12:39:25 +00:00
Gabriel Luiz Freitas Almeida
1b0dbd7fb5
docs: add CNAME file for custom domain (#2685) 2024-07-13 01:21:22 -07:00
github-actions[bot]
b731983f31
docs: update docs from notion (#2684)
Co-authored-by: lucaseduoli <lucaseduoli@users.noreply.github.com>
2024-07-12 16:36:29 -07:00
Lucas Oliveira
6756ef22b7
fix: added checkout to workflow (#2683) 2024-07-12 16:19:06 -07:00
Lucas Oliveira
e8c67974ab
fix: useless git commands on workflow (#2682) 2024-07-12 16:14:40 -07:00
Lucas Oliveira
f1b71ab353
fix: date on push command on fetch notion workflow (#2681)
Fix date on pull request workflow
2024-07-12 16:01:51 -07:00
Lucas Oliveira
83697fe31f
fix: fetch notion docs workflow origin on push (#2680) 2024-07-12 15:55:24 -07:00
Lucas Oliveira
78da36e8cd
fix: git workflow commands to push to repository (#2679) 2024-07-12 15:50:13 -07:00
Lucas Oliveira
c7944773d5
docs: fix gh workflow date step bad character (#2677) 2024-07-12 15:25:13 -07:00
Lucas Oliveira
f532bbd082
docs: fix gh workflow date step (#2676) 2024-07-12 15:20:17 -07:00
Lucas Oliveira
138552d7b5
docs: api page fix and workflow run fix (#2675)
* Fetched updated docs

* Fixed GitHub workflow for fetching docs
2024-07-12 22:14:28 +00:00
Lucas Oliveira
e29e3624f7
docs: reuploaded old images that were referenced (#2673)
Re-uploaded old images that were referenced by new docs
2024-07-12 21:32:53 +00:00
Cristhian Zanforlin Lousa
85161650bc
feat: Add the ability to hide/show components without input/output (I/O). (#2669)
♻️ (use-row-data.tsx): remove redundant check for LANGFLOW_SUPPORTED_TYPES in useRowData hook
2024-07-12 21:13:32 +00:00
Lucas Oliveira
3aa2513a86
docs: added fetching from notion (#2670)
* Added new Docusaurus instance that fetches automatically from Notion

* Add Github workflow to fetch docs from Notion

* Added legacy peer deps to solve dependency problems

* Fix git ignore and added pages
2024-07-12 22:59:52 +02:00
Gabriel Luiz Freitas Almeida
bab941f3e6
chore: add path for deploying documentation updates (#2671)
chore: Add path for deploying documentation updates
2024-07-12 22:56:52 +02:00
Igor Carvalho
b0bdfa211f
refactor: store likes API (#2661)
* feat: create usePostLikeComponent hook to handle store like API

* refactor: use usePostLikeComponent hook to handle store likes

* [autofix.ci] apply automated fixes

* refactor: use mutate loading instead of managing loading with react state

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-12 17:53:59 -03:00
Gabriel Luiz Freitas Almeida
f5f5141cc4
fix: check if vertex is in vertices_being_run to check if it is runnable (#2668)
Co-authored-by: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com>
2024-07-12 20:26:05 +00:00
Cristhian Zanforlin Lousa
dc5ac092fb
test: Add Test to Prevent Bug on Output Inspection for Grouped Components (#2667)
* add new test for bug on output inspection + grouped components

* [autofix.ci] apply automated fixes

* 🔧 (typescript_test.yml): increase shard count from 14 to 15 to distribute tests more evenly
🔧 (typescript_test.yml): fix syntax issues in conditional expressions

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-12 20:10:00 +00:00
Jael Gu
c8d7f47070
feat: Add milvus vector store (#2634)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-12 12:47:55 -07:00
anovazzi1
844da96bd2
fix: update starter projects (#2665) 2024-07-12 18:55:00 +00:00
Gabriel Luiz Freitas Almeida
c47c358cad
feat: add payload validation, update Simple API Test fixture, run tests (#2664) 2024-07-12 18:15:43 +00:00
Cristhian Zanforlin Lousa
cdb8c80a7e
fix: prevent to loop on keys of object profile pictures when It's not loaded yet (#2658)
🐛 (use-preload-images.tsx): add null check for profilePictures to prevent errors when profilePictures is undefined

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-07-12 17:43:24 +00:00
Gabriel Luiz Freitas Almeida
6bc0766929
chore: update package versions (#2663) 2024-07-12 17:15:18 +00:00
Cristhian Zanforlin Lousa
eb0a70f646
fix: adjust function that add incremental name on flows that already exists + tests (#2645)
* 🐛 (reactflowUtils.ts): fix addVersionToDuplicates to exclude the updated flow from existing names to prevent naming conflicts

*  (menuBar): add data-testid to flow configuration button for testing
 (sideBarFolderButtons): add data-testid to delete folder button for testing
 (folders.spec.ts): update test to use new data-testid for delete folder button
 (generalBugs-shard-4.spec.ts): add new end-to-end test for flow operations

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-07-12 17:14:38 +00:00
Gabriel Luiz Freitas Almeida
ef6d954357
fix: optimize filtering of vertices in useFlowStore (#2662)
Refactor the filtering logic in the useFlowStore hook to optimize the performance. The code changes ensure that the nextVertices array is filtered correctly by excluding vertices that already exist in the last layer.

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-07-12 16:37:47 +00:00
Nicolò Boschi
c88e9af121
feat: refactor memories (#2621)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-12 09:30:04 -07:00
Nicolò Boschi
ccd6d1c666
fix: coroutine is not iterable when using redis (#2655) 2024-07-12 09:29:08 -07:00
Nicolò Boschi
68e9617f54
fix: fix docker compose and add instructions (#2654) 2024-07-12 09:27:13 -07:00
Hamish Arnold
c522a7aae7
feat: Add JSON Cleaner Component (#2584)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-07-12 09:26:14 -07:00
Cristhian Zanforlin Lousa
8813143622
fix: add try catch on fenet decrypt to prevent errors (#2660) 2024-07-12 09:25:44 -07:00
anovazzi1
229b8680f7
fix: fix bug on row selection at IO modal (#2627)
* feat: optimize filtering of messages in SessionView component

The code changes in this commit optimize the filtering of messages in the SessionView component. The useMemo hook is used to memoize the filteredMessages array, which improves performance by avoiding unnecessary re-rendering.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-12 15:28:56 +00:00
Gabriel Luiz Freitas Almeida
74252aa76a
fix: handle sender_name passed as data or message (#2653) 2024-07-12 04:59:43 -07:00
Gabriel Luiz Freitas Almeida
28fa012fd6
chore: update HuggingFace Spaces build script to use correct space name (#2649)
The HuggingFace Spaces build script has been updated to use the correct space name "Langflow/Langflow" instead of "Langflow/Langflow-Preview". This ensures that the correct space is restarted when triggered.
2024-07-11 19:56:33 -03:00