pub enum Kind {
UserMessage,
AgentMessage,
ToolCall,
FileRead,
FileWrite,
Shell,
Permission,
TurnStart,
TurnEnd,
Error,
}Expand description
What happened.
Variants§
UserMessage
The person’s message to the agent (text).
AgentMessage
The agent’s reply (text, bounded).
ToolCall
A tool call that is neither a file read/write nor a shell command.
FileRead
A file read (target = path).
FileWrite
A file write or edit (target = path).
Shell
A shell command (target = the redacted command).
Permission
A permission prompt (outcome asked | allowed | denied).
TurnStart
A turn began (the person submitted a prompt).
TurnEnd
A turn ended (the agent stopped).
Error
The agent or the host reported an error (text).
Implementations§
Trait Implementations§
impl Copy for Kind
Source§impl<'de> Deserialize<'de> for Kind
impl<'de> Deserialize<'de> for Kind
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 Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Forget for Kind
impl Freeze for Kind
impl Move for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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