pub enum ModelStreamViolation {
EventBeforeStart,
MissingStart,
DuplicateStart,
MissingTerminal,
EventAfterTerminal,
DuplicateToolIndex,
UnknownToolIndex,
ToolIdentityMismatch,
IncompleteToolCalls,
UnknownHostedCitation,
}Expand description
Normalized stream grammar violation.
Variants§
EventBeforeStart
A non-start event appeared before Started.
MissingStart
No start event was observed.
DuplicateStart
More than one start event appeared.
MissingTerminal
Stream ended without success or failure.
EventAfterTerminal
An event appeared after success or failure.
DuplicateToolIndex
A response-local tool index was started more than once concurrently.
UnknownToolIndex
A tool fragment or completion references no active call.
ToolIdentityMismatch
Tool index, provider ID, or name changed within one call.
IncompleteToolCalls
Successful termination left one or more calls incomplete.
UnknownHostedCitation
A citation references no completed provider-hosted activity.
Trait Implementations§
Source§impl Clone for ModelStreamViolation
impl Clone for ModelStreamViolation
Source§fn clone(&self) -> ModelStreamViolation
fn clone(&self) -> ModelStreamViolation
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 ModelStreamViolation
Source§impl Debug for ModelStreamViolation
impl Debug for ModelStreamViolation
Source§impl Display for ModelStreamViolation
impl Display for ModelStreamViolation
impl Eq for ModelStreamViolation
Source§impl Error for ModelStreamViolation
impl Error for ModelStreamViolation
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()
Source§impl PartialEq for ModelStreamViolation
impl PartialEq for ModelStreamViolation
impl StructuralPartialEq for ModelStreamViolation
Auto Trait Implementations§
impl Freeze for ModelStreamViolation
impl RefUnwindSafe for ModelStreamViolation
impl Send for ModelStreamViolation
impl Sync for ModelStreamViolation
impl Unpin for ModelStreamViolation
impl UnsafeUnpin for ModelStreamViolation
impl UnwindSafe for ModelStreamViolation
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