langflow-ai / langflow

Langflow is a low-code app builder for RAG and multi-agent AI applications. It’s Python-based and agnostic to any model, API, or database.
http://www.langflow.org
MIT License
35.94k stars 4.25k forks source link

fix: Ensure attribute existence before accessing in AgentExecutor initialization #4667

Closed ogabrielluiz closed 1 week ago

ogabrielluiz commented 1 week ago

This PR fixes issue #4663 by avoiding AttributeErrors

codspeed-hq[bot] commented 1 week ago

CodSpeed Performance Report

Merging #4667 will degrade performances by 40.8%

Comparing 4663-sqlagent-requiring-chat_history (b0b6dc0) with main (a7aa3ab)

Summary

⚡ 1 improvements ❌ 1 regressions ✅ 13 untouched benchmarks

:warning: _Please fix the performance issues or acknowledge them on CodSpeed._

Benchmarks breakdown

Benchmark main 4663-sqlagent-requiring-chat_history Change
test_successful_run_with_input_type_text 175.6 ms 296.6 ms -40.8%
test_successful_run_with_output_type_any 311.6 ms 219.4 ms +42.02%