@@ -19,9 +19,6 @@ flowchart LR
1919
2020 call["Function Call"] --> decorator
2121 decorator --> result["Return Value"]
22-
23- style code fill:#e3f2fd,stroke:#1565c0
24- style decorator fill:#f3e5f5,stroke:#7b1fa2
2522```
2623
2724## Execution Sequence
@@ -38,29 +35,25 @@ sequenceDiagram
3835 Dec->>Dec: Bind arguments to parameters
3936 Dec->>Dec: Extract mapped data sources
4037
41- rect rgb(255, 243, 224)
42- Note over Dec,Engine: PRE-execution check
38+ Note over Dec,Engine: PRE-execution check
4339 Dec->>Engine: Evaluate(data, stage="pre")
4440 Engine-->>Dec: EvaluationResponse
4541
4642 alt is_safe = false
4743 Dec-->>App: Raise exception or return error
4844 end
49- end
5045
5146 Dec->>Func: Execute original function
5247 Func-->>Dec: Return value
5348
54- rect rgb(232, 245, 233)
55- Note over Dec,Engine: POST-execution check
49+ Note over Dec,Engine: POST-execution check
5650 Dec->>Dec: Add return value to data
5751 Dec->>Engine: Evaluate(data, stage="post")
5852 Engine-->>Dec: EvaluationResponse
5953
6054 alt is_safe = false
6155 Dec-->>App: Raise exception or return error
6256 end
63- end
6457
6558 Dec-->>App: Return result
6659```
@@ -85,8 +78,6 @@ flowchart TD
8578
8679 decorator --> mapping
8780 function --> mapping
88-
89- style mapping fill:#e8f5e9,stroke:#388e3c
9081```
9182
9283## Parameter Binding Process
@@ -109,8 +100,6 @@ flowchart LR
109100
110101 call --> bind
111102 bind --> result
112-
113- style result fill:#fff3e0,stroke:#ef6c00
114103```
115104
116105## Data Available at Each Stage
@@ -129,9 +118,6 @@ flowchart TD
129118
130119 pre --> exec
131120 exec --> post
132-
133- style pre fill:#fff3e0,stroke:#ef6c00
134- style post fill:#e8f5e9,stroke:#388e3c
135121```
136122
137123## What You CAN and CANNOT Access
@@ -151,9 +137,6 @@ flowchart LR
151137 n3["Intermediate results"]
152138 n4["Unmapped parameters"]
153139 end
154-
155- style can fill:#c8e6c9,stroke:#2e7d32
156- style cannot fill:#ffcdd2,stroke:#c62828
157140```
158141
159142## Common Patterns
@@ -166,8 +149,6 @@ flowchart LR
166149 pre -->|Safe| func["Process"]
167150 pre -->|Unsafe| block["Block"]
168151 func --> output["Output"]
169-
170- style block fill:#ffcdd2,stroke:#c62828
171152```
172153
173154### Pattern 2: Output Filtering
@@ -178,8 +159,6 @@ flowchart LR
178159 func --> post["POST Check"]
179160 post -->|Safe| output["Return Output"]
180161 post -->|PII Detected| redact["Redact/Block"]
181-
182- style redact fill:#fff3e0,stroke:#ef6c00
183162```
184163
185164### Pattern 3: Full Pipeline
@@ -199,9 +178,6 @@ flowchart LR
199178
200179 pre -->|Fail| blocked1["Blocked"]
201180 post -->|Fail| blocked2["Blocked"]
202-
203- style blocked1 fill:#ffcdd2,stroke:#c62828
204- style blocked2 fill:#ffcdd2,stroke:#c62828
205181```
206182
207183## LangGraph Integration Example
@@ -222,9 +198,6 @@ flowchart TD
222198 node1 --> node2
223199 node2 --> node3
224200 node3 --> finish
225-
226- style node1 fill:#e3f2fd,stroke:#1565c0
227- style node3 fill:#e3f2fd,stroke:#1565c0
228201```
229202
230203## Error Handling
@@ -254,8 +227,4 @@ flowchart TD
254227 deny --> exception
255228 warn --> log_warning
256229 log --> log_info
257-
258- style exception fill:#ffcdd2,stroke:#c62828
259- style log_warning fill:#fff3e0,stroke:#ef6c00
260- style safe fill:#c8e6c9,stroke:#2e7d32
261230```
0 commit comments