pub struct SyntheticClient { /* private fields */ }Implementations§
Source§impl SyntheticClient
impl SyntheticClient
pub async fn generate( &self, request: GenerateSyntheticDataRequest, options: Option<&RequestOptions>, ) -> Result<GenerateSyntheticDataResponse, Error>
Sourcepub async fn export_jsonl(
&self,
request: &Value,
options: Option<&RequestOptions>,
) -> Result<ExportJsonlResponse, Error>
pub async fn export_jsonl( &self, request: &Value, options: Option<&RequestOptions>, ) -> Result<ExportJsonlResponse, Error>
Export a previously-generated set as JSONL. Backend accepts free-form input.
pub async fn verify_faithfulness( &self, request: VerifyFaithfulnessRequest, options: Option<&RequestOptions>, ) -> Result<VerifyFaithfulnessResponse, Error>
pub async fn verbalize( &self, request: VerbalizeTermRequest, options: Option<&RequestOptions>, ) -> Result<VerbalizeTermResponse, Error>
pub async fn generation_prompt( &self, request: GenerationPromptRequest, options: Option<&RequestOptions>, ) -> Result<GenerationPromptResponse, Error>
pub async fn negatives( &self, request: GenerateNegativesRequest, options: Option<&RequestOptions>, ) -> Result<GenerateNegativesResponse, Error>
pub async fn verify_round_trip( &self, request: VerifyRoundTripRequest, options: Option<&RequestOptions>, ) -> Result<VerifyRoundTripResponse, Error>
pub async fn check_diversity( &self, request: CheckDiversityRequest, options: Option<&RequestOptions>, ) -> Result<CheckDiversityResponse, Error>
Sourcepub async fn calibrate(
&self,
request: &Value,
options: Option<&RequestOptions>,
) -> Result<CalibrationReportDto, Error>
pub async fn calibrate( &self, request: &Value, options: Option<&RequestOptions>, ) -> Result<CalibrationReportDto, Error>
Calibration takes free-form configuration; response is the calibration report.
Trait Implementations§
Source§impl Clone for SyntheticClient
impl Clone for SyntheticClient
Source§fn clone(&self) -> SyntheticClient
fn clone(&self) -> SyntheticClient
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 SyntheticClient
impl !RefUnwindSafe for SyntheticClient
impl Send for SyntheticClient
impl Sync for SyntheticClient
impl Unpin for SyntheticClient
impl UnsafeUnpin for SyntheticClient
impl !UnwindSafe for SyntheticClient
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