Skip to main content

ResultExt

Defined in the Error Handling module.
Rust AI Agent SDK Extension trait for adding context to Results

Methods

context

fn context(self, context: impl Into<String>) -> Result<T>
Add context to an error Parameters:
NameType
contextimpl Into&lt;String&gt;