Skip to content

Function: registerFailingSendMessageHandler()

Makaio Framework


Makaio Framework / services-core/session/testing/orchestrator-shared / registerFailingSendMessageHandler

Function: registerFailingSendMessageHandler()

Section titled “Function: registerFailingSendMessageHandler()”

registerFailingSendMessageHandler(failingAgentIds, errorMessage): UnsubscribeFunction

Defined in: ../../../packages/services/core/src/session/testing/orchestrator-shared.ts:248

Register a bus handler for agent.sendMessage that throws for agents in the failing set.

Set<string>

Set of agent IDs that should trigger an error

string

Error message to throw for failing agents

UnsubscribeFunction

Unsubscribe function