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.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-23 18:14:50 -03:00
commit 7642969f32

View file

@ -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.