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

# With Output • Rust AI Agent SDK

> with_output: Create with output

# with\_output

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**CodeExecutionStep**](../classes/CodeExecutionStep) class in the [**extras**](../modules/extras) module.

Create with output

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def with_output(input_code: impl Into<String>, output: impl Into<String>) -> Self
```

## Parameters

<ParamField query="input_code" type="impl Into<String>" required={true}>
  No description available.
</ParamField>

<ParamField query="output" type="impl Into<String>" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Self">
  The result of the operation.
</ResponseField>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Output" icon="file-export" href="/docs/rust/output" />

  <Card title="Rust Structured Output" icon="code" href="/docs/rust/structured-output" />

  <Card title="Rust Display" icon="display" href="/docs/rust/display" />
</CardGroup>
