docs: label factor rules example clearly

This commit is contained in:
69049ed6x 2026-03-08 15:44:26 +08:00
parent e10805d03c
commit 2fb715915b
1 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ You can also adjust the default configuration to set your own choice of LLMs, de
### Factor Rule Analyst
TradingAgents now supports an optional `factor_rules` analyst that loads manually curated factor rules from JSON and injects them into the analyst → researcher → trader workflow. The analyst is opt-in: add `"factor_rules"` to `selected_analysts` when you want it enabled.
TradingAgents now supports an optional `factor_rules` analyst that loads manually curated factor rules from JSON and injects them into the analyst → researcher → trader workflow. By default, the graph uses `market`, `social`, `news`, and `fundamentals`; add `"factor_rules"` to `selected_analysts` when you want the extra analyst enabled.
Default lookup order for factor rules:
1. `config["factor_rules_path"]`
@ -208,7 +208,7 @@ Example rule file format:
}
```
Example config and usage:
Example config and usage with `factor_rules` enabled:
```python
from tradingagents.graph.trading_graph import TradingAgentsGraph