pub struct SystemOneRequest {
pub model: Option<String>,
pub state: Value,
pub questions: OrderedEntries<SystemOneQuestion>,
pub images: Vec<String>,
pub temperature: Option<f64>,
}Expand description
A System One request. Up to 64 questions; see SystemOneQuestion for the
per-type limits.
Fields§
§model: Option<String>Defaults to the only supported model, glm-5-3-flash.
state: ValueAny JSON; embedded in the prompt as given.
questions: OrderedEntries<SystemOneQuestion>§images: Vec<String>Up to 4 data: image URLs, 4 MiB each and 8 MiB in total, shown with the state.
temperature: Option<f64>Calibration temperature override; 1 returns the raw probabilities.
Implementations§
Source§impl SystemOneRequest
impl SystemOneRequest
pub fn new(state: Value) -> Self
pub fn with_question( self, name: impl Into<String>, question: SystemOneQuestion, ) -> Self
pub fn with_model(self, model: impl Into<String>) -> Self
pub fn with_image(self, data_url: impl Into<String>) -> Self
pub fn with_temperature(self, temperature: f64) -> Self
Trait Implementations§
Source§impl Clone for SystemOneRequest
impl Clone for SystemOneRequest
Source§impl Debug for SystemOneRequest
impl Debug for SystemOneRequest
Source§impl<'de> Deserialize<'de> for SystemOneRequest
impl<'de> Deserialize<'de> for SystemOneRequest
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
Source§impl PartialEq for SystemOneRequest
impl PartialEq for SystemOneRequest
Source§impl Serialize for SystemOneRequest
impl Serialize for SystemOneRequest
impl StructuralPartialEq for SystemOneRequest
Auto Trait Implementations§
impl Freeze for SystemOneRequest
impl RefUnwindSafe for SystemOneRequest
impl Send for SystemOneRequest
impl Sync for SystemOneRequest
impl Unpin for SystemOneRequest
impl UnsafeUnpin for SystemOneRequest
impl UnwindSafe for SystemOneRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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