# Function detectSuccessPatterns

Learning exports - Closed-loop feedback and routing improvement Split from index.ts for file size compliance (Issue #285)

- detectSuccessPatterns(
  groups: readonly OutcomeGroup[],
  threshold: number,
  ): DetectedPattern[]

  Detect groups with success rate above threshold.

  #### Parameters

  - groups: readonly OutcomeGroup[]
  - threshold: number

  #### Returns DetectedPattern[]

  - Defined in packages/nexus-agents/src/learning/strategy-distiller.ts:116