类 ReasoningEvent
java.lang.Object
io.agentscope.core.hook.HookEvent
io.agentscope.core.hook.ReasoningEvent
@Deprecated(forRemoval=true,
since="2.0.0")
public abstract sealed class ReasoningEvent
extends HookEvent
permits PreReasoningEvent, PostReasoningEvent, ReasoningChunkEvent
已过时, 待删除: 此 API 元素将从以后的版本中删除。
Base class for reasoning-related events.
This sealed class provides common context for all reasoning events:
getModelName()- The model name (e.g., "qwen-plus", "gpt-4")getGenerateOptions()- The generation options (temperature, etc.)
Subclasses represent different stages of the reasoning process:
PreReasoningEvent- Before LLM callPostReasoningEvent- After LLM callReasoningChunkEvent- During streaming
- 另请参阅:
-
构造器概要
构造器限定符构造器说明protectedReasoningEvent(HookEventType type, Agent agent, String modelName, GenerateOptions generateOptions) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for ReasoningEvent. -
方法概要
修饰符和类型方法说明final GenerateOptions已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the generation options.final String已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the model name.从类继承的方法 io.agentscope.core.hook.HookEvent
appendSystemContent, appendSystemContent, getAgent, getMemory, getSystemMessage, getTimestamp, getType, setSystemMessage
-
构造器详细资料
-
ReasoningEvent
protected ReasoningEvent(HookEventType type, Agent agent, String modelName, GenerateOptions generateOptions) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for ReasoningEvent.- 参数:
type- The event type (must not be null)agent- The agent instance (must not be null)modelName- The model name (must not be null)generateOptions- The generation options (may be null if using model defaults)- 抛出:
NullPointerException- if type, agent, or modelName is null
-
-
方法详细资料
-
getModelName
已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the model name.- 返回:
- The model name (e.g., "qwen-plus", "gpt-4")
-
getGenerateOptions
已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the generation options.- 返回:
- The generation options (temperature, maxTokens, etc.), or null if using model defaults
-
MiddlewareBaseinstead.