Skip to content

Commit 5c20723

Browse files
committed
Apply suggestions
1 parent fae5d3c commit 5c20723

1 file changed

Lines changed: 21 additions & 16 deletions

File tree

modules/ai-agents/examples/mcp-tools/processors/log_audit_event.yaml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
label: log_audit_event
2-
mapping: |
3-
root = {
4-
"audit_id": uuid_v4(),
5-
"timestamp": now(),
6-
"event_type": "dispute_investigation",
7-
"transaction_id": this.transaction_id,
8-
"customer_id": this.customer_id,
9-
"agent_decision": this.decision,
10-
"risk_score": this.risk_score,
11-
"evidence_reviewed": this.evidence,
12-
"outcome": this.outcome,
13-
"escalated": this.escalated,
14-
"compliance_notes": this.notes,
15-
"logged_by": "dispute-resolution-agent",
16-
"status": "recorded"
17-
}
2+
processors:
3+
- mapping: |
4+
root = {
5+
"audit_id": uuid_v4(),
6+
"timestamp": now(),
7+
"event_type": "dispute_investigation",
8+
"transaction_id": this.transaction_id,
9+
"customer_id": this.customer_id,
10+
"agent_decision": this.decision,
11+
"risk_score": this.risk_score,
12+
"evidence_reviewed": this.evidence,
13+
"outcome": this.outcome,
14+
"escalated": this.escalated,
15+
"compliance_notes": this.notes,
16+
"logged_by": "dispute-resolution-agent",
17+
"status": "recorded"
18+
}
19+
20+
- log:
21+
level: INFO
22+
message: "Compliance audit event: ${!json()}"
1823

1924
meta:
2025
mcp:

0 commit comments

Comments
 (0)