Step Result • Rust AI Agent SDK
StepResult: Step result from workflow execution
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>) -> SelfCreate 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>) -> SelfCreate a failed step result
Parameters:
| Name | Type |
|---|---|
agent | impl Into<String> |
error | impl Into<String> |
Source
View on GitHubpraisonai/src/workflows/mod.rs at line 29