Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
ReflectionConfig
Defined in the config module.
Rust AI Agent SDK
Configuration for self-reflection
Fields
| Name | Type | Description |
|---|
enabled | bool | Enable reflection |
min_iterations | usize | Minimum iterations |
max_iterations | usize | Maximum iterations |
llm | Option<String> | Reflection LLM (if different from main) |
prompt | Option<String> | Custom reflection prompt |
Methods
new
Create a new reflection config
enabled
fn enabled(mut self) -> Self
Enable reflection
min_iterations
fn min_iterations(mut self, min: usize) -> Self
Set min iterations
Parameters:
max_iterations
fn max_iterations(mut self, max: usize) -> Self
Set max iterations
Parameters:
llm
fn llm(mut self, llm: impl Into<String>) -> Self
Set reflection LLM
Parameters:
| Name | Type |
|---|
llm | impl Into<String> |
prompt
fn prompt(mut self, prompt: impl Into<String>) -> Self
Set custom prompt
Parameters:
| Name | Type |
|---|
prompt | impl Into<String> |
Source
View on GitHub
praisonai/src/config.rs at line 554