Error • Rust AI Agent SDK
Error: Main error type for PraisonAI Core
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>) -> SelfCreate an agent error
Parameters:
| Name | Type |
|---|---|
msg | impl Into<String> |
tool
fn tool(msg: impl Into<String>) -> SelfCreate a tool error
Parameters:
| Name | Type |
|---|---|
msg | impl Into<String> |
llm
fn llm(msg: impl Into<String>) -> SelfCreate an LLM error
Parameters:
| Name | Type |
|---|---|
msg | impl Into<String> |
memory
fn memory(msg: impl Into<String>) -> SelfCreate a memory error
Parameters:
| Name | Type |
|---|---|
msg | impl Into<String> |
workflow
fn workflow(msg: impl Into<String>) -> SelfCreate a workflow error
Parameters:
| Name | Type |
|---|---|
msg | impl Into<String> |
config
fn config(msg: impl Into<String>) -> SelfCreate a config error
Parameters:
| Name | Type |
|---|---|
msg | impl Into<String> |
io
fn io(msg: impl Into<String>) -> SelfCreate an IO error from a string message
Parameters:
| Name | Type |
|---|---|
msg | impl Into<String> |
handoff
fn handoff(msg: impl Into<String>) -> SelfCreate a handoff error
Parameters:
| Name | Type |
|---|---|
msg | impl Into<String> |
with_context
fn with_context(self, context: impl Into<String>) -> SelfAdd context to an error
Parameters:
| Name | Type |
|---|---|
context | impl Into<String> |
Source
View on GitHubpraisonai/src/error.rs at line 0