sigil_getTrainingWeights
Fetch or list published training weight anchors.
Method
sigil_getTrainingWeights is registered in the canonical JSON-RPC catalog. Use POST /rpc, Content-Type: application/json, JSON-RPC 2.0 and a caller-controlled request id. Node RPC profile, build feature and runtime activation checks still apply.
Fetch or list published training weight anchors.
Request binding
Source handler: rpc_crucible::handle_get_training_weights in sigil/node/sigil-node/src/rpc_crucible.rs, line 74.
The handler directly reads these named fields: model_root. Additional typed parsing, aliases and nested validation are defined by its request types. Field presence alone does not establish optionality.
Parsing excerpt
These source excerpts show binding and validation; they are not runnable client code.
if let Some(model_root_hex) = req.params.get("model_root").and_then(Value::as_str) {
let model_root = match SigilHash::from_hex(model_root_hex) {
Ok(hash) => hash,
Err(e) => {
return RpcResponse::error(
req.id.clone(),
-32602,
format!("invalid 'model_root': {e}"),
)
}
};Responses and failures
Check HTTP status, parse the JSON-RPC envelope, reject error, and require result on success. Preserve large base-unit integers without floating-point rounding. A catalog method does not bypass authentication, capability, policy or activation requirements.