#[non_exhaustive]pub struct ContextPackInput {Show 23 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: Option<String>,
pub situation: Option<String>,
pub procedure_explore_rate: Option<Option<f64>>,
pub token_budget: Option<Integer>,
pub top_k: Option<Integer>,
pub read_scope: Option<ContextPackInputReadScope>,
pub mode: Option<ContextPackInputMode>,
pub include_knowledge: Option<bool>,
pub include_conversations: Option<bool>,
pub include_runs: Option<bool>,
pub runs_limit: Option<Integer>,
pub include_chunks: Option<bool>,
pub section_token_budgets: Option<HashMap<String, Integer>>,
pub block_order: Option<Vec<String>>,
pub session_block: Option<String>,
pub only_sections: Option<Vec<ContextPackInputOnlySectionsItem>>,
pub include_decisions: 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: Option<String>§situation: Option<String>§procedure_explore_rate: Option<Option<f64>>§token_budget: Option<Integer>§top_k: Option<Integer>§read_scope: Option<ContextPackInputReadScope>§mode: Option<ContextPackInputMode>§include_knowledge: Option<bool>§include_conversations: Option<bool>§include_runs: Option<bool>§runs_limit: Option<Integer>§include_chunks: Option<bool>§section_token_budgets: Option<HashMap<String, Integer>>§block_order: Option<Vec<String>>§session_block: Option<String>§only_sections: Option<Vec<ContextPackInputOnlySectionsItem>>§include_decisions: Option<bool>Implementations§
Source§impl ContextPackInput
impl ContextPackInput
pub fn new() -> 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 query(self, query: impl Into<String>) -> Self
pub fn situation(self, situation: impl Into<String>) -> Self
pub fn procedure_explore_rate(self, procedure_explore_rate: f64) -> Self
pub fn procedure_explore_rate_null(self) -> Self
pub fn token_budget(self, token_budget: impl Into<Integer>) -> Self
pub fn top_k(self, top_k: impl Into<Integer>) -> Self
pub fn read_scope(self, read_scope: ContextPackInputReadScope) -> Self
pub fn mode(self, mode: ContextPackInputMode) -> Self
pub fn include_knowledge(self, include_knowledge: bool) -> Self
pub fn include_conversations(self, include_conversations: bool) -> Self
pub fn include_runs(self, include_runs: bool) -> Self
pub fn runs_limit(self, runs_limit: impl Into<Integer>) -> Self
pub fn include_chunks(self, include_chunks: bool) -> Self
pub fn section_token_budgets( self, section_token_budgets: HashMap<String, Integer>, ) -> Self
pub fn block_order( self, block_order: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn session_block(self, session_block: impl Into<String>) -> Self
pub fn only_sections( self, only_sections: Vec<ContextPackInputOnlySectionsItem>, ) -> Self
pub fn include_decisions(self, include_decisions: bool) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<ContextPackOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for ContextPackInput
impl Clone for ContextPackInput
Source§impl Debug for ContextPackInput
impl Debug for ContextPackInput
Source§impl Default for ContextPackInput
impl Default for ContextPackInput
Source§impl<'de> Deserialize<'de> for ContextPackInput
impl<'de> Deserialize<'de> for ContextPackInput
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 ContextPackInput
impl PartialEq for ContextPackInput
Source§impl Serialize for ContextPackInput
impl Serialize for ContextPackInput
impl StructuralPartialEq for ContextPackInput
Auto Trait Implementations§
impl Forget for ContextPackInput
impl Freeze for ContextPackInput
impl Move for ContextPackInput
impl RefUnwindSafe for ContextPackInput
impl Send for ContextPackInput
impl Sync for ContextPackInput
impl Unpin for ContextPackInput
impl UnsafeUnpin for ContextPackInput
impl UnwindSafe for ContextPackInput
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