Repository Public MIT Research preview
1% S10-F01 — Cycle de vie d'un appel d'outil : le modèle propose, l'application valide, autorise,2% fait approuver s'il le faut, exécute, puis rend le résultat OU l'erreur comme une donnée.3% Idée : toute flèche qui quitte l'application vers l'API passe par quatre contrôles écrits en code ;4% chaque refus revient au modèle sous la même forme qu'un succès. Nombres : S10-F01-donnees.tex.5\input{S10-F01-donnees.tex}%6\begin{tikzpicture}[x=1mm, y=1mm]7 % Appel proposé8 \node[atlas token, anchor=west, font=\ttfamily\AtlasSizeTiny] (chip) at (0,48)9 {\{"outil": "creer\_requete", "arguments": \{...\}\}};10 \node[atlas note, anchor=west] at ([xshift=1.5mm]chip.east) {l'appel proposé : du texte structuré ; rien n'est encore exécuté};11 % Modèle12 \node[atlas block strong, text width=17mm, minimum height=15mm] (m) at (11.5,28)13 {\textbf{Modèle}\\ propose un appel};14 \draw[atlas arrow muted] (chip.south -| m.north) -- (m.north);15 % Application16 \draw[atlas region, dash pattern=on 4pt off 2.5pt] (27,3) rectangle (113,41.5);17 \node[atlas tag=atlasMuted, anchor=west] at (30,41.5) {APPLICATION : du code ordinaire, écrit et contrôlé par l'équipe};18 \node[atlas block flow, text width=13mm, minimum height=11mm] (v) at (39,28) {\textbf{Valider}\\ schéma};19 \node[atlas block flow, text width=14mm, minimum height=11mm] (a) at (59,28) {\textbf{Autoriser}\\ portée};20 \node[atlas gate, text width=11mm] (g) at (80.5,28) {Accord ?};21 \node[atlas block flow, text width=14.5mm, minimum height=11mm] (e) at (102,28) {\textbf{Exécuter}\\ et réessayer};22 \node[atlas step] at (v.north west) {1};23 \node[atlas step] at (a.north west) {2};24 \node[atlas step=atlasUncertain] at (72.5,33.6) {3};25 \node[atlas step] at (e.north west) {4};26 \node[atlas note, anchor=south] at (82.5,34.6) {si destructif};27 \draw[atlas arrow] (m.east) -- (v.west);28 \draw[atlas arrow] (v) -- (a);29 \draw[atlas arrow] (a) -- (g);30 \draw[atlas arrow] (g) -- (e);31 % API, de l'autre côté de la frontière32 \draw[atlas boundary] (118.5,1) -- (118.5,45);33 \node[atlas note, text=atlasHazard, anchor=north west] at (119.5,6) {frontière de};34 \node[atlas note, text=atlasHazard, anchor=north west] at (119.5,2.8) {confiance};35 \node[atlas store, minimum width=15mm, minimum height=13mm] (api) at (132,28) {API};36 \draw[atlas arrow] ([yshift=1.8mm]e.east) -- node[atlas note, above, pos=.62, fill=atlasBg, inner sep=1pt] {requête} ([yshift=1.8mm]api.west);37 \draw[atlas arrow valid] ([yshift=-1.8mm]api.west) -- node[atlas note, below, pos=.38, fill=atlasBg, inner sep=1pt] {réponse} ([yshift=-1.8mm]e.east);38 % Résultat ou erreur : une donnée39 \node[atlas block valid, text width=70mm, minimum height=6.5mm] (r) at (70.5,9)40 {Résultat \textbf{ou} erreur : une \textbf{donnée} rendue au modèle};41 \draw[atlas arrow hazard] (v.south) -- (v.south |- r.north);42 \draw[atlas arrow hazard] (a.south) -- (a.south |- r.north);43 \draw[atlas arrow hazard] (g.south) -- (g.south |- r.north);44 \draw[atlas arrow valid] (e.south) -- (e.south |- r.north);45 \node[atlas note, anchor=west] at (40,19.3) {rejet : \AtlasFigCycleErreurs\ erreurs};46 \node[atlas note, anchor=west] at (60,15.4) {portée absente};47 \node[atlas note, anchor=west] at (81.5,19.3) {refus};48 \node[atlas note, anchor=east] at (101,15.4) {\AtlasFigCycleStatut, \AtlasFigCycleFiche};49 \draw[atlas arrow valid] (r.west) -| (m.south);50 \node[atlas step=atlasValid] at (19,9) {5};51 \node[atlas note, anchor=north west, text width=24mm] at (0,6.6) {observer : le résultat rejoint le contexte};52\end{tikzpicture}53