#[non_exhaustive]pub enum AgentConversationError {
Store(ConversationStoreError),
SummaryRequired {
conversation_id: ConversationId,
buffered_entries: u64,
},
SummaryPassLimitExceeded {
conversation_id: ConversationId,
remaining_entries: u64,
},
Summarization(ConversationSummarizerError),
Run(AgentError),
Commit {
source: ConversationStoreError,
outcome: Box<AgentOutcome>,
},
}Expand description
Failure while loading, running, or committing one conversational Agent turn.
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.
Store(ConversationStoreError)
Conversation or semantic-memory loading failed before execution.
SummaryRequired
Bounded execution requires the older unsummarized prefix to be summarized.
Fields
§
conversation_id: ConversationIdConversation requiring compaction.
SummaryPassLimitExceeded
Automatic compaction reached its explicit pass limit with work remaining.
Fields
§
conversation_id: ConversationIdConversation whose backlog remains.
Summarization(ConversationSummarizerError)
Automatic summary generation failed before any transcript mutation.
Run(AgentError)
Canonical Agent execution failed; no transcript append was attempted.
Commit
Model execution succeeded but optimistic transcript commit conflicted.
Fields
§
source: ConversationStoreErrorStore failure, normally a concurrent-version conflict.
§
outcome: Box<AgentOutcome>Preserved model outcome so successful work is never discarded.
Trait Implementations§
Source§impl Debug for AgentConversationError
impl Debug for AgentConversationError
Source§impl Display for AgentConversationError
impl Display for AgentConversationError
Source§impl Error for AgentConversationError
impl Error for AgentConversationError
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 From<ConversationStoreError> for AgentConversationError
impl From<ConversationStoreError> for AgentConversationError
Source§fn from(source: ConversationStoreError) -> Self
fn from(source: ConversationStoreError) -> Self
Converts to this type from the input type.
Source§impl From<ConversationSummarizerError> for AgentConversationError
impl From<ConversationSummarizerError> for AgentConversationError
Source§fn from(source: ConversationSummarizerError) -> Self
fn from(source: ConversationSummarizerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AgentConversationError
impl !UnwindSafe for AgentConversationError
impl Freeze for AgentConversationError
impl Send for AgentConversationError
impl Sync for AgentConversationError
impl Unpin for AgentConversationError
impl UnsafeUnpin for AgentConversationError
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