langflow-ai
langflow
BlogDocsChangelog

refactor(tools): overhaul Python REPL component with modern tool mode

#5463Merged
Comparing
Vigtu:python-REPL-Overhaul
(
3aa2885
) with
main
(
6ac45a8
)
CodSpeed Performance Gauge
-94%
Regressions
1
Untouched
14

Benchmarks

Failed

test_successful_run_with_input_type_text
src/backend/tests/unit/test_endpoints.py
Regression
CodSpeed Performance Gauge
-94%
259.5 ms4,165.9 ms

Passed

test_invalid_run_with_input_type_chat
src/backend/tests/unit/test_endpoints.py
CodSpeed Performance Gauge
+1%
29.8 ms29.4 ms
test_build_flow_from_request_data
src/backend/tests/unit/test_chat_endpoint.py
CodSpeed Performance Gauge
+1%
420.6 ms417.2 ms
test_create_starter_projects
src/backend/tests/performance/test_server_init.py
CodSpeed Performance Gauge
0%
1.1 s1.1 s
test_initialize_super_user
src/backend/tests/performance/test_server_init.py
CodSpeed Performance Gauge
0%
159.7 ms159.7 ms
test_initialize_services
src/backend/tests/performance/test_server_init.py
CodSpeed Performance Gauge
0%
154.7 ms154.8 ms
test_get_all
src/backend/tests/unit/test_endpoints.py
CodSpeed Performance Gauge
0%
486.6 ms486.9 ms
test_successful_run_with_output_type_any
src/backend/tests/unit/test_endpoints.py
CodSpeed Performance Gauge
0%
248.1 ms248.3 ms
test_starter_projects
src/backend/tests/unit/test_endpoints.py
CodSpeed Performance Gauge
0%
1.1 s1.1 s
test_load_flows
src/backend/tests/performance/test_server_init.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_setup_llm_caching
src/backend/tests/performance/test_server_init.py
CodSpeed Performance Gauge
0%
959.8 µs963.6 µs
test_successful_run_with_output_type_debug
src/backend/tests/unit/test_endpoints.py
CodSpeed Performance Gauge
0%
256.1 ms257.2 ms
test_build_flow
src/backend/tests/unit/test_chat_endpoint.py
CodSpeed Performance Gauge
0%
403 ms404.9 ms
test_successful_run_with_input_type_any
src/backend/tests/unit/test_endpoints.py
CodSpeed Performance Gauge
-2%
264.7 ms268.9 ms
test_get_and_cache_all_types_dict
src/backend/tests/performance/test_server_init.py
CodSpeed Performance Gauge
-3%
997.8 µs1,028.2 µs

Commits

Click on a commit to change the comparison range
Base
main
6ac45a8
-56.08%
refactor(tools): overhaul Python REPL component with modern tool mode BREAKING CHANGE: Complete redesign of PythonREPL component architecture - Replace legacy tool mode with modern tool_mode=true implementation - Add automatic import detection for both global and from-imports - Remove manual global_imports field in favor of automatic detection - Implement CodeInput type support with FieldTypes.CODE - Update schema to handle new parameters for agent compatibility - Improve error handling and logging for import failures The component now automatically handles imports without manual configuration, supports modern tool mode, and provides better integration with the agent system through updated schema definitions.
b3ba5f5
1 year ago
by Vigtu
+32.5%
Merge branch 'main' into python-REPL-Overhaul
4e07c08
1 year ago
by Vigtu
-35.29%
[autofix.ci] apply automated fixes
c247df1
1 year ago
by autofix-ci[bot]
+58.03%
fix
01a214a
1 year ago
by Vigtu
+30.35%
test(python-repl): update component test to match current implementation - Remove assertions for deprecated outputs (api_run_model, api_build_tool) - Add assertions for current 'results' output - Add detailed input validation tests for global_imports and python_code - Verify input configurations including type, default values, and required status - Ensure component template structure matches frontend requirements This change aligns the test suite with the current PythonREPLToolComponent implementation, improving test coverage and maintaining component reliability.
240c284
1 year ago
by Vigtu
-78.56%
[autofix.ci] apply automated fixes
875c98d
1 year ago
by autofix-ci[bot]
+0.01%
Merge branch 'python-REPL-Overhaul' of https://github.com/Vigtu/langflow into python-REPL-Overhaul
d1d5cca
1 year ago
by Vigtu
-22.56%
Merge branch 'main' into python-REPL-Overhaul
2c48e62
1 year ago
by edwinjosechittilappilly
×2.2
style(python-repl): format description string to follow PEP 8 guidelines
63e9af4
1 year ago
by Vigtu
-74.14%
Merge branch 'main' into python-REPL-Overhaul
f2d561b
1 year ago
by edwinjosechittilappilly
-68.93%
Merge branch 'main' into python-REPL-Overhaul
3aa2885
1 year ago
by edwinjosechittilappilly
© 2026 CodSpeed Technology
Home Terms Privacy Docs