AS AgentScopeAPI 手册 / API Reference

NetworkUtils

public class NetworkUtils
源码Source io/agentscope/core/a2a/server/utils/NetworkUtils.java:30–75

Network Utils,支持智能体之间的发现、委派与协作。位于 io.agentscope.core.a2a.server.utils 包。核心成员包括 getLocalIpAddress。

Network utility class for getting current server IP address and port configuration

方法摘要Method Summary

方法Method说明Description
public static String getLocalIpAddress() throws SocketException
static
获取 `getLocalIpAddress`。
Get local IP address Prefer non-loopback addresses

方法详情Method Detail

getLocalIpAddress

public static String getLocalIpAddress() throws SocketException
static

获取 getLocalIpAddress。

Get local IP address Prefer non-loopback addresses

返回Returns String
返回字符串结果。local IP address
抛出Throws
  • SocketException 可能抛出 `SocketException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/core/a2a/server/utils/NetworkUtils.java:38–66
基于官方固定版本源码静态生成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.