set_source_root
Maps a tape's compiled source prefix to a local directory so file:line and origin can display code and verify hash matches, reporting any mismatch.
Instructions
Map the compiled source prefix recorded on the tape (for aadc-quantlib-tracing 1.41 it is /project/work/QLAADC/ql) to a local directory holding that source, so 'at FILE:LINE' and 'origin' can show the code. Later answers say hash=ok when the local file is the one the library was compiled from and hash=MISMATCH when it is not; a mismatch is reported, never silent. Remembered for this tape.
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": {
"tape_id": "<tape_id>",
"compiled_prefix": "<compiled_prefix>",
"local_dir": "<local_dir>"
},
"name": "set_source_root"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tape_id | Yes | ||
| local_dir | Yes | ||
| compiled_prefix | Yes |