类 CustomEvent

java.lang.Object
io.agentscope.core.event.AgentEvent
io.agentscope.core.event.CustomEvent

public class CustomEvent extends AgentEvent
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)