Estimate part cost
chiffrer_pieceUse this when the user asks what a manufactured part should cost (should-cost, target price, quote check) and a plan_id is available. Returns the unit price broken down line by line: material, each operation with machine and time, setups, overheads, margin, and what is not included. Requires material and quantity; ask the user if they are missing. Do not use for general price questions without a drawing. 1 credit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matiere | Yes | Ex. aluminium, acier, inox, fonte, pa6 | |
| plan_id | Yes | Identifiant rendu par POST /plans | |
| quantite | Yes | ||
| ajustements | No | Paramètres du modèle (voir ajustements_possibles dans la réponse) | |
| epaisseur_mm | No | Pour la tôle si le plan ne la porte pas | |
| nb_campagnes | No | ||
| lot_de_fabrication | No | Nombre de pièces par lot, ou « commande_entiere » |