pub struct ClassificationRequest {
pub text: String,
pub context: Option<HashMap<String, String>>,
pub include_alternatives: bool,
pub include_reasoning: bool,
}
Expand description
Intent classification request
Fields§
§text: String
The text to classify
context: Option<HashMap<String, String>>
Optional context information
include_alternatives: bool
Whether to include alternative intents in the response
include_reasoning: bool
Whether to include reasoning in the response
Trait Implementations§
Source§impl Clone for ClassificationRequest
impl Clone for ClassificationRequest
Source§fn clone(&self) -> ClassificationRequest
fn clone(&self) -> ClassificationRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClassificationRequest
impl Debug for ClassificationRequest
Source§impl<'de> Deserialize<'de> for ClassificationRequest
impl<'de> Deserialize<'de> for ClassificationRequest
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
Auto Trait Implementations§
impl Freeze for ClassificationRequest
impl RefUnwindSafe for ClassificationRequest
impl Send for ClassificationRequest
impl Sync for ClassificationRequest
impl Unpin for ClassificationRequest
impl UnwindSafe for ClassificationRequest
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