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.
StepResult
Defined in the workflows module.
Rust AI Agent SDK
Step result from workflow execution
Fields
| Name | Type | Description |
|---|
agent | String | Agent name that produced this result |
output | String | The output content |
success | bool | Whether the step succeeded |
error | Option<String> | Error message if failed |
Methods
success
fn success(agent: impl Into<String>, output: impl Into<String>) -> Self
Create a successful step result
Parameters:
| Name | Type |
|---|
agent | impl Into<String> |
output | impl Into<String> |
failure
fn failure(agent: impl Into<String>, error: impl Into<String>) -> Self
Create a failed step result
Parameters:
| Name | Type |
|---|
agent | impl Into<String> |
error | impl Into<String> |
Source
View on GitHub
praisonai/src/workflows/mod.rs at line 29