pub struct XFormat(/* private fields */);Implementations§
Methods from Deref<Target = CategoricalFormat>§
pub fn clone(&self) -> Self
pub fn answer(&mut self, response: String)
pub async fn llm( &mut self, authorization: &CredentialsOrApiKey, model: Text, options: LlmOptions, ) -> Result<TextResponse>
pub fn get_categories(&self) -> &[String]
pub fn get_response(&self) -> Option<String>
pub fn to_json(&self) -> Value
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for XFormat
impl !UnwindSafe for XFormat
impl Forget for XFormat
impl Freeze for XFormat
impl Send for XFormat
impl Sync for XFormat
impl Unpin for XFormat
impl UnsafeUnpin for XFormat
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