From 7642969f32ad1b20fd26139531627c128806c60d Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 23 Jun 2024 18:14:50 -0300 Subject: [PATCH] refactor: Update build_config parameter type in AgentComponent The build_config parameter in the update_build_config method of the AgentComponent class has been updated to accept a field_name parameter of type str instead of Text | None. This change improves the clarity and consistency of the code. --- .../base/langflow/components/experimental/AgentComponent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/components/experimental/AgentComponent.py b/src/backend/base/langflow/components/experimental/AgentComponent.py index 657dadc0a..117b9e676 100644 --- a/src/backend/base/langflow/components/experimental/AgentComponent.py +++ b/src/backend/base/langflow/components/experimental/AgentComponent.py @@ -102,7 +102,7 @@ class AgentComponent(LCAgentComponent): return system_message, user_prompt return None, None - def update_build_config(self, build_config: dotdict, field_value: Any, field_name: Text | None = None): + def update_build_config(self, build_config: dotdict, field_value: Any, field_name: str | None = None): """ Updates the build configuration based on the provided field value and field name.