autogen_core.base.intervention#

class autogen_core.base.intervention.DefaultInterventionHandler(*args, **kwargs)[source]#

Bases: InterventionHandler

async on_publish(message: Any, *, sender: AgentId | None) Any | type[DropMessage][source]#
async on_response(message: Any, *, sender: AgentId, recipient: AgentId | None) Any | type[DropMessage][source]#
async on_send(message: Any, *, sender: AgentId | None, recipient: AgentId) Any | type[DropMessage][source]#
final class autogen_core.base.intervention.DropMessage[source]#

Bases: object

class autogen_core.base.intervention.InterventionHandler(*args, **kwargs)[source]#

Bases: Protocol

async on_publish(message: Any, *, sender: AgentId | None) Any | type[DropMessage][source]#
async on_response(message: Any, *, sender: AgentId, recipient: AgentId | None) Any | type[DropMessage][source]#
async on_send(message: Any, *, sender: AgentId | None, recipient: AgentId) Any | type[DropMessage][source]#