Display Name • AI Agent SDK

display_name: Safe display name that never returns None.

display_name

Method

</div>

This is a method of the Agent class in the 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
def display_name() -> str

Returns

ResponseField str

The result of the operation.

Source

View on GitHub

praisonaiagents/agent/agent.py at line 4166


Related Documentation