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

# Display Types • Rust AI Agent SDK

> Display and Callback Types

# display\_types

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

Display and Callback Types

Provides display callback types and error logging matching Python SDK:

* sync\_display\_callbacks, async\_display\_callbacks
* error\_logs, ApprovalCallback
* Display functions and callback registration

## Import

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
use praisonai::parity::display_types::*;
```

## Classes

<CardGroup cols={2}>
  <Card title="ErrorLog" icon="brackets-curly" href="../classes/ErrorLog">
    Error log entry
  </Card>

  <Card title="DisplayEvent" icon="brackets-curly" href="../classes/DisplayEvent">
    Display event
  </Card>

  <Card title="PraisonColors" icon="brackets-curly" href="../classes/PraisonColors">
    PraisonAI color palette
  </Card>

  <Card title="FlowDisplay" icon="brackets-curly" href="../classes/FlowDisplay">
    Flow display for workflow visualization
  </Card>

  <Card title="DisplayCallback" icon="brackets-curly" href="../classes/DisplayCallback">
    Display callback trait for synchronous callbacks
  </Card>

  <Card title="AsyncDisplayCallback" icon="brackets-curly" href="../classes/AsyncDisplayCallback">
    Display callback trait for asynchronous callbacks
  </Card>

  <Card title="ApprovalCallback" icon="brackets-curly" href="../classes/ApprovalCallback">
    Approval callback trait
  </Card>

  <Card title="DisplayEventType" icon="brackets-curly" href="../classes/DisplayEventType">
    Display event types
  </Card>

  <Card title="ApprovalDecision" icon="brackets-curly" href="../classes/ApprovalDecision">
    Approval decision
  </Card>

  <Card title="RiskLevel" icon="brackets-curly" href="../classes/RiskLevel">
    Risk level for approval
  </Card>
</CardGroup>

## Functions

<CardGroup cols={2}>
  <Card title="get_error_logs()" icon="function" href="../functions/get_error_logs">
    Get all error logs
  </Card>

  <Card title="add_error_log()" icon="function" href="../functions/add_error_log">
    Add an error log
  </Card>

  <Card title="clear_error_logs()" icon="function" href="../functions/clear_error_logs">
    Clear error logs
  </Card>

  <Card title="log_error()" icon="function" href="../functions/log_error">
    Log an error (convenience function)
  </Card>

  <Card title="register_display_callback()" icon="function" href="../functions/register_display_callback">
    Register a synchronous display callback
  </Card>

  <Card title="register_async_display_callback()" icon="function" href="../functions/register_async_display_callback">
    Register an asynchronous display callback
  </Card>

  <Card title="add_display_callback()" icon="function" href="../functions/add_display_callback">
    Alias for register\_display\_callback
  </Card>

  <Card title="remove_display_callback()" icon="function" href="../functions/remove_display_callback">
    Remove a display callback
  </Card>

  <Card title="execute_callback()" icon="function" href="../functions/execute_callback">
    Execute sync callback for a display type
  </Card>

  <Card title="execute_async_callback()" icon="function" href="../functions/execute_async_callback">
    Execute async callback for a display type
  </Card>

  <Card title="register_approval_callback()" icon="function" href="../functions/register_approval_callback">
    Register the global approval callback
  </Card>

  <Card title="add_approval_callback()" icon="function" href="../functions/add_approval_callback">
    Alias for register\_approval\_callback
  </Card>

  <Card title="remove_approval_callback()" icon="function" href="../functions/remove_approval_callback">
    Remove the approval callback
  </Card>

  <Card title="request_approval()" icon="function" href="../functions/request_approval">
    Request approval using the global callback
  </Card>
</CardGroup>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Display" icon="display" href="/docs/rust/display" />

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