#[non_exhaustive]pub struct MemorySetFromMessagesInput {Show 24 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 messages: Vec<Message>,
pub extra_tags: Option<Vec<String>>,
pub recalled_keys: Option<Vec<String>>,
pub session_values: Option<Vec<String>>,
pub max_tokens: Option<Integer>,
pub judge_extraction: Option<bool>,
pub record_schema: Option<Option<HashMap<String, MemorySetFromMessagesInputRecordSchemaValue>>>,
pub memory_key: Option<Option<String>>,
pub observation_date: Option<String>,
pub llm_cache: Option<Option<bool>>,
pub detect_updates: Option<Option<bool>>,
pub last_messages: Option<Vec<Message>>,
pub extraction_instructions: Option<String>,
pub coverage_sweep: Option<Option<bool>>,
pub agent_learnings: Option<Option<bool>>,
pub pipeline_steps: Option<Vec<HashMap<String, Value>>>,
pub valid_at: Option<Option<String>>,
pub defer: 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>§messages: Vec<Message>§recalled_keys: Option<Vec<String>>§session_values: Option<Vec<String>>§max_tokens: Option<Integer>§judge_extraction: Option<bool>§record_schema: Option<Option<HashMap<String, MemorySetFromMessagesInputRecordSchemaValue>>>§memory_key: Option<Option<String>>§observation_date: Option<String>§llm_cache: Option<Option<bool>>§detect_updates: Option<Option<bool>>§last_messages: Option<Vec<Message>>§extraction_instructions: Option<String>§coverage_sweep: Option<Option<bool>>§agent_learnings: Option<Option<bool>>§pipeline_steps: Option<Vec<HashMap<String, Value>>>§valid_at: Option<Option<String>>§defer: Option<bool>Implementations§
Source§impl MemorySetFromMessagesInput
impl MemorySetFromMessagesInput
pub fn new(messages: Vec<Message>) -> 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 recalled_keys( self, recalled_keys: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn session_values( self, session_values: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn max_tokens(self, max_tokens: impl Into<Integer>) -> Self
pub fn judge_extraction(self, judge_extraction: bool) -> Self
pub fn record_schema( self, record_schema: HashMap<String, MemorySetFromMessagesInputRecordSchemaValue>, ) -> Self
pub fn record_schema_null(self) -> Self
pub fn memory_key(self, memory_key: impl Into<String>) -> Self
pub fn memory_key_null(self) -> Self
pub fn observation_date(self, observation_date: impl Into<String>) -> Self
pub fn llm_cache(self, llm_cache: bool) -> Self
pub fn llm_cache_null(self) -> Self
pub fn detect_updates(self, detect_updates: bool) -> Self
pub fn detect_updates_null(self) -> Self
pub fn last_messages(self, last_messages: Vec<Message>) -> Self
pub fn extraction_instructions( self, extraction_instructions: impl Into<String>, ) -> Self
pub fn coverage_sweep(self, coverage_sweep: bool) -> Self
pub fn coverage_sweep_null(self) -> Self
pub fn agent_learnings(self, agent_learnings: bool) -> Self
pub fn agent_learnings_null(self) -> Self
pub fn pipeline_steps(self, pipeline_steps: Vec<HashMap<String, Value>>) -> Self
pub fn valid_at(self, valid_at: impl Into<String>) -> Self
pub fn valid_at_null(self) -> Self
pub fn defer(self, defer: bool) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<MemorySetFromMessagesOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for MemorySetFromMessagesInput
impl Clone for MemorySetFromMessagesInput
Source§impl Debug for MemorySetFromMessagesInput
impl Debug for MemorySetFromMessagesInput
Source§impl<'de> Deserialize<'de> for MemorySetFromMessagesInput
impl<'de> Deserialize<'de> for MemorySetFromMessagesInput
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
impl StructuralPartialEq for MemorySetFromMessagesInput
Auto Trait Implementations§
impl Forget for MemorySetFromMessagesInput
impl Freeze for MemorySetFromMessagesInput
impl Move for MemorySetFromMessagesInput
impl RefUnwindSafe for MemorySetFromMessagesInput
impl Send for MemorySetFromMessagesInput
impl Sync for MemorySetFromMessagesInput
impl Unpin for MemorySetFromMessagesInput
impl UnsafeUnpin for MemorySetFromMessagesInput
impl UnwindSafe for MemorySetFromMessagesInput
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