#[non_exhaustive]pub enum StopHint {
MaxTokens,
MaxTurnRequests,
}Expand description
Reason why the agent turn ended early.
Emitted by the agent loop when a non-default terminal condition is detected.
Consumers (e.g. the ACP layer) map this to the protocol-level StopReason.
§Examples
use zeph_common::StopHint;
let hint = StopHint::MaxTokens;
assert!(matches!(hint, StopHint::MaxTokens));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.
MaxTokens
The LLM response was cut off by the token limit.
MaxTurnRequests
The turn loop exhausted max_turns without a final text response.
Trait Implementations§
impl Copy for StopHint
impl Eq for StopHint
impl StructuralPartialEq for StopHint
Auto Trait Implementations§
impl Freeze for StopHint
impl RefUnwindSafe for StopHint
impl Send for StopHint
impl Sync for StopHint
impl Unpin for StopHint
impl UnsafeUnpin for StopHint
impl UnwindSafe for StopHint
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