preparing new version

This commit is contained in:
João Moura
2025-01-03 12:42:47 -03:00
parent bfe2c44f55
commit d1e2430aac
6 changed files with 383 additions and 180 deletions

View File

@@ -169,7 +169,7 @@ class ToolUsage:
if calling.arguments:
try:
acceptable_args = tool.args_schema.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
arguments = {
k: v
for k, v in calling.arguments.items()