A GUI Event • Rust AI Agent SDK
AGUIEvent: AGUI Base Event
AGUIEvent
Defined in the ui module.
Rust AI Agent SDK
AGUI Base Event
Fields
| Name | Type | Description |
|---|---|---|
event_type | AGUIEventType | Event type |
Option | :is_none")] | Event data |
data | Option<serde_json::Value> | Event data |
Option | :is_none")] | Run ID |
run_id | Option<String> | Run ID |
Methods
run_started
fn run_started(run_id: impl Into<String>) -> SelfCreate a run started event
Parameters:
| Name | Type |
|---|---|
run_id | impl Into<String> |
run_finished
fn run_finished(run_id: impl Into<String>) -> SelfCreate a run finished event
Parameters:
| Name | Type |
|---|---|
run_id | impl Into<String> |
run_error
fn run_error(run_id: impl Into<String>, error: impl Into<String>) -> SelfCreate a run error event
Parameters:
| Name | Type |
|---|---|
run_id | impl Into<String> |
error | impl Into<String> |
text_delta
fn text_delta(run_id: impl Into<String>, delta: impl Into<String>) -> SelfCreate a text delta event
Parameters:
| Name | Type |
|---|---|
run_id | impl Into<String> |
delta | impl Into<String> |
Source
View on GitHubpraisonai/src/parity/ui.rs at line 277