> ## 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.

# Code Execution Result • Rust AI Agent SDK

> CodeExecutionResult: Result of code execution

# CodeExecutionResult

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

<Badge color="orange">Rust AI Agent SDK</Badge>

Result of code execution

## Fields

| Name        | Type                   | Description          |
| ----------- | ---------------------- | -------------------- |
| `output`    | `String`               | Standard output      |
| `exit_code` | `i32`                  | Exit code            |
| `error`     | `Option&lt;String&gt;` | Error message if any |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/agents/mod.rs#L837">
  `praisonai/src/agents/mod.rs` at line 837
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Code Execution" icon="terminal" href="/docs/rust/code-execution" />

  <Card title="Rust Sandbox" icon="box" href="/docs/rust/sandbox" />
</CardGroup>
