GuiMixin
public class GuiMixin
源码Source
io/agentscope/runtime/sandbox/box/GuiMixin.java:30–87Gui Mixin,承载智能体的部署、调度与服务化运行。位于 io.agentscope.runtime.sandbox.box 包。核心成员包括 getDesktopUrl。
GUI Mixin providing desktop URL functionality for sandboxes. This class provides helper methods that can be used by sandbox classes to enable GUI/VNC desktop access.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static String getDesktopUrl(SandboxService managerApi, String sandboxId, String baseUrl)static | 获取 `getDesktopUrl`。 Get the desktop URL for VNC access. |
方法详情Method Detail
getDesktopUrl
public static String getDesktopUrl(SandboxService managerApi, String sandboxId, String baseUrl)
static
获取 getDesktopUrl。
Get the desktop URL for VNC access.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
managerApi | SandboxService | SandboxService 实例。The SandboxService instance |
sandboxId | String | 沙箱标识。The sandbox ID |
baseUrl | String | 基类 URL(类型 `String`)。Optional base URL (can be null) |
String返回字符串结果。The desktop URL for VNC access
RuntimeException可能抛出 `RuntimeException`。if sandbox is not healthy or info cannot be retrieved
源码Source
io/agentscope/runtime/sandbox/box/GuiMixin.java:43–86