Mark Failed • AI Agent SDK

mark_failed: Mark a message as failed.

mark_failed

Async

Method

</div>

This is a method of the OutboundDeliveryProtocol class in the protocols module.

Mark a message as failed.

Signature

python
async def mark_failed(key: str, error: str, permanent: bool) -> bool

Parameters

ParamField str

The entry key returned by enqueue()

ParamField str

Error description

ParamField bool

If True, won’t retry this message

Returns

ResponseField bool

True if marked successfully, False if not found

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 2069