Skip to main content

MemorySearchTraceInput

Struct MemorySearchTraceInput 

Source
#[non_exhaustive]
pub struct MemorySearchTraceInput {
Show 75 fields pub org: Option<String>, pub namespace: Option<String>, pub agent: Option<String>, pub render: Option<MemorySearchTraceInputRender>, pub query: String, pub memory_type: Option<Option<MemorySearchTraceInputMemoryType>>, pub tags: Option<Vec<String>>, pub scope: Option<MemorySearchTraceInputScope>, pub namespace_scope: Option<Option<MemorySearchTraceInputNamespaceScope>>, pub search_mode: Option<MemorySearchTraceInputSearchMode>, pub recipe: Option<MemorySearchTraceInputRecipe>, 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<MemorySearchTraceInputLegsItem>>>, 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<MemorySearchTraceInputReadScope>, 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<MemorySearchTraceInputKeyMatchMode>>, pub digest_descent: Option<Option<bool>>, pub role: Option<String>, pub top_k: Option<Integer>, pub key_axis: Option<Option<bool>>, pub bodies: Option<MemorySearchTraceInputBodies>, 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<MemorySearchTraceInputGraphSeed>, pub diversify: Option<MemorySearchTraceInputDiversify>, 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<MemorySearchTraceInputFloorMode>>, pub min_similarity: Option<Option<f64>>, pub chunk_max_share: Option<Option<f64>>, pub personalization: Option<MemorySearchTraceInputPersonalization>, pub observation_date: Option<String>, pub rerank: Option<String>, pub retrieval_budget: Option<MemorySearchTraceInputRetrievalBudget>, pub hyde: Option<bool>, pub as_of: Option<Option<String>>, pub as_of_basis: Option<MemorySearchTraceInputAsOfBasis>,
}

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>§render: Option<MemorySearchTraceInputRender>§query: String§memory_type: Option<Option<MemorySearchTraceInputMemoryType>>§tags: Option<Vec<String>>§scope: Option<MemorySearchTraceInputScope>§namespace_scope: Option<Option<MemorySearchTraceInputNamespaceScope>>§search_mode: Option<MemorySearchTraceInputSearchMode>§recipe: Option<MemorySearchTraceInputRecipe>§alpha: Option<f64>§include_top_n_unmatched: Option<Integer>§include_tags: Option<bool>§include_usage: Option<bool>§include_duplicates: Option<bool>§include_superseded: Option<bool>§include_proposed: Option<bool>§explain: Option<Option<bool>>§legs: Option<Option<Vec<MemorySearchTraceInputLegsItem>>>§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<MemorySearchTraceInputReadScope>§entity_filter: Option<Vec<String>>§category: Option<String>§tags_soft: Option<bool>§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>>§demote_tags: Option<Vec<String>>§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<MemorySearchTraceInputKeyMatchMode>>§digest_descent: Option<Option<bool>>§role: Option<String>§top_k: Option<Integer>§key_axis: Option<Option<bool>>§bodies: Option<MemorySearchTraceInputBodies>§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<MemorySearchTraceInputGraphSeed>§diversify: Option<MemorySearchTraceInputDiversify>§diversify_session_cap: Option<Option<Integer>>§summary_cap: Option<Option<Integer>>§chunk_cap_share: Option<Option<f64>>§floor_mode: Option<Option<MemorySearchTraceInputFloorMode>>§min_similarity: Option<Option<f64>>§chunk_max_share: Option<Option<f64>>§personalization: Option<MemorySearchTraceInputPersonalization>§observation_date: Option<String>§rerank: Option<String>§retrieval_budget: Option<MemorySearchTraceInputRetrievalBudget>§hyde: Option<bool>§as_of: Option<Option<String>>§as_of_basis: Option<MemorySearchTraceInputAsOfBasis>

Implementations§

Source§

impl MemorySearchTraceInput

Source

pub fn new(query: impl Into<String>) -> Self

Source

pub fn org(self, org: impl Into<String>) -> Self

Source

pub fn namespace(self, namespace: impl Into<String>) -> Self

Source

pub fn agent(self, agent: impl Into<String>) -> Self

Source

