46 lines
1.4 KiB
Protocol Buffer
46 lines
1.4 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package cxcloud.events;
|
|
|
|
option go_package = "github.com/cxcloud/contracts/events";
|
|
|
|
import "common.proto";
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
// A raw event as received from any input source.
|
|
message RawEvent {
|
|
cxcloud.common.Event event = 1;
|
|
string raw_body = 2; // Original unparsed body for audit
|
|
string content_type = 3; // MIME type of original payload
|
|
}
|
|
|
|
// A processed event after reasoning and execution.
|
|
message ProcessedEvent {
|
|
cxcloud.common.Event original_event = 1;
|
|
string plan_id = 2; // ID of the AgentPlan that handled this
|
|
string execution_id = 3; // ID of the ExecutionResult
|
|
ProcessingStatus status = 4;
|
|
string summary = 5; // Human-readable summary of what was done
|
|
google.protobuf.Timestamp completed_at = 6;
|
|
int32 retry_count = 7;
|
|
}
|
|
|
|
enum ProcessingStatus {
|
|
PROCESSING_STATUS_UNSPECIFIED = 0;
|
|
PROCESSING_STATUS_SUCCESS = 1;
|
|
PROCESSING_STATUS_FAILED = 2;
|
|
PROCESSING_STATUS_REJECTED = 3; // Rejected by Human Simulator
|
|
PROCESSING_STATUS_RETRYING = 4;
|
|
PROCESSING_STATUS_DEAD_LETTER = 5; // Exhausted retries
|
|
}
|
|
|
|
// A feedback event published after output delivery.
|
|
message FeedbackEvent {
|
|
cxcloud.common.Event original_event = 1;
|
|
string delivery_id = 2;
|
|
bool delivery_success = 3;
|
|
string feedback_type = 4; // "delivery_confirmed", "delivery_failed", "downstream_response"
|
|
string details = 5;
|
|
google.protobuf.Timestamp feedback_at = 6;
|
|
}
|