Skip to main content

MessageActionResult

Defined in the protocols module.
AI Agent Outcome of an agent-initiated message mutation (Issue #5054). Shared typed result for the edit and delete verbs of the unified message-action surface. Every call resolves to exactly one :data:MessageActionStatus, so a channel that cannot edit/delete returns a typed unsupported outcome instead of raising — identical to how :class:ReactionResult and :class:ThreadResult degrade. Attributes: status: The outcome (ok / unsupported / failed / no_route). target: The resolved target the action was routed to. detail: Optional model-readable explanation.

Properties

MessageActionStatus
No description available.
str
No description available.
Optional[str]
No description available.

Methods

ok()

Whether the action succeeded (status == 'ok').

as_dict()

Convert to a serializable dictionary for the tool return value.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 3093