pub fn render(self, render: MemorySearchTraceInputRender) -> Self

Source

pub fn memory_type(self, memory_type: MemorySearchTraceInputMemoryType) -> Self

Source

pub fn memory_type_null(self) -> Self

Source

pub fn tags(self, tags: impl IntoIterator<Item = impl Into<String>>) -> Self

Source

pub fn scope(self, scope: MemorySearchTraceInputScope) -> Self

Source

pub fn namespace_scope( self, namespace_scope: MemorySearchTraceInputNamespaceScope, ) -> Self

Source

pub fn namespace_scope_null(self) -> Self

Source

pub fn search_mode(self, search_mode: MemorySearchTraceInputSearchMode) -> Self

Source

pub fn recipe(self, recipe: MemorySearchTraceInputRecipe) -> Self

Source

pub fn alpha(self, alpha: f64) -> Self

Source

pub fn include_top_n_unmatched( self, include_top_n_unmatched: impl Into<Integer>, ) -> Self

Source

pub fn include_tags(self, include_tags: bool) -> Self

Source

pub fn include_usage(self, include_usage: bool) -> Self

Source

pub fn include_duplicates(self, include_duplicates: bool) -> Self

Source

pub fn include_superseded(self, include_superseded: bool) -> Self

Source

pub fn include_proposed(self, include_proposed: bool) -> Self

Source

pub fn explain(self, explain: bool) -> Self

Source

pub fn explain_null(self) -> Self

Source

pub fn legs(self, legs: Vec<MemorySearchTraceInputLegsItem>) -> Self

Source

pub fn legs_null(self) -> Self

Source

pub fn auto_touch(self, auto_touch: bool) -> Self

Source

pub fn user_id(self, user_id: impl Into<String>) -> Self

Source

pub fn user_id_null(self) -> Self

Source

pub fn run_id(self, run_id: impl Into<String>) -> Self

Source

pub fn run_id_null(self) -> Self

Source

pub fn session_id(self, session_id: impl Into<String>) -> Self

Source

pub fn session_id_null(self) -> Self

Source

pub fn session_ids( self, session_ids: impl IntoIterator<Item = impl Into<String>>, ) -> Self

Source

pub fn exclude_keys( self, exclude_keys: impl IntoIterator<Item = impl Into<String>>, ) -> Self

Source

pub fn quality_filter(self, quality_filter: bool) -> Self

Source

pub fn read_scope(self, read_scope: MemorySearchTraceInputReadScope) -> Self

Source

pub fn entity_filter( self, entity_filter: impl IntoIterator<Item = impl Into<String>>, ) -> Self

Source

pub fn category(self, category: impl Into<String>) -> Self

Source

pub fn tags_soft(self, tags_soft: bool) -> Self

Source

pub fn tag_boost(self, tag_boost: f64) -> Self

Source

pub fn category_soft(self, category_soft: bool) -> Self

Source

pub fn category_boost(self, category_boost: f64) -> Self

Source

pub fn confidence_weight(self, confidence_weight: f64) -> Self

Source

pub fn prior_cap(self, prior_cap: f64) -> Self

Source

pub fn prior_cap_null(self) -> Self

Source

pub fn sensitivity_penalty(self, sensitivity_penalty: f64) -> Self

Source

pub fn sensitivity_penalty_null(self) -> Self

Source

pub fn rrf_adaptive_lexical(self, rrf_adaptive_lexical: bool) -> Self

Source

pub fn rrf_adaptive_lexical_null(self) -> Self

Source

pub fn demote_tags( self, demote_tags: impl IntoIterator<Item = impl Into<String>>, ) -> Self

Source

pub fn reinforcement_weight(self, reinforcement_weight: f64) -> Self

Source

pub fn reinforcement_weight_null(self) -> Self

Source

pub fn recency_pool_weight(self, recency_pool_weight: f64) -> Self

Source

pub fn recency_pool_weight_null(self) -> Self

Source

pub fn reinforcement_half_life_days( self, reinforcement_half_life_days: f64, ) -> Self

Source

pub fn reinforcement_half_life_days_null(self) -> Self

Source

pub fn mention_boost(self, mention_boost: f64) -> Self

