Error Log • Rust AI Agent SDK
ErrorLog: Error log entry
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>) -> SelfCreate 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>) -> SelfAdd context
Parameters:
| Name | Type |
|---|---|
key | impl Into<String> |
value | impl Into<String> |
Source
View on GitHubpraisonai/src/parity/display_types.rs at line 38