Commit graph

7,638 commits

Author SHA1 Message Date
anovazzi1
6608ec8ab7 added kebab case filter 2023-05-02 19:24:56 -03:00
anovazzi1
6c36545f98 fixed password visible 2023-05-02 19:03:21 -03:00
Gabriel Almeida
1813befde1 fix(inputComponent): add missing space in className prop
fix(inputComponent): add missing space in password class name
2023-05-02 18:50:21 -03:00
Gabriel Almeida
1b6e61d3cb style(inputComponent): fix indentation and spacing in InputComponent component 2023-05-02 18:46:41 -03:00
Gabriel Almeida
e27f6d5d7d fix: updateObject order was incorrect
Fixes Tool nodes are not loaded correctly. #228
2023-05-02 17:24:08 -03:00
Gabriel Almeida
ed5fd7f862 feat(GenericNode): add debounced validation of node on change to improve performance and user experience
feat(utils.ts): add debounce function to debounce function calls
2023-05-02 16:54:40 -03:00
Gabriel Almeida
7a50129149 refactor(loading.py): process params before instantiating class object 2023-05-02 16:39:33 -03:00
CodeAunt
5f796368ac add view button for password input field 2023-05-02 18:48:30 +00:00
codeaunt
df611b6782 disable password copy 2023-05-02 18:48:30 +00:00
Gabriel Almeida
7dddd641cf refactor(agents): change tool_names from set to list
This commit changes the `tool_names` variable from a set to a list in the `JsonAgent`, `CSVAgent`, `VectorStoreAgent`, `SQLAgent`, `VectorStoreRouterAgent`, `MalfoyAgent`, and `load_agent_executor_from_config` classes. This is done to ensure that the `tool_names` variable is always a list, even when there is only one tool.
2023-05-02 15:11:32 -03:00
Gabriel Almeida
d79f655d88 refactor(loading.py): use get method to set allowed_tools to an empty list if it is not present in params dictionary 2023-05-02 15:04:28 -03:00
Gabriel Almeida
9ffa88a773 feat(chatModal): add support for secure websockets (wss) in production environment 2023-05-02 15:04:01 -03:00
Gabriel Almeida
8e1cb1d732 refactor(util.py): add support for Sequence and Set types in format_dict function 2023-05-02 13:12:03 -03:00
Gabriel Almeida
c623b02bf2 refactor(loading.py): make allowed_tools a list if it's not already a list or set 2023-05-02 11:29:38 -03:00
Gabriel Almeida
4eea69c563 refactor(agents, loading): change tool_names from list to set
This commit changes the `tool_names` variable from a list to a set in several
places in the codebase. This is done to improve performance and readability
since the `tool_names` variable is used as a set in the code. The affected
files are `custom.py`, `prebuilt.py`, and `loading.py`.
2023-05-02 10:56:01 -03:00
Gabriel Almeida
385de55c92 fix(chatModal): change wss to ws in production environment WebSocket URL
Probable fix to #232
2023-05-02 10:40:16 -03:00
Gabriel Almeida
96ef8fd657 refactor(loading.py): remove unused imports and add validation for class_object parameters that are not in __fields__ attribute. 2023-05-01 22:52:17 -03:00
Gabriel Almeida
a44f6123a3 refactor(base.py): change default value of advanced field from True to False in TemplateFieldCreator class 2023-05-01 19:39:02 -03:00
Gabriel Almeida
5ebf71116d feat(nodes.py): make "llm" field required and show it in the frontend 2023-05-01 19:16:36 -03:00
Gabriel Almeida
5d424474f2 fix(util.py): handle ValueError when parsing tool name and description from ast.literal_eval() 2023-05-01 18:55:35 -03:00
Gabriel Almeida
811c3f75cf fix(utils.py): import statement for AsyncCallbackManager was incorrect, changed from langchain.callbacks.base to langchain.callbacks.manager 2023-05-01 18:55:27 -03:00
Gabriel Almeida
cc3841c9bf refactor(agents): import BaseLanguageModel from base_language module instead of schema module 2023-05-01 18:40:24 -03:00
Gabriel Almeida
f0ba11c840 other template fixes 2023-04-29 19:35:10 -03:00
Gabriel Almeida
17c58fd70d fixed api key fields 2023-04-29 19:27:38 -03:00
Gabriel Almeida
79a18b8c40 fix nodes advanced param 2023-04-29 19:23:12 -03:00
anovazzi1
b25135fae2 fix bug on import from local 2023-04-29 17:18:51 -03:00
Gabriel Almeida
ce82b7e611 remove unused imports 2023-04-29 07:38:27 -03:00
Gabriel Almeida
ffb2aad45d fixes to tests 2023-04-29 07:38:06 -03:00
Gabriel Almeida
3a5b708d53 deactivate class params check for now 2023-04-29 07:37:32 -03:00
Gabriel Almeida
f3d50e9fea formatting 2023-04-29 07:37:16 -03:00
anovazzi1
e87749d966 updade package.json and removed debounce 2023-04-29 01:29:15 -03:00
anovazzi1
8a169c9782 merged chat_and_cache into dev 2023-04-29 01:26:44 -03:00
anovazzi1
b206a5bbe5 Merge branch 'dev' into autoUpdateNodes 2023-04-29 01:07:03 -03:00
Gabriel Luiz Freitas Almeida
eebe5d3643
Merge branch 'dev' into autoUpdateNodes 2023-04-29 03:53:34 +00:00
Gabriel Almeida
8d5adbf266 fix: tests 2023-04-29 00:36:06 -03:00
anovazzi1
93b5a8e327 sorted side bar 2023-04-28 23:53:37 -03:00
anovazzi1
3995a8bd5a Merge branch 'chat_and_cache' of personal:logspace-ai/langflow into chat_and_cache 2023-04-28 23:42:06 -03:00
anovazzi1
cccf992786 update thought icon for dark mode 2023-04-28 23:41:49 -03:00
Gabriel Almeida
1c35179aec refactor(nodes.py): remove unnecessary else statement in ChainFrontendNode class 2023-04-28 23:38:36 -03:00
Gabriel Almeida
5aa71e83fb chore(frontend): update backend proxy to use container name instead of IP address 2023-04-28 23:33:49 -03:00
Gabriel Almeida
659491f9a2 feat(langflow): add function support to build_template_from_class function
feat(langflow): add function base class to InitializeAgentNode

