🐛 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:
parent
da0cf30057
commit
4e078d7de5
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue