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.89k stars 4.25k forks source link

fix: Error in SerpAPI search: cannot access local variable 'wrapper' where it is not associated with a value #4758

Closed edwinjosechittilappilly closed 6 days ago

edwinjosechittilappilly commented 6 days ago

fixes: Error: Error in SerpAPI search: cannot access local variable 'wrapper' where it is not associated with a value

Closes issue #4640

This pull request includes a small but important change to the build_tool method in the src/backend/base/langflow/components/tools/serp_api.py file. The change improves the handling of the wrapper variable to ensure that the original wrapper is not overwritten when new parameters are provided.

Codebase simplification:

edwinjosechittilappilly commented 6 days ago

closes https://github.com/langflow-ai/langflow/issues/4640