> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Sandbox Result • AI Agent SDK

> SandboxResult: Result of a sandbox execution.

# SandboxResult

> Defined in the [**protocols**](../modules/protocols) module.

<Badge color="blue">AI Agent</Badge>

Result of a sandbox execution.

Attributes:
execution\_id: Unique execution identifier
status: Execution status
exit\_code: Process exit code (None if not completed)
stdout: Standard output
stderr: Standard error
duration\_seconds: Execution duration
started\_at: Start timestamp
completed\_at: Completion timestamp
error: Error message if failed
metadata: Additional execution metadata

## Properties

<ResponseField name="execution_id" type="str">
  No description available.
</ResponseField>

<ResponseField name="status" type="SandboxStatus">
  No description available.
</ResponseField>

<ResponseField name="exit_code" type="Optional">
  No description available.
</ResponseField>

<ResponseField name="stdout" type="str">
  No description available.
</ResponseField>

<ResponseField name="stderr" type="str">
  No description available.
</ResponseField>

<ResponseField name="duration_seconds" type="float">
  No description available.
</ResponseField>

<ResponseField name="started_at" type="Optional">
  No description available.
</ResponseField>

<ResponseField name="completed_at" type="Optional">
  No description available.
</ResponseField>

<ResponseField name="error" type="Optional">
  No description available.
</ResponseField>

<ResponseField name="metadata" type="Dict">
  No description available.
</ResponseField>

## Methods

<CardGroup cols={2}>
  <Card title="success()" icon="function" href="../functions/SandboxResult-success">
    Check if execution was successful.
  </Card>

  <Card title="output()" icon="function" href="../functions/SandboxResult-output">
    Get combined output (stdout + stderr).
  </Card>
</CardGroup>

<Accordion title="Internal & Generic Methods">
  * **from\_dict**: Create from dictionary.
  * **to\_dict**: Convert to dictionary.
</Accordion>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/sandbox/protocols.py#L117">
  `praisonaiagents/sandbox/protocols.py` at line 117
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Sandbox Feature" icon="box" href="/docs/features/sandbox" />
</CardGroup>
