pub struct Judge {
pub backend: Backend,
pub command: Option<Vec<String>>,
pub key_file: Option<String>,
pub key_cmd: Option<Vec<String>>,
pub key_env: Option<String>,
pub model: String,
pub endpoint: String,
pub budget_ms: u64,
pub usd_per_mtok_in: f64,
pub weight: f64,
}Expand description
One judge: where a decision is sent and how.
Fields§
§backend: Backend§command: Option<Vec<String>>§key_file: Option<String>§key_cmd: Option<Vec<String>>§key_env: Option<String>An environment variable holding the key.
model: String§endpoint: String§budget_ms: u64§usd_per_mtok_in: f64§weight: f64This judge’s weight in a pool.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Judge
impl<'de> Deserialize<'de> for Judge
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
impl StructuralPartialEq for Judge
Auto Trait Implementations§
impl Freeze for Judge
impl RefUnwindSafe for Judge
impl Send for Judge
impl Sync for Judge
impl Unpin for Judge
impl UnsafeUnpin for Judge
impl UnwindSafe for Judge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more