类 NoOpToolEmitter
java.lang.Object
io.agentscope.core.tool.NoOpToolEmitter
- 所有已实现的接口:
ToolEmitter
A no-op implementation of ToolEmitter that silently discards all emitted chunks.
This is used as a default when no chunk callback is configured, allowing tools to call emit() without null checks.
-
字段概要
字段 -
方法概要
修饰符和类型方法说明voidemit(ToolResultBlock chunk) Silently discards the emitted chunk without performing any action.
-
字段详细资料
-
INSTANCE
Singleton instance.
-
-
方法详细资料
-
emit
Silently discards the emitted chunk without performing any action.This no-op implementation allows tools to emit chunks without null checks, ensuring consistent behavior even when no actual chunk callback is configured.
- 指定者:
emit在接口中ToolEmitter- 参数:
chunk- The tool result chunk to discard (ignored)
-