pub enum InputRequestKind {
Elicitation,
Sampling,
Roots,
}Expand description
Which of the three MRTR input-request kinds an entry is.
Carried alongside an InputRequest so a response can be decoded
KIND-DIRECTED (InputResponse::decode_for) instead of guessed from an
overlapping untagged shape (T-113-46).
§The serde spelling is EXPLICIT and STABLE, and never appears on the wire
These three strings travel in exactly one place: inside the AEAD-sealed
requestState continuation, as the server’s own record of which kind it
requested under each inputRequests key (D-113-O). They are never emitted on
the public JSON-RPC wire — the wire spelling of a kind is its
wire_method, which is unchanged.
They are spelled with per-variant rename rather than a container-level
rename_all so that a future container attribute cannot silently re-spell
them. That matters because a token minted by one build is presented to
another during a rolling deploy: a changed spelling would make every
in-flight continuation’s kinds map undecodable, which — under
Continuation’s
absent-means-pre-kinds rule — is a HARD failure, not a graceful degradation.
Variants§
Elicitation
elicitation/create — ask the user for structured input.
Sampling
sampling/createMessage — ask the client’s model for a completion.
Roots
roots/list — ask the client for its filesystem roots.
Implementations§
Source§impl InputRequestKind
impl InputRequestKind
Sourcepub const fn wire_method(self) -> &'static str
pub const fn wire_method(self) -> &'static str
The JSON-RPC method string this kind travels as on the wire.
Trait Implementations§
Source§impl Clone for InputRequestKind
impl Clone for InputRequestKind
impl Copy for InputRequestKind
Source§impl Debug for InputRequestKind
impl Debug for InputRequestKind
Source§impl<'de> Deserialize<'de> for InputRequestKind
impl<'de> Deserialize<'de> for InputRequestKind
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>,
impl Eq for InputRequestKind
Source§impl Hash for InputRequestKind
impl Hash for InputRequestKind
Source§impl PartialEq for InputRequestKind
impl PartialEq for InputRequestKind
Source§impl Serialize for InputRequestKind
impl Serialize for InputRequestKind
impl StructuralPartialEq for InputRequestKind
Auto Trait Implementations§
impl Freeze for InputRequestKind
impl RefUnwindSafe for InputRequestKind
impl Send for InputRequestKind
impl Sync for InputRequestKind
impl Unpin for InputRequestKind
impl UnsafeUnpin for InputRequestKind
impl UnwindSafe for InputRequestKind
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.