Message type for aion-langgraph.
The goal is to give LangGraph authors a stable, provider-neutral view of the
current inbound message without making them inspect raw Slack, Telegram, or
other provider payloads directly.
Properties
| Property | Purpose |
|---|---|
id | Stable message identifier for the inbound turn |
text | Plain-text body when one exists |
user.id | Identifier for the user who triggered the event |
thread | Bound Thread object for the current conversation |
raw | Optional raw provider payload or raw A2A part access |
Methods
| Method | Purpose |
|---|---|
reply(content, *, metadata=None) | Convenience wrapper around message.thread.reply(...) |
react(key) | Express a normalized reaction against the current message |
Example
Relation to Other Event Kinds
Not every inbound turn is a plain message. Reaction, command, and card-action turns are better modeled as event kinds with specialized metadata. For those turns:runtime.context.eventshould remain authoritativeruntime.context.messagemay still be populated when the provider exposes a meaningful message anchor- handler registration should happen through Event Handlers