#[non_exhaustive]pub struct MemoryAskInput {Show 53 fields
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub user_id: Option<String>,
pub session_id: Option<String>,
pub run_id: Option<String>,
pub query: String,
pub memory_type: Option<Option<MemoryAskInputMemoryType>>,
pub tags: Option<Vec<String>>,
pub tags_soft: Option<bool>,
pub tag_boost: Option<Option<f64>>,
pub top_k: Option<Integer>,
pub bodies: Option<Option<MemoryAskInputBodies>>,
pub body_budget_tokens: Option<Option<Integer>>,
pub source_span_chars: Option<Integer>,
pub allow_synthesis: Option<bool>,
pub reinforce: Option<bool>,
pub reinforcement_weight: Option<Option<f64>>,
pub max_answer_chars: Option<Integer>,
pub namespace_scope: Option<Option<MemoryAskInputNamespaceScope>>,
pub search_mode: Option<MemoryAskInputSearchMode>,
pub read_scope: Option<MemoryAskInputReadScope>,
pub sensitivity_penalty: Option<Option<f64>>,
pub summary_cap: Option<Option<Integer>>,
pub rrf_adaptive_lexical: Option<Option<bool>>,
pub personalization: Option<MemoryAskInputPersonalization>,
pub as_of: Option<Option<String>>,
pub as_of_basis: Option<MemoryAskInputAsOfBasis>,
pub include_superseded: Option<bool>,
pub precedents: Option<Option<bool>>,
pub llm_cache: Option<Option<bool>>,
pub depth: Option<MemoryAskInputDepth>,
pub deep_select: Option<Option<MemoryAskInputDeepSelect>>,
pub deep_first: Option<Option<bool>>,
pub recount: Option<Option<bool>>,
pub token_budget: Option<Option<Integer>>,
pub personalize: Option<Option<bool>>,
pub window_rel_floor: Option<Option<f64>>,
pub decompose: Option<MemoryAskInputDecompose>,
pub world_knowledge: Option<MemoryAskInputWorldKnowledge>,
pub consistency: Option<MemoryAskInputConsistency>,
pub route_prior: Option<String>,
pub route_prior_max_cheap: Option<Option<f64>>,
pub mid_model: Option<String>,
pub mid_routes: Option<String>,
pub default_answer_chars: Option<Option<Integer>>,
pub digest_descent: Option<Option<bool>>,
pub presupposition_rule: Option<Option<bool>>,
pub set_window: Option<Option<Integer>>,
pub knowledge: Option<Option<bool>>,
pub recent_messages: Option<Vec<RecentMessage>>,
pub observation_date: Option<String>,
pub gh_items_fallback: Option<Option<bool>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.org: Option<String>§namespace: Option<String>§agent: Option<String>§user_id: Option<String>§session_id: Option<String>§run_id: Option<String>§query: String§memory_type: Option<Option<MemoryAskInputMemoryType>>§tag_boost: Option<Option<f64>>§top_k: Option<Integer>§bodies: Option<Option<MemoryAskInputBodies>>§body_budget_tokens: Option<Option<Integer>>§source_span_chars: Option<Integer>§allow_synthesis: Option<bool>§reinforce: Option<bool>§reinforcement_weight: Option<Option<f64>>§max_answer_chars: Option<Integer>§namespace_scope: Option<Option<MemoryAskInputNamespaceScope>>§search_mode: Option<MemoryAskInputSearchMode>§read_scope: Option<MemoryAskInputReadScope>§sensitivity_penalty: Option<Option<f64>>§summary_cap: Option<Option<Integer>>§rrf_adaptive_lexical: Option<Option<bool>>§personalization: Option<MemoryAskInputPersonalization>§as_of: Option<Option<String>>§as_of_basis: Option<MemoryAskInputAsOfBasis>§include_superseded: Option<bool>§precedents: Option<Option<bool>>§llm_cache: Option<Option<bool>>§depth: Option<MemoryAskInputDepth>§deep_select: Option<Option<MemoryAskInputDeepSelect>>§deep_first: Option<Option<bool>>§recount: Option<Option<bool>>§token_budget: Option<Option<Integer>>§personalize: Option<Option<bool>>§window_rel_floor: Option<Option<f64>>§decompose: Option<MemoryAskInputDecompose>§world_knowledge: Option<MemoryAskInputWorldKnowledge>§consistency: Option<MemoryAskInputConsistency>§route_prior: Option<String>§route_prior_max_cheap: Option<Option<f64>>§mid_model: Option<String>§mid_routes: Option<String>§default_answer_chars: Option<Option<Integer>>§digest_descent: Option<Option<bool>>§presupposition_rule: Option<Option<bool>>§set_window: Option<Option<Integer>>§knowledge: Option<Option<bool>>§recent_messages: Option<Vec<RecentMessage>>§observation_date: Option<String>§gh_items_fallback: Option<Option<bool>>Implementations§
Source§impl MemoryAskInput
impl MemoryAskInput
pub fn new(query: impl Into<String>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn user_id(self, user_id: impl Into<String>) -> Self
pub fn session_id(self, session_id: impl Into<String>) -> Self
pub fn run_id(self, run_id: impl Into<String>) -> Self
pub fn memory_type(self, memory_type: MemoryAskInputMemoryType) -> Self
pub fn memory_type_null(self) -> Self
pub fn tag_boost(self, tag_boost: f64) -> Self
pub fn tag_boost_null(self) -> Self
pub fn top_k(self, top_k: impl Into<Integer>) -> Self
pub fn bodies(self, bodies: MemoryAskInputBodies) -> Self
pub fn bodies_null(self) -> Self
pub fn body_budget_tokens(self, body_budget_tokens: impl Into<Integer>) -> Self
pub fn body_budget_tokens_null(self) -> Self
pub fn source_span_chars(self, source_span_chars: impl Into<Integer>) -> Self
pub fn allow_synthesis(self, allow_synthesis: bool) -> Self
pub fn reinforce(self, reinforce: bool) -> Self
pub fn reinforcement_weight(self, reinforcement_weight: f64) -> Self
pub fn reinforcement_weight_null(self) -> Self
pub fn max_answer_chars(self, max_answer_chars: impl Into<Integer>) -> Self
pub fn namespace_scope( self, namespace_scope: MemoryAskInputNamespaceScope, ) -> Self
pub fn namespace_scope_null(self) -> Self
pub fn search_mode(self, search_mode: MemoryAskInputSearchMode) -> Self
pub fn read_scope(self, read_scope: MemoryAskInputReadScope) -> Self
pub fn sensitivity_penalty(self, sensitivity_penalty: f64) -> Self
pub fn sensitivity_penalty_null(self) -> Self
pub fn summary_cap(self, summary_cap: impl Into<Integer>) -> Self
pub fn summary_cap_null(self) -> Self
pub fn rrf_adaptive_lexical(self, rrf_adaptive_lexical: bool) -> Self
pub fn rrf_adaptive_lexical_null(self) -> Self
pub fn personalization( self, personalization: MemoryAskInputPersonalization, ) -> Self
pub fn as_of(self, as_of: impl Into<String>) -> Self
pub fn as_of_null(self) -> Self
pub fn as_of_basis(self, as_of_basis: MemoryAskInputAsOfBasis) -> Self
pub fn include_superseded(self, include_superseded: bool) -> Self
pub fn precedents(self, precedents: bool) -> Self
pub fn precedents_null(self) -> Self
pub fn llm_cache(self, llm_cache: bool) -> Self
pub fn llm_cache_null(self) -> Self
pub fn depth(self, depth: MemoryAskInputDepth) -> Self
pub fn deep_select(self, deep_select: MemoryAskInputDeepSelect) -> Self
pub fn deep_select_null(self) -> Self
pub fn deep_first(self, deep_first: bool) -> Self
pub fn deep_first_null(self) -> Self
pub fn recount(self, recount: bool) -> Self
pub fn recount_null(self) -> Self
pub fn token_budget(self, token_budget: impl Into<Integer>) -> Self
pub fn token_budget_null(self) -> Self
pub fn personalize(self, personalize: bool) -> Self
pub fn personalize_null(self) -> Self
pub fn window_rel_floor(self, window_rel_floor: f64) -> Self
pub fn window_rel_floor_null(self) -> Self
pub fn decompose(self, decompose: MemoryAskInputDecompose) -> Self
pub fn world_knowledge( self, world_knowledge: MemoryAskInputWorldKnowledge, ) -> Self
pub fn consistency(self, consistency: MemoryAskInputConsistency) -> Self
pub fn route_prior(self, route_prior: impl Into<String>) -> Self
pub fn route_prior_max_cheap(self, route_prior_max_cheap: f64) -> Self
pub fn route_prior_max_cheap_null(self) -> Self
pub fn mid_model(self, mid_model: impl Into<String>) -> Self
pub fn mid_routes(self, mid_routes: impl Into<String>) -> Self
pub fn default_answer_chars( self, default_answer_chars: impl Into<Integer>, ) -> Self
pub fn default_answer_chars_null(self) -> Self
pub fn digest_descent(self, digest_descent: bool) -> Self
pub fn digest_descent_null(self) -> Self
pub fn presupposition_rule(self, presupposition_rule: bool) -> Self
pub fn presupposition_rule_null(self) -> Self
pub fn set_window(self, set_window: impl Into<Integer>) -> Self
pub fn set_window_null(self) -> Self
pub fn knowledge(self, knowledge: bool) -> Self
pub fn knowledge_null(self) -> Self
pub fn recent_messages(self, recent_messages: Vec<RecentMessage>) -> Self
pub fn observation_date(self, observation_date: impl Into<String>) -> Self
pub fn gh_items_fallback(self, gh_items_fallback: bool) -> Self
pub fn gh_items_fallback_null(self) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<MemoryAskOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for MemoryAskInput
impl Clone for MemoryAskInput
Source§impl Debug for MemoryAskInput
impl Debug for MemoryAskInput
Source§impl<'de> Deserialize<'de> for MemoryAskInput
impl<'de> Deserialize<'de> for MemoryAskInput
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
Source§impl PartialEq for MemoryAskInput
impl PartialEq for MemoryAskInput
Source§impl Serialize for MemoryAskInput
impl Serialize for MemoryAskInput
impl StructuralPartialEq for MemoryAskInput
Auto Trait Implementations§
impl Forget for MemoryAskInput
impl Freeze for MemoryAskInput
impl Move for MemoryAskInput
impl RefUnwindSafe for MemoryAskInput
impl Send for MemoryAskInput
impl Sync for MemoryAskInput
impl Unpin for MemoryAskInput
impl UnsafeUnpin for MemoryAskInput
impl UnwindSafe for MemoryAskInput
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