Analyzers¶
Analysis modules for understanding AI reasoning and behavior.
Available Analyzers¶
| Analyzer | Description |
|---|---|
| CounterfactualCoTAnalyzer | Analyze reasoning chains for strategic behavior |
Base Classes¶
Base analyzer class for metacognition analysis.
BaseAnalyzer
¶
Bases: ABC
Abstract base class for all analyzers.
All analyzer implementations should inherit from this class and implement the analyze method.
Source code in src/rotalabs_probe/analyzers/base.py
__init__() -> None
¶
analyze(data: List[str]) -> Dict[str, Any]
abstractmethod
¶
Analyze the given data for metacognitive patterns.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
List[str]
|
List of text samples to analyze |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
A dictionary containing analysis results with metrics and statistics |
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
If the method is not implemented |
Source code in src/rotalabs_probe/analyzers/base.py
__repr__() -> str
¶
Return string representation of the analyzer.
Returns:
| Type | Description |
|---|---|
str
|
String representation |