describeForOptimization

fun <TInput, TOutput> AIAgentGraphStrategy<TInput, TOutput>.describeForOptimization(): String

Creates a text description of the strategy structure for use in MIPRO instruction proposal.

Traverses the strategy graph and describes:

  • Strategy name

  • All subgraphs (potential optimization targets) with their names

  • All nodes with their names and types

  • Graph connectivity (edges between nodes)

Return

A human-readable description of the strategy structure.