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.
ReflectionOutput
Defined in the extras module.
Rust AI Agent SDK
Output from a reflection step
Fields
| Name | Type | Description |
|---|
original | String | The original output |
reflection | String | The reflection analysis |
improved | Option<String> | The improved output (if any) |
confidence | f64 | Confidence score (0.0 - 1.0) |
was_modified | bool | Whether the output was modified |
Methods
new
fn new(original: impl Into<String>, reflection: impl Into<String>) -> Self
Create a new reflection output
Parameters:
| Name | Type |
|---|
original | impl Into<String> |
reflection | impl Into<String> |
with_improvement
fn with_improvement(
original: impl Into<String>,
reflection: impl Into<String>,
improved: impl Into<String>,
) -> Self
Create with improved output
Parameters:
| Name | Type |
|---|
original | impl Into<String> |
reflection | impl Into<String> |
improved | impl Into<String> |
Source
View on GitHub
praisonai/src/parity/extras.rs at line 448