Skip to main content

display_name

Method
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

def display_name() -> str

Returns

Returns
str
The result of the operation.