Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: update build_vertex types #3126

Merged
merged 100 commits into from
Aug 2, 2024
Merged
Changes from 1 commit
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
58c4369
refactor: update code references to use _code instead of code
ogabrielluiz Jul 31, 2024
1f96feb
refactor: add backwards compatible attributes to Component class
ogabrielluiz Jul 31, 2024
290f685
refactor: update Component constructor to pass config params with und…
ogabrielluiz Jul 31, 2024
ca1aa32
refactor: change attribute to use underscore
ogabrielluiz Jul 31, 2024
81391c5
refactor: update CustomComponent initialization parameters
ogabrielluiz Jul 31, 2024
6d01eda
refactor: update BaseComponent to accept UUID for _user_id
ogabrielluiz Jul 31, 2024
49349ff
refactor: import nanoid with type annotation
ogabrielluiz Jul 31, 2024
1e2f517
fix(custom_component.py): convert _user_id to string before passing t…
ogabrielluiz Jul 31, 2024
fde9687
feat(component.py): add method to set output types based on method re…
ogabrielluiz Jul 31, 2024
7f679a4
refactor: extract method to get method return type in CustomComponent
ogabrielluiz Jul 31, 2024
485e5e2
refactor(utils.py): refactor code to use _user_id instead of user_id …
ogabrielluiz Jul 31, 2024
2c389dc
refactor(utils.py, base.py): change parameter name 'add_name' to 'kee…
ogabrielluiz Jul 31, 2024
5325541
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 31, 2024
4a455db
refactor: update schema.py to include Edge related typres
ogabrielluiz Jul 31, 2024
86bba19
refactor: update BaseInputMixin to handle invalid field types gracefully
ogabrielluiz Jul 31, 2024
d495989
refactor: update file_types field alias in FileMixin
ogabrielluiz Jul 31, 2024
da58892
refactor(inputs): update field_type declarations in various input cla…
ogabrielluiz Jul 31, 2024
62c9ec4
refactor(inputs): convert dict to Message object in _validate_value m…
ogabrielluiz Jul 31, 2024
1d6491a
refactor(inputs): convert dict to Message object in _validate_value m…
ogabrielluiz Jul 31, 2024
5657101
refactor(inputs): update model_config in BaseInputMixin to enable pop…
ogabrielluiz Jul 31, 2024
1fe8126
refactor: update _extract_return_type method in CustomComponent to ac…
ogabrielluiz Jul 31, 2024
5ce27d2
refactor(component): add get_input and get_output methods for easier …
ogabrielluiz Jul 31, 2024
aab3fd6
refactor(vertex): add get_input and get_output methods for easier acc…
ogabrielluiz Jul 31, 2024
62acf55
refactor(component): add set_output_value method for easier modificat…
ogabrielluiz Jul 31, 2024
efd1592
feat: add run_until_complete and run_in_thread functions for handling…
ogabrielluiz Jul 31, 2024
fc54f35
refactor(component): add _edges attribute to Component class for mana…
ogabrielluiz Jul 31, 2024
1954edf
fix(component.py): fix conditional statement to check if self._vertex…
ogabrielluiz Jul 31, 2024
25b4dc5
refactor(component): add _get_fallback_input method for handling fall…
ogabrielluiz Jul 31, 2024
213a803
refactor(component): add TYPE_CHECKING import for Vertex in component.py
ogabrielluiz Jul 31, 2024
5ab8fed
refactor(component): add _map_parameters_on_frontend_node and _map_pa…
ogabrielluiz Jul 31, 2024
ea8ac9f
refactor(component): Add map_inputs and map_outputs methods for mappi…
ogabrielluiz Jul 31, 2024
13c63f0
refactor(component): Add Input, Output, and ComponentFrontendNode imp…
ogabrielluiz Jul 31, 2024
564af7e
refactor(component): Add map_inputs and map_outputs methods for mappi…
ogabrielluiz Jul 31, 2024
f324199
refactor(component): Add _process_connection_or_parameter method for …
ogabrielluiz Jul 31, 2024
e082ce6
refactor(frontend_node): Add set_field_value_in_template method for u…
ogabrielluiz Jul 31, 2024
8108555
refactor(inputs): Add DefaultPromptField class for default prompt inputs
ogabrielluiz Jul 31, 2024
3d76d6c
feat: Add Template.from_dict method for creating Template objects fro…
ogabrielluiz Jul 31, 2024
2452935
refactor(frontend_node): Add from_dict method for creating FrontendNo…
ogabrielluiz Jul 31, 2024
6ab4c35
refactor: update BaseComponent to use get_template_config method
ogabrielluiz Jul 31, 2024
f5d5ee8
Merge branch 'main' into refactor/initconfig
ogabrielluiz Jul 31, 2024
64d6190
Merge branch 'refactor/initconfig' into feat/outputtypes
ogabrielluiz Jul 31, 2024
f1e03fa
refactor(graph): Add EdgeData import and update add_nodes_and_edges m…
ogabrielluiz Jul 31, 2024
939ae63
refactor(graph): Add first_layer property to Graph class
ogabrielluiz Jul 31, 2024
91276c6
refactor(graph): Update Graph class instantiation in base.py
ogabrielluiz Jul 31, 2024
805f9fe
refactor(graph): Add prepare method to Graph class
ogabrielluiz Jul 31, 2024
b706aea
refactor(graph): Improve graph preparation in retrieve_vertices_order…
ogabrielluiz Jul 31, 2024
4b04dd7
refactor: Add GetCache and SetCache protocols for caching functionality
ogabrielluiz Jul 31, 2024
2d9a641
refactor(graph): Add VertexBuildResult class for representing vertex …
ogabrielluiz Jul 31, 2024
edbbad1
refactor(chat.py, base.py): update build_vertex method in chat.py and…
ogabrielluiz Jul 31, 2024
92da504
refactor(graph): Update Edge and ContractEdge constructors to use Edg…
ogabrielluiz Jul 31, 2024
97f14ef
Merge branch 'feat/outputtypes' into refactor/renamefnode
ogabrielluiz Jul 31, 2024
397893c
feat: add BaseModel class with model_config attribute
ogabrielluiz Jul 31, 2024
b59a6cc
refactor: update langflow.graph.edge.schema.py
ogabrielluiz Jul 31, 2024
4b33c21
refactor(base): Update target_param assignment in Edge class
ogabrielluiz Jul 31, 2024
0de9b8b
refactor(base): Add check for existing type in add_types method
ogabrielluiz Jul 31, 2024
8cc7700
refactor: update build_custom_component_template to use add_name inst…
ogabrielluiz Jul 31, 2024
c4de2b7
Merge branch 'main' into refactor/initconfig
ogabrielluiz Jul 31, 2024
a88ff42
feat(component.py): add method to set output types based on method re…
ogabrielluiz Jul 31, 2024
a8c3564
refactor: add _template_config property to BaseComponent
ogabrielluiz Jul 31, 2024
1ed4812
refactor: add type checking for Output types in add_types method
ogabrielluiz Jul 31, 2024
7acc1dd
update starter projects
ogabrielluiz Jul 31, 2024
4be549f
refactor: optimize imports in base.py
ogabrielluiz Jul 31, 2024
61bdbb1
fix(base.py): fix condition to check if self.types is not None before…
ogabrielluiz Jul 31, 2024
06ea280
Merge branch 'refactor/initconfig' into refactor/renamefnode
ogabrielluiz Jul 31, 2024
f9deeb6
Merge branch 'main' into refactor/renamefnode
ogabrielluiz Jul 31, 2024
e43ead1
Merge branch 'refactor/renamefnode' into refactor/edgetyping
ogabrielluiz Jul 31, 2024
cb4bb93
refactor: update build_custom_component_template to use add_name inst…
ogabrielluiz Jul 31, 2024
e9f082c
Merge branch 'refactor/renamefnode' into refactor/edgetyping
ogabrielluiz Jul 31, 2024
a235083
Merge branch 'main' into refactor/edgetyping
ogabrielluiz Jul 31, 2024
d3a3271
Merge branch 'refactor/edgetyping' into refactor/updateinputtypes
ogabrielluiz Jul 31, 2024
75f6a56
Merge branch 'refactor/updateinputtypes' into feat/addgetters
ogabrielluiz Jul 31, 2024
3201ce2
Merge branch 'feat/addgetters' into refactor/componentgraph
ogabrielluiz Jul 31, 2024
3aa7d0d
Merge branch 'refactor/componentgraph' into feat/tofrontendnode
ogabrielluiz Jul 31, 2024
ddd872e
Merge branch 'feat/tofrontendnode' into refactor/graph
ogabrielluiz Jul 31, 2024
dca6a8a
Merge branch 'refactor/graph' into refactor/buildvertextype
ogabrielluiz Jul 31, 2024
2b0fa72
Merge branch 'main' into feat/tofrontendnode
ogabrielluiz Aug 1, 2024
e826206
Merge branch 'feat/tofrontendnode' into refactor/graph
ogabrielluiz Aug 1, 2024
2e8c2d8
Merge branch 'main' into refactor/graph
ogabrielluiz Aug 2, 2024
ea8ae0d
refactor(graph): update ContractEdge to use EdgeData for raw_edge par…
ogabrielluiz Aug 2, 2024
9b53383
refactor(graph): update add_edge method to use EdgeData type, improvi…
ogabrielluiz Aug 2, 2024
5ae0a5c
chore(dependencies): bump mypy version from 1.10.0 to 1.11.0 for impr…
ogabrielluiz Aug 2, 2024
7801717
refactor: update Edge class to use EdgeData type for raw_edge parameter
ogabrielluiz Aug 2, 2024
b7ed091
refactor: update follow_imports to "skip" in mypy configuration
ogabrielluiz Aug 2, 2024
0bb7ae8
fix: add type ignore comment for return data in SelfQueryRetriever.py…
ogabrielluiz Aug 2, 2024
82aa1bf
chore: update mypy configuration to include namespace_packages and ig…
ogabrielluiz Aug 2, 2024
d384bde
fix: add type ignore comment for target_param in base.py to resolve m…
ogabrielluiz Aug 2, 2024
2f5a617
fix: add type ignore comments for various classes to resolve mypy war…
ogabrielluiz Aug 2, 2024
0d595db
refactor: add first layer attribute to Graph class
ogabrielluiz Aug 2, 2024
f92b694
refactor: store first layer in Graph class with _first_layer attribut…
ogabrielluiz Aug 2, 2024
ff7813b
fix: add type ignore comments to database model classes to resolve my…
ogabrielluiz Aug 2, 2024
b089376
Merge branch 'main' into refactor/graph
ogabrielluiz Aug 2, 2024
46ab861
Merge branch 'main' into refactor/graph
ogabrielluiz Aug 2, 2024
071ab48
Merge branch 'refactor/graph' into refactor/buildvertextype
ogabrielluiz Aug 2, 2024
10f5dc1
fix: update build_vertex call to include cache methods from chat_serv…
ogabrielluiz Aug 2, 2024
77b9387
Merge branch 'main' into refactor/buildvertextype
ogabrielluiz Aug 2, 2024
aa97e3e
fix(graph): update build_vertex to handle optional cache methods for …
ogabrielluiz Aug 2, 2024
b8b3f31
fix(graph): handle optional caching in build_vertex to prevent unnece…
ogabrielluiz Aug 2, 2024
1c3e558
fix(graph): refine cache handling in build_vertex to ensure checks fo…
ogabrielluiz Aug 2, 2024
9cf4f66
fix(graph): streamline build_vertex result handling in chat.py for im…
ogabrielluiz Aug 2, 2024
0c2efcd
fix(graph): remove redundant cached_result assignment in build_vertex…
ogabrielluiz Aug 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix(graph): remove redundant cached_result assignment in build_vertex…
… for cleaner cache handling and improved performance
  • Loading branch information
ogabrielluiz committed Aug 2, 2024
commit 0c2efcd1e92b884fa7c4d12e58f65d469278070a
2 changes: 0 additions & 2 deletions src/backend/base/langflow/graph/graph/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,6 @@ async def build_vertex(
)
if set_cache is not None:
await set_cache(key=vertex.id, data=vertex)
else:
cached_result = None
if cached_result and not isinstance(cached_result, CacheMiss):
cached_vertex = cached_result["result"]
# Now set update the vertex with the cached vertex
Expand Down
Loading