> ## 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**](../modules/protocol) module.

<Badge color="blue">AI Agent</Badge>

Configuration for action tracing.

## Properties

<ResponseField name="enabled" type="bool">
  No description available.
</ResponseField>

<ResponseField name="redact" type="bool">
  No description available.
</ResponseField>

<ResponseField name="compact" type="bool">
  No description available.
</ResponseField>

<ResponseField name="sink_type" type="str">
  No description available.
</ResponseField>

<ResponseField name="file_path" type="Optional[str]">
  No description available.
</ResponseField>

<Accordion title="Internal & Generic Methods">
  * **to\_dict**: Convert to dictionary.
</Accordion>

## 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 title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/trace/protocol.py#L173">
  `praisonaiagents/trace/protocol.py` at line 173
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Configuration Overview" icon="gear" href="/docs/docs/configuration/index" />

  <Card title="Agent Config" icon="robot" href="/docs/docs/configuration/agent-config" />
</CardGroup>
