pub struct AgentStopInput {
pub session_id: String,
pub timestamp: f64,
pub working_directory: PathBuf,
pub stop_reason: Option<String>,
pub transcript_path: Option<PathBuf>,
pub stop_hook_active: Option<bool>,
}Expand description
Input for the agentStop hook, received when the top-level agent reaches a natural stop.
Fields§
§session_id: StringThe runtime session ID of the session that triggered the hook.
timestamp: f64Unix timestamp in ms (the runtime serializes this as a JSON float).
working_directory: PathBufWorking directory.
stop_reason: Option<String>Reason the agent stopped.
transcript_path: Option<PathBuf>Path to the on-disk session transcript.
stop_hook_active: Option<bool>Whether this stop follows a previous block decision from the hook.
Trait Implementations§
Source§impl Clone for AgentStopInput
impl Clone for AgentStopInput
Source§fn clone(&self) -> AgentStopInput
fn clone(&self) -> AgentStopInput
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 moreSource§impl Debug for AgentStopInput
impl Debug for AgentStopInput
Source§impl<'de> Deserialize<'de> for AgentStopInput
impl<'de> Deserialize<'de> for AgentStopInput
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 AgentStopInput
impl RefUnwindSafe for AgentStopInput
impl Send for AgentStopInput
impl Sync for AgentStopInput
impl Unpin for AgentStopInput
impl UnsafeUnpin for AgentStopInput
impl UnwindSafe for AgentStopInput
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