Get User • AI Agent SDK

get_user: Get user information.

get_user

Async

Method

</div>

This is a method of the BotProtocol class in the protocols module.

Get user information.

Signature

python
async def get_user(user_id: str) -> Optional[BotUser]

Parameters

ParamField str

User ID to look up

Returns

ResponseField Optional[BotUser]

User information or None if not found

Source

View on GitHub

praisonaiagents/bots/protocols.py at line 1241