agentscope.web.gradio.studio module
run web ui
- agentscope.web.gradio.studio.init_uid_list() list [源代码]
Initialize an empty list for storing user IDs.
- agentscope.web.gradio.studio.reset_glb_var(uid: str) None [源代码]
Reset global variables for a given user ID.
- agentscope.web.gradio.studio.get_chat(uid: str) list[list] [源代码]
Retrieve chat messages for a given user ID.
- agentscope.web.gradio.studio.send_audio(audio_term: str, uid: str) None [源代码]
Convert audio input to text and send as a chat message.
- agentscope.web.gradio.studio.send_image(image_term: str, uid: str) None [源代码]
Send an image as a chat message.
- agentscope.web.gradio.studio.send_message(msg: str, uid: str) str [源代码]
Send a generic message to the player.
- agentscope.web.gradio.studio.fn_choice(data: EventData, uid: str) None [源代码]
Handle a selection event from the chatbot interface.