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:
parent
c2b2375bde
commit
7642969f32
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue