pub struct ReflectionParams {
pub thought_id: Option<String>,
pub content: Option<String>,
pub session_id: Option<String>,
pub branch_id: Option<String>,
pub max_iterations: usize,
pub quality_threshold: f64,
pub include_chain: bool,
}Expand description
Input parameters for reflection reasoning
Fields§
§thought_id: Option<String>The thought ID to reflect upon (optional - if not provided, reflects on content)
content: Option<String>Content to reflect upon (used if thought_id not provided)
session_id: Option<String>Optional session ID (creates new if not provided)
branch_id: Option<String>Optional branch ID for tree mode integration
max_iterations: usizeMaximum iterations for iterative refinement
quality_threshold: f64Quality threshold to stop iterating (0.0-1.0)
include_chain: boolWhether to include full reasoning chain in context
Implementations§
Source§impl ReflectionParams
impl ReflectionParams
Sourcepub fn for_thought(thought_id: impl Into<String>) -> Self
pub fn for_thought(thought_id: impl Into<String>) -> Self
Create new params with thought ID
Sourcepub fn for_content(content: impl Into<String>) -> Self
pub fn for_content(content: impl Into<String>) -> Self
Create new params with content
Sourcepub fn with_session(self, session_id: impl Into<String>) -> Self
pub fn with_session(self, session_id: impl Into<String>) -> Self
Set the session ID
Sourcepub fn with_branch(self, branch_id: impl Into<String>) -> Self
pub fn with_branch(self, branch_id: impl Into<String>) -> Self
Set the branch ID
Sourcepub fn with_max_iterations(self, max: usize) -> Self
pub fn with_max_iterations(self, max: usize) -> Self
Set the maximum iterations
Sourcepub fn with_quality_threshold(self, threshold: f64) -> Self
pub fn with_quality_threshold(self, threshold: f64) -> Self
Set the quality threshold
Sourcepub fn with_chain(self) -> Self
pub fn with_chain(self) -> Self
Include reasoning chain context
Trait Implementations§
Source§impl Clone for ReflectionParams
impl Clone for ReflectionParams
Source§fn clone(&self) -> ReflectionParams
fn clone(&self) -> ReflectionParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReflectionParams
impl Debug for ReflectionParams
Source§impl<'de> Deserialize<'de> for ReflectionParams
impl<'de> Deserialize<'de> for ReflectionParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ReflectionParams
impl RefUnwindSafe for ReflectionParams
impl Send for ReflectionParams
impl Sync for ReflectionParams
impl Unpin for ReflectionParams
impl UnwindSafe for ReflectionParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more