pub struct CompleteBody {
pub context: String,
pub app: Option<String>,
pub control: Option<String>,
pub agent_id: Option<String>,
}Expand description
POST /api/predict/complete request body. context is the text immediately
before the caret (the model context). app is the focused process name (for
the allowlist). control is the focused control’s localized type (for the
secure-field denylist). agent_id optionally overrides the model.
Fields§
§context: String§app: Option<String>§control: Option<String>§agent_id: Option<String>Trait Implementations§
Source§impl Debug for CompleteBody
impl Debug for CompleteBody
Source§impl<'de> Deserialize<'de> for CompleteBody
impl<'de> Deserialize<'de> for CompleteBody
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
Auto Trait Implementations§
impl Freeze for CompleteBody
impl RefUnwindSafe for CompleteBody
impl Send for CompleteBody
impl Sync for CompleteBody
impl Unpin for CompleteBody
impl UnsafeUnpin for CompleteBody
impl UnwindSafe for CompleteBody
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