ReflectionOptions
Interface: ReflectionOptions
Defined in: src/patterns/Reflection.ts:20
Properties
criticPrompt
readonlycriticPrompt:string
Defined in: src/patterns/Reflection.ts:31
System prompt for the critic. Should instruct the critic to return
"DONE" (or a consumer-chosen sentinel) when the proposal is good
enough — that string is checked by untilCritiqueContains to stop
the refinement loop.
id?
readonlyoptionalid?:string
Defined in: src/patterns/Reflection.ts:43
maxIterations?
readonlyoptionalmaxIterations?:number
Defined in: src/patterns/Reflection.ts:39
Max refinement iterations. Default 3.
maxTokens?
readonlyoptionalmaxTokens?:number
Defined in: src/patterns/Reflection.ts:41
model
readonlymodel:string
Defined in: src/patterns/Reflection.ts:22
name?
readonlyoptionalname?:string
Defined in: src/patterns/Reflection.ts:42
proposerPrompt
readonlyproposerPrompt:string
Defined in: src/patterns/Reflection.ts:24
System prompt for the initial / revision proposer.
provider
readonlyprovider:LLMProvider
Defined in: src/patterns/Reflection.ts:21
temperature?
readonlyoptionaltemperature?:number
Defined in: src/patterns/Reflection.ts:40
untilCritiqueContains?
readonlyoptionaluntilCritiqueContains?:string
Defined in: src/patterns/Reflection.ts:37
Stop string the critic should emit when satisfied. When the critic's response contains this substring, the loop exits and the last proposal is returned. Default: 'DONE'.
