generate_arguments_schema
Generate the schema for the arguments of a function.
def generate_arguments_schema(
func: Callable[..., Any],
schema_type: Literal['arguments', 'arguments-v3'] = 'arguments-v3',
parameters_callback: Callable[[int, str, Any], Literal['skip'] | None] | None = None,
config: ConfigDict | None = None
) - > CoreSchema
Generate the schema for the arguments of a function.
Parameters
| Name | Type | Description |
|---|---|---|
| func | Callable[..., Any] | The function to generate the schema for. |
| schema_type | Literal['arguments', 'arguments-v3'] = 'arguments-v3' | The type of schema to generate. |
| parameters_callback | `Callable[[int, str, Any], Literal['skip'] | None] |
| config | `ConfigDict | None` = None |
Returns
| Type | Description |
|---|---|
CoreSchema | The generated schema. |