Thread type from aion.langgraph.authoring.
The Thread object is the main fluent surface for replying, posting, and
emitting streaming intents without forcing authors to build raw A2A messages by
hand.
Properties
Methods
reply(...) and post(...) accept the same content categories:
- plain text (
str) AIMessageorAIMessageChunk- async iterator of
strorAIMessageChunkfor streaming replies - a
Cardobject — provider-neutral card document - an
a2a.types.Artifactbuilt withurl_artifact,file_artifact, ordata_artifact
reply(...)
reply(...) is intended for the most common case: answer in the same place
the inbound message arrived.
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.
typing(...)
typing(content, *, metadata=None) is intended for stream-only live intents.
content is a required string — the transient text shown to the user while the
agent is working.