edit
AsyncMethod
This is a method of the OutboundMessengerProtocol class in the protocols module.Edit a prior message this agent/session sent (Issue #5054). Lets an agent update its own live status message in place rather than posting a follow-up — e.g. editing “Working…” to “Done ✅”. Gated on the channel’s
PlatformCapabilities.supports_edit; a channel that cannot
edit returns a typed unsupported outcome instead of raising.
Signature
Parameters
str
required
Symbolic target token (“origin”, “<platform>”, “<platform>:<chat_id>[:<thread_id>]”, or a friendly alias).
str
required
The id of the message to edit.
str
required
The new message text.
Returns
'MessageActionResult'
class:
MessageActionResult describing the outcome.Source
View on GitHub
praisonaiagents/gateway/protocols.py at line 3313
