> ## 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 Name • AI Agent SDK

> display_name: Safe display name that never returns None.

# display\_name

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

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

Safe display name that never returns None.

Returns the agent's name if set, otherwise returns 'Agent N' where N is a unique index.
Use this for UI display, logging, and string operations where None would cause errors.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def display_name() -> str
```

### Returns

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/agent.py#L1787">
  `praisonaiagents/agent/agent.py` at line 1787
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Display System" icon="display" href="/docs/features/display-system" />

  <Card title="Display Callbacks" icon="phone" href="/docs/features/display-callbacks" />

  <Card title="Output Styles" icon="palette" href="/docs/features/output-styles" />
</CardGroup>
