pub enum BlockKind {
User,
AssistantText,
Thought,
ToolUse,
ToolResult,
Other,
}Expand description
The role/category of a progress block. Directly corresponds to the content of a
crate::llm::Message submitted to the LLM.
Variants§
User
User/task input message (including backflow of background results, tool result re-injection, etc.).
AssistantText
Text produced by the assistant.
Thought
The assistant’s chain of thought.
ToolUse
A tool call initiated by the assistant.
ToolResult
Tool result (fed back to the model).
Other
Other (multimodal / provider activity, etc.), normalized for display.
Implementations§
Trait Implementations§
impl Copy for BlockKind
impl Eq for BlockKind
impl StructuralPartialEq for BlockKind
Auto Trait Implementations§
impl Freeze for BlockKind
impl RefUnwindSafe for BlockKind
impl Send for BlockKind
impl Sync for BlockKind
impl Unpin for BlockKind
impl UnsafeUnpin for BlockKind
impl UnwindSafe for BlockKind
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