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.
SandboxResult
Defined in the sandbox module.
Rust AI Agent SDK
Result of a sandbox execution.
Fields
| Name | Type | Description |
|---|
execution_id | String | Unique execution identifier |
status | SandboxStatus | Execution status |
exit_code | Option<i32> | Process exit code (None if not completed) |
stdout | String | Standard output |
stderr | String | Standard error |
duration_seconds | f64 | Execution duration in seconds |
started_at | Option<f64> | Start timestamp |
completed_at | Option<f64> | Completion timestamp |
error | Option<String> | Error message if failed |
metadata | HashMap<String | Additional execution metadata |
serde_json | :Value> | Additional execution metadata |
Methods
new
Create a new sandbox result.
success
fn success(&self) -> bool
Check if execution was successful.
output
fn output(&self) -> String
Get combined output (stdout + stderr).
start
fn start(&mut self) -> ()
Mark as started.
complete
fn complete(&mut self, exit_code: i32, stdout: String, stderr: String) -> ()
Mark as completed.
Parameters:
| Name | Type |
|---|
exit_code | i32 |
stdout | String |
stderr | String |
fail
fn fail(&mut self, error: impl Into<String>) -> ()
Mark as failed.
Parameters:
| Name | Type |
|---|
error | impl Into<String> |
timeout
fn timeout(&mut self) -> ()
Mark as timed out.
Source
View on GitHub
praisonai/src/sandbox/mod.rs at line 191