#[non_exhaustive]pub struct MemorySearchInput {Show 75 fields
pub org: Option<String>,
pub namespace: Option<String>,
pub agent_id: Option<String>,
pub render: Option<MemorySearchInputRender>,
pub query: String,
pub memory_type: Option<Option<String>>,
pub tags: Option<Vec<String>>,
pub scope: Option<MemorySearchInputScope>,
pub namespace_scope: Option<Option<String>>,
pub search_mode: Option<String>,
pub recipe: Option<MemorySearchInputRecipe>,
pub alpha: Option<f64>,
pub include_top_n_unmatched: Option<Integer>,
pub include_tags: Option<bool>,
pub include_usage: Option<bool>,
pub include_duplicates: Option<bool>,
pub include_superseded: Option<bool>,
pub include_proposed: Option<bool>,
pub explain: Option<Option<bool>>,
pub legs: Option<Option<Vec<MemorySearchInputLegsItem>>>,
pub auto_touch: Option<bool>,
pub user_id: Option<Option<String>>,
pub run_id: Option<Option<String>>,
pub session_id: Option<Option<String>>,
pub session_ids: Option<Vec<String>>,
pub exclude_keys: Option<Vec<String>>,
pub quality_filter: Option<bool>,
pub read_scope: Option<MemorySearchInputReadScope>,
pub entity_filter: Option<Vec<String>>,
pub category: Option<String>,
pub tags_soft: Option<bool>,
pub tag_boost: Option<f64>,
pub category_soft: Option<bool>,
pub category_boost: Option<f64>,
pub confidence_weight: Option<f64>,
pub prior_cap: Option<Option<f64>>,
pub sensitivity_penalty: Option<Option<f64>>,
pub rrf_adaptive_lexical: Option<Option<bool>>,
pub demote_tags: Option<Vec<String>>,
pub reinforcement_weight: Option<Option<f64>>,
pub recency_pool_weight: Option<Option<f64>>,
pub reinforcement_half_life_days: Option<Option<f64>>,
pub mention_boost: Option<Option<f64>>,
pub ground_relative_dates: Option<Option<bool>>,
pub reinforcement_half_life_use_scale: Option<Option<f64>>,
pub key_match: Option<Option<bool>>,
pub key_match_mode: Option<Option<MemorySearchInputKeyMatchMode>>,
pub digest_descent: Option<Option<bool>>,
pub role: Option<String>,
pub top_k: Option<u32>,
pub key_axis: Option<Option<bool>>,
pub bodies: Option<MemorySearchInputBodies>,
pub body_budget_tokens: Option<Integer>,
pub source_span_chars: Option<Integer>,
pub paging: Option<Option<bool>>,
pub page: Option<String>,
pub recent_first: Option<Integer>,
pub anchor_first: Option<Integer>,
pub per_speaker_quota: Option<Option<Integer>>,
pub min_body_chars: Option<Integer>,
pub graph_seed: Option<MemorySearchInputGraphSeed>,
pub diversify: Option<MemorySearchInputDiversify>,
pub diversify_session_cap: Option<Option<Integer>>,
pub summary_cap: Option<Option<Integer>>,
pub chunk_cap_share: Option<Option<f64>>,
pub floor_mode: Option<Option<MemorySearchInputFloorMode>>,
pub min_similarity: Option<Option<f64>>,
pub chunk_max_share: Option<Option<f64>>,
pub personalization: Option<MemorySearchInputPersonalization>,
pub observation_date: Option<String>,
pub rerank: Option<String>,
pub retrieval_budget: Option<MemorySearchInputRetrievalBudget>,
pub hyde: Option<bool>,
pub as_of: Option<Option<String>>,
pub as_of_basis: Option<MemorySearchInputAsOfBasis>,
}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_id: Option<String>§render: Option<MemorySearchInputRender>§query: String§memory_type: Option<Option<String>>§scope: Option<MemorySearchInputScope>§namespace_scope: Option<Option<String>>§search_mode: Option<String>§recipe: Option<MemorySearchInputRecipe>§alpha: Option<f64>§include_top_n_unmatched: Option<Integer>§include_usage: Option<bool>§include_duplicates: Option<bool>§include_superseded: Option<bool>§include_proposed: Option<bool>§explain: Option<Option<bool>>§legs: Option<Option<Vec<MemorySearchInputLegsItem>>>§auto_touch: Option<bool>§user_id: Option<Option<String>>§run_id: Option<Option<String>>§session_id: Option<Option<String>>§session_ids: Option<Vec<String>>§exclude_keys: Option<Vec<String>>§quality_filter: Option<bool>§read_scope: Option<MemorySearchInputReadScope>§entity_filter: Option<Vec<String>>§category: Option<String>§tag_boost: Option<f64>§category_soft: Option<bool>§category_boost: Option<f64>§confidence_weight: Option<f64>§prior_cap: Option<Option<f64>>§sensitivity_penalty: Option<Option<f64>>§rrf_adaptive_lexical: Option<Option<bool>>§reinforcement_weight: Option<Option<f64>>§recency_pool_weight: Option<Option<f64>>§reinforcement_half_life_days: Option<Option<f64>>§mention_boost: Option<Option<f64>>§ground_relative_dates: Option<Option<bool>>§reinforcement_half_life_use_scale: Option<Option<f64>>§key_match: Option<Option<bool>>§key_match_mode: Option<Option<MemorySearchInputKeyMatchMode>>§digest_descent: Option<Option<bool>>§role: Option<String>§top_k: Option<u32>§key_axis: Option<Option<bool>>§bodies: Option<MemorySearchInputBodies>§body_budget_tokens: Option<Integer>§source_span_chars: Option<Integer>§paging: Option<Option<bool>>§page: Option<String>§recent_first: Option<Integer>§anchor_first: Option<Integer>§per_speaker_quota: Option<Option<Integer>>§min_body_chars: Option<Integer>§graph_seed: Option<MemorySearchInputGraphSeed>§diversify: Option<MemorySearchInputDiversify>§diversify_session_cap: Option<Option<Integer>>§summary_cap: Option<Option<Integer>>§floor_mode: Option<Option<MemorySearchInputFloorMode>>§min_similarity: Option<Option<f64>>§personalization: Option<MemorySearchInputPersonalization>§observation_date: Option<String>§rerank: Option<String>§retrieval_budget: Option<MemorySearchInputRetrievalBudget>§hyde: Option<bool>§as_of: Option<Option<String>>§as_of_basis: Option<MemorySearchInputAsOfBasis>Implementations§
Source§impl MemorySearchInput
impl MemorySearchInput
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_id(self, agent_id: impl Into<String>) -> Self
pub fn render(self, render: MemorySearchInputRender) -> Self
pub fn memory_type(self, memory_type: impl Into<String>) -> Self
pub fn memory_type_null(self) -> Self
pub fn scope(self, scope: MemorySearchInputScope) -> Self
pub fn namespace_scope(self, namespace_scope: impl Into<String>) -> Self
pub fn namespace_scope_null(self) -> Self
pub fn search_mode(self, search_mode: impl Into<String>) -> Self
pub fn recipe(self, recipe: MemorySearchInputRecipe) -> Self
pub fn alpha(self, alpha: f64) -> Self
pub fn include_top_n_unmatched( self, include_top_n_unmatched: impl Into<Integer>, ) -> Self
pub fn include_usage(self, include_usage: bool) -> Self
pub fn include_duplicates(self, include_duplicates: bool) -> Self
pub fn include_superseded(self, include_superseded: bool) -> Self
pub fn include_proposed(self, include_proposed: bool) -> Self
pub fn explain(self, explain: bool) -> Self
pub fn explain_null(self) -> Self
pub fn legs(self, legs: Vec<MemorySearchInputLegsItem>) -> Self
pub fn legs_null(self) -> Self
pub fn auto_touch(self, auto_touch: bool) -> Self
pub fn user_id(self, user_id: impl Into<String>) -> Self
pub fn user_id_null(self) -> Self
pub fn run_id(self, run_id: impl Into<String>) -> Self
pub fn run_id_null(self) -> Self
pub fn session_id(self, session_id: impl Into<String>) -> Self
pub fn session_id_null(self) -> Self
pub fn session_ids( self, session_ids: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn exclude_keys( self, exclude_keys: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn quality_filter(self, quality_filter: bool) -> Self
pub fn read_scope(self, read_scope: MemorySearchInputReadScope) -> Self
pub fn entity_filter( self, entity_filter: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn category(self, category: impl Into<String>) -> Self
pub fn tag_boost(self, tag_boost: f64) -> Self
pub fn category_soft(self, category_soft: bool) -> Self
pub fn category_boost(self, category_boost: f64) -> Self
pub fn confidence_weight(self, confidence_weight: f64) -> Self
pub fn prior_cap(self, prior_cap: f64) -> Self
pub fn prior_cap_null(self) -> Self
pub fn sensitivity_penalty(self, sensitivity_penalty: f64) -> Self
pub fn sensitivity_penalty_null(self) -> Self
pub fn rrf_adaptive_lexical(self, rrf_adaptive_lexical: bool) -> Self
pub fn rrf_adaptive_lexical_null(self) -> Self
pub fn reinforcement_weight(self, reinforcement_weight: f64) -> Self
pub fn reinforcement_weight_null(self) -> Self
pub fn recency_pool_weight(self, recency_pool_weight: f64) -> Self
pub fn recency_pool_weight_null(self) -> Self
pub fn reinforcement_half_life_days( self, reinforcement_half_life_days: f64, ) -> Self
pub fn reinforcement_half_life_days_null(self) -> Self
pub fn mention_boost(self, mention_boost: f64) -> Self
pub fn mention_boost_null(self) -> Self
pub fn ground_relative_dates(self, ground_relative_dates: bool) -> Self
pub fn ground_relative_dates_null(self) -> Self
pub fn reinforcement_half_life_use_scale( self, reinforcement_half_life_use_scale: f64, ) -> Self
pub fn reinforcement_half_life_use_scale_null(self) -> Self
pub fn key_match(self, key_match: bool) -> Self
pub fn key_match_null(self) -> Self
pub fn key_match_mode( self, key_match_mode: MemorySearchInputKeyMatchMode, ) -> Self
pub fn key_match_mode_null(self) -> Self
pub fn digest_descent(self, digest_descent: bool) -> Self
pub fn digest_descent_null(self) -> Self
pub fn role(self, role: impl Into<String>) -> Self
pub fn top_k(self, top_k: u32) -> Self
pub fn key_axis(self, key_axis: bool) -> Self
pub fn key_axis_null(self) -> Self
pub fn bodies(self, bodies: MemorySearchInputBodies) -> Self
pub fn body_budget_tokens(self, body_budget_tokens: impl Into<Integer>) -> Self
pub fn source_span_chars(self, source_span_chars: impl Into<Integer>) -> Self
pub fn paging(self, paging: bool) -> Self
pub fn paging_null(self) -> Self
pub fn page(self, page: impl Into<String>) -> Self
pub fn recent_first(self, recent_first: impl Into<Integer>) -> Self
pub fn anchor_first(self, anchor_first: impl Into<Integer>) -> Self
pub fn per_speaker_quota(self, per_speaker_quota: impl Into<Integer>) -> Self
pub fn per_speaker_quota_null(self) -> Self
pub fn min_body_chars(self, min_body_chars: impl Into<Integer>) -> Self
pub fn graph_seed(self, graph_seed: MemorySearchInputGraphSeed) -> Self
pub fn diversify(self, diversify: MemorySearchInputDiversify) -> Self
pub fn diversify_session_cap( self, diversify_session_cap: impl Into<Integer>, ) -> Self
pub fn diversify_session_cap_null(self) -> Self
pub fn summary_cap(self, summary_cap: impl Into<Integer>) -> Self
pub fn summary_cap_null(self) -> Self
pub fn floor_mode(self, floor_mode: MemorySearchInputFloorMode) -> Self
pub fn floor_mode_null(self) -> Self
pub fn min_similarity(self, min_similarity: f64) -> Self
pub fn min_similarity_null(self) -> Self
pub fn personalization( self, personalization: MemorySearchInputPersonalization, ) -> Self
pub fn observation_date(self, observation_date: impl Into<String>) -> Self
pub fn rerank(self, rerank: impl Into<String>) -> Self
pub fn retrieval_budget( self, retrieval_budget: MemorySearchInputRetrievalBudget, ) -> Self
pub fn hyde(self, hyde: bool) -> 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: MemorySearchInputAsOfBasis) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<MemorySearchOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for MemorySearchInput
impl Clone for MemorySearchInput
Source§impl Debug for MemorySearchInput
impl Debug for MemorySearchInput
Source§impl<'de> Deserialize<'de> for MemorySearchInput
impl<'de> Deserialize<'de> for MemorySearchInput
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 MemorySearchInput
impl PartialEq for MemorySearchInput
Source§impl Serialize for MemorySearchInput
impl Serialize for MemorySearchInput
impl StructuralPartialEq for MemorySearchInput
Auto Trait Implementations§
impl Forget for MemorySearchInput
impl Freeze for MemorySearchInput
impl Move for MemorySearchInput
impl RefUnwindSafe for MemorySearchInput
impl Send for MemorySearchInput
impl Sync for MemorySearchInput
impl Unpin for MemorySearchInput
impl UnsafeUnpin for MemorySearchInput
impl UnwindSafe for MemorySearchInput
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