pub enum OrchaEvent {
Show 25 variants
StateChange {
session_id: SessionId,
state: SessionState,
},
Output {
text: String,
},
ToolUse {
tool_id: String,
tool_name: String,
input: Value,
},
ToolResult {
tool_id: String,
content: String,
is_error: bool,
},
ApprovalRequest {
approval_id: String,
tool_name: String,
input: Value,
timeout_seconds: u64,
},
ApprovalResponse {
approval_id: String,
approved: bool,
message: Option<String>,
},
ValidationArtifact {
test_command: String,
cwd: String,
},
ValidationStarted {
test_command: String,
},
ValidationResult {
success: bool,
output: String,
},
RetryAttempt {
attempt: u32,
max_retries: u32,
reason: String,
},
Complete {
session_id: SessionId,
},
Failed {
session_id: SessionId,
error: String,
},
Progress {
message: String,
percentage: Option<f32>,
},
AgentSpawned {
session_id: SessionId,
agent_id: AgentId,
subtask: String,
parent_agent_id: Option<AgentId>,
},
AgentStateChange {
agent_id: AgentId,
state: AgentState,
},
AgentComplete {
agent_id: AgentId,
subtask: String,
},
AgentFailed {
agent_id: AgentId,
subtask: String,
error: String,
},
GraphStarted {
graph_id: String,
},
NodeStarted {
node_id: String,
label: Option<String>,
ticket_id: Option<String>,
percentage: Option<u32>,
},
NodeComplete {
node_id: String,
label: Option<String>,
ticket_id: Option<String>,
output_summary: Option<String>,
percentage: Option<u32>,
},
NodeFailed {
node_id: String,
label: Option<String>,
ticket_id: Option<String>,
error: String,
percentage: Option<u32>,
},
Retrying {
node_id: String,
ticket_id: Option<String>,
attempt: usize,
max_attempts: usize,
error: String,
},
NodeOutput {
node_id: String,
ticket_id: Option<String>,
chunk: String,
},
Cancelled {
graph_id: String,
},
ApprovalPending {
approval_id: String,
graph_id: String,
tool_name: String,
tool_input: Value,
created_at: String,
},
}Expand description
Events streamed from an orcha session
Variants§
StateChange
Session state changed
Output
Output from the agent (Claude content)
ToolUse
Tool use detected
ToolResult
Tool result
ApprovalRequest
Approval request detected
ApprovalResponse
Approval response received
ValidationArtifact
Validation artifact detected
ValidationStarted
Validation started
ValidationResult
Validation result
RetryAttempt
Retry attempt
Complete
Task completed successfully
Failed
Task failed
Progress
Progress update
AgentSpawned
Agent spawned (multi-agent mode)
AgentStateChange
Agent state changed (multi-agent mode)
AgentComplete
Agent completed (multi-agent mode)
AgentFailed
Agent failed (multi-agent mode)
GraphStarted
Graph execution has started
NodeStarted
A node is ready and has been dispatched for execution
Fields
NodeComplete
A node completed successfully
Fields
NodeFailed
A node failed
Fields
Retrying
A validate node is retrying after a failed validation attempt
NodeOutput
Live output chunk from a node during execution
Cancelled
Graph was cancelled via cancel_graph
ApprovalPending
A pending approval request is waiting for a human decision
Trait Implementations§
Source§impl Clone for OrchaEvent
impl Clone for OrchaEvent
Source§fn clone(&self) -> OrchaEvent
fn clone(&self) -> OrchaEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OrchaEvent
impl Debug for OrchaEvent
Source§impl<'de> Deserialize<'de> for OrchaEvent
impl<'de> Deserialize<'de> for OrchaEvent
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>,
Source§impl JsonSchema for OrchaEvent
impl JsonSchema for OrchaEvent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for OrchaEvent
impl RefUnwindSafe for OrchaEvent
impl Send for OrchaEvent
impl Sync for OrchaEvent
impl Unpin for OrchaEvent
impl UnsafeUnpin for OrchaEvent
impl UnwindSafe for OrchaEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more