pub struct SystemOneRequest {
pub model: String,
pub state: Value,
pub questions: IndexMap<String, Question>,
pub assets: IndexMap<String, ImageAsset>,
pub long_context: bool,
}Expand description
A System One request.
Fields§
§model: String§state: Value§questions: IndexMap<String, Question>§assets: IndexMap<String, ImageAsset>§long_context: boolSend TypeSafe-Danger-Zone-Long-Context: true (262k-token limits, slower).
Implementations§
Source§impl SystemOneRequest
impl SystemOneRequest
pub fn new(model: impl Into<String>, state: Json) -> Self
pub fn question(self, name: impl Into<String>, question: Question) -> Self
pub fn asset(self, reference: impl Into<String>, asset: ImageAsset) -> Self
Sourcepub fn needs_images_header(&self) -> bool
pub fn needs_images_header(&self) -> bool
Whether the images header must be sent.
Trait Implementations§
Source§impl Clone for SystemOneRequest
impl Clone for SystemOneRequest
Source§impl Debug for SystemOneRequest
impl Debug for SystemOneRequest
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 Forget for SystemOneRequest
impl Freeze for SystemOneRequest
impl Move 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<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