feat: add fc agent mode support

This commit is contained in:
Novice Lee
2025-01-08 07:41:17 +08:00
parent fb7b2c8ff3
commit b56d2b739b
8 changed files with 107 additions and 83 deletions

View File

@ -136,7 +136,8 @@ def cast_parameter_value(typ: enum.StrEnum, value: Any, /):
return value
case _:
return str(value)
except ValueError:
raise
except Exception:
raise ValueError(f"The tool parameter value {value} is not in correct type of {as_normal_type(typ)}.")