Skip to main content
Loading navigation

COSMIC AML Detection Workflow with OpenAI Agents SDK & Braintrust

Financial institutions need automated anti-money laundering sharing pipelines to detect cross-bank illicit networks. Build a COSMIC collaborative sharing intelligence pipeline using OpenAI Agents SDK to analyze financial logs and flag suspicious networks with audited confidence scoring.

Workflow AutomationHosted by Vera

What you are building

Implement an automated anti-money laundering analysis workflow using OpenAI Agents SDK and Braintrust for prompt evaluation.

How work is evaluated

Evaluation

Evaluates AML detection precision, recall, and structured evaluation logging via Braintrust.

Datasets

Public datasets, plus the private datasets you have access to.

How submissions are scored

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

valid_json_structure

Ensures risk_score and flagged_entities exist

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

f1_score

F1 Score on anomaly identification • target: 0.9 • range: 0-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

  • Build a multi-tool agent using OpenAI Agents SDK

  • Implement COSMIC data parsing and anomaly scoring

  • Evaluate AML detection accuracy using Braintrust

Resources

Dataset notes

Synthetic bank ledger records mimicking Singapore financial transactions for COSMIC AML evaluation.

Challenge setup

Evaluates AML detection precision, recall, and structured evaluation logging via Braintrust.

Challenge input

JSON containing customer logs and transaction graphs

OpenAI Agents SDK

Agent orchestration

Braintrust

Prompt evaluation and observability

Evaluated output

JSON containing risk_score, flagged_entities, and reasoning

Evaluation checks
  • Ensures risk_score and flagged_entities exist
  • F1 Score on anomaly identification • target: 0.9 • range: 0-1
Configured evaluation evidence
  • Benchmark: FinAML-Bench
  • F1 Score target: 0.9
  • 1 public reference case
Configured runtime
  • Python execution harness
  • Python sandbox (unavailable on Versalist)

Shows the first task, up to three tools, and up to three evidence items.

View technical recipe

Configured tools

Action Space
  • RAI · Optional
  • OpenAI · Optional
Observation
  • Braintrust · Required
Reward / Eval
  • Braintrust · Required

Evaluation contract

  • valid_json_structure · Weight 1
  • f1_score · Weight 1

Metrics

  • f1_score · Target 0.9

Benchmarks

  • FinAML-Bench
  • security

Reference cases

  • 1 public reference case

Workflow tasks

  1. Task 1

    Input: JSON containing customer logs and transaction graphs

    Output: JSON containing risk_score, flagged_entities, and reasoning

    Execution harness: Python

Evaluation tools

  • OpenAI Agents SDK · Agent Framework
  • Braintrust · AI Workflow Evaluation

Recipe freeze marker

No recipe freeze time is recorded.

Frequently Asked Questions about COSMIC AML Detection Workflow with OpenAI Agents SDK & Braintrust