Using the ILLA SDK (recommended)
The simplest way to build a chat flow is with theIllaSDK class.
1) Initialize the SDK
2) Start a conversation
3) Continue the conversation
4) Retrieve message history
5) Multiple chats
Advanced: Using Chat class
For more control, you can use the lower-levelChat class directly.
1) Initialize the components
2) Send messages
3) Persisted context
The chat automatically persists message history using theContextManager. You can snapshot or restore it as needed.
4) Long‑running actions (optional)
If your prompts can trigger on-chain actions, add anAsyncToolChecker and use chat.awaitAction or subscribe for progress.
See: Awaiting actions & polling