edit • AI Agent SDK
edit: Edit a prior message this agent/session sent (Issue #5054).
edit
Async
Method
</div>
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
async def edit(target: str, message_id: str, text: str) -> 'MessageActionResult'Parameters
strSymbolic target token (“origin”, “<platform>”, “<platform>:<chat_id>[:<thread_id>]”, or a friendly alias).
strThe id of the message to edit.
strThe new message text.
Returns
'MessageActionResult'class:MessageActionResult describing the outcome.
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 3671