SessionCommandHandler
@FunctionalInterface public interface SessionCommandHandler
源码Source
io/agentscope/extensions/controlplane/transport/GrpcTransport.java:67–70定义会话命令处理器契约的接口。位于 io.agentscope.extensions.controlplane.transport 包。核心成员包括 onCommand。
Receives SessionCommand pushed down by the control plane.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public void onCommand(String sessionId, String command, byte[] params) | 处理命令事件。 Performs the on command operation. |
方法详情Method Detail
onCommand
public void onCommand(String sessionId, String command, byte[] params)
处理命令事件。
Performs the on command operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
command | String | 命令(类型 `String`)。The command. |
params | byte[] | 参数(类型 `byte[]`)。The params. |
源码Source
io/agentscope/extensions/controlplane/transport/GrpcTransport.java:69