AS AgentScopeAPI 手册 / API Reference

GuiMixin

public class GuiMixin
源码Source io/agentscope/runtime/sandbox/box/GuiMixin.java:30–87

Gui 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
managerApiSandboxServiceSandboxService 实例。The SandboxService instance
sandboxIdString沙箱标识。The sandbox ID
baseUrlString基类 URL(类型 `String`)。Optional base URL (can be null)
返回Returns String
返回字符串结果。The desktop URL for VNC access
抛出Throws
  • RuntimeException 可能抛出 `RuntimeException`。if sandbox is not healthy or info cannot be retrieved
源码Source io/agentscope/runtime/sandbox/box/GuiMixin.java:43–86
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.