Message Action Result • AI Agent SDK
MessageActionResult: Outcome of an agent-initiated message mutation (Issue #5054).
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
MessageActionStatusNo description available.
strNo description available.
Optional[str]No description available.
Methods
Whether the action succeeded (`status == 'ok'`).
Convert to a serializable dictionary for the tool return value.
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 3451