DisplayEvent
Defined in the Display Types module.Rust AI Agent SDK Display event
Fields
| Name | Type | Description |
|---|---|---|
event_type | DisplayEventType | Event type |
agent_name | Option<String> | Agent name (if applicable) |
content | Option<String> | Content/message |
data | HashMap<String | Additional data |
serde_json | :Value> | Additional data |
Methods
new
| Name | Type |
|---|---|
event_type | DisplayEventType |
agent
| Name | Type |
|---|---|
name | impl Into<String> |
content
| Name | Type |
|---|---|
content | impl Into<String> |
data
| Name | Type |
|---|---|
key | impl Into<String> |
value | serde_json::Value |
Source
View on GitHub
praisonai/src/parity/display_types.rs at line 129
