Thread type for aion-langgraph.
The Thread object is the main fluent surface for replying, posting, looking
up history, and emitting streaming intents without forcing authors to build
raw A2A messages by hand.
Properties
| Property | Purpose |
|---|---|
id | Current messaging thread or context identifier |
parent_id | Parent thread or context identifier when one exists |
network | Originating network or distribution identifier |
default_reply_target | Canonical reply target derived from the inbound event |
Methods
| Method | Purpose |
|---|---|
reply(content, *, metadata=None) | Add a durable reply to the current thread |
post(content, *, target=None, metadata=None) | Create an explicit outbound post action |
history(limit=20, before=None) | Request recent conversation history through the control plane |
typing() | Emit a stream-only typing or progress intent |
reply(...) and post(...) should accept the same content categories:
- plain text
- a provider-neutral card document
- an async iterator of text chunks for streaming replies
- an explicit low-level message builder when the author needs more control
reply(...)
reply(...) is intended for the most common case: answer in the same place
the inbound message arrived.
content is an async iterator, the SDK should:
- emit stream deltas during
SendStreamingMessage - accumulate the durable reply in the same request-scoped response buffer
post(...)
post(...) is intended for explicit outbound actions that should remain
distinct from the default reply target.
reply(...), post(...) should remain explicit in the response buffer
so cross-target delivery is never inferred from transcript order alone.
history(...)
history(...) is intended to ask the control plane for more context than was
included on the inbound turn.
typing()
typing() is intended for stream-only live intents.