ComplexityAnalyzer

Models & Types ยท AiDotNet.PromptEngineering.Analysis

Analyzer that focuses on measuring prompt complexity and structure.

Inheritance: PromptAnalyzerBase โ†’ ComplexityAnalyzer

For Beginners

Measures how complicated your prompt is.

Example:

High complexity might mean:

  • Difficult for AI to understand
  • Higher chance of misinterpretation
  • May need simplification

How It Works

This analyzer provides detailed complexity metrics including readability scores, structural analysis, and recommendations for simplification.

Constructors

Constructor Summary
ComplexityAnalyzer(Func<string, int> tokenCounter) Initializes a new instance of the ComplexityAnalyzer class.