langgraph_agent_toolkit.ui.components.draw_message module

Render chat history, tokens, tool calls, and task data.

async langgraph_agent_toolkit.ui.components.draw_message.draw_messages(messages_agen, is_new=False)[source][source]

Draw chat messages from history or a stream.

Use a placeholder to render incoming tokens. Use status containers to render tool calls and results. Store the last message container in session state for later messages and feedback.

Parameters:
  • messages_agen (AsyncGenerator[ChatMessage | str, None]) – Asynchronous message iterator.

  • is_new (bool) – Whether the messages are new.

Return type:

None