Display Name • AI Agent SDK
display_name: Safe display name that never returns None.
display_name
Method
</div>
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
def display_name() -> strReturns
ResponseField
strThe result of the operation.
Source
View on GitHubpraisonaiagents/agent/agent.py at line 4166