🐛 fix(agents.py): change field type name from 'type_name' to 'field_type' for consistency

The 'type_name' attribute for the 'Tools' field in the 'ZeroShotAgent' class has been changed to 'field_type' to improve consistency with the naming conventions used in the codebase.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-07 15:53:48 -03:00
commit 4e078d7de5

View file

@ -19,8 +19,7 @@ class AgentFrontendNode(FrontendNode):
if field.name in ["suffix", "prefix"]:
field.show = True
if field.name == "Tools" and name == "ZeroShotAgent":
# field.
field.type_name = "BaseTool"
field.field_type = "BaseTool"
field.is_list = True