openagents_sdk::labs::cad
Local CAD previews use the same portable rules as the server. Measurements must describe the proposed content; the server rebuilds it independently.
| Item | What it does |
|---|---|
apply fn | Applies a change to a CAD version and returns the draft the server would accept. |
check fn | Checks CAD content against its measurements with the server's rules. |
apply
pub fn apply(
base: &Version,
change: &Change,
summary: &str,
measurements: &Measurements,
) -> Result<Draft, Refusal>
Applies a change to a CAD version and returns the draft the server would accept.
check
pub fn check(content: &Value, measurements: &Measurements) -> Result<Report, Refusal>
Checks CAD content against its measurements with the server's rules.
Re-exported from other crates
DEFAULT_MATERIALfromcad::docnew_partfromcad::docCadfromcad::labIntentfromcad::labchanged_contentfromcad::labmeasurementsfromcad::lab