pub enum AgentMessage {
Show 46 variants
TaskRequest {
task_id: String,
description: String,
priority: u8,
},
TaskResult {
task_id: String,
success: bool,
result: String,
},
StatusUpdate {
agent_id: String,
status: String,
details: Option<String>,
},
HelpRequest {
request_id: String,
topic: String,
details: String,
},
HelpResponse {
request_id: String,
response: String,
},
Broadcast {
sender: String,
message: String,
},
Custom {
message_type: String,
data: Value,
},
AgentSpawned {
agent_id: String,
task_id: String,
},
AgentProgress {
agent_id: String,
progress_percent: u8,
message: String,
},
AgentCompleted {
agent_id: String,
task_id: String,
summary: String,
},
LockContention {
agent_id: String,
path: String,
waiting_for: String,
},
ApprovalRequest {
request_id: String,
agent_id: String,
operation: String,
details: String,
},
ApprovalResponse {
request_id: String,
approved: bool,
reason: Option<String>,
},
OperationStarted {
agent_id: String,
operation_type: OperationType,
scope: String,
estimated_duration_ms: Option<u64>,
description: String,
},
OperationCompleted {
agent_id: String,
operation_type: OperationType,
scope: String,
success: bool,
duration_ms: u64,
summary: String,
},
LockAvailable {
operation_type: OperationType,
scope: String,
released_by: String,
},
WaitQueuePosition {
agent_id: String,
operation_type: OperationType,
scope: String,
position: usize,
estimated_wait_ms: Option<u64>,
},
GitOperationStarted {
agent_id: String,
git_op: GitOperationType,
branch: Option<String>,
description: String,
},
GitOperationCompleted {
agent_id: String,
git_op: GitOperationType,
success: bool,
summary: String,
},
BuildBlocked {
agent_id: String,
reason: String,
conflicts: Vec<ConflictInfo>,
estimated_wait_ms: Option<u64>,
},
FileWriteBlocked {
agent_id: String,
path: String,
reason: String,
conflicts: Vec<ConflictInfo>,
},
ConflictResolved {
agent_id: String,
operation_type: OperationType,
scope: String,
},
SagaStarted {
saga_id: String,
agent_id: String,
description: String,
total_steps: usize,
},
SagaStepCompleted {
saga_id: String,
agent_id: String,
step_index: usize,
step_name: String,
success: bool,
},
SagaCompleted {
saga_id: String,
agent_id: String,
success: bool,
compensated: bool,
summary: String,
},
SagaCompensating {
saga_id: String,
agent_id: String,
reason: String,
steps_to_compensate: usize,
},
TaskAnnounced {
task_id: String,
announcer: String,
description: String,
bid_deadline_ms: u64,
},
BidSubmitted {
task_id: String,
agent_id: String,
capability_score: f32,
current_load: f32,
},
TaskAwarded {
task_id: String,
winner: String,
announcer: String,
},
TaskAccepted {
task_id: String,
agent_id: String,
},
TaskDeclined {
task_id: String,
agent_id: String,
reason: String,
},
ResourceAvailable {
resource_id: String,
resource_type: String,
},
ResourceBidSubmitted {
resource_id: String,
agent_id: String,
priority: u8,
urgency: f32,
},
ResourceAllocated {
resource_id: String,
agent_id: String,
price: u32,
},
ResourceReleased {
resource_id: String,
agent_id: String,
},
WorktreeCreated {
agent_id: String,
worktree_path: String,
branch: String,
},
WorktreeRemoved {
agent_id: String,
worktree_path: String,
},
WorktreeSwitched {
agent_id: String,
from_path: Option<String>,
to_path: String,
},
ValidationFailed {
agent_id: String,
operation: String,
rule_name: String,
message: String,
},
ValidationWarning {
agent_id: String,
operation: String,
rule_name: String,
message: String,
},
CycleStarted {
cycle_number: u32,
goal: String,
},
CycleCompleted {
cycle_number: u32,
verdict_type: String,
},
PlanCreated {
cycle_number: u32,
task_count: usize,
rationale: String,
},
WorkerBranchMerged {
agent_id: String,
branch: String,
status: String,
},
VersionConflict {
resource_id: String,
agent_id: String,
expected_version: u64,
actual_version: u64,
},
ConflictResolutionApplied {
resource_id: String,
resolution_type: String,
winning_agent: Option<String>,
},
}Expand description
Types of messages agents can send to each other
Variants§
TaskRequest
Request to execute a task
Fields
TaskResult
Result of task execution
Fields
StatusUpdate
Status update
Fields
HelpRequest
Request for help/collaboration
Fields
HelpResponse
Response to help request
Broadcast
Broadcast message to all agents
Custom
Custom message with arbitrary data
AgentSpawned
Notification that an agent was spawned
Fields
AgentProgress
Progress update from an agent
Fields
AgentCompleted
Notification that an agent completed
Fields
LockContention
Notification about lock contention
Fields
ApprovalRequest
Request for approval (dangerous operation)
Fields
ApprovalResponse
Response to approval request
Fields
OperationStarted
Notification that an exclusive operation has started
Fields
operation_type: OperationTypeType of operation.
OperationCompleted
Notification that an exclusive operation has completed
Fields
operation_type: OperationTypeType of operation.
LockAvailable
Notification that a lock has become available
Fields
operation_type: OperationTypeType of operation the lock was for.
WaitQueuePosition
Update on wait queue position
Fields
operation_type: OperationTypeType of operation being waited on.
GitOperationStarted
Git operation started
Fields
git_op: GitOperationTypeType of git operation.
GitOperationCompleted
Git operation completed
Fields
git_op: GitOperationTypeType of git operation.
BuildBlocked
Build blocked due to conflicts
Fields
conflicts: Vec<ConflictInfo>List of conflicts causing the block.
FileWriteBlocked
File write blocked due to conflicts
Fields
conflicts: Vec<ConflictInfo>List of conflicts causing the block.
ConflictResolved
Resource conflict resolved - agent can proceed
Fields
operation_type: OperationTypeType of operation that was unblocked.
SagaStarted
A saga (multi-step transaction) has started
Fields
SagaStepCompleted
A saga step has completed
Fields
SagaCompleted
A saga has completed (successfully or with compensation)
Fields
SagaCompensating
A saga is being compensated (rolling back)
Fields
TaskAnnounced
A task has been announced for bidding
Fields
BidSubmitted
An agent has submitted a bid
Fields
TaskAwarded
A task has been awarded to an agent
Fields
TaskAccepted
An agent has accepted an awarded task
TaskDeclined
An agent has declined an awarded task
Fields
ResourceAvailable
A resource is available for bidding
ResourceBidSubmitted
A resource bid has been submitted
Fields
ResourceAllocated
A resource has been allocated to an agent
Fields
ResourceReleased
A resource has been released
WorktreeCreated
A worktree has been created for an agent
Fields
WorktreeRemoved
A worktree has been removed
Fields
WorktreeSwitched
An agent is switching worktrees
Fields
ValidationFailed
A validation check has failed
Fields
ValidationWarning
A validation warning was raised
Fields
CycleStarted
A Plan→Work→Judge cycle has started
Fields
CycleCompleted
A Plan→Work→Judge cycle has completed
Fields
PlanCreated
A planner has produced a task plan
Fields
WorkerBranchMerged
A worker’s branch has been merged
Fields
VersionConflict
A version conflict was detected
Fields
ConflictResolutionApplied
A conflict has been resolved
Trait Implementations§
Source§impl Clone for AgentMessage
impl Clone for AgentMessage
Source§fn clone(&self) -> AgentMessage
fn clone(&self) -> AgentMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more