Skip to main content

MemoryAskInput

Struct MemoryAskInput 

Source
#[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>>§tags: Option<Vec<String>>§tags_soft: Option<bool>§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

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 user_id(self, user_id: impl Into<String>) -> Self

Source

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

Source

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

Source

pub fn memory_type(self, memory_type: MemoryAskInputMemoryType) -> 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 tags_soft(self, tags_soft: bool) -> Self

Source

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

Source

pub fn tag_boost_null(self) -> Self

Source

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

Source

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

Source

pub fn bodies_null(self) -> Self

Source

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

Source

pub fn body_budget_tokens_null(self) -> Self

Source

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

Source

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

Source

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

Source

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

Source

pub fn reinforcement_weight_null(self) -> Self

Source

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

Source

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

Source

pub fn namespace_scope_null(self) -> Self

Source

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

Source

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

Source

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

Source

pub fn sensitivity_penalty_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 rrf_adaptive_lexical(self, rrf_adaptive_lexical: bool) -> Self

Source

pub fn rrf_adaptive_lexical_null(self) -> Self

Source

pub fn personalization( self, personalization: MemoryAskInputPersonalization, ) -> 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: MemoryAskInputAsOfBasis) -> Self

Source

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

Source

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

Source

pub fn precedents_null(self) -> Self

Source

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

Source

pub fn llm_cache_null(self) -> Self

Source

pub fn depth(self, depth: MemoryAskInputDepth) -> Self

Source

pub fn deep_select(self, deep_select: MemoryAskInputDeepSelect) -> Self

Source

pub fn deep_select_null(self) -> Self

Source

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

Source

pub fn deep_first_null(self) -> Self

Source

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

Source

pub fn recount_null(self) -> Self

Source

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

Source

pub fn token_budget_null(self) -> Self

Source

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

Source

pub fn personalize_null(self) -> Self

Source

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

Source

pub fn window_rel_floor_null(self) -> Self

Source

pub fn decompose(self, decompose: MemoryAskInputDecompose) -> Self

Source

pub fn world_knowledge( self, world_knowledge: MemoryAskInputWorldKnowledge, ) -> Self

Source

pub fn consistency(self, consistency: MemoryAskInputConsistency) -> Self

Source

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

Source

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

Source

pub fn route_prior_max_cheap_null(self) -> Self

Source

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

Source

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

Source

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

Source

pub fn default_answer_chars_null(self) -> Self

Source

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

Source

pub fn digest_descent_null(self) -> Self

Source

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

Source

pub fn presupposition_rule_null(self) -> Self

Source

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

Source

pub fn set_window_null(self) -> Self

Source

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

Source

pub fn knowledge_null(self) -> Self

Source

pub fn recent_messages(self, recent_messages: Vec<RecentMessage>) -> Self

Source

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

Source

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

Source

pub fn gh_items_fallback_null(self) -> Self

Source

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

Trait Implementations§

Source§

impl Clone for MemoryAskInput

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 MemoryAskInput

Source§

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

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

impl<'de> Deserialize<'de> for MemoryAskInput

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 MemoryAskInput

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 MemoryAskInput

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 MemoryAskInput

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