类 CustomEvent
java.lang.Object
io.agentscope.core.event.AgentEvent
io.agentscope.core.event.CustomEvent
Generic extensible event for signals that don't fit a specific
AgentEvent subtype.
Used by service-layer middleware to notify front-end subscribers about state changes (task progress, team membership, permission updates, etc.) without polluting the core agent event enum with application-specific types.
Front-end implementations should handle unknown getName() values gracefully — skip
with no error.
Well-known name values:
"state_updated"— agent state (tasks / permission) changed during a tool call"team_updated"— team membership changed (member added / team created or dissolved)
-
构造器概要
构造器 -
方法概要
从类继承的方法 io.agentscope.core.event.AgentEvent
getCreatedAt, getId, getMetadata, getSource, toString, withMetadata, withSource
-
构造器详细资料
-
CustomEvent
-
CustomEvent
-
CustomEvent
-
-
方法详细资料
-
getType
- 指定者:
getType在类中AgentEvent
-
getName
Returns the kind of notification. See class javadoc for well-known values. -
getValue
Returns the arbitrary JSON-serializable payload whose schema depends ongetName().
-