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

# Action Trace Config • AI Agent SDK

> ActionTraceConfig: Configuration for action tracing.

# ActionTraceConfig

> Defined in the [**protocol**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocol.md) module.

AI Agent

Configuration for action tracing.

## Properties

**enabled** `bool`

No description available.

**redact** `bool`

No description available.

**compact** `bool`

No description available.

**sink\_type** `str`

No description available.

**file\_path** `Optional[str]`

No description available.

> [accordion] Internal & Generic Methods
>
> * **to\_dict**: Convert to dictionary.

## Usage

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Default (disabled)
    config = ActionTraceConfig()
    
    # Enable with stdout
    config = ActionTraceConfig(enabled=True, sink_type="stdout")
    
    # Enable with JSONL file
    config = ActionTraceConfig(
        enabled=True,
        sink_type="jsonl",
        file_path="trace.jsonl",
    )
```

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/trace/protocol.py#L173)
>
> `praisonaiagents/trace/protocol.py` at line 173

***

## Related Documentation

> [card] [Configuration Overview](https://praison.ai/docs/docs/configuration/index)

> [card] [Agent Config](https://praison.ai/docs/docs/configuration/agent-config)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.