Skip to main content

Appendix D: Model Library Catalog

The SDK ships with 23 reference models spanning 10 domains. Each model includes model.py, config.json, settings.json, a gold-standard PDF report, and an output/ directory with pre-generated results. Models are located in examples/models/.

Financial Markets (7 models)​

ModelAgentsAgent TypesKey MechanismsSDK Features Used
chiarella_market101Fundamentalist, Chartist, Noise, MarketMakerMean-reversion vs trend-following, linear price impact, noise perturbationSequence, PriceBroadcast messages, directed links per trader type
chiarella_llm101Fundamentalist, LLMTrader, Noise, MarketMakerSame as chiarella_market but chartists replaced by HybridAgent LLM tradersHybridAgent, MockLLMBackend, ResponseCache, llm_probability
volatility_market201Trader, MarketStrategy switching between fundamentalist and chartist modes, endogenous volatilitySequence, adaptive agent state, regime switching
cda_market102Buyer, Seller, MarketContinuous double auction with limit order book, price discoverySequence (multi-phase), order matching logic, bid/ask spread
trading201Trader, ExchangeInformation cascades, threshold-based strategy adaptation, volume dynamicsSequence, heterogeneous thresholds, adaptive learning
tokyo_banks100LargeBank, SmallBankHeterogeneous signal weighting, fire-sale externalities, liquidity spiralsscale_free topology, heterogeneous agent types, contagion
llm_tradingvariesRuleTrader, LLMTrader, MarketMakerLLM vs rule-based strategy comparison, momentum/contrarian strategies, price impactHybridAgent, Links, AWS Bedrock, MockLLMBackend

Systemic Risk (2 models)​

ModelAgentsAgent TypesKey MechanismsSDK Features Used
gai_kapadia100BankThreshold contagion on scale-free network, heterogeneous cash buffersscale_free topology, broadcast(), threshold dynamics, buffer_heterogeneity
counterparty_credit51Bank, CCPBilateral interbank exposures, central counterparty clearing, collateral thresholdsNetworkSpace, multiple link types, bilateral vs CCP clearing comparison

Consumer Finance (2 models)​

ModelAgentsAgent TypesKey MechanismsSDK Features Used
credit_card202Household, CreditCardProviderUtility-based balance split, Delta Learning rate adaptation, BoE consumption model, reward programmeBipartite links (4 types), 4 message types, multi-phase Sequence, empirical income distribution
mortgage201Household, BankLTI/LTV regulatory constraints, income shocks, foreclosure dynamicsSequence, regulatory thresholds, heterogeneous income

Market Integrity (1 model)​

ModelAgentsAgent TypesKey MechanismsSDK Features Used
market_surveillance91HonestTrader, Manipulator, Surveillor, MarketSpoofing, layering, wash trading strategies; statistical detection algorithmsMultiple agent types, detection thresholds, strategy classification

Insurance (1 model)​

ModelAgentsAgent TypesKey MechanismsSDK Features Used
insurance_claims206Policyholder, Insurer, ReinsurerTwo-tier insurance, reinsurance backstop, catastrophe events, premium adaptationMultiple agent types, heterogeneous risk profiles, cascading claims

Operations (3 models)​

ModelAgentsAgent TypesKey MechanismsSDK Features Used
supply_chain20Supplier, Manufacturer, Distributor, RetailerFour-tier serial supply chain, bullwhip effect, (s, S) inventory policy, demand amplificationSequence (tier-ordered), inventory dynamics, order amplification
supply_chain_v227Supplier, Manufacturer, Distributor, RetailerFour-tier logistics network, physically-grounded transit delays, safety-stock ordering, supply disruptionSequence, Links, multi-supplier sourcing, scenario presets
supply_chain_v350+Supplier, Manufacturer, Hub (T1/T2/T3), RetailerGlobal supply chain with tiered distribution hubs, haversine-based transit, seasonal demand, dynamic pricingSpace2D, FieldLayer, GeoMap visualization, tiered hub cascading

Spatial Dynamics (4 models)​

ModelAgentsAgent TypesKey MechanismsSDK Features Used
forest_fire900CellSpatial contagion on 30x30 grid, spontaneous ignition, percolation dynamicsGridSpace (Von Neumann), broadcast(), cell state transitions
schelling300BlueResident, RedResidentSegregation: agents relocate if same-type neighbour fraction < thresholdGridSpace (Moore), agent movement, get_empty_positions()
sir_grid900CellSIR epidemic on 30x30 grid with local transmission and recoveryGridSpace, spatial contagion, S/I/R state transitions
game_of_life2,500CellConway's Game of Life with spontaneous mutation, aging, and nutrient fieldGridSpace (Moore), toroidal wrap, cellular automaton, __color_map__

Epidemiology (1 model)​

ModelAgentsAgent TypesKey MechanismsSDK Features Used
sir_network100PersonSIR epidemic on Watts-Strogatz small-world network with probabilistic transmissionNetworkSpace, small_world topology, transmission rate, recovery rate

Reference / Macro (1 model)​

ModelAgentsAgent TypesKey MechanismsSDK Features Used
simple_economy55Worker, Firm, GovernmentProduction, consumption, taxation, wage bargaining, unemploymentMultiple agent types, fully_connected topology, accumulator-heavy

Swarm Intelligence (1 model)​

ModelAgentsAgent TypesKey MechanismsSDK Features Used
ant_colony2000AntPheromone stigmergy, Weber-Fechner gradient following, two-pheromone bidirectional signalling, beacon emissionSpace2D, FieldLayer, Space2DEnvironment, no links/messages, environment-as-mediator

Domain Coverage Summary​

DomainModelsTotal Agent TypesSDK Features Exercised
Financial Markets714LLMAgent, HybridAgent, adaptive learning, price formation, LLM vs rule comparison
Systemic Risk23scale_free topology, threshold contagion, CCP clearing
Consumer Finance24Bipartite links, Delta Learning, regulatory constraints
Market Integrity14Detection algorithms, strategy classification
Insurance13Two-tier reinsurance, catastrophe events
Operations310Serial supply chain, bullwhip effect, Space2D logistics, tiered hub cascading, GeoMap
Spatial Dynamics45GridSpace (Von Neumann + Moore), movement, percolation, cellular automaton, __color_map__
Epidemiology11NetworkSpace, small_world, SIR compartments
Reference13Full SDK validation, multiple types + topology
Swarm Intelligence11Space2D, FieldLayer, pheromone, environment-as-mediator
Total2348