- Improved code formatting for better clarity.
- These changes aim to improve maintainability and clarity of the code.
This commit is contained in:
theCyberTech
2025-01-05 11:35:58 +08:00
parent 47121316d4
commit df00876f7a

View File

@@ -180,7 +180,9 @@ class ToolUsage:
if calling.arguments:
try:
acceptable_args = tool.args_schema.model_json_schema()["properties"].keys() # type: ignore # Item "None" of "type[BaseModel] | None" has no attribute "schema"
acceptable_args = tool.args_schema.model_json_schema()[
"properties"
].keys() # type: ignore # Item "None" of "type[BaseModel] | None" has no attribute "schema"
arguments = {
k: v
for k, v in calling.arguments.items()