AS AgentScopeAPI 手册 / API Reference

RefreshHook

@FunctionalInterface public interface RefreshHook
源码Source io/agentscope/extensions/nacos/mcp/client/NacosMcpClientWrapper.java:224–228

定义刷新钩子契约的接口。位于 io.agentscope.extensions.nacos.mcp.client 包。核心成员包括 postRefresh。

Hook called after #refresh(McpServerDetailInfo).

方法摘要Method Summary

方法Method说明Description
public void postRefresh(McpServerDetailInfo mcpServer, NacosMcpClientWrapper mcpClient)
执行后置刷新相关操作。
Performs the post refresh operation.

方法详情Method Detail

postRefresh

public void postRefresh(McpServerDetailInfo mcpServer, NacosMcpClientWrapper mcpClient)

执行后置刷新相关操作。

Performs the post refresh operation.

参数Parameters
名称Name类型Type说明Description
mcpServerMcpServerDetailInfoMCP 服务端(类型 `McpServerDetailInfo`)。The mcp server.
mcpClientNacosMcpClientWrapperMCP 客户端(类型 `NacosMcpClientWrapper`)。The mcp client.
源码Source io/agentscope/extensions/nacos/mcp/client/NacosMcpClientWrapper.java:227
基于官方固定版本源码静态生成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.