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
|
# Copy the field and add the name
|
||||||
fields = []
|
fields = []
|
||||||
for param in params:
|
for param in params:
|
||||||
field = TOOL_INPUTS.get(param, TOOL_INPUTS["str"])
|
field = TOOL_INPUTS.get(param, TOOL_INPUTS["str"]).copy()
|
||||||
field.name = param
|
field.name = param
|
||||||
if param == "aiosession":
|
if param == "aiosession":
|
||||||
field.show = False
|
field.show = False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue