pub type LlmResult<T> = Result<T, LlmError>;Expand description
Convenient result type for LLM operations.
Alias for Result<T, LlmError>. Use this throughout your application
for consistent error handling.
§Example
use multi_llm::LlmResult;
fn process_response(text: &str) -> LlmResult<String> {
if text.is_empty() {
return Err(multi_llm::LlmError::response_parsing_error("Empty response"));
}
Ok(text.to_uppercase())
}Aliased Type§
pub enum LlmResult<T> {
Ok(T),
Err(LlmError),
}