pub enum ProviderStopReason {
EndTurn,
MaxTokens,
MaxTurnRequests,
Refusal,
Cancelled,
Other {
value: String,
},
ProviderError {
code: i32,
message: String,
vendor_code: Option<String>,
},
}Expand description
Why an ACP turn stopped – mirrors gate4agent’s own StopReason
(src/core/types.rs) one-for-one; this crate cannot depend on
gate4agent (see this crate’s own CLAUDE.md), the same reason every
other wire-typed mirror here exists (ProviderRateLimitKind,
ProviderInteractionOption, …). ProviderError is synthesized
locally by gate4agent’s ACP session when session/prompt itself
answers with a JSON-RPC error instead of a normal response – see that
type’s own doc comment for the live Codex fixture this shape was
measured against.
Variants§
Trait Implementations§
Source§impl Clone for ProviderStopReason
impl Clone for ProviderStopReason
Source§impl Debug for ProviderStopReason
impl Debug for ProviderStopReason
Source§impl<'de> Deserialize<'de> for ProviderStopReason
impl<'de> Deserialize<'de> for ProviderStopReason
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 ProviderStopReason
Source§impl PartialEq for ProviderStopReason
impl PartialEq for ProviderStopReason
Source§impl Serialize for ProviderStopReason
impl Serialize for ProviderStopReason
impl StructuralPartialEq for ProviderStopReason
Auto Trait Implementations§
impl Freeze for ProviderStopReason
impl RefUnwindSafe for ProviderStopReason
impl Send for ProviderStopReason
impl Sync for ProviderStopReason
impl Unpin for ProviderStopReason
impl UnsafeUnpin for ProviderStopReason
impl UnwindSafe for ProviderStopReason
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