Avatar for the langflow-ai user
langflow-ai
langflow
BlogDocsChangelog

refactor: Optimize agent component for efficiency and readability

#5593
Comparing
Arikatakur:main
(
22b8d57
) with
main
(
6b04359
)
CodSpeed Performance Gauge
-32%
Improvements
0
Regressions
1
Untouched
14
New
0
Dropped
0
Ignored
0

Benchmarks

Failed

test_successful_run_with_input_type_anyRegression
src/backend/tests/unit/test_endpoints.py::test_successful_run_with_input_type_any
CodSpeed Performance Gauge
-32%
175.2 ms
257.1 ms

Passed

test_successful_run_with_output_type_debug
src/backend/tests/unit/test_endpoints.py::test_successful_run_with_output_type_debug
CodSpeed Performance Gauge
+1%
250.5 ms
248.7 ms
test_load_flows
src/backend/tests/performance/test_server_init.py::test_load_flows
CodSpeed Performance Gauge
0%
1.1 ms
1 ms
test_initialize_super_user
src/backend/tests/performance/test_server_init.py::test_initialize_super_user
CodSpeed Performance Gauge
0%
159.4 ms
159.3 ms
test_get_all
src/backend/tests/unit/test_endpoints.py::test_get_all
CodSpeed Performance Gauge
0%
450.5 ms
450.7 ms
test_create_starter_projects
src/backend/tests/performance/test_server_init.py::test_create_starter_projects
CodSpeed Performance Gauge
0%
969.8 ms
970.6 ms
test_starter_projects
src/backend/tests/unit/test_endpoints.py::test_starter_projects
CodSpeed Performance Gauge
0%
993.5 ms
995.2 ms
test_setup_llm_caching
src/backend/tests/performance/test_server_init.py::test_setup_llm_caching
CodSpeed Performance Gauge
0%
961.4 µs
963.5 µs
test_successful_run_with_input_type_text
src/backend/tests/unit/test_endpoints.py::test_successful_run_with_input_type_text
CodSpeed Performance Gauge
0%
249.7 ms
250.4 ms
test_initialize_services
src/backend/tests/performance/test_server_init.py::test_initialize_services
CodSpeed Performance Gauge
0%
154.3 ms
154.8 ms
test_successful_run_with_output_type_any
src/backend/tests/unit/test_endpoints.py::test_successful_run_with_output_type_any
CodSpeed Performance Gauge
0%
239.4 ms
240.6 ms
test_invalid_run_with_input_type_chat
src/backend/tests/unit/test_endpoints.py::test_invalid_run_with_input_type_chat
CodSpeed Performance Gauge
-1%
28.8 ms
29 ms
test_build_flow_from_request_data
src/backend/tests/unit/test_chat_endpoint.py::test_build_flow_from_request_data
CodSpeed Performance Gauge
-1%
411.5 ms
416.6 ms
test_build_flow
src/backend/tests/unit/test_chat_endpoint.py::test_build_flow
CodSpeed Performance Gauge
-2%
398 ms
405 ms
test_get_and_cache_all_types_dict
src/backend/tests/performance/test_server_init.py::test_get_and_cache_all_types_dict
CodSpeed Performance Gauge
-3%
1 ms
1.1 ms

Commits

Click on a commit to change the comparison range
Base
main
6b04359
-37%
fix: filter out empty messages in chat history (#5505)
2f947d9
27 days ago
by Arikatakur
-17%
style: fix Ruff violations in agent.py (TRY003, EM101)
059f9d8
27 days ago
by Arikatakur
-37%
Merge branch 'langflow-ai:main' into main
ec041b2
27 days ago
by Arikatakur
+42%
Merge branch 'langflow-ai:main' into main
d03de32
27 days ago
by Arikatakur
+3%
[autofix.ci] apply automated fixes
3c2004c
27 days ago
by autofix-ci[bot]
+13%
Merge branch 'main' into main
22b8d57
27 days ago
by Arikatakur
Home Terms PrivacyDocs