fix(utils): handle missing funcschema parameter docs

This commit is contained in:
huanghuoguoguo
2026-05-16 10:37:01 +08:00
parent b251fc4b89
commit aa4d46fd87
2 changed files with 16 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ def get_func_schema(function: typing.Callable) -> dict:
parameters['properties'][param.name] = {
'type': param_type,
'description': args_doc[param.name],
'description': args_doc.get(param.name, ''),
}
# add schema for array