pub enum PromptClass {
Faq,
Reasoning,
Code,
Document,
Batch,
General,
}Expand description
Broad classification of a prompt’s intent and resource requirements.
Variants§
Faq
Short, simple questions with a known answer pattern. Routes to the fast pipeline for minimal latency.
Reasoning
Multi-step reasoning, analysis, or planning tasks. Routes to the reasoning pipeline for quality.
Code
Code generation, review, or debugging requests. Routes to the code-specialised pipeline.
Document
Long-form document processing (summarisation, translation, extraction). Routes to the batch pipeline for throughput.
Batch
Background / offline work — latency-insensitive.
General
Catch-all: no strong classification signal.
Trait Implementations§
Source§impl Clone for PromptClass
impl Clone for PromptClass
Source§fn clone(&self) -> PromptClass
fn clone(&self) -> PromptClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PromptClass
Source§impl Debug for PromptClass
impl Debug for PromptClass
Source§impl<'de> Deserialize<'de> for PromptClass
impl<'de> Deserialize<'de> for PromptClass
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 Display for PromptClass
impl Display for PromptClass
impl Eq for PromptClass
Source§impl Hash for PromptClass
impl Hash for PromptClass
Source§impl PartialEq for PromptClass
impl PartialEq for PromptClass
Source§fn eq(&self, other: &PromptClass) -> bool
fn eq(&self, other: &PromptClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PromptClass
impl Serialize for PromptClass
impl StructuralPartialEq for PromptClass
Auto Trait Implementations§
impl Freeze for PromptClass
impl RefUnwindSafe for PromptClass
impl Send for PromptClass
impl Sync for PromptClass
impl Unpin for PromptClass
impl UnsafeUnpin for PromptClass
impl UnwindSafe for PromptClass
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
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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
Compare self to
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request