CLI Reference
Config Inspector
Validate and preview experiment configurations:
python -m risklab.inspect_config <config_path> [flags]
Flags
Flag |
Short |
Description |
|---|---|---|
|
|
Display topology details (adjacency matrix, connectivity) |
|
|
Display information flow configuration |
|
|
Display agent configurations |
|
|
Show simulated speaker sequence |
|
|
Display LLM provider details (keys masked) |
|
|
Display everything |
Examples
# Full preview
python -m risklab.inspect_config risklab/experiments/configs/r2_C1_basic.yaml -A
# Topology and flow only
python -m risklab.inspect_config risklab/experiments/configs/r2_C1_basic.yaml -t -f
# Agent setup
python -m risklab.inspect_config risklab/experiments/configs/r2_C1_basic.yaml -a
Sample Output
=== Experiment Summary ===
Name: R2_C1_basic
Rounds: 10
Seeds: [0, 1, 2]
=== Topology ===
Type: fully_connected
Nodes: 3
Adjacency:
[[0, 1, 1],
[1, 0, 1],
[1, 1, 0]]
=== Agents ===
agent_0: seller (gpt-4o) objective=selfish
agent_1: seller (gpt-4o) objective=selfish
agent_2: seller (gpt-4o) objective=selfish