GatewayEvent
Defined in the gateway module.Rust AI Agent SDK A gateway event with metadata.
Fields
| Name | Type | Description |
|---|---|---|
event_type | EventType | The event type |
data | serde_json::Value | Event payload |
event_id | String | Unique event identifier |
timestamp | f64 | Event creation time (Unix timestamp) |
source | Option<String> | Source identifier (agent_id, client_id, etc.) |
target | Option<String> | Target identifier (optional, for directed events) |
Methods
new
| Name | Type |
|---|---|
event_type | EventType |
data
| Name | Type |
|---|---|
data | serde_json::Value |
source
| Name | Type |
|---|---|
source | impl Into<String> |
target
| Name | Type |
|---|---|
target | impl Into<String> |
Source
View on GitHub
praisonai/src/gateway/mod.rs at line 97
