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.
Error
Defined in the error module.
Rust AI Agent SDK
Main error type for PraisonAI Core
Fields
| Name | Type | Description |
|---|
Agent | variant | - |
related | variant | - |
errors | variant | - |
error | variant | Agent-related errors |
Agent | variant | Agent-related errors |
error | variant | Agent-related errors |
0 | variant | Agent-related errors |
Methods
agent
fn agent(msg: impl Into<String>) -> Self
Create an agent error
Parameters:
| Name | Type |
|---|
msg | impl Into<String> |
fn tool(msg: impl Into<String>) -> Self
Create a tool error
Parameters:
| Name | Type |
|---|
msg | impl Into<String> |
llm
fn llm(msg: impl Into<String>) -> Self
Create an LLM error
Parameters:
| Name | Type |
|---|
msg | impl Into<String> |
memory
fn memory(msg: impl Into<String>) -> Self
Create a memory error
Parameters:
| Name | Type |
|---|
msg | impl Into<String> |
workflow
fn workflow(msg: impl Into<String>) -> Self
Create a workflow error
Parameters:
| Name | Type |
|---|
msg | impl Into<String> |
config
fn config(msg: impl Into<String>) -> Self
Create a config error
Parameters:
| Name | Type |
|---|
msg | impl Into<String> |
fn io(msg: impl Into<String>) -> Self
Create an IO error from a string message
Parameters:
| Name | Type |
|---|
msg | impl Into<String> |
handoff
fn handoff(msg: impl Into<String>) -> Self
Create a handoff error
Parameters:
| Name | Type |
|---|
msg | impl Into<String> |
with_context
fn with_context(self, context: impl Into<String>) -> Self
Add context to an error
Parameters:
| Name | Type |
|---|
context | impl Into<String> |
Source
View on GitHub
praisonai/src/error.rs at line 0