Fix BaseModel method name conflicts in func_metadata (#1123)

This commit is contained in:
bhosmer-ant 2025-07-14 03:29:52 -04:00 • committed by GitHub
commit 49991fd2c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,7 +73,7 @@ class Tool(BaseModel):
skip_names=[context_kwarg] if context_kwarg is not None else [],
structured_output=structured_output,
)
parameters = func_arg_metadata.arg_model.model_json_schema()
parameters = func_arg_metadata.arg_model.model_json_schema(by_alias=True)
return cls(
fn=fn,