#[non_exhaustive]pub enum PromptResolution {
Answered,
Withdrawn,
}Expand description
How an ask ended (AgentEvent::PromptResolved).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Answered
An answer reached the engine and was taken.
Withdrawn
The engine stopped waiting with no answer: the prompt timed out, the turn asking it was cancelled or ended, or the session is closing.
Trait Implementations§
Source§impl Clone for PromptResolution
impl Clone for PromptResolution
impl Copy for PromptResolution
Source§impl Debug for PromptResolution
impl Debug for PromptResolution
Source§impl<'de> Deserialize<'de> for PromptResolution
impl<'de> Deserialize<'de> for PromptResolution
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
impl Eq for PromptResolution
Source§impl JsonSchema for PromptResolution
impl JsonSchema for PromptResolution
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PromptResolution
impl PartialEq for PromptResolution
Source§impl Serialize for PromptResolution
impl Serialize for PromptResolution
impl StructuralPartialEq for PromptResolution
Auto Trait Implementations§
impl Forget for PromptResolution
impl Freeze for PromptResolution
impl Move for PromptResolution
impl RefUnwindSafe for PromptResolution
impl Send for PromptResolution
impl Sync for PromptResolution
impl Unpin for PromptResolution
impl UnsafeUnpin for PromptResolution
impl UnwindSafe for PromptResolution
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