pub struct FewShotExample {
pub input: String,
pub output: String,
}Expand description
An example for few-shot prompting, consisting of input/output pairs.
Fields§
§input: String§output: StringTrait Implementations§
Source§impl Clone for FewShotExample
impl Clone for FewShotExample
Source§fn clone(&self) -> FewShotExample
fn clone(&self) -> FewShotExample
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 moreAuto Trait Implementations§
impl Freeze for FewShotExample
impl RefUnwindSafe for FewShotExample
impl Send for FewShotExample
impl Sync for FewShotExample
impl Unpin for FewShotExample
impl UnsafeUnpin for FewShotExample
impl UnwindSafe for FewShotExample
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