类 SummaryEvent
java.lang.Object
io.agentscope.core.hook.HookEvent
io.agentscope.core.hook.SummaryEvent
- 直接已知子类:
PostSummaryEvent,PreSummaryEvent,SummaryChunkEvent
public abstract sealed class SummaryEvent
extends HookEvent
permits PreSummaryEvent, SummaryChunkEvent, PostSummaryEvent
Base class for summary-related events.
This sealed class provides common context for all summary events that occur when a ReActAgent reaches its maximum iterations and generates a summary:
getModelName()- The model name (e.g., "qwen-plus", "gpt-4")getGenerateOptions()- The generation options (temperature, etc.)
Subclasses represent different stages of the summary process:
PreSummaryEvent- Before summary generationSummaryChunkEvent- During streamingPostSummaryEvent- After summary generation completes
- 另请参阅:
-
构造器概要
构造器限定符构造器说明protectedSummaryEvent(HookEventType type, Agent agent, String modelName, GenerateOptions generateOptions) Constructor for SummaryEvent. -
方法概要
从类继承的方法 io.agentscope.core.hook.HookEvent
getAgent, getMemory, getTimestamp, getType
-
构造器详细资料
-
SummaryEvent
protected SummaryEvent(HookEventType type, Agent agent, String modelName, GenerateOptions generateOptions) Constructor for SummaryEvent.- 参数:
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
Get the model name.- 返回:
- The model name (e.g., "qwen-plus", "gpt-4")
-
getGenerateOptions
Get the generation options.- 返回:
- The generation options (temperature, maxTokens, etc.), or null if using model defaults
-