pub enum PromptStdinError {
AdmissionTimeout {
timeout: Duration,
},
Rejected {
reason: UiCreateAgentRejection,
message: String,
},
PromptFailed {
stage: AgentPromptFailureStage,
message: String,
},
ExecutionFailed {
message: String,
},
}Expand description
Terminal failure while admitting or executing a one-shot stdin prompt.
Variants§
AdmissionTimeout
The harness did not acknowledge create admission before its deadline.
Rejected
The harness rejected the correlated create request.
Fields
§
reason: UiCreateAgentRejectionStable protocol rejection category.
PromptFailed
The accepted initial prompt failed after create admission completed.
Fields
§
stage: AgentPromptFailureStageLifecycle stage that failed.
ExecutionFailed
The correlated provider execution reached an unsuccessful terminal.
Trait Implementations§
Source§impl Debug for PromptStdinError
impl Debug for PromptStdinError
Source§impl Display for PromptStdinError
impl Display for PromptStdinError
Source§impl Error for PromptStdinError
impl Error for PromptStdinError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PromptStdinError
impl RefUnwindSafe for PromptStdinError
impl Send for PromptStdinError
impl Sync for PromptStdinError
impl Unpin for PromptStdinError
impl UnsafeUnpin for PromptStdinError
impl UnwindSafe for PromptStdinError
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