fix: tools now show the params properly
This commit is contained in:
parent
021ede2f72
commit
be71829493
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ class ToolCreator(LangChainTypeCreator):
|
|||
# Copy the field and add the name
|
||||
fields = []
|
||||
for param in params:
|
||||
field = TOOL_INPUTS.get(param, TOOL_INPUTS["str"])
|
||||
field = TOOL_INPUTS.get(param, TOOL_INPUTS["str"]).copy()
|
||||
field.name = param
|
||||
if param == "aiosession":
|
||||
field.show = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue