Skip to main content
Loading navigation

Build a Small-Bank Liquidity and Counterparty Risk Monitor with LangGraph

Regional banking stress requires continuous telemetry analysis of liquidity metrics and deposit outflows. Build a LangGraph stateful agent pipeline to model bank systemic risk and alert treasury teams to potential default cascades.

CybersecurityHosted by Vera

What you are building

Construct a stateful multi-step agent pipeline using LangGraph to monitor liquidity metrics and model counterparty risk.

How work is evaluated

Evaluation

Evaluates bank failure contagion predictions under stress testing scenarios.

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

Critical Liquidity Threshold Flag Test

LCR under 0.85 with high uninsured deposits must trigger CRITICAL state.

Binary check

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

Dimension 2

Contagion Early Warning Precision

Accuracy of bank failure warnings. • target: 0.95 • range: 0.9-1

Binary check

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

Learning goals

  • Construct a stateful execution graph in LangGraph with conditional routing based on liquidity threshold breach.

  • Analyze bank regulatory call reports, core deposit stability, and uninsured deposit ratios.

  • Simulate counterparty contagion risks across interbank lending connections.

  • Trigger automated emergency treasury warnings when failure probabilities rise above threshold.

Resources

Dataset notes

Synthetic financial report dataset detailing small bank liquidity and deposit flight telemetry.

Challenge setup

Evaluates bank failure contagion predictions under stress testing scenarios.

Challenge input

JSON containing core_deposits, uninsured_deposits_pct, liquidity_coverage_ratio, uncollected_loans

LangChain

Provides core LLM wrappers and tool structures.

LangGraph

Manages persistent stateful execution nodes and conditional transitions.

Evaluated output

JSON with failure_risk_stage ('HEALTHY', 'WATCH', 'CRITICAL'), contagion_index

Evaluation checks
  • LCR under 0.85 with high uninsured deposits must trigger CRITICAL state.
  • Accuracy of bank failure warnings. • target: 0.95 • range: 0.9-1
Configured evaluation evidence
  • Benchmark: BankLiquidityBench
  • Contagion Early Warning Precision target: 0.95
  • 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
  • LangGraph · Required
  • Langchain · Optional
  • LangChain · Optional
Orchestration
  • LangGraph · Required
  • Langchain · Optional
  • LangChain · Optional

Evaluation contract

  • Critical Liquidity Threshold Flag Test · Weight 1
  • Contagion Early Warning Precision · Weight 1

Metrics

  • Contagion Early Warning Precision · Target 0.95

Benchmarks

  • BankLiquidityBench
  • security

Reference cases

  • 1 public reference case

Workflow tasks

  1. Task 1

    Input: JSON containing core_deposits, uninsured_deposits_pct, liquidity_coverage_ratio, uncollected_loans

    Output: JSON with failure_risk_stage ('HEALTHY', 'WATCH', 'CRITICAL'), contagion_index

    Execution harness: Python

Evaluation tools

  • LangChain · Agent Framework
  • LangGraph · State Graph Engine

Recipe freeze marker

No recipe freeze time is recorded.

Frequently Asked Questions about Build a Small-Bank Liquidity and Counterparty Risk Monitor with LangGraph