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.
ErrorLog
Defined in the Display Types module.
Rust AI Agent SDK
Error log entry
Fields
| Name | Type | Description |
|---|
message | String | Error message |
error_type | String | Error type/category |
timestamp | std::time::SystemTime | Timestamp |
context | HashMap<String | Additional context |
Methods
new
fn new(message: impl Into<String>, error_type: impl Into<String>) -> Self
Create a new error log
Parameters:
| Name | Type |
|---|
message | impl Into<String> |
error_type | impl Into<String> |
with_context
fn with_context(mut self, key: impl Into<String>, value: impl Into<String>) -> Self
Add context
Parameters:
| Name | Type |
|---|
key | impl Into<String> |
value | impl Into<String> |
Source
View on GitHub
praisonai/src/parity/display_types.rs at line 38