Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
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>) -> Self
Create a run started event
Parameters:
| Name | Type |
|---|
run_id | impl Into<String> |
run_finished
fn run_finished(run_id: impl Into<String>) -> Self
Create 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>) -> Self
Create 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>) -> Self
Create a text delta event
Parameters:
| Name | Type |
|---|
run_id | impl Into<String> |
delta | impl Into<String> |
Source
View on GitHub
praisonai/src/parity/ui.rs at line 277