REFERENCE
SDK Demos
How to use @asgard-js/core and @asgard-js/react, with demos you can try on the page.
Thinking Block
When the model emits extended thinking (reasoning), the SDK automatically renders it as its own collapsible block, separate from the final answer. While streaming it shows an expanded "Thinking…"; once complete it auto-collapses. No setup is required.
Message Shape
Thinking maps to
ConversationThinkingMessagein theConversationMessageunion:type ConversationThinkingMessage = {
type: "thinking";
messageId: string;
text: string;
isThinking: boolean; // true = streaming (expanded); false = completed (collapsed)
time: Date;
traceId?: string;
};In real usage these are assembled and written into the
Conversationautomatically from the backendasgard.message.thinking.start/.delta/.completeevents — you never handle them by hand.