pub enum PostPersistAction {
EmitInfoMessage {
target_session_id: String,
text: String,
},
StopAgentLoop {
reason: String,
},
}Expand description
Tier-2 actions the server performs after persisting a tool result, still inside the calling session’s agent loop (lock held).
Variants§
EmitInfoMessage
Append an info message to any session’s history. Use this for side effects that must render after the tool result (typically, info messages going to the caller’s own session).
StopAgentLoop
Signal the agent runner that the current turn should end after this
tool result is persisted. The runner exits cleanly with AgentDone
(not Cancelled) and does not call the LLM again.
Use sparingly: this is intended for tools that semantically retire
the calling session (e.g. session_succeed from task 915). Other
tools should let the agent decide when to stop on its own.
Trait Implementations§
Source§impl Clone for PostPersistAction
impl Clone for PostPersistAction
Source§fn clone(&self) -> PostPersistAction
fn clone(&self) -> PostPersistAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostPersistAction
impl Debug for PostPersistAction
Source§impl<'de> Deserialize<'de> for PostPersistAction
impl<'de> Deserialize<'de> for PostPersistAction
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
Auto Trait Implementations§
impl Freeze for PostPersistAction
impl RefUnwindSafe for PostPersistAction
impl Send for PostPersistAction
impl Sync for PostPersistAction
impl Unpin for PostPersistAction
impl UnsafeUnpin for PostPersistAction
impl UnwindSafe for PostPersistAction
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