pub enum SessionCompletionError {
InvalidRequest(AgentLoopError),
StreamingUnsupported,
Completion {
error: String,
context: UserFacingErrorContext,
},
}Expand description
Command completion failure.
Variants§
InvalidRequest(AgentLoopError)
Request-level failure, such as an unknown model override.
StreamingUnsupported
The host does not implement streaming completion.
Completion
Provider/runtime failure with safe classification context.
Fields
§
context: UserFacingErrorContextCredential-free provider/model identity.
Implementations§
Source§impl SessionCompletionError
impl SessionCompletionError
Sourcepub fn into_command_result(self) -> Result<CommandResult>
pub fn into_command_result(self) -> Result<CommandResult>
Convert provider failures into a stable command result while allowing invalid requests to remain hard errors.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SessionCompletionError
impl RefUnwindSafe for SessionCompletionError
impl Send for SessionCompletionError
impl Sync for SessionCompletionError
impl Unpin for SessionCompletionError
impl UnsafeUnpin for SessionCompletionError
impl UnwindSafe for SessionCompletionError
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