characterize_function
Generate characterization regression tests for a single Python pure function, returning pytest code that locks behavior for safe refactoring.
Instructions
Generate characterization (regression) pytest tests for a single Python pure function. Returns a CharacterizationResult including the emitted pytest code.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"function_name": "<function_name>"
},
"name": "characterize_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| function_name | Yes | ||
| max_cases | No | ||
| coverage_threshold | No | ||
| max_rounds | No | ||
| output_path | No | ||
| allow_impure | No |