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

# output • Rust AI Agent SDK

> output: Set output.

# output

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

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

Set output.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def output(mut self, output: serde_json::Value) -> Self
```

## Parameters

<ParamField query="output" type="serde_json::Value" 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>
