#[non_exhaustive]pub struct ProcedureMatchInput {Show 16 fields
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub user_id: Option<String>,
pub session_id: Option<String>,
pub situation: String,
pub top_k: Option<Integer>,
pub tags: Option<Vec<String>>,
pub namespace_scope: Option<ProcedureMatchInputNamespaceScope>,
pub templates_only: Option<bool>,
pub include_candidates: Option<bool>,
pub include_quarantined: Option<bool>,
pub recent_tools: Option<Vec<String>>,
pub tool_boost: Option<f64>,
pub utility_weight: Option<Option<f64>>,
pub goal: Option<Option<String>>,
}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>§situation: String§top_k: Option<Integer>§namespace_scope: Option<ProcedureMatchInputNamespaceScope>§templates_only: Option<bool>§include_candidates: Option<bool>§include_quarantined: Option<bool>§recent_tools: Option<Vec<String>>§tool_boost: Option<f64>§utility_weight: Option<Option<f64>>§goal: Option<Option<String>>Implementations§
Source§impl ProcedureMatchInput
impl ProcedureMatchInput
pub fn new(situation: 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(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 top_k(self, top_k: impl Into<Integer>) -> Self
pub fn namespace_scope( self, namespace_scope: ProcedureMatchInputNamespaceScope, ) -> Self
pub fn templates_only(self, templates_only: bool) -> Self
pub fn include_candidates(self, include_candidates: bool) -> Self
pub fn include_quarantined(self, include_quarantined: bool) -> Self
pub fn recent_tools( self, recent_tools: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn tool_boost(self, tool_boost: f64) -> Self
pub fn utility_weight(self, utility_weight: f64) -> Self
pub fn utility_weight_null(self) -> Self
pub fn goal(self, goal: impl Into<String>) -> Self
pub fn goal_null(self) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<ProcedureMatchOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for ProcedureMatchInput
impl Clone for ProcedureMatchInput
Source§impl Debug for ProcedureMatchInput
impl Debug for ProcedureMatchInput
Source§impl<'de> Deserialize<'de> for ProcedureMatchInput
impl<'de> Deserialize<'de> for ProcedureMatchInput
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 ProcedureMatchInput
impl PartialEq for ProcedureMatchInput
Source§impl Serialize for ProcedureMatchInput
impl Serialize for ProcedureMatchInput
impl StructuralPartialEq for ProcedureMatchInput
Auto Trait Implementations§
impl Forget for ProcedureMatchInput
impl Freeze for ProcedureMatchInput
impl Move for ProcedureMatchInput
impl RefUnwindSafe for ProcedureMatchInput
impl Send for ProcedureMatchInput
impl Sync for ProcedureMatchInput
impl Unpin for ProcedureMatchInput
impl UnsafeUnpin for ProcedureMatchInput
impl UnwindSafe for ProcedureMatchInput
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