| Name | Type | Description |
|---|---|---|
model_name* | str | Name to assign to the generated Pydantic schema. |
func* | Callable | Function to generate the schema from. |
filter_args | Sequence[str] | None | Default: NoneOptional list of arguments to exclude from the schema. Defaults to |
parse_docstring | bool | Default: False |
error_on_invalid_docstring | bool | Default: False |
include_injected | bool | Default: True |
Create a Pydantic schema from a function's signature.
Whether to parse the function's docstring for descriptions for each argument.
If parse_docstring is provided, configure
whether to raise ValueError on invalid Google Style docstrings.
Whether to include injected arguments in the schema.
Defaults to True, since we want to include them in the schema when
validating tool inputs.