Skip to main content
This page describes the Message type from aion-authoring-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

Methods

Methods Detail

reply(content, *, metadata=None)

Add a durable reply to the message in the current thread. This is a convenience wrapper around message.thread.reply(...). It sends the reply to the same thread where the message arrived. Returns: The message object that was sent, or None if the reply failed. Example:

react(key, *, operation="add", display_value=None)

Express a normalized reaction against the current message. Requires an inbound event with context_id and message_id in its payload. Logs a warning if the event context is unavailable.

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.event should remain authoritative
  • thread.message may still be populated when the provider exposes a meaningful message anchor
  • handler registration should happen through Event Handlers