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