Skip to main content

StepResult

Defined in the Workflows module.
Rust AI Agent SDK Step result from workflow execution

Fields

NameTypeDescription
agentStringAgent name that produced this result
outputStringThe output content
successboolWhether the step succeeded
errorOption<String>Error message if failed

Methods

success

fn success(agent: impl Into<String>, output: impl Into<String>) -> Self
Create a successful step result Parameters:
NameType
agentimpl Into&lt;String&gt;
outputimpl Into&lt;String&gt;

failure

fn failure(agent: impl Into<String>, error: impl Into<String>) -> Self
Create a failed step result Parameters:
NameType
agentimpl Into&lt;String&gt;
errorimpl Into&lt;String&gt;