agentscope.web.gradio.utils module
web ui utils
- exception ResetException[源代码]
基类:
Exception
Custom exception to signal a reset action in the application.
- check_uuid(uid: str | None) str [源代码]
Checks whether a UUID is provided or generates a default one.
- generate_image_from_name(name: str) str [源代码]
Generates an image based on the hash of the given name.
- get_chat_msg(uid: str | None = None) list [源代码]
Retrieves the next chat message from the queue, if available.
- get_player_input(timeout: int | None = None, uid: str | None = None) str [源代码]
Gets player input from the web UI or command line.
- get_reset_msg(uid: str | None = None) None [源代码]
Retrieves a reset message from the queue, if available.