pub enum Request {
CancellationSupported,
Cancellable {
id: u64,
request: Box<Request>,
},
Cancel {
id: u64,
},
Complete {
profile_id: String,
model_id: String,
request: ModelRequest,
timeout_ms: u64,
stream: bool,
},
CompleteDefault {
request: ModelRequest,
timeout_ms: u64,
stream: bool,
},
Trace {
trace: PlanTrace,
event: TraceEvent,
at_unix_ms: Option<u64>,
},
AnalyzeImage {
profile_id: String,
model_id: String,
image: VisionImage,
},
ClusterFaces {
profile_id: String,
model_id: String,
images: Vec<FaceImage>,
},
SegmentSubject {
image: VisionImage,
},
ListModels {
profile_id: String,
},
}Expand description
A request that can cross the sandbox boundary. A server also authenticates the launcher-provided app preamble. No request carries a provider key: this computer keeps none.
Variants§
CancellationSupported
Negotiate reusable, per-operation cancellation before starting work. Older gateways reject this verb; clients must not start paid work then.
Cancellable
Native connection-local operation identity. Not an authentication claim.
Cancel
Cancel only the matching operation on this authenticated connection. The acknowledgement is a synchronization barrier, even after completion.
Complete
Provider-neutral completion, asked of the person’s own model on their workspace’s server. The provider and model it names are this computer’s description of the caller’s choice; the server answers with the model the person chose there.
CompleteDefault
Provider-neutral completion with the person’s default model, asked on their workspace’s server.
Trace
A content-free timing mark from the agent (whose own stderr a managed launch discards), written to the gateway’s timing log. Older RPC3 servers reject this additive verb; callers ignore the refusal.
Fields
event: TraceEventAnalyzeImage
Fixed-shape, device-local visual analysis for Photos. The gateway owns the prompt and refuses hosted, unpinned, or non-vision profiles; a sandboxed caller never obtains direct network access.
ClusterFaces
Fixed, consent-guarded face detection and clustering. The gateway owns the request schema and admits it only for the signed local face model. It returns opaque cluster/photo membership; no embedding, crop, face rectangle, identity name, or raw path can cross this boundary.
SegmentSubject
Find the subject of one bounded picture with the on-device
segmentation model the person installed (Settings › Models). The
gateway runs the model itself, on the CPU; no model file, path or
network reaches the caller, and nothing leaves the device. Answers a
SubjectMatte as JSON. Older servers reject this verb; callers
treat that as no model.
Fields
image: VisionImageListModels
The models a provider offers, asked with its stored key or sign-in:
Settings’ model list and connection test. Answers the models as JSON
(ModelDescriptors); a failure names its kind, never what the
provider wrote. Older gateways reject this verb.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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>,
Auto Trait Implementations§
impl Forget for Request
impl Freeze for Requestwhere
*const Request is !null: Freeze,
PhantomData<Request>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Message>: Freeze,
PhantomData<ToolDefinition>: Freeze,
PhantomData<FaceImage>: Freeze,
impl Move for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Requestwhere
*const Request is !null: UnsafeUnpin,
PhantomData<Request>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Message>: UnsafeUnpin,
PhantomData<ToolDefinition>: UnsafeUnpin,
PhantomData<FaceImage>: UnsafeUnpin,
impl UnwindSafe for Request
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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