#[non_exhaustive]pub enum StepKind {
Show 19 variants
Message,
ListDirectory,
FindFile,
SearchDirectory,
ViewFile,
CreateFile,
EditFile,
RunCommand,
Compaction,
InvokeSubagent,
GenerateImage,
SearchWeb,
ReadUrlContent,
McpTool,
CustomTool,
Finish,
Error,
ToolConfirmationRequest,
QuestionsRequest,
}async-client only.Expand description
What a step was doing.
Derived from whichever action member the harness populated. Steps that
carry only prose land on StepKind::Message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Message
Prose for the user, or the echo of their own input.
ListDirectory
A directory listing.
FindFile
A filename search.
SearchDirectory
A content search across a directory.
ViewFile
A file read.
CreateFile
A file creation.
EditFile
A file edit, with the diff attached.
RunCommand
A shell command, with its exit code and combined output.
Compaction
The harness compacting its own context.
InvokeSubagent
Delegation to a subagent, which runs on its own trajectory.
GenerateImage
Image generation.
SearchWeb
A web search.
ReadUrlContent
A URL fetch.
McpTool
A tool call routed to an MCP server.
CustomTool
A tool the client is expected to run.
Finish
The agent’s closing summary.
Error
A failure the harness is reporting in-band.
ToolConfirmationRequest
The harness is waiting for the user to confirm a tool.
QuestionsRequest
The harness is asking the user a question.