Polyman Documentation - v3.1.0
    Preparing search index...

    Finds ideas. One instance can run many times, one at a time.

    Index
    ideator: ModelManager
    critic: ModelManager
    • Fixes the issues the critic found in the best idea, checks the new version and reviews it again. Returns it when it is not worse (no more issues, still fits its constraints), else null: the first version stays.

      Parameters

      • best: RankedIdea
      • request: IdeaRequest
      • signal: AbortSignal
      • finish: (taskId: string, attempts: number, check: Checkpoint) => void
      • skip: (taskId: string, why: string) => void

      Returns Promise<RankedIdea | null>

    • One idea and its review. Null when the idea could not be written.

      Parameters

      • n: number
      • request: IdeaRequest
      • signal: AbortSignal
      • finish: (taskId: string, attempts: number, check: Checkpoint) => void
      • skip: (taskId: string, why: string) => void

      Returns Promise<RankedIdea | null>