Function: registerFailingSendMessageHandler()
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.
Parameters
Section titled “Parameters”failingAgentIds
Section titled “failingAgentIds”Set<string>
Set of agent IDs that should trigger an error
errorMessage
Section titled “errorMessage”string
Error message to throw for failing agents
Returns
Section titled “Returns”Unsubscribe function