pub struct TreeParams {
pub content: String,
pub session_id: Option<String>,
pub branch_id: Option<String>,
pub confidence: f64,
pub num_branches: usize,
pub cross_refs: Vec<CrossRefInput>,
}Expand description
Input parameters for tree reasoning
Fields§
§content: StringThe thought content to process
session_id: Option<String>Optional session ID (creates new if not provided)
branch_id: Option<String>Branch ID to extend (creates root branch if not provided)
confidence: f64Confidence threshold (0.0-1.0)
num_branches: usizeNumber of branches to explore (2-4)
cross_refs: Vec<CrossRefInput>Cross-references to other branches
Implementations§
Source§impl TreeParams
impl TreeParams
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 to extend
Sourcepub fn with_confidence(self, confidence: f64) -> Self
pub fn with_confidence(self, confidence: f64) -> Self
Set the confidence threshold
Sourcepub fn with_num_branches(self, num: usize) -> Self
pub fn with_num_branches(self, num: usize) -> Self
Set the number of branches to explore
Trait Implementations§
Source§impl Clone for TreeParams
impl Clone for TreeParams
Source§fn clone(&self) -> TreeParams
fn clone(&self) -> TreeParams
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 TreeParams
impl Debug for TreeParams
Source§impl<'de> Deserialize<'de> for TreeParams
impl<'de> Deserialize<'de> for TreeParams
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 TreeParams
impl RefUnwindSafe for TreeParams
impl Send for TreeParams
impl Sync for TreeParams
impl Unpin for TreeParams
impl UnwindSafe for TreeParams
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