The `build_template_from_class` function in `ChainCreator` now supports adding a function to the chain. This is done by passing `add_function=True` to the function.

In `InitializeAgentNode`, the `base_classes` attribute has been updated to include the `function` base class. This allows the node to be used as a function in the chain.
2023-04-28 23:30:12 -03:00
anovazzi1
d4d8418c13 dark mode fixed on chat 2023-04-28 23:10:46 -03:00
anovazzi1
f97586813c fixed validation 2023-04-28 23:03:13 -03:00
Gabriel Almeida
c3dffa3508 feat(chat_manager.py): add empty_history method to ChatHistory class
fix(chat_manager.py): empty chat history for a client when an exception is raised
fix(GenericNode): fix useEffect dependencies to avoid unnecessary re-renders
2023-04-28 20:31:53 -03:00
Gabriel Almeida
177ffb3ea5 Merge remote-tracking branch 'origin/websocket' into chat_and_cache 2023-04-28 20:10:57 -03:00
Gabriel Almeida
c5d09f0e88 refactor(nodes.py): set advanced field to False for fields other than prompt in ChainFrontendNode class 2023-04-28 20:07:59 -03:00
anovazzi1
ccd8a3fe09 check advanced on node too 2023-04-28 20:02:37 -03:00
anovazzi1
8943de2575 check advanced on node too 2023-04-28 19:59:52 -03:00
anovazzi1
8d29bd1b0a hide advanced icon if all the fields aren't advancedand show true 2023-04-28 19:46:53 -03:00
anovazzi1
733f62defb remove error on console 2023-04-28 19:44:15 -03:00