Source

pub fn mention_boost_null(self) -> Self

Source

pub fn ground_relative_dates(self, ground_relative_dates: bool) -> Self

Source

pub fn ground_relative_dates_null(self) -> Self

Source

pub fn reinforcement_half_life_use_scale( self, reinforcement_half_life_use_scale: f64, ) -> Self

Source

pub fn reinforcement_half_life_use_scale_null(self) -> Self

Source

pub fn key_match(self, key_match: bool) -> Self

Source

pub fn key_match_null(self) -> Self

Source

pub fn key_match_mode( self, key_match_mode: MemorySearchTraceInputKeyMatchMode, ) -> Self

Source

pub fn key_match_mode_null(self) -> Self

Source

pub fn digest_descent(self, digest_descent: bool) -> Self

Source

pub fn digest_descent_null(self) -> Self

Source

pub fn role(self, role: impl Into<String>) -> Self

Source

pub fn top_k(self, top_k: impl Into<Integer>) -> Self

Source

pub fn key_axis(self, key_axis: bool) -> Self

Source

pub fn key_axis_null(self) -> Self

Source

pub fn bodies(self, bodies: MemorySearchTraceInputBodies) -> Self

Source

pub fn body_budget_tokens(self, body_budget_tokens: impl Into<Integer>) -> Self

Source

pub fn source_span_chars(self, source_span_chars: impl Into<Integer>) -> Self

Source

pub fn paging(self, paging: bool) -> Self

Source

pub fn paging_null(self) -> Self

Source

pub fn page(self, page: impl Into<String>) -> Self

Source

pub fn recent_first(self, recent_first: impl Into<Integer>) -> Self

Source

pub fn anchor_first(self, anchor_first: impl Into<Integer>) -> Self

Source

pub fn per_speaker_quota(self, per_speaker_quota: impl Into<Integer>) -> Self

Source

pub fn per_speaker_quota_null(self) -> Self

Source

pub fn min_body_chars(self, min_body_chars: impl Into<Integer>) -> Self

Source

pub fn graph_seed(self, graph_seed: MemorySearchTraceInputGraphSeed) -> Self

Source

pub fn diversify(self, diversify: MemorySearchTraceInputDiversify) -> Self

Source

pub fn diversify_session_cap( self, diversify_session_cap: impl Into<Integer>, ) -> Self

Source

pub fn diversify_session_cap_null(self) -> Self

Source

pub fn summary_cap(self, summary_cap: impl Into<Integer>) -> Self

Source

pub fn summary_cap_null(self) -> Self

Source

pub fn chunk_cap_share(self, chunk_cap_share: f64) -> Self

Source

pub fn chunk_cap_share_null(self) -> Self

Source

pub fn floor_mode(self, floor_mode: MemorySearchTraceInputFloorMode) -> Self

Source

pub fn floor_mode_null(self) -> Self

Source

pub fn min_similarity(self, min_similarity: f64) -> Self

Source

pub fn min_similarity_null(self) -> Self

Source

pub fn chunk_max_share(self, chunk_max_share: f64) -> Self

Source

pub fn chunk_max_share_null(self) -> Self

Source

pub fn personalization( self, personalization: MemorySearchTraceInputPersonalization, ) -> Self

Source

pub fn observation_date(self, observation_date: impl Into<String>) -> Self

Source

pub fn rerank(self, rerank: impl Into<String>) -> Self

Source

pub fn retrieval_budget( self, retrieval_budget: MemorySearchTraceInputRetrievalBudget, ) -> Self

Source

pub fn hyde(self, hyde: bool) -> Self

Source

pub fn as_of(self, as_of: impl Into<String>) -> Self

Source

pub fn as_of_null(self) -> Self

Source

pub fn as_of_basis(self, as_of_basis: MemorySearchTraceInputAsOfBasis) -> Self

Source

pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<MemorySearchTraceOutput>, CallFailure>

Trait Implementations§

Source§

impl Clone for MemorySearchTraceInput

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MemorySearchTraceInput

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for MemorySearchTraceInput

Source§

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 MemorySearchTraceInput

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for MemorySearchTraceInput

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for MemorySearchTraceInput

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more