pub struct EvalRunOutputItems<'c, C: Config> {
pub eval_id: String,
pub run_id: String,
/* private fields */
}Available on crate feature
evals only.Fields§
§eval_id: String§run_id: StringImplementations§
Source§impl<'c, C: Config> EvalRunOutputItems<'c, C>
impl<'c, C: Config> EvalRunOutputItems<'c, C>
pub fn new(client: &'c Client<C>, eval_id: &str, run_id: &str) -> Self
Sourcepub async fn list(&self) -> Result<EvalRunOutputItemList, OpenAIError>
pub async fn list(&self) -> Result<EvalRunOutputItemList, OpenAIError>
Get a list of output items for an evaluation run. Get a list of output items for an evaluation run.
Sourcepub async fn list_byot<R: DeserializeOwned>(&self) -> Result<R, OpenAIError>
pub async fn list_byot<R: DeserializeOwned>(&self) -> Result<R, OpenAIError>
Get a list of output items for an evaluation run.
Sourcepub async fn retrieve(
&self,
output_item_id: &str,
) -> Result<EvalRunOutputItem, OpenAIError>
pub async fn retrieve( &self, output_item_id: &str, ) -> Result<EvalRunOutputItem, OpenAIError>
Get an evaluation run output item by ID. Get an evaluation run output item by ID.
Sourcepub async fn retrieve_byot<T0: Display, R: DeserializeOwned>(
&self,
output_item_id: T0,
) -> Result<R, OpenAIError>
pub async fn retrieve_byot<T0: Display, R: DeserializeOwned>( &self, output_item_id: T0, ) -> Result<R, OpenAIError>
Get an evaluation run output item by ID.
Trait Implementations§
Source§impl<'c, C: Config> RequestOptionsBuilder for EvalRunOutputItems<'c, C>
Available on crate feature _api only.
impl<'c, C: Config> RequestOptionsBuilder for EvalRunOutputItems<'c, C>
Available on crate feature
_api only.Source§fn options_mut(&mut self) -> &mut RequestOptions
fn options_mut(&mut self) -> &mut RequestOptions
Get mutable reference to RequestOptions (for building)
Source§fn options(&self) -> &RequestOptions
fn options(&self) -> &RequestOptions
Get reference to RequestOptions
Source§fn header<K, V>(self, key: K, value: V) -> Result<Self, OpenAIError>
fn header<K, V>(self, key: K, value: V) -> Result<Self, OpenAIError>
Add a single header to RequestOptions
Auto Trait Implementations§
impl<'c, C> Freeze for EvalRunOutputItems<'c, C>
impl<'c, C> !RefUnwindSafe for EvalRunOutputItems<'c, C>
impl<'c, C> Send for EvalRunOutputItems<'c, C>
impl<'c, C> Sync for EvalRunOutputItems<'c, C>
impl<'c, C> Unpin for EvalRunOutputItems<'c, C>
impl<'c, C> !UnwindSafe for EvalRunOutputItems<'c, C>
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